blob: 92f57111ba20bc64f779bdc4ed1dfd942c868f6d [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy8b350f62009-11-15 23:12:43 +00003# Generated by GNU Autoconf 2.64 for ImageMagick 6.5.7.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy8b350f62009-11-15 23:12:43 +00008# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000092case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000093 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
cristy3ed852e2009-09-05 21:47:34 +0000101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000112 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000113fi
114
cristy8b350f62009-11-15 23:12:43 +0000115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
cristy8b350f62009-11-15 23:12:43 +0000133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy932c9122009-11-19 13:57:03 +0000174test \$(( 1 + 1 )) = 2 || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185else
186 as_have_required=no
187fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192as_found=false
193for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194do
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
199 /*)
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
208fi
209fi
210 done;;
211 esac
212 as_found=false
213done
214$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217fi; }
218IFS=$as_save_IFS
219
220
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and
240$0: http://www.imagemagick.org about your system, including
241$0: any error possibly output before this message. Then
242$0: install a modern shell, or manually run the script
243$0: under such a shell if you do have one."
244 fi
245 exit 1
246fi
247fi
248fi
249SHELL=${CONFIG_SHELL-/bin/sh}
250export SHELL
251# Unset more variables known to interfere with behavior of common tools.
252CLICOLOR_FORCE= GREP_OPTIONS=
253unset CLICOLOR_FORCE GREP_OPTIONS
254
255## --------------------- ##
256## M4sh Shell Functions. ##
257## --------------------- ##
258# as_fn_unset VAR
259# ---------------
260# Portably unset VAR.
261as_fn_unset ()
262{
263 { eval $1=; unset $1;}
264}
265as_unset=as_fn_unset
266
267# as_fn_set_status STATUS
268# -----------------------
269# Set $? to STATUS, without forking.
270as_fn_set_status ()
271{
272 return $1
273} # as_fn_set_status
274
275# as_fn_exit STATUS
276# -----------------
277# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278as_fn_exit ()
279{
280 set +e
281 as_fn_set_status $1
282 exit $1
283} # as_fn_exit
284
285# as_fn_mkdir_p
286# -------------
287# Create "$as_dir" as a directory, including parents if necessary.
288as_fn_mkdir_p ()
289{
290
291 case $as_dir in #(
292 -*) as_dir=./$as_dir;;
293 esac
294 test -d "$as_dir" || eval $as_mkdir_p || {
295 as_dirs=
296 while :; do
297 case $as_dir in #(
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 *) as_qdir=$as_dir;;
300 esac
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307$as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\/\)[^/].*/{
313 s//\1/
314 q
315 }
316 /^X\(\/\/\)$/{
317 s//\1/
318 q
319 }
320 /^X\(\/\).*/{
321 s//\1/
322 q
323 }
324 s/.*/./; q'`
325 test -d "$as_dir" && break
326 done
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329
330
331} # as_fn_mkdir_p
332# as_fn_append VAR VALUE
333# ----------------------
334# Append the text in VALUE to the end of the definition contained in VAR. Take
335# advantage of any shell optimizations that allow amortized linear growth over
336# repeated appends, instead of the typical quadratic growth present in naive
337# implementations.
338if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
340 {
341 eval $1+=\$2
342 }'
343else
344 as_fn_append ()
345 {
346 eval $1=\$$1\$2
347 }
348fi # as_fn_append
349
350# as_fn_arith ARG...
351# ------------------
352# Perform arithmetic evaluation on the ARGs, and store the result in the
353# global $as_val. Take advantage of shells that can avoid forks. The arguments
354# must be portable across $(()) and expr.
355if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 eval 'as_fn_arith ()
357 {
358 as_val=$(( $* ))
359 }'
360else
361 as_fn_arith ()
362 {
363 as_val=`expr "$@" || test $? -eq 1`
364 }
365fi # as_fn_arith
366
367
368# as_fn_error ERROR [LINENO LOG_FD]
369# ---------------------------------
370# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372# script with status $?, using 1 if that was 0.
373as_fn_error ()
374{
375 as_status=$?; test $as_status -eq 0 && as_status=1
376 if test "$3"; then
377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 fi
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
382} # as_fn_error
383
cristy3ed852e2009-09-05 21:47:34 +0000384if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 as_expr=expr
387else
388 as_expr=false
389fi
390
391if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 as_basename=basename
393else
394 as_basename=false
395fi
396
cristy8b350f62009-11-15 23:12:43 +0000397if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_dirname=dirname
399else
400 as_dirname=false
401fi
cristy3ed852e2009-09-05 21:47:34 +0000402
cristy3ed852e2009-09-05 21:47:34 +0000403as_me=`$as_basename -- "$0" ||
404$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407$as_echo X/"$0" |
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
409 s//\1/
410 q
411 }
412 /^X\/\(\/\/\)$/{
413 s//\1/
414 q
415 }
416 /^X\/\(\/\).*/{
417 s//\1/
418 q
419 }
420 s/.*/./; q'`
421
cristy8b350f62009-11-15 23:12:43 +0000422# Avoid depending upon Character Ranges.
423as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426as_cr_digits='0123456789'
427as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000428
429
cristy8b350f62009-11-15 23:12:43 +0000430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000435 sed -n '
436 p
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
442 b
443 :lineno
444 N
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000451 { $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 +0000452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
459}
460
cristy3ed852e2009-09-05 21:47:34 +0000461ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000462case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000463-n*)
cristy8b350f62009-11-15 23:12:43 +0000464 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000466 xy) ECHO_C='\c';;
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000469 esac;;
470*)
471 ECHO_N='-n';;
472esac
cristy3ed852e2009-09-05 21:47:34 +0000473
474rm -f conf$$ conf$$.exe conf$$.file
475if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
477else
478 rm -f conf$$.dir
479 mkdir conf$$.dir 2>/dev/null
480fi
481if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s='ln -s'
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 as_ln_s='cp -p'
490 elif ln conf$$.file conf$$ 2>/dev/null; then
491 as_ln_s=ln
492 else
493 as_ln_s='cp -p'
494 fi
495else
496 as_ln_s='cp -p'
497fi
498rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499rmdir conf$$.dir 2>/dev/null
500
501if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000502 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000503else
504 test -d ./-p && rmdir ./-p
505 as_mkdir_p=false
506fi
507
508if test -x / >/dev/null 2>&1; then
509 as_test_x='test -x'
510else
511 if ls -dL / >/dev/null 2>&1; then
512 as_ls_L_option=L
513 else
514 as_ls_L_option=
515 fi
516 as_test_x='
517 eval sh -c '\''
518 if test -d "$1"; then
519 test -d "$1/.";
520 else
cristy8b350f62009-11-15 23:12:43 +0000521 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000522 -*)set "./$1";;
523 esac;
cristy8b350f62009-11-15 23:12:43 +0000524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000525 ???[sx]*):;;*)false;;esac;fi
526 '\'' sh
527 '
528fi
529as_executable_p=$as_test_x
530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
cristy3ed852e2009-09-05 21:47:34 +0000537SHELL=${CONFIG_SHELL-/bin/sh}
538
cristy3ed852e2009-09-05 21:47:34 +0000539lt_ltdl_dir='ltdl'
540
541lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
542
cristy932c9122009-11-19 13:57:03 +0000543
cristy3ed852e2009-09-05 21:47:34 +0000544exec 7<&0 </dev/null 6>&1
545
546# Name of the host.
547# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
548# so uname gets run too.
549ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550
551#
552# Initializations.
553#
554ac_default_prefix=/usr/local
555ac_clean_files=
556ac_config_libobj_dir=.
557LIBOBJS=
558cross_compiling=no
559subdirs=
560MFLAGS=
561MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000562
563# Identity of this package.
564PACKAGE_NAME='ImageMagick'
565PACKAGE_TARNAME='ImageMagick'
cristyd934d102009-10-10 12:55:13 +0000566PACKAGE_VERSION='6.5.7'
567PACKAGE_STRING='ImageMagick 6.5.7'
cristy3ed852e2009-09-05 21:47:34 +0000568PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000569PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000570
571ac_unique_file="magick/MagickCore.h"
572ac_config_libobj_dir=ltdl
573# Factoring default headers for most tests.
574ac_includes_default="\
575#include <stdio.h>
576#ifdef HAVE_SYS_TYPES_H
577# include <sys/types.h>
578#endif
579#ifdef HAVE_SYS_STAT_H
580# include <sys/stat.h>
581#endif
582#ifdef STDC_HEADERS
583# include <stdlib.h>
584# include <stddef.h>
585#else
586# ifdef HAVE_STDLIB_H
587# include <stdlib.h>
588# endif
589#endif
590#ifdef HAVE_STRING_H
591# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592# include <memory.h>
593# endif
594# include <string.h>
595#endif
596#ifdef HAVE_STRINGS_H
597# include <strings.h>
598#endif
599#ifdef HAVE_INTTYPES_H
600# include <inttypes.h>
601#endif
602#ifdef HAVE_STDINT_H
603# include <stdint.h>
604#endif
605#ifdef HAVE_UNISTD_H
606# include <unistd.h>
607#endif"
608
609ac_subst_vars='ltdl_LTLIBOBJS
610ltdl_LIBOBJS
611am__EXEEXT_FALSE
612am__EXEEXT_TRUE
613LTLIBOBJS
614MAGICK_LIBS
615MAGICK_LDFLAGS
616MAGICK_PCFLAGS
617MAGICK_CPPFLAGS
618MAGICK_CXXFLAGS
619MAGICK_CFLAGS
620MAGICK_DEP_LIBS
621MAGICK_LTDLDEPS
622MAGICK_LIBLTDL
623OSX_GCOV_LDFLAG
624DELEGATES
625MAGICKCORE_PATH
626PERL_SUPPORTS_DESTDIR
627WITH_PERL_DYNAMIC_FALSE
628WITH_PERL_DYNAMIC_TRUE
629WITH_PERL_STATIC_FALSE
630WITH_PERL_STATIC_TRUE
631WITH_PERL_FALSE
632WITH_PERL_TRUE
633GSVersion
634GSPSDevice
635GSPDFDevice
636GSMonoDevice
637GSEPSDevice
638GSColorDevice
639GSCMYKDevice
640GSAlphaDevice
641XPSVersion
642XPSCMYKDevice
643XPSColorDevice
644XPSMonoDevice
645PCLVersion
646PCLCMYKDevice
647PCLColorDevice
648PCLMonoDevice
649ZIP_DELEGATE_FALSE
650ZIP_DELEGATE_TRUE
651ZIP
652P7ZIP_DELEGATE_FALSE
653P7ZIP_DELEGATE_TRUE
654P7ZIP
655RPM_DELEGATE_FALSE
656RPM_DELEGATE_TRUE
657RPM
658PERL
659TAR
660ShowImageDelegate
661type_include_files
662ghostscript_font_dir
663windows_font_dir
664PrintDelegate
665ZipDelegate
666XPSDelegate
667WWWDecodeDelegate
668WMFDecodeDelegate
669TXTDelegate
670SCANDecodeDelegate
671RMDelegate
672RLEEncodeDelegate
673PSDelegate
674POVDelegate
675PGPDecodeDelegate
676PCLDelegate
677MVDelegate
678MPEGEncodeDelegate
679MPEGDecodeDelegate
680MANDelegate
681LaunchDelegate
682LZWEncodeDelegate
683LZWDecodeDelegate
684LPRDelegate
685LPDelegate
686ILBMEncodeDelegate
687ILBMDecodeDelegate
688HTMLDecodeDelegate
689HPGLDecodeDelegate
690HDRDecodeDelegate
691GnuplotDecodeDelegate
692MogrifyDelegate
693DisplayDelegate
694ConvertDelegate
695FIGDecodeDelegate
696EditorDelegate
697EchoDelegate
698DVIDecodeDelegate
699GVCDecodeDelegate
700DNGDecodeDelegate
701CatDelegate
702CGMDecodeDelegate
703BrowseDelegate
704BZIPDelegate
705BlenderDecodeDelegate
706AVIDecodeDelegate
707AutotraceDecodeDelegate
708SHARE_CONFIGURE_PATH
709SHARE_PATH
710DOCUMENTATION_PATH
711FILTER_PATH
712CODER_PATH
713CONFIGURE_PATH
714LIBRARY_PATH
715EXECUTABLE_PATH
716PERLMAINCC
717XML_LIBS
718XML_DELEGATE_FALSE
719XML_DELEGATE_TRUE
720xml2_config
721WMF_LIBS_DEPS
722WMF_LIBS
723WMF_DELEGATE_FALSE
724WMF_DELEGATE_TRUE
725TIFF_LIBS
726TIFF_DELEGATE_FALSE
727TIFF_DELEGATE_TRUE
728CAIRO_DELEGATE_FALSE
729CAIRO_DELEGATE_TRUE
730RSVG_DELEGATE_FALSE
731RSVG_DELEGATE_TRUE
732CAIRO_SVG_LIBS
733CAIRO_SVG_CFLAGS
734RSVG_LIBS
735RSVG_CFLAGS
736PNG_LIBS
737PNG_DELEGATE_FALSE
738PNG_DELEGATE_TRUE
739OPENEXR_DELEGATE_FALSE
740OPENEXR_DELEGATE_TRUE
741OPENEXR_LIBS
742OPENEXR_CFLAGS
743LQR_DELEGATE_FALSE
744LQR_DELEGATE_TRUE
745LQR_LIBS
746LQR_CFLAGS
747LCMS_LIBS
748LCMS_DELEGATE_FALSE
749LCMS_DELEGATE_TRUE
750JP2_LIBS
751JP2_DELEGATE_FALSE
752JP2_DELEGATE_TRUE
753JPEG_LIBS
754JPEG_DELEGATE_FALSE
755JPEG_DELEGATE_TRUE
756JBIG_LIBS
757JBIG_DELEGATE_FALSE
758JBIG_DELEGATE_TRUE
759GVC_DELEGATE_FALSE
760GVC_DELEGATE_TRUE
761GVC_LIBS
762GVC_CFLAGS
763GS_LIBS
764GS_DELEGATE_FALSE
765GS_DELEGATE_TRUE
766FREETYPE_LIBS
767FREETYPE_DELEGATE_FALSE
768FREETYPE_DELEGATE_TRUE
769freetype_config
770FONTCONFIG_DELEGATE_FALSE
771FONTCONFIG_DELEGATE_TRUE
772FONTCONFIG_LIBS
773FONTCONFIG_CFLAGS
774FPX_LIBS
775FPX_DELEGATE_FALSE
776FPX_DELEGATE_TRUE
777FFTW_LIBS
778FFTW_DELEGATE_FALSE
779FFTW_DELEGATE_TRUE
780DJVU_LIBS
781DJVU_DELEGATE_FALSE
782DJVU_DELEGATE_TRUE
783DPS_LIBS
784DPS_DELEGATE_FALSE
785DPS_DELEGATE_TRUE
786AUTOTRACE_DELEGATE_FALSE
787AUTOTRACE_DELEGATE_TRUE
788AUTOTRACE_LIBS
789AUTOTRACE_CFLAGS
790LIB_DL
791ZLIB_LIBS
792ZLIB_DELEGATE_FALSE
793ZLIB_DELEGATE_TRUE
794XEXT_LIBS
795X11_LIBS
796X11_DELEGATE_FALSE
797X11_DELEGATE_TRUE
798X_EXTRA_LIBS
799X_LIBS
800X_PRE_LIBS
801X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000802XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000803BZLIB_LIBS
804BZLIB_DELEGATE_FALSE
805BZLIB_DELEGATE_TRUE
806MATH_LIBS
807CCMALLOCDelegate
808UMEM_LIBS
809HasUMEM_FALSE
810HasUMEM_TRUE
811THREAD_LIBS
812GOMP_LIBS
813WITH_MAGICK_PLUS_PLUS_FALSE
814WITH_MAGICK_PLUS_PLUS_TRUE
815OPENMP_CXXFLAGS
816POW_LIB
817LIBOBJS
818UINTPTR_T
819UINTMAX_T
820UINT64_T
821INT64_T
822UINT32_T
823INT32_T
824UINT16_T
825INT16_T
826UINT8_T
827INT8_T
828LIBRARY_EXTRA_CPPFLAGS
829MODULE_EXTRA_CPPFLAGS
830LIBSTDCLDFLAGS
831PERL_MAKE_OPTIONS
832QUANTUM_DEPTH
833MAINT
834MAINTAINER_MODE_FALSE
835MAINTAINER_MODE_TRUE
836MAGICK_HDRI
837DLLDFLAGS
838WITH_LTDL_FALSE
839WITH_LTDL_TRUE
840WITH_MODULES_FALSE
841WITH_MODULES_TRUE
842LTCXXLIBOPTS
843LTDLOPEN
844LT_CONFIG_H
845CONVENIENCE_LTDL_FALSE
846CONVENIENCE_LTDL_TRUE
847INSTALL_LTDL_FALSE
848INSTALL_LTDL_TRUE
849ARGZ_H
850sys_symbol_underscore
851LIBADD_DL
852LT_DLPREOPEN
853LIBADD_DLD_LINK
854LIBADD_SHL_LOAD
855LIBADD_DLOPEN
856LT_DLLOADERS
857INCLTDL
858LTDLINCL
859LTDLDEPS
860LIBLTDL
861LIBTOOL_DEPS
862CXXCPP
863OTOOL64
864OTOOL
865LIPO
866NMEDIT
867DSYMUTIL
cristy3ed852e2009-09-05 21:47:34 +0000868AR
869NM
870ac_ct_DUMPBIN
871DUMPBIN
872LIBTOOL
873OBJDUMP
874DLLTOOL
875AS
876LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +0000877CL_LIBS
878CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000879OPENMP_CFLAGS
880PTHREAD_CFLAGS
881PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000882PTHREAD_CC
883acx_pthread_config
884WinPathScript
885USING_CL_FALSE
886USING_CL_TRUE
887CYGWIN_BUILD_FALSE
888CYGWIN_BUILD_TRUE
889WIN32_NATIVE_BUILD_FALSE
890WIN32_NATIVE_BUILD_TRUE
891WINGDI32_DELEGATE_FALSE
892WINGDI32_DELEGATE_TRUE
893GDI32_LIBS
894PKG_CONFIG
895LN_S
896am__fastdepCXX_FALSE
897am__fastdepCXX_TRUE
898CXXDEPMODE
899ac_ct_CXX
900CXXFLAGS
901CXX
902RANLIB
903LD
904FGREP
905EGREP
906GREP
907SED
908CPP
909am__fastdepCC_FALSE
910am__fastdepCC_TRUE
911CCDEPMODE
912AMDEPBACKSLASH
913AMDEP_FALSE
914AMDEP_TRUE
915am__quote
916am__include
917DEPDIR
918OBJEXT
919EXEEXT
920ac_ct_CC
921CPPFLAGS
922LDFLAGS
923CFLAGS
924CC
925DIRSEP
926MAGICK_FILTER_MODULE_PATH
927MAGICK_CONFIGURE_BUILD_PATH
928MAGICK_CONFIGURE_SRC_PATH
929MAGICK_CODER_MODULE_PATH
930MAN_DIR
931INFO_DIR
932PERSISTINCLUDE_DIR
933INCLUDE_DIR
934LIB_DIR
935LOCALSTATE_DIR
936SHAREDSTATE_DIR
937SYSCONF_DIR
938DATA_DIR
939LIBEXEC_DIR
940SBIN_DIR
941BIN_DIR
942EXEC_PREFIX_DIR
943PREFIX_DIR
944CONFIG_STATUS_DEPENDENCIES
945MAGICK_LIB_VERSION_NUMBER
946MAGICK_LIB_VERSION_TEXT
947MAGICK_LIB_VERSION
948AM_BACKSLASH
949AM_DEFAULT_VERBOSITY
950am__untar
951am__tar
952AMTAR
953am__leading_dot
954SET_MAKE
955AWK
956mkdir_p
957MKDIR_P
958INSTALL_STRIP_PROGRAM
959STRIP
960install_sh
961MAKEINFO
962AUTOHEADER
963AUTOMAKE
964AUTOCONF
965ACLOCAL
966VERSION
967PACKAGE
968CYGPATH_W
969am__isrc
970INSTALL_DATA
971INSTALL_SCRIPT
972INSTALL_PROGRAM
973PACKAGE_LIB_SUBVERSION
974PACKAGE_RELEASE_DATE
975PACKAGE_LIB_VERSION_NUMBER
976PACKAGE_LIB_VERSION
977PACKAGE_CHANGE_DATE
978PACKAGE_RELEASE
979MAGICK_LIBRARY_AGE
980MAGICK_LIBRARY_REVISION
981MAGICK_LIBRARY_CURRENT
982target_os
983target_vendor
984target_cpu
985target
986host_os
987host_vendor
988host_cpu
989host
990build_os
991build_vendor
992build_cpu
993build
994CONFIGURE_ARGS
995DISTCHECK_CONFIG_FLAGS
996target_alias
997host_alias
998build_alias
999LIBS
1000ECHO_T
1001ECHO_N
1002ECHO_C
1003DEFS
1004mandir
1005localedir
1006libdir
1007psdir
1008pdfdir
1009dvidir
1010htmldir
1011infodir
1012docdir
1013oldincludedir
1014includedir
1015localstatedir
1016sharedstatedir
1017sysconfdir
1018datadir
1019datarootdir
1020libexecdir
1021sbindir
1022bindir
1023program_transform_name
1024prefix
1025exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001026PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001027PACKAGE_BUGREPORT
1028PACKAGE_STRING
1029PACKAGE_VERSION
1030PACKAGE_TARNAME
1031PACKAGE_NAME
1032PATH_SEPARATOR
1033SHELL'
1034ac_subst_files=''
1035ac_user_opts='
1036enable_option_checking
1037enable_silent_rules
1038enable_dependency_tracking
1039with_gnu_ld
1040with_maximum_compile_warnings
1041with_dmalloc
1042enable_bounds_checking
1043enable_osx_universal_binary
1044with_threads
1045enable_openmp
1046enable_largefile
1047enable_shared
1048enable_static
1049with_pic
1050enable_fast_install
1051enable_libtool_lock
1052with_included_ltdl
1053with_ltdl_include
1054with_ltdl_lib
1055enable_ltdl_install
1056with_modules
1057enable_delegate_build
1058enable_deprecated
1059enable_installed
1060enable_cipher
1061enable_embeddable
1062enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001063enable_assert
1064enable_maintainer_mode
1065enable_ccmalloc
1066enable_efence
1067enable_prof
1068enable_gprof
1069enable_gcov
1070with_method_prefix
1071with_quantum_depth
1072with_cache
1073with_frozenpaths
1074with_magick_plus_plus
1075with_perl
1076with_perl_options
1077with_umem
1078with_libstdc
1079with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001080with_x
cristy3ed852e2009-09-05 21:47:34 +00001081with_zlib
1082with_autotrace
1083with_dps
1084with_djvu
1085with_fftw
1086with_fpx
1087with_fontconfig
1088with_freetype
1089with_gslib
1090with_fontpath
1091with_gs_font_dir
1092with_gvc
1093with_jbig
1094with_jpeg
1095with_jp2
1096with_lcms
1097with_lqr
1098with_openexr
1099with_png
1100with_rsvg
1101with_tiff
1102with_windows_font_dir
1103with_wmf
1104with_xml
1105'
1106 ac_precious_vars='build_alias
1107host_alias
1108target_alias
1109CC
1110CFLAGS
1111LDFLAGS
1112LIBS
1113CPPFLAGS
1114CPP
1115CXX
1116CXXFLAGS
1117CCC
1118PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001119CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001120XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001121AUTOTRACE_CFLAGS
1122AUTOTRACE_LIBS
1123FONTCONFIG_CFLAGS
1124FONTCONFIG_LIBS
1125GVC_CFLAGS
1126GVC_LIBS
1127LQR_CFLAGS
1128LQR_LIBS
1129OPENEXR_CFLAGS
1130OPENEXR_LIBS
1131RSVG_CFLAGS
1132RSVG_LIBS
1133CAIRO_SVG_CFLAGS
1134CAIRO_SVG_LIBS'
1135
1136
1137# Initialize some variables set by options.
1138ac_init_help=
1139ac_init_version=false
1140ac_unrecognized_opts=
1141ac_unrecognized_sep=
1142# The variables have the same names as the options, with
1143# dashes changed to underlines.
1144cache_file=/dev/null
1145exec_prefix=NONE
1146no_create=
1147no_recursion=
1148prefix=NONE
1149program_prefix=NONE
1150program_suffix=NONE
1151program_transform_name=s,x,x,
1152silent=
1153site=
1154srcdir=
1155verbose=
1156x_includes=NONE
1157x_libraries=NONE
1158
1159# Installation directory options.
1160# These are left unexpanded so users can "make install exec_prefix=/foo"
1161# and all the variables that are supposed to be based on exec_prefix
1162# by default will actually change.
1163# Use braces instead of parens because sh, perl, etc. also accept them.
1164# (The list follows the same order as the GNU Coding Standards.)
1165bindir='${exec_prefix}/bin'
1166sbindir='${exec_prefix}/sbin'
1167libexecdir='${exec_prefix}/libexec'
1168datarootdir='${prefix}/share'
1169datadir='${datarootdir}'
1170sysconfdir='${prefix}/etc'
1171sharedstatedir='${prefix}/com'
1172localstatedir='${prefix}/var'
1173includedir='${prefix}/include'
1174oldincludedir='/usr/include'
1175docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1176infodir='${datarootdir}/info'
1177htmldir='${docdir}'
1178dvidir='${docdir}'
1179pdfdir='${docdir}'
1180psdir='${docdir}'
1181libdir='${exec_prefix}/lib'
1182localedir='${datarootdir}/locale'
1183mandir='${datarootdir}/man'
1184
1185ac_prev=
1186ac_dashdash=
1187for ac_option
1188do
1189 # If the previous option needs an argument, assign it.
1190 if test -n "$ac_prev"; then
1191 eval $ac_prev=\$ac_option
1192 ac_prev=
1193 continue
1194 fi
1195
1196 case $ac_option in
1197 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1198 *) ac_optarg=yes ;;
1199 esac
1200
1201 # Accept the important Cygnus configure options, so we can diagnose typos.
1202
1203 case $ac_dashdash$ac_option in
1204 --)
1205 ac_dashdash=yes ;;
1206
1207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1208 ac_prev=bindir ;;
1209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1210 bindir=$ac_optarg ;;
1211
1212 -build | --build | --buil | --bui | --bu)
1213 ac_prev=build_alias ;;
1214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1215 build_alias=$ac_optarg ;;
1216
1217 -cache-file | --cache-file | --cache-fil | --cache-fi \
1218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1219 ac_prev=cache_file ;;
1220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1222 cache_file=$ac_optarg ;;
1223
1224 --config-cache | -C)
1225 cache_file=config.cache ;;
1226
1227 -datadir | --datadir | --datadi | --datad)
1228 ac_prev=datadir ;;
1229 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1230 datadir=$ac_optarg ;;
1231
1232 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1233 | --dataroo | --dataro | --datar)
1234 ac_prev=datarootdir ;;
1235 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1236 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1237 datarootdir=$ac_optarg ;;
1238
1239 -disable-* | --disable-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001243 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248"enable_$ac_useropt"
1249"*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval enable_$ac_useropt=no ;;
1254
1255 -docdir | --docdir | --docdi | --doc | --do)
1256 ac_prev=docdir ;;
1257 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1258 docdir=$ac_optarg ;;
1259
1260 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1261 ac_prev=dvidir ;;
1262 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1263 dvidir=$ac_optarg ;;
1264
1265 -enable-* | --enable-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001269 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274"enable_$ac_useropt"
1275"*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval enable_$ac_useropt=\$ac_optarg ;;
1280
1281 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1282 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1283 | --exec | --exe | --ex)
1284 ac_prev=exec_prefix ;;
1285 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1286 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1287 | --exec=* | --exe=* | --ex=*)
1288 exec_prefix=$ac_optarg ;;
1289
1290 -gas | --gas | --ga | --g)
1291 # Obsolete; use --with-gas.
1292 with_gas=yes ;;
1293
1294 -help | --help | --hel | --he | -h)
1295 ac_init_help=long ;;
1296 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1297 ac_init_help=recursive ;;
1298 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1299 ac_init_help=short ;;
1300
1301 -host | --host | --hos | --ho)
1302 ac_prev=host_alias ;;
1303 -host=* | --host=* | --hos=* | --ho=*)
1304 host_alias=$ac_optarg ;;
1305
1306 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1307 ac_prev=htmldir ;;
1308 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1309 | --ht=*)
1310 htmldir=$ac_optarg ;;
1311
1312 -includedir | --includedir | --includedi | --included | --include \
1313 | --includ | --inclu | --incl | --inc)
1314 ac_prev=includedir ;;
1315 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1316 | --includ=* | --inclu=* | --incl=* | --inc=*)
1317 includedir=$ac_optarg ;;
1318
1319 -infodir | --infodir | --infodi | --infod | --info | --inf)
1320 ac_prev=infodir ;;
1321 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1322 infodir=$ac_optarg ;;
1323
1324 -libdir | --libdir | --libdi | --libd)
1325 ac_prev=libdir ;;
1326 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1327 libdir=$ac_optarg ;;
1328
1329 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1330 | --libexe | --libex | --libe)
1331 ac_prev=libexecdir ;;
1332 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1333 | --libexe=* | --libex=* | --libe=*)
1334 libexecdir=$ac_optarg ;;
1335
1336 -localedir | --localedir | --localedi | --localed | --locale)
1337 ac_prev=localedir ;;
1338 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1339 localedir=$ac_optarg ;;
1340
1341 -localstatedir | --localstatedir | --localstatedi | --localstated \
1342 | --localstate | --localstat | --localsta | --localst | --locals)
1343 ac_prev=localstatedir ;;
1344 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1345 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1346 localstatedir=$ac_optarg ;;
1347
1348 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1349 ac_prev=mandir ;;
1350 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1351 mandir=$ac_optarg ;;
1352
1353 -nfp | --nfp | --nf)
1354 # Obsolete; use --without-fp.
1355 with_fp=no ;;
1356
1357 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1358 | --no-cr | --no-c | -n)
1359 no_create=yes ;;
1360
1361 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1362 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1363 no_recursion=yes ;;
1364
1365 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1366 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1367 | --oldin | --oldi | --old | --ol | --o)
1368 ac_prev=oldincludedir ;;
1369 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1370 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1371 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1372 oldincludedir=$ac_optarg ;;
1373
1374 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1375 ac_prev=prefix ;;
1376 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1377 prefix=$ac_optarg ;;
1378
1379 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1380 | --program-pre | --program-pr | --program-p)
1381 ac_prev=program_prefix ;;
1382 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1383 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1384 program_prefix=$ac_optarg ;;
1385
1386 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1387 | --program-suf | --program-su | --program-s)
1388 ac_prev=program_suffix ;;
1389 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1390 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1391 program_suffix=$ac_optarg ;;
1392
1393 -program-transform-name | --program-transform-name \
1394 | --program-transform-nam | --program-transform-na \
1395 | --program-transform-n | --program-transform- \
1396 | --program-transform | --program-transfor \
1397 | --program-transfo | --program-transf \
1398 | --program-trans | --program-tran \
1399 | --progr-tra | --program-tr | --program-t)
1400 ac_prev=program_transform_name ;;
1401 -program-transform-name=* | --program-transform-name=* \
1402 | --program-transform-nam=* | --program-transform-na=* \
1403 | --program-transform-n=* | --program-transform-=* \
1404 | --program-transform=* | --program-transfor=* \
1405 | --program-transfo=* | --program-transf=* \
1406 | --program-trans=* | --program-tran=* \
1407 | --progr-tra=* | --program-tr=* | --program-t=*)
1408 program_transform_name=$ac_optarg ;;
1409
1410 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1411 ac_prev=pdfdir ;;
1412 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1413 pdfdir=$ac_optarg ;;
1414
1415 -psdir | --psdir | --psdi | --psd | --ps)
1416 ac_prev=psdir ;;
1417 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1418 psdir=$ac_optarg ;;
1419
1420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1421 | -silent | --silent | --silen | --sile | --sil)
1422 silent=yes ;;
1423
1424 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1425 ac_prev=sbindir ;;
1426 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1427 | --sbi=* | --sb=*)
1428 sbindir=$ac_optarg ;;
1429
1430 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1431 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1432 | --sharedst | --shareds | --shared | --share | --shar \
1433 | --sha | --sh)
1434 ac_prev=sharedstatedir ;;
1435 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1436 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1437 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1438 | --sha=* | --sh=*)
1439 sharedstatedir=$ac_optarg ;;
1440
1441 -site | --site | --sit)
1442 ac_prev=site ;;
1443 -site=* | --site=* | --sit=*)
1444 site=$ac_optarg ;;
1445
1446 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1447 ac_prev=srcdir ;;
1448 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1449 srcdir=$ac_optarg ;;
1450
1451 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1452 | --syscon | --sysco | --sysc | --sys | --sy)
1453 ac_prev=sysconfdir ;;
1454 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1455 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1456 sysconfdir=$ac_optarg ;;
1457
1458 -target | --target | --targe | --targ | --tar | --ta | --t)
1459 ac_prev=target_alias ;;
1460 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1461 target_alias=$ac_optarg ;;
1462
1463 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1464 verbose=yes ;;
1465
1466 -version | --version | --versio | --versi | --vers | -V)
1467 ac_init_version=: ;;
1468
1469 -with-* | --with-*)
1470 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1471 # Reject names that are not valid shell variable names.
1472 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001473 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001474 ac_useropt_orig=$ac_useropt
1475 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1476 case $ac_user_opts in
1477 *"
1478"with_$ac_useropt"
1479"*) ;;
1480 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1481 ac_unrecognized_sep=', ';;
1482 esac
1483 eval with_$ac_useropt=\$ac_optarg ;;
1484
1485 -without-* | --without-*)
1486 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1487 # Reject names that are not valid shell variable names.
1488 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001489 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001490 ac_useropt_orig=$ac_useropt
1491 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1492 case $ac_user_opts in
1493 *"
1494"with_$ac_useropt"
1495"*) ;;
1496 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1497 ac_unrecognized_sep=', ';;
1498 esac
1499 eval with_$ac_useropt=no ;;
1500
1501 --x)
1502 # Obsolete; use --with-x.
1503 with_x=yes ;;
1504
1505 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1506 | --x-incl | --x-inc | --x-in | --x-i)
1507 ac_prev=x_includes ;;
1508 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1509 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1510 x_includes=$ac_optarg ;;
1511
1512 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1513 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1514 ac_prev=x_libraries ;;
1515 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1516 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1517 x_libraries=$ac_optarg ;;
1518
cristy8b350f62009-11-15 23:12:43 +00001519 -*) as_fn_error "unrecognized option: \`$ac_option'
1520Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001521 ;;
1522
1523 *=*)
1524 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1525 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001526 case $ac_envvar in #(
1527 '' | [0-9]* | *[!_$as_cr_alnum]* )
1528 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1529 esac
cristy3ed852e2009-09-05 21:47:34 +00001530 eval $ac_envvar=\$ac_optarg
1531 export $ac_envvar ;;
1532
1533 *)
1534 # FIXME: should be removed in autoconf 3.0.
1535 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1536 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1537 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1538 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1539 ;;
1540
1541 esac
1542done
1543
1544if test -n "$ac_prev"; then
1545 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001546 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001547fi
1548
1549if test -n "$ac_unrecognized_opts"; then
1550 case $enable_option_checking in
1551 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001552 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001553 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1554 esac
1555fi
1556
1557# Check all directory arguments for consistency.
1558for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1559 datadir sysconfdir sharedstatedir localstatedir includedir \
1560 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1561 libdir localedir mandir
1562do
1563 eval ac_val=\$$ac_var
1564 # Remove trailing slashes.
1565 case $ac_val in
1566 */ )
1567 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1568 eval $ac_var=\$ac_val;;
1569 esac
1570 # Be sure to have absolute directory names.
1571 case $ac_val in
1572 [\\/$]* | ?:[\\/]* ) continue;;
1573 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1574 esac
cristy8b350f62009-11-15 23:12:43 +00001575 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001576done
1577
1578# There might be people who depend on the old broken behavior: `$host'
1579# used to hold the argument of --host etc.
1580# FIXME: To remove some day.
1581build=$build_alias
1582host=$host_alias
1583target=$target_alias
1584
1585# FIXME: To remove some day.
1586if test "x$host_alias" != x; then
1587 if test "x$build_alias" = x; then
1588 cross_compiling=maybe
1589 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1590 If a cross compiler is detected then cross compile mode will be used." >&2
1591 elif test "x$build_alias" != "x$host_alias"; then
1592 cross_compiling=yes
1593 fi
1594fi
1595
1596ac_tool_prefix=
1597test -n "$host_alias" && ac_tool_prefix=$host_alias-
1598
1599test "$silent" = yes && exec 6>/dev/null
1600
1601
1602ac_pwd=`pwd` && test -n "$ac_pwd" &&
1603ac_ls_di=`ls -di .` &&
1604ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001605 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001606test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001607 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001608
1609
1610# Find the source files, if location was not specified.
1611if test -z "$srcdir"; then
1612 ac_srcdir_defaulted=yes
1613 # Try the directory containing this script, then the parent directory.
1614 ac_confdir=`$as_dirname -- "$as_myself" ||
1615$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1616 X"$as_myself" : 'X\(//\)[^/]' \| \
1617 X"$as_myself" : 'X\(//\)$' \| \
1618 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1619$as_echo X"$as_myself" |
1620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1621 s//\1/
1622 q
1623 }
1624 /^X\(\/\/\)[^/].*/{
1625 s//\1/
1626 q
1627 }
1628 /^X\(\/\/\)$/{
1629 s//\1/
1630 q
1631 }
1632 /^X\(\/\).*/{
1633 s//\1/
1634 q
1635 }
1636 s/.*/./; q'`
1637 srcdir=$ac_confdir
1638 if test ! -r "$srcdir/$ac_unique_file"; then
1639 srcdir=..
1640 fi
1641else
1642 ac_srcdir_defaulted=no
1643fi
1644if test ! -r "$srcdir/$ac_unique_file"; then
1645 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001646 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001647fi
1648ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1649ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001650 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001651 pwd)`
1652# When building in place, set srcdir=.
1653if test "$ac_abs_confdir" = "$ac_pwd"; then
1654 srcdir=.
1655fi
1656# Remove unnecessary trailing slashes from srcdir.
1657# Double slashes in file names in object file debugging info
1658# mess up M-x gdb in Emacs.
1659case $srcdir in
1660*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1661esac
1662for ac_var in $ac_precious_vars; do
1663 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1664 eval ac_env_${ac_var}_value=\$${ac_var}
1665 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1666 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1667done
1668
1669#
1670# Report the --help message.
1671#
1672if test "$ac_init_help" = "long"; then
1673 # Omit some internal or obsolete options to make the list less imposing.
1674 # This message is too long to be a string in the A/UX 3.1 sh.
1675 cat <<_ACEOF
cristyd934d102009-10-10 12:55:13 +00001676\`configure' configures ImageMagick 6.5.7 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001677
1678Usage: $0 [OPTION]... [VAR=VALUE]...
1679
1680To assign environment variables (e.g., CC, CFLAGS...), specify them as
1681VAR=VALUE. See below for descriptions of some of the useful variables.
1682
1683Defaults for the options are specified in brackets.
1684
1685Configuration:
1686 -h, --help display this help and exit
1687 --help=short display options specific to this package
1688 --help=recursive display the short help of all the included packages
1689 -V, --version display version information and exit
1690 -q, --quiet, --silent do not print \`checking...' messages
1691 --cache-file=FILE cache test results in FILE [disabled]
1692 -C, --config-cache alias for \`--cache-file=config.cache'
1693 -n, --no-create do not create output files
1694 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1695
1696Installation directories:
1697 --prefix=PREFIX install architecture-independent files in PREFIX
1698 [$ac_default_prefix]
1699 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1700 [PREFIX]
1701
1702By default, \`make install' will install all the files in
1703\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1704an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1705for instance \`--prefix=\$HOME'.
1706
1707For better control, use the options below.
1708
1709Fine tuning of the installation directories:
1710 --bindir=DIR user executables [EPREFIX/bin]
1711 --sbindir=DIR system admin executables [EPREFIX/sbin]
1712 --libexecdir=DIR program executables [EPREFIX/libexec]
1713 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1714 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1715 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1716 --libdir=DIR object code libraries [EPREFIX/lib]
1717 --includedir=DIR C header files [PREFIX/include]
1718 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1719 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1720 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1721 --infodir=DIR info documentation [DATAROOTDIR/info]
1722 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1723 --mandir=DIR man documentation [DATAROOTDIR/man]
1724 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1725 --htmldir=DIR html documentation [DOCDIR]
1726 --dvidir=DIR dvi documentation [DOCDIR]
1727 --pdfdir=DIR pdf documentation [DOCDIR]
1728 --psdir=DIR ps documentation [DOCDIR]
1729_ACEOF
1730
1731 cat <<\_ACEOF
1732
1733Program names:
1734 --program-prefix=PREFIX prepend PREFIX to installed program names
1735 --program-suffix=SUFFIX append SUFFIX to installed program names
1736 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1737
1738X features:
1739 --x-includes=DIR X include files are in DIR
1740 --x-libraries=DIR X library files are in DIR
1741
1742System types:
1743 --build=BUILD configure for building on BUILD [guessed]
1744 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1745 --target=TARGET configure for building compilers for TARGET [HOST]
1746_ACEOF
1747fi
1748
1749if test -n "$ac_init_help"; then
1750 case $ac_init_help in
cristyd934d102009-10-10 12:55:13 +00001751 short | recursive ) echo "Configuration of ImageMagick 6.5.7:";;
cristy3ed852e2009-09-05 21:47:34 +00001752 esac
1753 cat <<\_ACEOF
1754
1755Optional Features:
1756 --disable-option-checking ignore unrecognized --enable/--with options
1757 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1758 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1759 --enable-silent-rules less verbose build output (undo: `make V=1')
1760 --disable-silent-rules verbose build output (undo: `make V=0')
1761 --disable-dependency-tracking speeds up one-time build
1762 --enable-dependency-tracking do not reject slow dependency extractors
1763 --bounds-checking enable run-time bounds-checking
1764 --enable-osx-universal-binary
1765 build universal binary on OS X [default=no]
1766 --disable-openmp do not use OpenMP
1767 --disable-largefile omit support for large files
1768 --enable-shared[=PKGS] build shared libraries [default=yes]
1769 --enable-static[=PKGS] build static libraries [default=yes]
1770 --enable-fast-install[=PKGS]
1771 optimize for fast installation [default=yes]
1772 --disable-libtool-lock avoid locking (might break parallel builds)
1773 --enable-ltdl-install install libltdl
1774 --enable-delegate-build look for delegate libraries in build directory
1775 --disable-deprecated exclude deprecated methods in MagickCore and
1776 MagickWand API's
1777 --disable-installed Formally install ImageMagick under PREFIX
1778 --disable-cipher disable enciphering and deciphering image pixels
1779 --enable-embeddable enable self-contained, embeddable,
1780 zero-configuration ImageMagick
1781 --enable-hdri accurately represent the wide range of intensity
1782 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001783 --disable-assert disable assert() statements in build
1784 --enable-maintainer-mode enable make rules and dependencies not useful
1785 (and sometimes confusing) to the casual installer
1786 --enable-ccmalloc enable 'ccmalloc' memory debug support
1787 --enable-efence enable 'efence' memory debug support
1788 --enable-prof enable 'prof' profiling support
1789 --enable-gprof enable 'gprof' profiling support
1790 --enable-gcov enable 'gcov' profiling support
1791
1792Optional Packages:
1793 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1794 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1795 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1796 --without-maximum-compile-warnings
1797 Disable maximum warning verbosity
1798 --with-dmalloc use dmalloc, as in
1799 http://www.dmalloc.com/dmalloc.tar.gz
1800 --without-threads disable threads support
1801 --with-pic try to use only PIC/non-PIC objects [default=use
1802 both]
1803 --with-included-ltdl use the GNU ltdl sources included here
1804 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1805 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1806 --with-modules enable building dynamically loadable modules
1807 --with-method-prefix=PREFIX
1808 prefix MagickCore API methods
1809 --with-quantum-depth=DEPTH
1810 number of bits in a pixel quantum (default 16)
1811 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1812 memory)
1813 --with-frozenpaths freeze delegate paths
1814 --without-magick-plus-plus
1815 disable build/install of Magick++
1816 --with-perl enable build/install of PerlMagick
1817 --with-perl-options=OPTIONS
1818 options to pass on command-line when generating
1819 PerlMagick's build file
1820 --with-umem enable umem memory allocation library support
1821 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1822 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001823 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001824 --without-zlib disable ZLIB support
1825 --with-autotrace enable autotrace support
1826 --without-dps disable Display Postscript support
1827 --without-djvu disable DjVu support
1828 --without-fftw disable FFTW support
1829 --without-fpx disable FlashPIX support
1830 --without-fontconfig disable fontconfig support
1831 --without-freetype disable Freetype support
1832 --without-gslib enable Ghostscript library support
1833 --with-fontpath=DIR prepend to default font search path
1834 --with-gs-font-dir=DIR Ghostscript font directory
1835 --without-gvc disable GVC support
1836 --without-jbig disable JBIG support
1837 --without-jpeg disable JPEG support
1838 --without-jp2 disable JPEG-2000 support
1839 --without-lcms disable LCMS support
1840 --without-lqr disable Liquid Rescale support (experimental)
1841 --without-openexr disable OpenEXR support
1842 --without-png disable PNG support
1843 --without-rsvg disable RSVG support
1844 --without-tiff disable TIFF support
1845 --with-windows-font-dir=DIR
1846 directory containing MS-Windows fonts
1847 --without-wmf disable WMF support
1848 --without-xml disable XML support
1849
1850Some influential environment variables:
1851 CC C compiler command
1852 CFLAGS C compiler flags
1853 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1854 nonstandard directory <lib dir>
1855 LIBS libraries to pass to the linker, e.g. -l<library>
1856 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1857 you have headers in a nonstandard directory <include dir>
1858 CPP C preprocessor
1859 CXX C++ compiler command
1860 CXXFLAGS C++ compiler flags
1861 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00001862 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00001863 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00001864 AUTOTRACE_CFLAGS
1865 C compiler flags for AUTOTRACE, overriding pkg-config
1866 AUTOTRACE_LIBS
1867 linker flags for AUTOTRACE, overriding pkg-config
1868 FONTCONFIG_CFLAGS
1869 C compiler flags for FONTCONFIG, overriding pkg-config
1870 FONTCONFIG_LIBS
1871 linker flags for FONTCONFIG, overriding pkg-config
1872 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1873 GVC_LIBS linker flags for GVC, overriding pkg-config
1874 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1875 LQR_LIBS linker flags for LQR, overriding pkg-config
1876 OPENEXR_CFLAGS
1877 C compiler flags for OPENEXR, overriding pkg-config
1878 OPENEXR_LIBS
1879 linker flags for OPENEXR, overriding pkg-config
1880 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1881 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1882 CAIRO_SVG_CFLAGS
1883 C compiler flags for CAIRO_SVG, overriding pkg-config
1884 CAIRO_SVG_LIBS
1885 linker flags for CAIRO_SVG, overriding pkg-config
1886
1887Use these variables to override the choices made by `configure' or to help
1888it to find libraries and programs with nonstandard names/locations.
1889
1890Report bugs to <http://www.imagemagick.org>.
1891_ACEOF
1892ac_status=$?
1893fi
1894
1895if test "$ac_init_help" = "recursive"; then
1896 # If there are subdirs, report their specific --help.
1897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1898 test -d "$ac_dir" ||
1899 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1900 continue
1901 ac_builddir=.
1902
1903case "$ac_dir" in
1904.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1905*)
1906 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1907 # A ".." for each directory in $ac_dir_suffix.
1908 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1909 case $ac_top_builddir_sub in
1910 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1911 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1912 esac ;;
1913esac
1914ac_abs_top_builddir=$ac_pwd
1915ac_abs_builddir=$ac_pwd$ac_dir_suffix
1916# for backward compatibility:
1917ac_top_builddir=$ac_top_build_prefix
1918
1919case $srcdir in
1920 .) # We are building in place.
1921 ac_srcdir=.
1922 ac_top_srcdir=$ac_top_builddir_sub
1923 ac_abs_top_srcdir=$ac_pwd ;;
1924 [\\/]* | ?:[\\/]* ) # Absolute name.
1925 ac_srcdir=$srcdir$ac_dir_suffix;
1926 ac_top_srcdir=$srcdir
1927 ac_abs_top_srcdir=$srcdir ;;
1928 *) # Relative name.
1929 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1930 ac_top_srcdir=$ac_top_build_prefix$srcdir
1931 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1932esac
1933ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1934
1935 cd "$ac_dir" || { ac_status=$?; continue; }
1936 # Check for guested configure.
1937 if test -f "$ac_srcdir/configure.gnu"; then
1938 echo &&
1939 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1940 elif test -f "$ac_srcdir/configure"; then
1941 echo &&
1942 $SHELL "$ac_srcdir/configure" --help=recursive
1943 else
1944 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1945 fi || ac_status=$?
1946 cd "$ac_pwd" || { ac_status=$?; break; }
1947 done
1948fi
1949
1950test -n "$ac_init_help" && exit $ac_status
1951if $ac_init_version; then
1952 cat <<\_ACEOF
cristyd934d102009-10-10 12:55:13 +00001953ImageMagick configure 6.5.7
cristy8b350f62009-11-15 23:12:43 +00001954generated by GNU Autoconf 2.64
cristy3ed852e2009-09-05 21:47:34 +00001955
cristy8b350f62009-11-15 23:12:43 +00001956Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001957This configure script is free software; the Free Software Foundation
1958gives unlimited permission to copy, distribute and modify it.
1959_ACEOF
1960 exit
1961fi
cristy8b350f62009-11-15 23:12:43 +00001962
1963## ------------------------ ##
1964## Autoconf initialization. ##
1965## ------------------------ ##
1966
1967# ac_fn_c_try_compile LINENO
1968# --------------------------
1969# Try to compile conftest.$ac_ext, and return whether this succeeded.
1970ac_fn_c_try_compile ()
1971{
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 rm -f conftest.$ac_objext
1974 if { { ac_try="$ac_compile"
1975case "(($ac_try" in
1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1978esac
1979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980$as_echo "$ac_try_echo"; } >&5
1981 (eval "$ac_compile") 2>conftest.err
1982 ac_status=$?
1983 if test -s conftest.err; then
1984 grep -v '^ *+' conftest.err >conftest.er1
1985 cat conftest.er1 >&5
1986 mv -f conftest.er1 conftest.err
1987 fi
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && {
1990 test -z "$ac_c_werror_flag" ||
1991 test ! -s conftest.err
1992 } && test -s conftest.$ac_objext; then :
1993 ac_retval=0
1994else
1995 $as_echo "$as_me: failed program was:" >&5
1996sed 's/^/| /' conftest.$ac_ext >&5
1997
1998 ac_retval=1
1999fi
2000 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2001 return $ac_retval
2002
2003} # ac_fn_c_try_compile
2004
2005# ac_fn_c_try_cpp LINENO
2006# ----------------------
2007# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2008ac_fn_c_try_cpp ()
2009{
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if { { ac_try="$ac_cpp conftest.$ac_ext"
2012case "(($ac_try" in
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2015esac
2016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017$as_echo "$ac_try_echo"; } >&5
2018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2019 ac_status=$?
2020 if test -s conftest.err; then
2021 grep -v '^ *+' conftest.err >conftest.er1
2022 cat conftest.er1 >&5
2023 mv -f conftest.er1 conftest.err
2024 fi
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; } >/dev/null && {
2027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2028 test ! -s conftest.err
2029 }; then :
2030 ac_retval=0
2031else
2032 $as_echo "$as_me: failed program was:" >&5
2033sed 's/^/| /' conftest.$ac_ext >&5
2034
2035 ac_retval=1
2036fi
2037 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038 return $ac_retval
2039
2040} # ac_fn_c_try_cpp
2041
2042# ac_fn_cxx_try_compile LINENO
2043# ----------------------------
2044# Try to compile conftest.$ac_ext, and return whether this succeeded.
2045ac_fn_cxx_try_compile ()
2046{
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 rm -f conftest.$ac_objext
2049 if { { ac_try="$ac_compile"
2050case "(($ac_try" in
2051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052 *) ac_try_echo=$ac_try;;
2053esac
2054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055$as_echo "$ac_try_echo"; } >&5
2056 (eval "$ac_compile") 2>conftest.err
2057 ac_status=$?
2058 if test -s conftest.err; then
2059 grep -v '^ *+' conftest.err >conftest.er1
2060 cat conftest.er1 >&5
2061 mv -f conftest.er1 conftest.err
2062 fi
2063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2064 test $ac_status = 0; } && {
2065 test -z "$ac_cxx_werror_flag" ||
2066 test ! -s conftest.err
2067 } && test -s conftest.$ac_objext; then :
2068 ac_retval=0
2069else
2070 $as_echo "$as_me: failed program was:" >&5
2071sed 's/^/| /' conftest.$ac_ext >&5
2072
2073 ac_retval=1
2074fi
2075 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076 return $ac_retval
2077
2078} # ac_fn_cxx_try_compile
2079
2080# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2081# -------------------------------------------------------
2082# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2083# the include files in INCLUDES and setting the cache variable VAR
2084# accordingly.
2085ac_fn_c_check_header_mongrel ()
2086{
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090$as_echo_n "checking for $2... " >&6; }
2091if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2092 $as_echo_n "(cached) " >&6
2093fi
2094eval ac_res=\$$3
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096$as_echo "$ac_res" >&6; }
2097else
2098 # Is the header compilable?
2099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2100$as_echo_n "checking $2 usability... " >&6; }
2101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102/* end confdefs.h. */
2103$4
2104#include <$2>
2105_ACEOF
2106if ac_fn_c_try_compile "$LINENO"; then :
2107 ac_header_compiler=yes
2108else
2109 ac_header_compiler=no
2110fi
2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2113$as_echo "$ac_header_compiler" >&6; }
2114
2115# Is the header present?
2116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2117$as_echo_n "checking $2 presence... " >&6; }
2118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h. */
2120#include <$2>
2121_ACEOF
2122if ac_fn_c_try_cpp "$LINENO"; then :
2123 ac_header_preproc=yes
2124else
2125 ac_header_preproc=no
2126fi
2127rm -f conftest.err conftest.$ac_ext
2128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2129$as_echo "$ac_header_preproc" >&6; }
2130
2131# So? What about this header?
2132case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2133 yes:no: )
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2135$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2137$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2138 ;;
2139 no:yes:* )
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2141$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2143$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2145$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2147$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2149$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2150( cat <<\_ASBOX
2151## ----------------------------------------- ##
2152## Report this to http://www.imagemagick.org ##
2153## ----------------------------------------- ##
2154_ASBOX
2155 ) | sed "s/^/$as_me: WARNING: /" >&2
2156 ;;
2157esac
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2159$as_echo_n "checking for $2... " >&6; }
2160if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2161 $as_echo_n "(cached) " >&6
2162else
2163 eval "$3=\$ac_header_compiler"
2164fi
2165eval ac_res=\$$3
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167$as_echo "$ac_res" >&6; }
2168fi
2169 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2170
2171} # ac_fn_c_check_header_mongrel
2172
2173# ac_fn_c_try_run LINENO
2174# ----------------------
2175# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2176# that executables *can* be run.
2177ac_fn_c_try_run ()
2178{
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 if { { ac_try="$ac_link"
2181case "(($ac_try" in
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;;
2184esac
2185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186$as_echo "$ac_try_echo"; } >&5
2187 (eval "$ac_link") 2>&5
2188 ac_status=$?
2189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2191 { { case "(($ac_try" in
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2194esac
2195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196$as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_try") 2>&5
2198 ac_status=$?
2199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200 test $ac_status = 0; }; }; then :
2201 ac_retval=0
2202else
2203 $as_echo "$as_me: program exited with status $ac_status" >&5
2204 $as_echo "$as_me: failed program was:" >&5
2205sed 's/^/| /' conftest.$ac_ext >&5
2206
2207 ac_retval=$ac_status
2208fi
2209 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2210 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2211 return $ac_retval
2212
2213} # ac_fn_c_try_run
2214
2215# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2216# -------------------------------------------------------
2217# Tests whether HEADER exists and can be compiled using the include files in
2218# INCLUDES, setting the cache variable VAR accordingly.
2219ac_fn_c_check_header_compile ()
2220{
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223$as_echo_n "checking for $2... " >&6; }
2224if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2225 $as_echo_n "(cached) " >&6
2226else
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228/* end confdefs.h. */
2229$4
2230#include <$2>
2231_ACEOF
2232if ac_fn_c_try_compile "$LINENO"; then :
2233 eval "$3=yes"
2234else
2235 eval "$3=no"
2236fi
2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238fi
2239eval ac_res=\$$3
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241$as_echo "$ac_res" >&6; }
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2243
2244} # ac_fn_c_check_header_compile
2245
2246# ac_fn_c_try_link LINENO
2247# -----------------------
2248# Try to link conftest.$ac_ext, and return whether this succeeded.
2249ac_fn_c_try_link ()
2250{
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 rm -f conftest.$ac_objext conftest$ac_exeext
2253 if { { ac_try="$ac_link"
2254case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257esac
2258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259$as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_link") 2>conftest.err
2261 ac_status=$?
2262 if test -s conftest.err; then
2263 grep -v '^ *+' conftest.err >conftest.er1
2264 cat conftest.er1 >&5
2265 mv -f conftest.er1 conftest.err
2266 fi
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; } && {
2269 test -z "$ac_c_werror_flag" ||
2270 test ! -s conftest.err
2271 } && test -s conftest$ac_exeext && {
2272 test "$cross_compiling" = yes ||
2273 $as_test_x conftest$ac_exeext
2274 }; then :
2275 ac_retval=0
2276else
2277 $as_echo "$as_me: failed program was:" >&5
2278sed 's/^/| /' conftest.$ac_ext >&5
2279
2280 ac_retval=1
2281fi
2282 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2283 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2284 # interfere with the next link command; also delete a directory that is
2285 # left behind by Apple's compiler. We do this before executing the actions.
2286 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2287 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2288 return $ac_retval
2289
2290} # ac_fn_c_try_link
2291
2292# ac_fn_c_check_func LINENO FUNC VAR
2293# ----------------------------------
2294# Tests whether FUNC exists, setting the cache variable VAR accordingly
2295ac_fn_c_check_func ()
2296{
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2299$as_echo_n "checking for $2... " >&6; }
2300if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2301 $as_echo_n "(cached) " >&6
2302else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304/* end confdefs.h. */
2305/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2307#define $2 innocuous_$2
2308
2309/* System header to define __stub macros and hopefully few prototypes,
2310 which can conflict with char $2 (); below.
2311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2312 <limits.h> exists even on freestanding compilers. */
2313
2314#ifdef __STDC__
2315# include <limits.h>
2316#else
2317# include <assert.h>
2318#endif
2319
2320#undef $2
2321
2322/* Override any GCC internal prototype to avoid an error.
2323 Use char because int might match the return type of a GCC
2324 builtin and then its argument prototype would still apply. */
2325#ifdef __cplusplus
2326extern "C"
2327#endif
2328char $2 ();
2329/* The GNU C library defines this for functions which it implements
2330 to always fail with ENOSYS. Some functions are actually named
2331 something starting with __ and the normal name is an alias. */
2332#if defined __stub_$2 || defined __stub___$2
2333choke me
2334#endif
2335
2336int
2337main ()
2338{
2339return $2 ();
2340 ;
2341 return 0;
2342}
2343_ACEOF
2344if ac_fn_c_try_link "$LINENO"; then :
2345 eval "$3=yes"
2346else
2347 eval "$3=no"
2348fi
2349rm -f core conftest.err conftest.$ac_objext \
2350 conftest$ac_exeext conftest.$ac_ext
2351fi
2352eval ac_res=\$$3
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354$as_echo "$ac_res" >&6; }
2355 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2356
2357} # ac_fn_c_check_func
2358
2359# ac_fn_cxx_try_cpp LINENO
2360# ------------------------
2361# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2362ac_fn_cxx_try_cpp ()
2363{
2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365 if { { ac_try="$ac_cpp conftest.$ac_ext"
2366case "(($ac_try" in
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2369esac
2370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2371$as_echo "$ac_try_echo"; } >&5
2372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2373 ac_status=$?
2374 if test -s conftest.err; then
2375 grep -v '^ *+' conftest.err >conftest.er1
2376 cat conftest.er1 >&5
2377 mv -f conftest.er1 conftest.err
2378 fi
2379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2380 test $ac_status = 0; } >/dev/null && {
2381 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2382 test ! -s conftest.err
2383 }; then :
2384 ac_retval=0
2385else
2386 $as_echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 ac_retval=1
2390fi
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392 return $ac_retval
2393
2394} # ac_fn_cxx_try_cpp
2395
2396# ac_fn_cxx_try_link LINENO
2397# -------------------------
2398# Try to link conftest.$ac_ext, and return whether this succeeded.
2399ac_fn_cxx_try_link ()
2400{
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 rm -f conftest.$ac_objext conftest$ac_exeext
2403 if { { ac_try="$ac_link"
2404case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407esac
2408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2409$as_echo "$ac_try_echo"; } >&5
2410 (eval "$ac_link") 2>conftest.err
2411 ac_status=$?
2412 if test -s conftest.err; then
2413 grep -v '^ *+' conftest.err >conftest.er1
2414 cat conftest.er1 >&5
2415 mv -f conftest.er1 conftest.err
2416 fi
2417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2418 test $ac_status = 0; } && {
2419 test -z "$ac_cxx_werror_flag" ||
2420 test ! -s conftest.err
2421 } && test -s conftest$ac_exeext && {
2422 test "$cross_compiling" = yes ||
2423 $as_test_x conftest$ac_exeext
2424 }; then :
2425 ac_retval=0
2426else
2427 $as_echo "$as_me: failed program was:" >&5
2428sed 's/^/| /' conftest.$ac_ext >&5
2429
2430 ac_retval=1
2431fi
2432 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2433 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2434 # interfere with the next link command; also delete a directory that is
2435 # left behind by Apple's compiler. We do this before executing the actions.
2436 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2437 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2438 return $ac_retval
2439
2440} # ac_fn_cxx_try_link
2441
2442# ac_fn_c_check_decl LINENO SYMBOL VAR
2443# ------------------------------------
2444# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2445ac_fn_c_check_decl ()
2446{
2447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2449$as_echo_n "checking whether $2 is declared... " >&6; }
2450if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2451 $as_echo_n "(cached) " >&6
2452else
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454/* end confdefs.h. */
2455$4
2456int
2457main ()
2458{
2459#ifndef $2
2460 (void) $2;
2461#endif
2462
2463 ;
2464 return 0;
2465}
2466_ACEOF
2467if ac_fn_c_try_compile "$LINENO"; then :
2468 eval "$3=yes"
2469else
2470 eval "$3=no"
2471fi
2472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473fi
2474eval ac_res=\$$3
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476$as_echo "$ac_res" >&6; }
2477 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2478
2479} # ac_fn_c_check_decl
2480
2481# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2482# -------------------------------------------
2483# Tests whether TYPE exists after having included INCLUDES, setting cache
2484# variable VAR accordingly.
2485ac_fn_c_check_type ()
2486{
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2489$as_echo_n "checking for $2... " >&6; }
2490if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2491 $as_echo_n "(cached) " >&6
2492else
2493 eval "$3=no"
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495/* end confdefs.h. */
2496$4
2497int
2498main ()
2499{
2500if (sizeof ($2))
2501 return 0;
2502 ;
2503 return 0;
2504}
2505_ACEOF
2506if ac_fn_c_try_compile "$LINENO"; then :
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508/* end confdefs.h. */
2509$4
2510int
2511main ()
2512{
2513if (sizeof (($2)))
2514 return 0;
2515 ;
2516 return 0;
2517}
2518_ACEOF
2519if ac_fn_c_try_compile "$LINENO"; then :
2520
2521else
2522 eval "$3=yes"
2523fi
2524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525fi
2526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527fi
2528eval ac_res=\$$3
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2530$as_echo "$ac_res" >&6; }
2531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2532
2533} # ac_fn_c_check_type
2534
2535# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2536# --------------------------------------------
2537# Tries to find the compile-time value of EXPR in a program that includes
2538# INCLUDES, setting VAR accordingly. Returns whether the value could be
2539# computed
2540ac_fn_c_compute_int ()
2541{
2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543 if test "$cross_compiling" = yes; then
2544 # Depending upon the size, compute the lo and hi bounds.
2545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546/* end confdefs.h. */
2547$4
2548int
2549main ()
2550{
2551static int test_array [1 - 2 * !(($2) >= 0)];
2552test_array [0] = 0
2553
2554 ;
2555 return 0;
2556}
2557_ACEOF
2558if ac_fn_c_try_compile "$LINENO"; then :
2559 ac_lo=0 ac_mid=0
2560 while :; do
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562/* end confdefs.h. */
2563$4
2564int
2565main ()
2566{
2567static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2568test_array [0] = 0
2569
2570 ;
2571 return 0;
2572}
2573_ACEOF
2574if ac_fn_c_try_compile "$LINENO"; then :
2575 ac_hi=$ac_mid; break
2576else
2577 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2578 if test $ac_lo -le $ac_mid; then
2579 ac_lo= ac_hi=
2580 break
2581 fi
2582 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2583fi
2584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 done
2586else
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588/* end confdefs.h. */
2589$4
2590int
2591main ()
2592{
2593static int test_array [1 - 2 * !(($2) < 0)];
2594test_array [0] = 0
2595
2596 ;
2597 return 0;
2598}
2599_ACEOF
2600if ac_fn_c_try_compile "$LINENO"; then :
2601 ac_hi=-1 ac_mid=-1
2602 while :; do
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604/* end confdefs.h. */
2605$4
2606int
2607main ()
2608{
2609static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2610test_array [0] = 0
2611
2612 ;
2613 return 0;
2614}
2615_ACEOF
2616if ac_fn_c_try_compile "$LINENO"; then :
2617 ac_lo=$ac_mid; break
2618else
2619 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2620 if test $ac_mid -le $ac_hi; then
2621 ac_lo= ac_hi=
2622 break
2623 fi
2624 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2625fi
2626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627 done
2628else
2629 ac_lo= ac_hi=
2630fi
2631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632fi
2633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634# Binary search between lo and hi bounds.
2635while test "x$ac_lo" != "x$ac_hi"; do
2636 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638/* end confdefs.h. */
2639$4
2640int
2641main ()
2642{
2643static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2644test_array [0] = 0
2645
2646 ;
2647 return 0;
2648}
2649_ACEOF
2650if ac_fn_c_try_compile "$LINENO"; then :
2651 ac_hi=$ac_mid
2652else
2653 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2654fi
2655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656done
2657case $ac_lo in #((
2658?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2659'') ac_retval=1 ;;
2660esac
2661 else
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663/* end confdefs.h. */
2664$4
2665static long int longval () { return $2; }
2666static unsigned long int ulongval () { return $2; }
2667#include <stdio.h>
2668#include <stdlib.h>
2669int
2670main ()
2671{
2672
2673 FILE *f = fopen ("conftest.val", "w");
2674 if (! f)
2675 return 1;
2676 if (($2) < 0)
2677 {
2678 long int i = longval ();
2679 if (i != ($2))
2680 return 1;
2681 fprintf (f, "%ld", i);
2682 }
2683 else
2684 {
2685 unsigned long int i = ulongval ();
2686 if (i != ($2))
2687 return 1;
2688 fprintf (f, "%lu", i);
2689 }
2690 /* Do not output a trailing newline, as this causes \r\n confusion
2691 on some platforms. */
2692 return ferror (f) || fclose (f) != 0;
2693
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698if ac_fn_c_try_run "$LINENO"; then :
2699 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2700else
2701 ac_retval=1
2702fi
2703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2704 conftest.$ac_objext conftest.beam conftest.$ac_ext
2705rm -f conftest.val
2706
2707 fi
2708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2709 return $ac_retval
2710
2711} # ac_fn_c_compute_int
2712
2713# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2714# ---------------------------------------------------------
2715# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2716# the include files in INCLUDES and setting the cache variable VAR
2717# accordingly.
2718ac_fn_cxx_check_header_mongrel ()
2719{
2720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2721 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2723$as_echo_n "checking for $2... " >&6; }
2724if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2725 $as_echo_n "(cached) " >&6
2726fi
2727eval ac_res=\$$3
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2729$as_echo "$ac_res" >&6; }
2730else
2731 # Is the header compilable?
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2733$as_echo_n "checking $2 usability... " >&6; }
2734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735/* end confdefs.h. */
2736$4
2737#include <$2>
2738_ACEOF
2739if ac_fn_cxx_try_compile "$LINENO"; then :
2740 ac_header_compiler=yes
2741else
2742 ac_header_compiler=no
2743fi
2744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2746$as_echo "$ac_header_compiler" >&6; }
2747
2748# Is the header present?
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2750$as_echo_n "checking $2 presence... " >&6; }
2751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752/* end confdefs.h. */
2753#include <$2>
2754_ACEOF
2755if ac_fn_cxx_try_cpp "$LINENO"; then :
2756 ac_header_preproc=yes
2757else
2758 ac_header_preproc=no
2759fi
2760rm -f conftest.err conftest.$ac_ext
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2762$as_echo "$ac_header_preproc" >&6; }
2763
2764# So? What about this header?
2765case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2766 yes:no: )
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2768$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2770$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2771 ;;
2772 no:yes:* )
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2774$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2776$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2778$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2780$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2782$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2783( cat <<\_ASBOX
2784## ----------------------------------------- ##
2785## Report this to http://www.imagemagick.org ##
2786## ----------------------------------------- ##
2787_ASBOX
2788 ) | sed "s/^/$as_me: WARNING: /" >&2
2789 ;;
2790esac
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2792$as_echo_n "checking for $2... " >&6; }
2793if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2794 $as_echo_n "(cached) " >&6
2795else
2796 eval "$3=\$ac_header_compiler"
2797fi
2798eval ac_res=\$$3
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2800$as_echo "$ac_res" >&6; }
2801fi
2802 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2803
2804} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002805cat >config.log <<_ACEOF
2806This file contains any messages produced by compilers while
2807running configure, to aid debugging if configure makes a mistake.
2808
cristyd934d102009-10-10 12:55:13 +00002809It was created by ImageMagick $as_me 6.5.7, which was
cristy8b350f62009-11-15 23:12:43 +00002810generated by GNU Autoconf 2.64. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002811
2812 $ $0 $@
2813
2814_ACEOF
2815exec 5>>config.log
2816{
2817cat <<_ASUNAME
2818## --------- ##
2819## Platform. ##
2820## --------- ##
2821
2822hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2823uname -m = `(uname -m) 2>/dev/null || echo unknown`
2824uname -r = `(uname -r) 2>/dev/null || echo unknown`
2825uname -s = `(uname -s) 2>/dev/null || echo unknown`
2826uname -v = `(uname -v) 2>/dev/null || echo unknown`
2827
2828/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2829/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2830
2831/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2832/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2833/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2834/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2835/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2836/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2837/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2838
2839_ASUNAME
2840
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002846 $as_echo "PATH: $as_dir"
2847 done
cristy3ed852e2009-09-05 21:47:34 +00002848IFS=$as_save_IFS
2849
2850} >&5
2851
2852cat >&5 <<_ACEOF
2853
2854
2855## ----------- ##
2856## Core tests. ##
2857## ----------- ##
2858
2859_ACEOF
2860
2861
2862# Keep a trace of the command line.
2863# Strip out --no-create and --no-recursion so they do not pile up.
2864# Strip out --silent because we don't want to record it for future runs.
2865# Also quote any args containing shell meta-characters.
2866# Make two passes to allow for proper duplicate-argument suppression.
2867ac_configure_args=
2868ac_configure_args0=
2869ac_configure_args1=
2870ac_must_keep_next=false
2871for ac_pass in 1 2
2872do
2873 for ac_arg
2874 do
2875 case $ac_arg in
2876 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2878 | -silent | --silent | --silen | --sile | --sil)
2879 continue ;;
2880 *\'*)
2881 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2882 esac
2883 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002884 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002885 2)
cristy8b350f62009-11-15 23:12:43 +00002886 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002887 if test $ac_must_keep_next = true; then
2888 ac_must_keep_next=false # Got value, back to normal.
2889 else
2890 case $ac_arg in
2891 *=* | --config-cache | -C | -disable-* | --disable-* \
2892 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2893 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2894 | -with-* | --with-* | -without-* | --without-* | --x)
2895 case "$ac_configure_args0 " in
2896 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2897 esac
2898 ;;
2899 -* ) ac_must_keep_next=true ;;
2900 esac
2901 fi
cristy8b350f62009-11-15 23:12:43 +00002902 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002903 ;;
2904 esac
2905 done
2906done
cristy8b350f62009-11-15 23:12:43 +00002907{ ac_configure_args0=; unset ac_configure_args0;}
2908{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00002909
2910# When interrupted or exit'd, cleanup temporary files, and complete
2911# config.log. We remove comments because anyway the quotes in there
2912# would cause problems or look ugly.
2913# WARNING: Use '\'' to represent an apostrophe within the trap.
2914# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2915trap 'exit_status=$?
2916 # Save into config.log some information that might help in debugging.
2917 {
2918 echo
2919
2920 cat <<\_ASBOX
2921## ---------------- ##
2922## Cache variables. ##
2923## ---------------- ##
2924_ASBOX
2925 echo
2926 # The following way of writing the cache mishandles newlines in values,
2927(
2928 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2929 eval ac_val=\$$ac_var
2930 case $ac_val in #(
2931 *${as_nl}*)
2932 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00002933 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00002934$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2935 esac
2936 case $ac_var in #(
2937 _ | IFS | as_nl) ;; #(
2938 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00002939 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00002940 esac ;;
2941 esac
2942 done
2943 (set) 2>&1 |
2944 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2945 *${as_nl}ac_space=\ *)
2946 sed -n \
2947 "s/'\''/'\''\\\\'\'''\''/g;
2948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2949 ;; #(
2950 *)
2951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2952 ;;
2953 esac |
2954 sort
2955)
2956 echo
2957
2958 cat <<\_ASBOX
2959## ----------------- ##
2960## Output variables. ##
2961## ----------------- ##
2962_ASBOX
2963 echo
2964 for ac_var in $ac_subst_vars
2965 do
2966 eval ac_val=\$$ac_var
2967 case $ac_val in
2968 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2969 esac
2970 $as_echo "$ac_var='\''$ac_val'\''"
2971 done | sort
2972 echo
2973
2974 if test -n "$ac_subst_files"; then
2975 cat <<\_ASBOX
2976## ------------------- ##
2977## File substitutions. ##
2978## ------------------- ##
2979_ASBOX
2980 echo
2981 for ac_var in $ac_subst_files
2982 do
2983 eval ac_val=\$$ac_var
2984 case $ac_val in
2985 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2986 esac
2987 $as_echo "$ac_var='\''$ac_val'\''"
2988 done | sort
2989 echo
2990 fi
2991
2992 if test -s confdefs.h; then
2993 cat <<\_ASBOX
2994## ----------- ##
2995## confdefs.h. ##
2996## ----------- ##
2997_ASBOX
2998 echo
2999 cat confdefs.h
3000 echo
3001 fi
3002 test "$ac_signal" != 0 &&
3003 $as_echo "$as_me: caught signal $ac_signal"
3004 $as_echo "$as_me: exit $exit_status"
3005 } >&5
3006 rm -f core *.core core.conftest.* &&
3007 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3008 exit $exit_status
3009' 0
3010for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003011 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003012done
3013ac_signal=0
3014
3015# confdefs.h avoids OS command line length limits that DEFS can exceed.
3016rm -f -r conftest* confdefs.h
3017
cristy8b350f62009-11-15 23:12:43 +00003018$as_echo "/* confdefs.h */" > confdefs.h
3019
cristy3ed852e2009-09-05 21:47:34 +00003020# Predefined preprocessor variables.
3021
3022cat >>confdefs.h <<_ACEOF
3023#define PACKAGE_NAME "$PACKAGE_NAME"
3024_ACEOF
3025
cristy3ed852e2009-09-05 21:47:34 +00003026cat >>confdefs.h <<_ACEOF
3027#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3028_ACEOF
3029
cristy3ed852e2009-09-05 21:47:34 +00003030cat >>confdefs.h <<_ACEOF
3031#define PACKAGE_VERSION "$PACKAGE_VERSION"
3032_ACEOF
3033
cristy3ed852e2009-09-05 21:47:34 +00003034cat >>confdefs.h <<_ACEOF
3035#define PACKAGE_STRING "$PACKAGE_STRING"
3036_ACEOF
3037
cristy3ed852e2009-09-05 21:47:34 +00003038cat >>confdefs.h <<_ACEOF
3039#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3040_ACEOF
3041
cristy8b350f62009-11-15 23:12:43 +00003042cat >>confdefs.h <<_ACEOF
3043#define PACKAGE_URL "$PACKAGE_URL"
3044_ACEOF
3045
cristy3ed852e2009-09-05 21:47:34 +00003046
3047# Let the site file select an alternate cache file if it wants to.
3048# Prefer an explicitly selected file to automatically selected ones.
3049ac_site_file1=NONE
3050ac_site_file2=NONE
3051if test -n "$CONFIG_SITE"; then
3052 ac_site_file1=$CONFIG_SITE
3053elif test "x$prefix" != xNONE; then
3054 ac_site_file1=$prefix/share/config.site
3055 ac_site_file2=$prefix/etc/config.site
3056else
3057 ac_site_file1=$ac_default_prefix/share/config.site
3058 ac_site_file2=$ac_default_prefix/etc/config.site
3059fi
3060for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3061do
3062 test "x$ac_site_file" = xNONE && continue
3063 if test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003064 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003065$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3066 sed 's/^/| /' "$ac_site_file" >&5
3067 . "$ac_site_file"
3068 fi
3069done
3070
3071if test -r "$cache_file"; then
3072 # Some versions of bash will fail to source /dev/null (special
3073 # files actually), so we avoid doing that.
3074 if test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003076$as_echo "$as_me: loading cache $cache_file" >&6;}
3077 case $cache_file in
3078 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3079 *) . "./$cache_file";;
3080 esac
3081 fi
3082else
cristy8b350f62009-11-15 23:12:43 +00003083 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003084$as_echo "$as_me: creating cache $cache_file" >&6;}
3085 >$cache_file
3086fi
3087
3088# Check that the precious variables saved in the cache have kept the same
3089# value.
3090ac_cache_corrupted=false
3091for ac_var in $ac_precious_vars; do
3092 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3093 eval ac_new_set=\$ac_env_${ac_var}_set
3094 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3095 eval ac_new_val=\$ac_env_${ac_var}_value
3096 case $ac_old_set,$ac_new_set in
3097 set,)
cristy8b350f62009-11-15 23:12:43 +00003098 { $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 +00003099$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3100 ac_cache_corrupted=: ;;
3101 ,set)
cristy8b350f62009-11-15 23:12:43 +00003102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003103$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3104 ac_cache_corrupted=: ;;
3105 ,);;
3106 *)
3107 if test "x$ac_old_val" != "x$ac_new_val"; then
3108 # differences in whitespace do not lead to failure.
3109 ac_old_val_w=`echo x $ac_old_val`
3110 ac_new_val_w=`echo x $ac_new_val`
3111 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003113$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3114 ac_cache_corrupted=:
3115 else
cristy8b350f62009-11-15 23:12:43 +00003116 { $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 +00003117$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3118 eval $ac_var=\$ac_old_val
3119 fi
cristy8b350f62009-11-15 23:12:43 +00003120 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003121$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003122 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003123$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3124 fi;;
3125 esac
3126 # Pass precious variables to config.status.
3127 if test "$ac_new_set" = set; then
3128 case $ac_new_val in
3129 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3130 *) ac_arg=$ac_var=$ac_new_val ;;
3131 esac
3132 case " $ac_configure_args " in
3133 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003134 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003135 esac
3136 fi
3137done
3138if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003142$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003143 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003144fi
cristy8b350f62009-11-15 23:12:43 +00003145## -------------------- ##
3146## Main body of script. ##
3147## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003148
3149ac_ext=c
3150ac_cpp='$CPP $CPPFLAGS'
3151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153ac_compiler_gnu=$ac_cv_c_compiler_gnu
3154
3155
3156
3157ac_aux_dir=
3158for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003159 for ac_t in install-sh install.sh shtool; do
3160 if test -f "$ac_dir/$ac_t"; then
3161 ac_aux_dir=$ac_dir
3162 ac_install_sh="$ac_aux_dir/$ac_t -c"
3163 break 2
3164 fi
3165 done
cristy3ed852e2009-09-05 21:47:34 +00003166done
3167if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003168 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003169fi
3170
3171# These three variables are undocumented and unsupported,
3172# and are intended to be withdrawn in a future Autoconf release.
3173# They can cause serious problems if a builder's source tree is in a directory
3174# whose full name contains unusual characters.
3175ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3176ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3177ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3178
3179
3180
3181
3182ac_config_headers="$ac_config_headers config/config.h"
3183
3184ac_config_commands="$ac_config_commands magick/magick-config.h"
3185
3186ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
3187
3188
3189#
3190# Save initial user-tunable values
3191#
3192USER_LIBS=$LIBS
3193for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3194 eval isset=\${$var+set}
3195 if test "$isset" = 'set'; then
3196 eval val=$`echo $var`
3197 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3198 fi
3199done
3200
3201
3202CONFIGURE_ARGS="$0 ${ac_configure_args}"
3203
3204
3205# Source file containing package/library versioning information.
3206. ${srcdir}/version.sh
3207
3208echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3209# Make sure we can run config.sub.
3210$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003211 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003212
cristy8b350f62009-11-15 23:12:43 +00003213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003214$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003215if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003216 $as_echo_n "(cached) " >&6
3217else
3218 ac_build_alias=$build_alias
3219test "x$ac_build_alias" = x &&
3220 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3221test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003222 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003223ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003224 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003225
3226fi
cristy8b350f62009-11-15 23:12:43 +00003227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003228$as_echo "$ac_cv_build" >&6; }
3229case $ac_cv_build in
3230*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003231*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003232esac
3233build=$ac_cv_build
3234ac_save_IFS=$IFS; IFS='-'
3235set x $ac_cv_build
3236shift
3237build_cpu=$1
3238build_vendor=$2
3239shift; shift
3240# Remember, the first character of IFS is used to create $*,
3241# except with old shells:
3242build_os=$*
3243IFS=$ac_save_IFS
3244case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3245
3246
cristy8b350f62009-11-15 23:12:43 +00003247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003248$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003249if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003250 $as_echo_n "(cached) " >&6
3251else
3252 if test "x$host_alias" = x; then
3253 ac_cv_host=$ac_cv_build
3254else
3255 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003256 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003257fi
3258
3259fi
cristy8b350f62009-11-15 23:12:43 +00003260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003261$as_echo "$ac_cv_host" >&6; }
3262case $ac_cv_host in
3263*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003264*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003265esac
3266host=$ac_cv_host
3267ac_save_IFS=$IFS; IFS='-'
3268set x $ac_cv_host
3269shift
3270host_cpu=$1
3271host_vendor=$2
3272shift; shift
3273# Remember, the first character of IFS is used to create $*,
3274# except with old shells:
3275host_os=$*
3276IFS=$ac_save_IFS
3277case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3278
3279
cristy8b350f62009-11-15 23:12:43 +00003280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003281$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003282if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003283 $as_echo_n "(cached) " >&6
3284else
3285 if test "x$target_alias" = x; then
3286 ac_cv_target=$ac_cv_host
3287else
3288 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003289 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003290fi
3291
3292fi
cristy8b350f62009-11-15 23:12:43 +00003293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003294$as_echo "$ac_cv_target" >&6; }
3295case $ac_cv_target in
3296*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003297*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003298esac
3299target=$ac_cv_target
3300ac_save_IFS=$IFS; IFS='-'
3301set x $ac_cv_target
3302shift
3303target_cpu=$1
3304target_vendor=$2
3305shift; shift
3306# Remember, the first character of IFS is used to create $*,
3307# except with old shells:
3308target_os=$*
3309IFS=$ac_save_IFS
3310case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3311
3312
3313# The aliases save the names the user supplied, while $host etc.
3314# will get canonicalized.
3315test -n "$target_alias" &&
3316 test "$program_prefix$program_suffix$program_transform_name" = \
3317 NONENONEs,x,x, &&
3318 program_prefix=${target_alias}-
3319
3320# Substitute library versioning
3321
3322
3323# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003325$as_echo_n "checking whether build environment is sane... " >&6; }
3326# Just in case
3327sleep 1
3328echo timestamp > conftest.file
3329# Reject unsafe characters in $srcdir or the absolute working directory
3330# name. Accept space and tab only in the latter.
3331am_lf='
3332'
3333case `pwd` in
3334 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003335 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003336esac
3337case $srcdir in
3338 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003339 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003340esac
3341
3342# Do `set' in a subshell so we don't clobber the current shell's
3343# arguments. Must try -L first in case configure is actually a
3344# symlink; some systems play weird games with the mod time of symlinks
3345# (eg FreeBSD returns the mod time of the symlink's containing
3346# directory).
3347if (
3348 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3349 if test "$*" = "X"; then
3350 # -L didn't work.
3351 set X `ls -t "$srcdir/configure" conftest.file`
3352 fi
3353 rm -f conftest.file
3354 if test "$*" != "X $srcdir/configure conftest.file" \
3355 && test "$*" != "X conftest.file $srcdir/configure"; then
3356
3357 # If neither matched, then we have a broken ls. This can happen
3358 # if, for instance, CONFIG_SHELL is bash and it inherits a
3359 # broken ls alias from the environment. This has actually
3360 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003361 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3362alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003363 fi
3364
3365 test "$2" = conftest.file
3366 )
3367then
3368 # Ok.
3369 :
3370else
cristy8b350f62009-11-15 23:12:43 +00003371 as_fn_error "newly created file is older than distributed files!
3372Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003373fi
cristy8b350f62009-11-15 23:12:43 +00003374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003375$as_echo "yes" >&6; }
3376
3377am__api_version='1.11'
3378
3379# Find a good install program. We prefer a C program (faster),
3380# so one script is as good as another. But avoid the broken or
3381# incompatible versions:
3382# SysV /etc/install, /usr/sbin/install
3383# SunOS /usr/etc/install
3384# IRIX /sbin/install
3385# AIX /bin/install
3386# AmigaOS /C/install, which installs bootblocks on floppy discs
3387# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3388# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3389# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3390# OS/2's system install, which has a completely different semantic
3391# ./install, which can be erroneously created by make from ./install.sh.
3392# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003394$as_echo_n "checking for a BSD-compatible install... " >&6; }
3395if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003396if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003397 $as_echo_n "(cached) " >&6
3398else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400for as_dir in $PATH
3401do
3402 IFS=$as_save_IFS
3403 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003404 # Account for people who put trailing slashes in PATH elements.
3405case $as_dir/ in #((
3406 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003407 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003408 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003409 /usr/ucb/* ) ;;
3410 *)
3411 # OSF1 and SCO ODT 3.0 have their own names for install.
3412 # Don't use installbsd from OSF since it installs stuff as root
3413 # by default.
3414 for ac_prog in ginstall scoinst install; do
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3417 if test $ac_prog = install &&
3418 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3419 # AIX install. It has an incompatible calling convention.
3420 :
3421 elif test $ac_prog = install &&
3422 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3423 # program-specific install script used by HP pwplus--don't use.
3424 :
3425 else
3426 rm -rf conftest.one conftest.two conftest.dir
3427 echo one > conftest.one
3428 echo two > conftest.two
3429 mkdir conftest.dir
3430 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3431 test -s conftest.one && test -s conftest.two &&
3432 test -s conftest.dir/conftest.one &&
3433 test -s conftest.dir/conftest.two
3434 then
3435 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3436 break 3
3437 fi
3438 fi
3439 fi
3440 done
3441 done
3442 ;;
3443esac
3444
cristy8b350f62009-11-15 23:12:43 +00003445 done
cristy3ed852e2009-09-05 21:47:34 +00003446IFS=$as_save_IFS
3447
3448rm -rf conftest.one conftest.two conftest.dir
3449
3450fi
3451 if test "${ac_cv_path_install+set}" = set; then
3452 INSTALL=$ac_cv_path_install
3453 else
3454 # As a last resort, use the slow shell script. Don't cache a
3455 # value for INSTALL within a source directory, because that will
3456 # break other packages using the cache if that directory is
3457 # removed, or if the value is a relative name.
3458 INSTALL=$ac_install_sh
3459 fi
3460fi
cristy8b350f62009-11-15 23:12:43 +00003461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003462$as_echo "$INSTALL" >&6; }
3463
3464# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3465# It thinks the first close brace ends the variable substitution.
3466test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3467
3468test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3469
3470test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3471
3472test "$program_prefix" != NONE &&
3473 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3474# Use a double $ so make ignores it.
3475test "$program_suffix" != NONE &&
3476 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3477# Double any \ or $.
3478# By default was `s,x,x', remove it if useless.
3479ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3480program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3481
3482# expand $ac_aux_dir to an absolute path
3483am_aux_dir=`cd $ac_aux_dir && pwd`
3484
3485if test x"${MISSING+set}" != xset; then
3486 case $am_aux_dir in
3487 *\ * | *\ *)
3488 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3489 *)
3490 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3491 esac
3492fi
3493# Use eval to expand $SHELL
3494if eval "$MISSING --run true"; then
3495 am_missing_run="$MISSING --run "
3496else
3497 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003499$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3500fi
3501
3502if test x"${install_sh}" != xset; then
3503 case $am_aux_dir in
3504 *\ * | *\ *)
3505 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3506 *)
3507 install_sh="\${SHELL} $am_aux_dir/install-sh"
3508 esac
3509fi
3510
3511# Installed binaries are usually stripped using `strip' when the user
3512# run `make install-strip'. However `strip' might not be the right
3513# tool to use in cross-compilation environments, therefore Automake
3514# will honor the `STRIP' environment variable to overrule this program.
3515if test "$cross_compiling" != no; then
3516 if test -n "$ac_tool_prefix"; then
3517 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3518set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003520$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003521if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003522 $as_echo_n "(cached) " >&6
3523else
3524 if test -n "$STRIP"; then
3525 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3526else
3527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528for as_dir in $PATH
3529do
3530 IFS=$as_save_IFS
3531 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003532 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3534 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003536 break 2
3537 fi
3538done
cristy8b350f62009-11-15 23:12:43 +00003539 done
cristy3ed852e2009-09-05 21:47:34 +00003540IFS=$as_save_IFS
3541
3542fi
3543fi
3544STRIP=$ac_cv_prog_STRIP
3545if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003547$as_echo "$STRIP" >&6; }
3548else
cristy8b350f62009-11-15 23:12:43 +00003549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003550$as_echo "no" >&6; }
3551fi
3552
3553
3554fi
3555if test -z "$ac_cv_prog_STRIP"; then
3556 ac_ct_STRIP=$STRIP
3557 # Extract the first word of "strip", so it can be a program name with args.
3558set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003560$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003561if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003562 $as_echo_n "(cached) " >&6
3563else
3564 if test -n "$ac_ct_STRIP"; then
3565 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3566else
3567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568for as_dir in $PATH
3569do
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3574 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003576 break 2
3577 fi
3578done
cristy8b350f62009-11-15 23:12:43 +00003579 done
cristy3ed852e2009-09-05 21:47:34 +00003580IFS=$as_save_IFS
3581
3582fi
3583fi
3584ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3585if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003587$as_echo "$ac_ct_STRIP" >&6; }
3588else
cristy8b350f62009-11-15 23:12:43 +00003589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003590$as_echo "no" >&6; }
3591fi
3592
3593 if test "x$ac_ct_STRIP" = x; then
3594 STRIP=":"
3595 else
3596 case $cross_compiling:$ac_tool_warned in
3597yes:)
cristy8b350f62009-11-15 23:12:43 +00003598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3600ac_tool_warned=yes ;;
3601esac
3602 STRIP=$ac_ct_STRIP
3603 fi
3604else
3605 STRIP="$ac_cv_prog_STRIP"
3606fi
3607
3608fi
3609INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3610
cristy8b350f62009-11-15 23:12:43 +00003611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003612$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3613if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003614 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003615 $as_echo_n "(cached) " >&6
3616else
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3619do
3620 IFS=$as_save_IFS
3621 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003622 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3625 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3626 'mkdir (GNU coreutils) '* | \
3627 'mkdir (coreutils) '* | \
3628 'mkdir (fileutils) '4.1*)
3629 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3630 break 3;;
3631 esac
3632 done
3633 done
cristy8b350f62009-11-15 23:12:43 +00003634 done
cristy3ed852e2009-09-05 21:47:34 +00003635IFS=$as_save_IFS
3636
3637fi
3638
3639 if test "${ac_cv_path_mkdir+set}" = set; then
3640 MKDIR_P="$ac_cv_path_mkdir -p"
3641 else
3642 # As a last resort, use the slow shell script. Don't cache a
3643 # value for MKDIR_P within a source directory, because that will
3644 # break other packages using the cache if that directory is
3645 # removed, or if the value is a relative name.
3646 test -d ./--version && rmdir ./--version
3647 MKDIR_P="$ac_install_sh -d"
3648 fi
3649fi
cristy8b350f62009-11-15 23:12:43 +00003650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003651$as_echo "$MKDIR_P" >&6; }
3652
3653mkdir_p="$MKDIR_P"
3654case $mkdir_p in
3655 [\\/$]* | ?:[\\/]*) ;;
3656 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3657esac
3658
3659for ac_prog in gawk mawk nawk awk
3660do
3661 # Extract the first word of "$ac_prog", so it can be a program name with args.
3662set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003664$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003665if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003666 $as_echo_n "(cached) " >&6
3667else
3668 if test -n "$AWK"; then
3669 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3670else
3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH
3673do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003676 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003680 break 2
3681 fi
3682done
cristy8b350f62009-11-15 23:12:43 +00003683 done
cristy3ed852e2009-09-05 21:47:34 +00003684IFS=$as_save_IFS
3685
3686fi
3687fi
3688AWK=$ac_cv_prog_AWK
3689if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003691$as_echo "$AWK" >&6; }
3692else
cristy8b350f62009-11-15 23:12:43 +00003693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003694$as_echo "no" >&6; }
3695fi
3696
3697
3698 test -n "$AWK" && break
3699done
3700
cristy8b350f62009-11-15 23:12:43 +00003701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003702$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3703set x ${MAKE-make}
3704ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003705if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003706 $as_echo_n "(cached) " >&6
3707else
3708 cat >conftest.make <<\_ACEOF
3709SHELL = /bin/sh
3710all:
3711 @echo '@@@%%%=$(MAKE)=@@@%%%'
3712_ACEOF
3713# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3714case `${MAKE-make} -f conftest.make 2>/dev/null` in
3715 *@@@%%%=?*=@@@%%%*)
3716 eval ac_cv_prog_make_${ac_make}_set=yes;;
3717 *)
3718 eval ac_cv_prog_make_${ac_make}_set=no;;
3719esac
3720rm -f conftest.make
3721fi
3722if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003724$as_echo "yes" >&6; }
3725 SET_MAKE=
3726else
cristy8b350f62009-11-15 23:12:43 +00003727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003728$as_echo "no" >&6; }
3729 SET_MAKE="MAKE=${MAKE-make}"
3730fi
3731
3732rm -rf .tst 2>/dev/null
3733mkdir .tst 2>/dev/null
3734if test -d .tst; then
3735 am__leading_dot=.
3736else
3737 am__leading_dot=_
3738fi
3739rmdir .tst 2>/dev/null
3740
3741if test "`cd $srcdir && pwd`" != "`pwd`"; then
3742 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3743 # is not polluted with repeated "-I."
3744 am__isrc=' -I$(srcdir)'
3745 # test to see if srcdir already configured
3746 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003747 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003748 fi
3749fi
3750
3751# test whether we have cygpath
3752if test -z "$CYGPATH_W"; then
3753 if (cygpath --version) >/dev/null 2>/dev/null; then
3754 CYGPATH_W='cygpath -w'
3755 else
3756 CYGPATH_W=echo
3757 fi
3758fi
3759
3760
3761# Define the identity of the package.
3762 PACKAGE=$PACKAGE_NAME
3763 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3764
3765
3766# Some tools Automake needs.
3767
3768ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3769
3770
3771AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3772
3773
3774AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3775
3776
3777AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3778
3779
3780MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3781
3782# We need awk for the "check" target. The system "awk" is bad on
3783# some platforms.
3784# Always define AMTAR for backward compatibility.
3785
3786AMTAR=${AMTAR-"${am_missing_run}tar"}
3787
3788am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3789
3790
3791
3792
3793
3794
3795# Enable support for silent build rules
3796# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003797if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003798 enableval=$enable_silent_rules;
3799fi
3800
3801case $enable_silent_rules in
3802yes) AM_DEFAULT_VERBOSITY=0;;
3803no) AM_DEFAULT_VERBOSITY=1;;
3804*) AM_DEFAULT_VERBOSITY=0;;
3805esac
3806AM_BACKSLASH='\'
3807
3808
3809MAGICK_LIB_VERSION="0x"
3810if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3811 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3812fi
3813MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3814if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3815 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3816fi
3817MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3818if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3819 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3820fi
3821MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3822
3823
3824# Definition used to define MagickLibVersionText in version.h
3825MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3826
3827
3828# Definition used to define MagickLibVersionNumber in version.h
3829MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3830
3831
3832# Regenerate config.status if ChangeLog or version.sh is updated.
3833CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3834
3835
3836PERLMAINCC=$CC
3837
3838MAGICK_CFLAGS=''
3839MAGICK_CPPFLAGS=$CPPFLAGS_USER
3840MAGICK_PCFLAGS=$CPPFLAGS_USER
3841MAGICK_LDFLAGS=''
3842MAGICK_LIBS=''
3843
3844#
3845# Evaluate shell variable equivalents to Makefile directory variables
3846#
3847if test "x$prefix" = xNONE; then
3848 prefix=$ac_default_prefix
3849fi
3850# Let make expand exec_prefix.
3851if test "x$exec_prefix" = xNONE; then
3852 exec_prefix='${prefix}'
3853fi
3854
3855#
3856eval "eval PREFIX_DIR=${prefix}"
3857
3858eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3859
3860eval "eval BIN_DIR=$bindir"
3861
3862eval "eval SBIN_DIR=$sbindir"
3863
3864eval "eval LIBEXEC_DIR=$libexecdir"
3865
3866eval "eval DATA_DIR=$datadir"
3867
3868eval "eval SYSCONF_DIR=$sysconfdir"
3869
3870eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3871
3872eval "eval LOCALSTATE_DIR=$localstatedir"
3873
3874eval "eval LIB_DIR=$libdir"
3875
3876eval "eval INCLUDE_DIR=$includedir"
3877
3878eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3879
3880eval "eval INFO_DIR=$infodir"
3881
3882eval "eval MAN_DIR=$mandir"
3883
3884
3885# Get full paths to source and build directories
3886srcdirfull="`cd $srcdir && pwd`"
3887builddir="`pwd`"
3888
3889#
3890# Compute variables useful for running uninstalled software.
3891#
3892MAGICK_CODER_MODULE_PATH="${builddir}/coders"
3893MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
3894MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
3895MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
3896DIRSEP=':'
3897case "${build_os}" in
3898 mingw* )
3899 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
3900 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
3901 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
3902 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
3903 DIRSEP=';'
3904 ;;
3905esac
3906case "${host_os}" in
3907 mingw* )
3908 DIRSEP=';'
3909 ;;
3910esac
3911
3912
3913
3914
3915
3916
3917# Check for programs
3918ac_ext=c
3919ac_cpp='$CPP $CPPFLAGS'
3920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923if test -n "$ac_tool_prefix"; then
3924 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3925set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003927$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003928if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003929 $as_echo_n "(cached) " >&6
3930else
3931 if test -n "$CC"; then
3932 ac_cv_prog_CC="$CC" # Let the user override the test.
3933else
3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935for as_dir in $PATH
3936do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003939 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3941 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00003942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003943 break 2
3944 fi
3945done
cristy8b350f62009-11-15 23:12:43 +00003946 done
cristy3ed852e2009-09-05 21:47:34 +00003947IFS=$as_save_IFS
3948
3949fi
3950fi
3951CC=$ac_cv_prog_CC
3952if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00003953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00003954$as_echo "$CC" >&6; }
3955else
cristy8b350f62009-11-15 23:12:43 +00003956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003957$as_echo "no" >&6; }
3958fi
3959
3960
3961fi
3962if test -z "$ac_cv_prog_CC"; then
3963 ac_ct_CC=$CC
3964 # Extract the first word of "gcc", so it can be a program name with args.
3965set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003967$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003968if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003969 $as_echo_n "(cached) " >&6
3970else
3971 if test -n "$ac_ct_CC"; then
3972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3973else
3974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975for as_dir in $PATH
3976do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003979 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3981 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00003982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003983 break 2
3984 fi
3985done
cristy8b350f62009-11-15 23:12:43 +00003986 done
cristy3ed852e2009-09-05 21:47:34 +00003987IFS=$as_save_IFS
3988
3989fi
3990fi
3991ac_ct_CC=$ac_cv_prog_ac_ct_CC
3992if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00003993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00003994$as_echo "$ac_ct_CC" >&6; }
3995else
cristy8b350f62009-11-15 23:12:43 +00003996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003997$as_echo "no" >&6; }
3998fi
3999
4000 if test "x$ac_ct_CC" = x; then
4001 CC=""
4002 else
4003 case $cross_compiling:$ac_tool_warned in
4004yes:)
cristy8b350f62009-11-15 23:12:43 +00004005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4007ac_tool_warned=yes ;;
4008esac
4009 CC=$ac_ct_CC
4010 fi
4011else
4012 CC="$ac_cv_prog_CC"
4013fi
4014
4015if test -z "$CC"; then
4016 if test -n "$ac_tool_prefix"; then
4017 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4018set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004020$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004021if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004022 $as_echo_n "(cached) " >&6
4023else
4024 if test -n "$CC"; then
4025 ac_cv_prog_CC="$CC" # Let the user override the test.
4026else
4027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028for as_dir in $PATH
4029do
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004032 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4034 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004036 break 2
4037 fi
4038done
cristy8b350f62009-11-15 23:12:43 +00004039 done
cristy3ed852e2009-09-05 21:47:34 +00004040IFS=$as_save_IFS
4041
4042fi
4043fi
4044CC=$ac_cv_prog_CC
4045if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004047$as_echo "$CC" >&6; }
4048else
cristy8b350f62009-11-15 23:12:43 +00004049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004050$as_echo "no" >&6; }
4051fi
4052
4053
4054 fi
4055fi
4056if test -z "$CC"; then
4057 # Extract the first word of "cc", so it can be a program name with args.
4058set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004060$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004061if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004062 $as_echo_n "(cached) " >&6
4063else
4064 if test -n "$CC"; then
4065 ac_cv_prog_CC="$CC" # Let the user override the test.
4066else
4067 ac_prog_rejected=no
4068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH
4070do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004073 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4076 ac_prog_rejected=yes
4077 continue
4078 fi
4079 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004081 break 2
4082 fi
4083done
cristy8b350f62009-11-15 23:12:43 +00004084 done
cristy3ed852e2009-09-05 21:47:34 +00004085IFS=$as_save_IFS
4086
4087if test $ac_prog_rejected = yes; then
4088 # We found a bogon in the path, so make sure we never use it.
4089 set dummy $ac_cv_prog_CC
4090 shift
4091 if test $# != 0; then
4092 # We chose a different compiler from the bogus one.
4093 # However, it has the same basename, so the bogon will be chosen
4094 # first if we set CC to just the basename; use the full file name.
4095 shift
4096 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4097 fi
4098fi
4099fi
4100fi
4101CC=$ac_cv_prog_CC
4102if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004104$as_echo "$CC" >&6; }
4105else
cristy8b350f62009-11-15 23:12:43 +00004106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004107$as_echo "no" >&6; }
4108fi
4109
4110
4111fi
4112if test -z "$CC"; then
4113 if test -n "$ac_tool_prefix"; then
4114 for ac_prog in cl.exe
4115 do
4116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4117set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004119$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004120if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004121 $as_echo_n "(cached) " >&6
4122else
4123 if test -n "$CC"; then
4124 ac_cv_prog_CC="$CC" # Let the user override the test.
4125else
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004135 break 2
4136 fi
4137done
cristy8b350f62009-11-15 23:12:43 +00004138 done
cristy3ed852e2009-09-05 21:47:34 +00004139IFS=$as_save_IFS
4140
4141fi
4142fi
4143CC=$ac_cv_prog_CC
4144if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004146$as_echo "$CC" >&6; }
4147else
cristy8b350f62009-11-15 23:12:43 +00004148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004149$as_echo "no" >&6; }
4150fi
4151
4152
4153 test -n "$CC" && break
4154 done
4155fi
4156if test -z "$CC"; then
4157 ac_ct_CC=$CC
4158 for ac_prog in cl.exe
4159do
4160 # Extract the first word of "$ac_prog", so it can be a program name with args.
4161set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004163$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004164if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004165 $as_echo_n "(cached) " >&6
4166else
4167 if test -n "$ac_ct_CC"; then
4168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004175 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004179 break 2
4180 fi
4181done
cristy8b350f62009-11-15 23:12:43 +00004182 done
cristy3ed852e2009-09-05 21:47:34 +00004183IFS=$as_save_IFS
4184
4185fi
4186fi
4187ac_ct_CC=$ac_cv_prog_ac_ct_CC
4188if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004190$as_echo "$ac_ct_CC" >&6; }
4191else
cristy8b350f62009-11-15 23:12:43 +00004192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004193$as_echo "no" >&6; }
4194fi
4195
4196
4197 test -n "$ac_ct_CC" && break
4198done
4199
4200 if test "x$ac_ct_CC" = x; then
4201 CC=""
4202 else
4203 case $cross_compiling:$ac_tool_warned in
4204yes:)
cristy8b350f62009-11-15 23:12:43 +00004205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4207ac_tool_warned=yes ;;
4208esac
4209 CC=$ac_ct_CC
4210 fi
4211fi
4212
4213fi
4214
4215
cristy8b350f62009-11-15 23:12:43 +00004216test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004218as_fn_error "no acceptable C compiler found in \$PATH
4219See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004220
4221# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004222$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004223set X $ac_compile
4224ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004225for ac_option in --version -v -V -qversion; do
4226 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004227case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
cristy8b350f62009-11-15 23:12:43 +00004231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4232$as_echo "$ac_try_echo"; } >&5
4233 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004234 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004235 if test -s conftest.err; then
4236 sed '10a\
4237... rest of stderr output deleted ...
4238 10q' conftest.err >conftest.er1
4239 cat conftest.er1 >&5
4240 rm -f conftest.er1 conftest.err
4241 fi
4242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243 test $ac_status = 0; }
4244done
cristy3ed852e2009-09-05 21:47:34 +00004245
cristy8b350f62009-11-15 23:12:43 +00004246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004247/* end confdefs.h. */
cristy8b350f62009-11-15 23:12:43 +00004248#include <stdio.h>
cristy3ed852e2009-09-05 21:47:34 +00004249int
4250main ()
4251{
cristy8b350f62009-11-15 23:12:43 +00004252FILE *f = fopen ("conftest.out", "w");
4253 return ferror (f) || fclose (f) != 0;
cristy3ed852e2009-09-05 21:47:34 +00004254
4255 ;
4256 return 0;
4257}
4258_ACEOF
4259ac_clean_files_save=$ac_clean_files
cristy8b350f62009-11-15 23:12:43 +00004260ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
cristy3ed852e2009-09-05 21:47:34 +00004261# Try to create an executable without -o first, disregard a.out.
4262# It will help us diagnose broken compilers, and finding out an intuition
4263# of exeext.
cristy8b350f62009-11-15 23:12:43 +00004264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
cristy3ed852e2009-09-05 21:47:34 +00004265$as_echo_n "checking for C compiler default output file name... " >&6; }
4266ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4267
4268# The possible output files:
4269ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4270
4271ac_rmfiles=
4272for ac_file in $ac_files
4273do
4274 case $ac_file in
4275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4276 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4277 esac
4278done
4279rm -f $ac_rmfiles
4280
cristy8b350f62009-11-15 23:12:43 +00004281if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004282case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285esac
cristy8b350f62009-11-15 23:12:43 +00004286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004288 (eval "$ac_link_default") 2>&5
4289 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004292 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4293# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4294# in a Makefile. We should not override ac_cv_exeext if it was cached,
4295# so that the user can short-circuit this test for compilers unknown to
4296# Autoconf.
4297for ac_file in $ac_files ''
4298do
4299 test -f "$ac_file" || continue
4300 case $ac_file in
4301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4302 ;;
4303 [ab].out )
4304 # We found the default executable, but exeext='' is most
4305 # certainly right.
4306 break;;
4307 *.* )
cristy8b350f62009-11-15 23:12:43 +00004308 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004309 then :; else
4310 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4311 fi
4312 # We set ac_cv_exeext here because the later test for it is not
4313 # safe: cross compilers may not add the suffix if given an `-o'
4314 # argument, so we may need to know it at that point already.
4315 # Even if this section looks crufty: it has the advantage of
4316 # actually working.
4317 break;;
4318 * )
4319 break;;
4320 esac
4321done
4322test "$ac_cv_exeext" = no && ac_cv_exeext=
4323
4324else
4325 ac_file=''
4326fi
cristy8b350f62009-11-15 23:12:43 +00004327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00004328$as_echo "$ac_file" >&6; }
cristy8b350f62009-11-15 23:12:43 +00004329if test -z "$ac_file"; then :
cristy3ed852e2009-09-05 21:47:34 +00004330 $as_echo "$as_me: failed program was:" >&5
4331sed 's/^/| /' conftest.$ac_ext >&5
4332
cristy8b350f62009-11-15 23:12:43 +00004333{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004335{ as_fn_set_status 77
4336as_fn_error "C compiler cannot create executables
4337See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +00004338fi
cristy3ed852e2009-09-05 21:47:34 +00004339ac_exeext=$ac_cv_exeext
4340
4341# Check that the compiler produces executables we can run. If not, either
4342# the compiler is broken, or we cross compile.
cristy8b350f62009-11-15 23:12:43 +00004343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
cristy3ed852e2009-09-05 21:47:34 +00004344$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004345# If not cross compiling, check that we can run a simple program.
4346if test "$cross_compiling" != yes; then
4347 if { ac_try='./$ac_file'
cristy8b350f62009-11-15 23:12:43 +00004348 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00004349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351esac
cristy8b350f62009-11-15 23:12:43 +00004352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004354 (eval "$ac_try") 2>&5
4355 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00004358 cross_compiling=no
4359 else
4360 if test "$cross_compiling" = maybe; then
4361 cross_compiling=yes
4362 else
cristy8b350f62009-11-15 23:12:43 +00004363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004365as_fn_error "cannot run C compiled programs.
cristy3ed852e2009-09-05 21:47:34 +00004366If you meant to cross compile, use \`--host'.
cristy8b350f62009-11-15 23:12:43 +00004367See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004368 fi
4369 fi
4370fi
cristy8b350f62009-11-15 23:12:43 +00004371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00004372$as_echo "yes" >&6; }
4373
cristy8b350f62009-11-15 23:12:43 +00004374rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
cristy3ed852e2009-09-05 21:47:34 +00004375ac_clean_files=$ac_clean_files_save
4376# Check that the compiler produces executables we can run. If not, either
4377# the compiler is broken, or we cross compile.
cristy8b350f62009-11-15 23:12:43 +00004378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
cristy3ed852e2009-09-05 21:47:34 +00004379$as_echo_n "checking whether we are cross compiling... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
cristy3ed852e2009-09-05 21:47:34 +00004381$as_echo "$cross_compiling" >&6; }
4382
cristy8b350f62009-11-15 23:12:43 +00004383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004384$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004385if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004386case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389esac
cristy8b350f62009-11-15 23:12:43 +00004390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004392 (eval "$ac_link") 2>&5
4393 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004396 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4397# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4398# work properly (i.e., refer to `conftest.exe'), while it won't with
4399# `rm'.
4400for ac_file in conftest.exe conftest conftest.*; do
4401 test -f "$ac_file" || continue
4402 case $ac_file in
4403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4404 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4405 break;;
4406 * ) break;;
4407 esac
4408done
4409else
cristy8b350f62009-11-15 23:12:43 +00004410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004412as_fn_error "cannot compute suffix of executables: cannot compile and link
4413See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004414fi
cristy3ed852e2009-09-05 21:47:34 +00004415rm -f conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004417$as_echo "$ac_cv_exeext" >&6; }
4418
4419rm -f conftest.$ac_ext
4420EXEEXT=$ac_cv_exeext
4421ac_exeext=$EXEEXT
cristy8b350f62009-11-15 23:12:43 +00004422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004423$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004424if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004425 $as_echo_n "(cached) " >&6
4426else
cristy8b350f62009-11-15 23:12:43 +00004427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004428/* end confdefs.h. */
4429
4430int
4431main ()
4432{
4433
4434 ;
4435 return 0;
4436}
4437_ACEOF
4438rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004439if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004440case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443esac
cristy8b350f62009-11-15 23:12:43 +00004444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004446 (eval "$ac_compile") 2>&5
4447 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004450 for ac_file in conftest.o conftest.obj conftest.*; do
4451 test -f "$ac_file" || continue;
4452 case $ac_file in
4453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4454 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4455 break;;
4456 esac
4457done
4458else
4459 $as_echo "$as_me: failed program was:" >&5
4460sed 's/^/| /' conftest.$ac_ext >&5
4461
cristy8b350f62009-11-15 23:12:43 +00004462{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004464as_fn_error "cannot compute suffix of object files: cannot compile
4465See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004466fi
cristy3ed852e2009-09-05 21:47:34 +00004467rm -f conftest.$ac_cv_objext conftest.$ac_ext
4468fi
cristy8b350f62009-11-15 23:12:43 +00004469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004470$as_echo "$ac_cv_objext" >&6; }
4471OBJEXT=$ac_cv_objext
4472ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004474$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004475if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004476 $as_echo_n "(cached) " >&6
4477else
cristy8b350f62009-11-15 23:12:43 +00004478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004479/* end confdefs.h. */
4480
4481int
4482main ()
4483{
4484#ifndef __GNUC__
4485 choke me
4486#endif
4487
4488 ;
4489 return 0;
4490}
4491_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004492if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004493 ac_compiler_gnu=yes
4494else
cristy8b350f62009-11-15 23:12:43 +00004495 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004496fi
cristy3ed852e2009-09-05 21:47:34 +00004497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498ac_cv_c_compiler_gnu=$ac_compiler_gnu
4499
4500fi
cristy8b350f62009-11-15 23:12:43 +00004501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004502$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4503if test $ac_compiler_gnu = yes; then
4504 GCC=yes
4505else
4506 GCC=
4507fi
4508ac_test_CFLAGS=${CFLAGS+set}
4509ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004511$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004512if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004513 $as_echo_n "(cached) " >&6
4514else
4515 ac_save_c_werror_flag=$ac_c_werror_flag
4516 ac_c_werror_flag=yes
4517 ac_cv_prog_cc_g=no
4518 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004520/* end confdefs.h. */
4521
4522int
4523main ()
4524{
4525
4526 ;
4527 return 0;
4528}
4529_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004530if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004531 ac_cv_prog_cc_g=yes
4532else
cristy8b350f62009-11-15 23:12:43 +00004533 CFLAGS=""
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004535/* end confdefs.h. */
4536
4537int
4538main ()
4539{
4540
4541 ;
4542 return 0;
4543}
4544_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004545if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004546
cristy8b350f62009-11-15 23:12:43 +00004547else
4548 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004549 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004551/* end confdefs.h. */
4552
4553int
4554main ()
4555{
4556
4557 ;
4558 return 0;
4559}
4560_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004561if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004562 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004563fi
cristy3ed852e2009-09-05 21:47:34 +00004564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565fi
cristy3ed852e2009-09-05 21:47:34 +00004566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567fi
cristy3ed852e2009-09-05 21:47:34 +00004568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 ac_c_werror_flag=$ac_save_c_werror_flag
4570fi
cristy8b350f62009-11-15 23:12:43 +00004571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004572$as_echo "$ac_cv_prog_cc_g" >&6; }
4573if test "$ac_test_CFLAGS" = set; then
4574 CFLAGS=$ac_save_CFLAGS
4575elif test $ac_cv_prog_cc_g = yes; then
4576 if test "$GCC" = yes; then
4577 CFLAGS="-g -O2"
4578 else
4579 CFLAGS="-g"
4580 fi
4581else
4582 if test "$GCC" = yes; then
4583 CFLAGS="-O2"
4584 else
4585 CFLAGS=
4586 fi
4587fi
cristy8b350f62009-11-15 23:12:43 +00004588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004589$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004590if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004591 $as_echo_n "(cached) " >&6
4592else
4593 ac_cv_prog_cc_c89=no
4594ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004596/* end confdefs.h. */
4597#include <stdarg.h>
4598#include <stdio.h>
4599#include <sys/types.h>
4600#include <sys/stat.h>
4601/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4602struct buf { int x; };
4603FILE * (*rcsopen) (struct buf *, struct stat *, int);
4604static char *e (p, i)
4605 char **p;
4606 int i;
4607{
4608 return p[i];
4609}
4610static char *f (char * (*g) (char **, int), char **p, ...)
4611{
4612 char *s;
4613 va_list v;
4614 va_start (v,p);
4615 s = g (p, va_arg (v,int));
4616 va_end (v);
4617 return s;
4618}
4619
4620/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4621 function prototypes and stuff, but not '\xHH' hex character constants.
4622 These don't provoke an error unfortunately, instead are silently treated
4623 as 'x'. The following induces an error, until -std is added to get
4624 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4625 array size at least. It's necessary to write '\x00'==0 to get something
4626 that's true only with -std. */
4627int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4628
4629/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4630 inside strings and character constants. */
4631#define FOO(x) 'x'
4632int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4633
4634int test (int i, double x);
4635struct s1 {int (*f) (int a);};
4636struct s2 {int (*f) (double a);};
4637int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4638int argc;
4639char **argv;
4640int
4641main ()
4642{
4643return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4644 ;
4645 return 0;
4646}
4647_ACEOF
4648for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4649 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4650do
4651 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004652 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004653 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004654fi
cristy3ed852e2009-09-05 21:47:34 +00004655rm -f core conftest.err conftest.$ac_objext
4656 test "x$ac_cv_prog_cc_c89" != "xno" && break
4657done
4658rm -f conftest.$ac_ext
4659CC=$ac_save_CC
4660
4661fi
4662# AC_CACHE_VAL
4663case "x$ac_cv_prog_cc_c89" in
4664 x)
cristy8b350f62009-11-15 23:12:43 +00004665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004666$as_echo "none needed" >&6; } ;;
4667 xno)
cristy8b350f62009-11-15 23:12:43 +00004668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004669$as_echo "unsupported" >&6; } ;;
4670 *)
4671 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004673$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4674esac
cristy8b350f62009-11-15 23:12:43 +00004675if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004676
cristy8b350f62009-11-15 23:12:43 +00004677fi
cristy3ed852e2009-09-05 21:47:34 +00004678
4679ac_ext=c
4680ac_cpp='$CPP $CPPFLAGS'
4681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684DEPDIR="${am__leading_dot}deps"
4685
4686ac_config_commands="$ac_config_commands depfiles"
4687
4688
4689am_make=${MAKE-make}
4690cat > confinc << 'END'
4691am__doit:
4692 @echo this is the am__doit target
4693.PHONY: am__doit
4694END
4695# If we don't find an include directive, just comment out the code.
cristy8b350f62009-11-15 23:12:43 +00004696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cristy3ed852e2009-09-05 21:47:34 +00004697$as_echo_n "checking for style of include used by $am_make... " >&6; }
4698am__include="#"
4699am__quote=
4700_am_result=none
4701# First try GNU make style include.
4702echo "include confinc" > confmf
4703# Ignore all kinds of additional output from `make'.
4704case `$am_make -s -f confmf 2> /dev/null` in #(
4705*the\ am__doit\ target*)
4706 am__include=include
4707 am__quote=
4708 _am_result=GNU
4709 ;;
4710esac
4711# Now try BSD make style include.
4712if test "$am__include" = "#"; then
4713 echo '.include "confinc"' > confmf
4714 case `$am_make -s -f confmf 2> /dev/null` in #(
4715 *the\ am__doit\ target*)
4716 am__include=.include
4717 am__quote="\""
4718 _am_result=BSD
4719 ;;
4720 esac
4721fi
4722
4723
cristy8b350f62009-11-15 23:12:43 +00004724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cristy3ed852e2009-09-05 21:47:34 +00004725$as_echo "$_am_result" >&6; }
4726rm -f confinc confmf
4727
4728# Check whether --enable-dependency-tracking was given.
cristy8b350f62009-11-15 23:12:43 +00004729if test "${enable_dependency_tracking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004730 enableval=$enable_dependency_tracking;
4731fi
4732
4733if test "x$enable_dependency_tracking" != xno; then
4734 am_depcomp="$ac_aux_dir/depcomp"
4735 AMDEPBACKSLASH='\'
4736fi
4737 if test "x$enable_dependency_tracking" != xno; then
4738 AMDEP_TRUE=
4739 AMDEP_FALSE='#'
4740else
4741 AMDEP_TRUE='#'
4742 AMDEP_FALSE=
4743fi
4744
4745
4746
4747depcc="$CC" am_compiler_list=
4748
cristy8b350f62009-11-15 23:12:43 +00004749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00004750$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004751if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004752 $as_echo_n "(cached) " >&6
4753else
4754 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4755 # We make a subdir and do the tests there. Otherwise we can end up
4756 # making bogus files that we don't know about and never remove. For
4757 # instance it was reported that on HP-UX the gcc test will end up
4758 # making a dummy file named `D' -- because `-MD' means `put the output
4759 # in D'.
4760 mkdir conftest.dir
4761 # Copy depcomp to subdir because otherwise we won't find it if we're
4762 # using a relative directory.
4763 cp "$am_depcomp" conftest.dir
4764 cd conftest.dir
4765 # We will build objects and dependencies in a subdirectory because
4766 # it helps to detect inapplicable dependency modes. For instance
4767 # both Tru64's cc and ICC support -MD to output dependencies as a
4768 # side effect of compilation, but ICC will put the dependencies in
4769 # the current directory while Tru64 will put them in the object
4770 # directory.
4771 mkdir sub
4772
4773 am_cv_CC_dependencies_compiler_type=none
4774 if test "$am_compiler_list" = ""; then
4775 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4776 fi
4777 am__universal=false
4778 case " $depcc " in #(
4779 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4780 esac
4781
4782 for depmode in $am_compiler_list; do
4783 # Setup a source with many dependencies, because some compilers
4784 # like to wrap large dependency lists on column 80 (with \), and
4785 # we should not choose a depcomp mode which is confused by this.
4786 #
4787 # We need to recreate these files for each test, as the compiler may
4788 # overwrite some of them when testing with obscure command lines.
4789 # This happens at least with the AIX C compiler.
4790 : > sub/conftest.c
4791 for i in 1 2 3 4 5 6; do
4792 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4793 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4794 # Solaris 8's {/usr,}/bin/sh.
4795 touch sub/conftst$i.h
4796 done
4797 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4798
4799 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4800 # mode. It turns out that the SunPro C++ compiler does not properly
4801 # handle `-M -o', and we need to detect this. Also, some Intel
4802 # versions had trouble with output in subdirs
4803 am__obj=sub/conftest.${OBJEXT-o}
4804 am__minus_obj="-o $am__obj"
4805 case $depmode in
4806 gcc)
4807 # This depmode causes a compiler race in universal mode.
4808 test "$am__universal" = false || continue
4809 ;;
4810 nosideeffect)
4811 # after this tag, mechanisms are not by side-effect, so they'll
4812 # only be used when explicitly requested
4813 if test "x$enable_dependency_tracking" = xyes; then
4814 continue
4815 else
4816 break
4817 fi
4818 ;;
4819 msvisualcpp | msvcmsys)
4820 # This compiler won't grok `-c -o', but also, the minuso test has
4821 # not run yet. These depmodes are late enough in the game, and
4822 # so weak that their functioning should not be impacted.
4823 am__obj=conftest.${OBJEXT-o}
4824 am__minus_obj=
4825 ;;
4826 none) break ;;
4827 esac
4828 if depmode=$depmode \
4829 source=sub/conftest.c object=$am__obj \
4830 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4831 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4832 >/dev/null 2>conftest.err &&
4833 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4834 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4835 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4836 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4837 # icc doesn't choke on unknown options, it will just issue warnings
4838 # or remarks (even with -Werror). So we grep stderr for any message
4839 # that says an option was ignored or not supported.
4840 # When given -MP, icc 7.0 and 7.1 complain thusly:
4841 # icc: Command line warning: ignoring option '-M'; no argument required
4842 # The diagnosis changed in icc 8.0:
4843 # icc: Command line remark: option '-MP' not supported
4844 if (grep 'ignoring option' conftest.err ||
4845 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4846 am_cv_CC_dependencies_compiler_type=$depmode
4847 break
4848 fi
4849 fi
4850 done
4851
4852 cd ..
4853 rm -rf conftest.dir
4854else
4855 am_cv_CC_dependencies_compiler_type=none
4856fi
4857
4858fi
cristy8b350f62009-11-15 23:12:43 +00004859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00004860$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4861CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4862
4863 if
4864 test "x$enable_dependency_tracking" != xno \
4865 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4866 am__fastdepCC_TRUE=
4867 am__fastdepCC_FALSE='#'
4868else
4869 am__fastdepCC_TRUE='#'
4870 am__fastdepCC_FALSE=
4871fi
4872
4873
cristy8b350f62009-11-15 23:12:43 +00004874 case $ac_cv_prog_cc_stdc in #(
4875 no) :
4876 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4877 *) :
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00004879$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004880if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004881 $as_echo_n "(cached) " >&6
4882else
4883 ac_cv_prog_cc_c99=no
4884ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004886/* end confdefs.h. */
4887#include <stdarg.h>
4888#include <stdbool.h>
4889#include <stdlib.h>
4890#include <wchar.h>
4891#include <stdio.h>
4892
4893// Check varargs macros. These examples are taken from C99 6.10.3.5.
4894#define debug(...) fprintf (stderr, __VA_ARGS__)
4895#define showlist(...) puts (#__VA_ARGS__)
4896#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4897static void
4898test_varargs_macros (void)
4899{
4900 int x = 1234;
4901 int y = 5678;
4902 debug ("Flag");
4903 debug ("X = %d\n", x);
4904 showlist (The first, second, and third items.);
4905 report (x>y, "x is %d but y is %d", x, y);
4906}
4907
4908// Check long long types.
4909#define BIG64 18446744073709551615ull
4910#define BIG32 4294967295ul
4911#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4912#if !BIG_OK
4913 your preprocessor is broken;
4914#endif
4915#if BIG_OK
4916#else
4917 your preprocessor is broken;
4918#endif
4919static long long int bignum = -9223372036854775807LL;
4920static unsigned long long int ubignum = BIG64;
4921
4922struct incomplete_array
4923{
4924 int datasize;
4925 double data[];
4926};
4927
4928struct named_init {
4929 int number;
4930 const wchar_t *name;
4931 double average;
4932};
4933
4934typedef const char *ccp;
4935
4936static inline int
4937test_restrict (ccp restrict text)
4938{
4939 // See if C++-style comments work.
4940 // Iterate through items via the restricted pointer.
4941 // Also check for declarations in for loops.
4942 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4943 continue;
4944 return 0;
4945}
4946
4947// Check varargs and va_copy.
4948static void
4949test_varargs (const char *format, ...)
4950{
4951 va_list args;
4952 va_start (args, format);
4953 va_list args_copy;
4954 va_copy (args_copy, args);
4955
4956 const char *str;
4957 int number;
4958 float fnumber;
4959
4960 while (*format)
4961 {
4962 switch (*format++)
4963 {
4964 case 's': // string
4965 str = va_arg (args_copy, const char *);
4966 break;
4967 case 'd': // int
4968 number = va_arg (args_copy, int);
4969 break;
4970 case 'f': // float
4971 fnumber = va_arg (args_copy, double);
4972 break;
4973 default:
4974 break;
4975 }
4976 }
4977 va_end (args_copy);
4978 va_end (args);
4979}
4980
4981int
4982main ()
4983{
4984
4985 // Check bool.
4986 _Bool success = false;
4987
4988 // Check restrict.
4989 if (test_restrict ("String literal") == 0)
4990 success = true;
4991 char *restrict newvar = "Another string";
4992
4993 // Check varargs.
4994 test_varargs ("s, d' f .", "string", 65, 34.234);
4995 test_varargs_macros ();
4996
4997 // Check flexible array members.
4998 struct incomplete_array *ia =
4999 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5000 ia->datasize = 10;
5001 for (int i = 0; i < ia->datasize; ++i)
5002 ia->data[i] = i * 1.234;
5003
5004 // Check named initializers.
5005 struct named_init ni = {
5006 .number = 34,
5007 .name = L"Test wide string",
5008 .average = 543.34343,
5009 };
5010
5011 ni.number = 58;
5012
5013 int dynamic_array[ni.number];
5014 dynamic_array[ni.number - 1] = 543;
5015
5016 // work around unused variable warnings
5017 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5018 || dynamic_array[ni.number - 1] != 543);
5019
5020 ;
5021 return 0;
5022}
5023_ACEOF
5024for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5025do
5026 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005027 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005028 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005029fi
cristy3ed852e2009-09-05 21:47:34 +00005030rm -f core conftest.err conftest.$ac_objext
5031 test "x$ac_cv_prog_cc_c99" != "xno" && break
5032done
5033rm -f conftest.$ac_ext
5034CC=$ac_save_CC
5035
5036fi
5037# AC_CACHE_VAL
5038case "x$ac_cv_prog_cc_c99" in
5039 x)
cristy8b350f62009-11-15 23:12:43 +00005040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005041$as_echo "none needed" >&6; } ;;
5042 xno)
cristy8b350f62009-11-15 23:12:43 +00005043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005044$as_echo "unsupported" >&6; } ;;
5045 *)
5046 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00005047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005048$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5049esac
cristy8b350f62009-11-15 23:12:43 +00005050if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005051 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5052else
cristy8b350f62009-11-15 23:12:43 +00005053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005054$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005055if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005056 $as_echo_n "(cached) " >&6
5057else
5058 ac_cv_prog_cc_c89=no
5059ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005061/* end confdefs.h. */
5062#include <stdarg.h>
5063#include <stdio.h>
5064#include <sys/types.h>
5065#include <sys/stat.h>
5066/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5067struct buf { int x; };
5068FILE * (*rcsopen) (struct buf *, struct stat *, int);
5069static char *e (p, i)
5070 char **p;
5071 int i;
5072{
5073 return p[i];
5074}
5075static char *f (char * (*g) (char **, int), char **p, ...)
5076{
5077 char *s;
5078 va_list v;
5079 va_start (v,p);
5080 s = g (p, va_arg (v,int));
5081 va_end (v);
5082 return s;
5083}
5084
5085/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5086 function prototypes and stuff, but not '\xHH' hex character constants.
5087 These don't provoke an error unfortunately, instead are silently treated
5088 as 'x'. The following induces an error, until -std is added to get
5089 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5090 array size at least. It's necessary to write '\x00'==0 to get something
5091 that's true only with -std. */
5092int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5093
5094/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5095 inside strings and character constants. */
5096#define FOO(x) 'x'
5097int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5098
5099int test (int i, double x);
5100struct s1 {int (*f) (int a);};
5101struct s2 {int (*f) (double a);};
5102int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5103int argc;
5104char **argv;
5105int
5106main ()
5107{
5108return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5109 ;
5110 return 0;
5111}
5112_ACEOF
5113for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5114 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5115do
5116 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005117 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005118 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005119fi
cristy3ed852e2009-09-05 21:47:34 +00005120rm -f core conftest.err conftest.$ac_objext
5121 test "x$ac_cv_prog_cc_c89" != "xno" && break
5122done
5123rm -f conftest.$ac_ext
5124CC=$ac_save_CC
5125
5126fi
5127# AC_CACHE_VAL
5128case "x$ac_cv_prog_cc_c89" in
5129 x)
cristy8b350f62009-11-15 23:12:43 +00005130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005131$as_echo "none needed" >&6; } ;;
5132 xno)
cristy8b350f62009-11-15 23:12:43 +00005133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005134$as_echo "unsupported" >&6; } ;;
5135 *)
5136 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005138$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5139esac
cristy8b350f62009-11-15 23:12:43 +00005140if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005141 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5142else
5143 ac_cv_prog_cc_stdc=no
5144fi
5145
cristy3ed852e2009-09-05 21:47:34 +00005146fi
cristy3ed852e2009-09-05 21:47:34 +00005147 ;;
5148esac
cristy8b350f62009-11-15 23:12:43 +00005149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00005150$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005151 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005152 $as_echo_n "(cached) " >&6
5153fi
5154
cristy8b350f62009-11-15 23:12:43 +00005155 case $ac_cv_prog_cc_stdc in #(
5156 no) :
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5158$as_echo "unsupported" >&6; } ;; #(
5159 '') :
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5161$as_echo "none needed" >&6; } ;; #(
5162 *) :
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00005164$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5165esac
5166
cristy3ed852e2009-09-05 21:47:34 +00005167ac_ext=c
5168ac_cpp='$CPP $CPPFLAGS'
5169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00005172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00005173$as_echo_n "checking how to run the C preprocessor... " >&6; }
5174# On Suns, sometimes $CPP names a directory.
5175if test -n "$CPP" && test -d "$CPP"; then
5176 CPP=
5177fi
5178if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00005179 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005180 $as_echo_n "(cached) " >&6
5181else
5182 # Double quotes because CPP needs to be expanded
5183 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5184 do
5185 ac_preproc_ok=false
5186for ac_c_preproc_warn_flag in '' yes
5187do
5188 # Use a header file that comes with gcc, so configuring glibc
5189 # with a fresh cross-compiler works.
5190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5191 # <limits.h> exists even on freestanding compilers.
5192 # On the NeXT, cc -E runs the code through the compiler's parser,
5193 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005195/* end confdefs.h. */
5196#ifdef __STDC__
5197# include <limits.h>
5198#else
5199# include <assert.h>
5200#endif
5201 Syntax error
5202_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005203if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005204
cristy8b350f62009-11-15 23:12:43 +00005205else
cristy3ed852e2009-09-05 21:47:34 +00005206 # Broken: fails on valid input.
5207continue
5208fi
cristy3ed852e2009-09-05 21:47:34 +00005209rm -f conftest.err conftest.$ac_ext
5210
5211 # OK, works on sane cases. Now check whether nonexistent headers
5212 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005214/* end confdefs.h. */
5215#include <ac_nonexistent.h>
5216_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005217if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005218 # Broken: success on invalid input.
5219continue
5220else
cristy3ed852e2009-09-05 21:47:34 +00005221 # Passes both tests.
5222ac_preproc_ok=:
5223break
5224fi
cristy3ed852e2009-09-05 21:47:34 +00005225rm -f conftest.err conftest.$ac_ext
5226
5227done
5228# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5229rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005230if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00005231 break
5232fi
5233
5234 done
5235 ac_cv_prog_CPP=$CPP
5236
5237fi
5238 CPP=$ac_cv_prog_CPP
5239else
5240 ac_cv_prog_CPP=$CPP
5241fi
cristy8b350f62009-11-15 23:12:43 +00005242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005243$as_echo "$CPP" >&6; }
5244ac_preproc_ok=false
5245for ac_c_preproc_warn_flag in '' yes
5246do
5247 # Use a header file that comes with gcc, so configuring glibc
5248 # with a fresh cross-compiler works.
5249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5250 # <limits.h> exists even on freestanding compilers.
5251 # On the NeXT, cc -E runs the code through the compiler's parser,
5252 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005254/* end confdefs.h. */
5255#ifdef __STDC__
5256# include <limits.h>
5257#else
5258# include <assert.h>
5259#endif
5260 Syntax error
5261_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005262if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005263
cristy8b350f62009-11-15 23:12:43 +00005264else
cristy3ed852e2009-09-05 21:47:34 +00005265 # Broken: fails on valid input.
5266continue
5267fi
cristy3ed852e2009-09-05 21:47:34 +00005268rm -f conftest.err conftest.$ac_ext
5269
5270 # OK, works on sane cases. Now check whether nonexistent headers
5271 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005273/* end confdefs.h. */
5274#include <ac_nonexistent.h>
5275_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005276if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005277 # Broken: success on invalid input.
5278continue
5279else
cristy3ed852e2009-09-05 21:47:34 +00005280 # Passes both tests.
5281ac_preproc_ok=:
5282break
5283fi
cristy3ed852e2009-09-05 21:47:34 +00005284rm -f conftest.err conftest.$ac_ext
5285
5286done
5287# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5288rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005289if $ac_preproc_ok; then :
5290
cristy3ed852e2009-09-05 21:47:34 +00005291else
cristy8b350f62009-11-15 23:12:43 +00005292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00005294as_fn_error "C preprocessor \"$CPP\" fails sanity check
5295See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005296fi
5297
5298ac_ext=c
5299ac_cpp='$CPP $CPPFLAGS'
5300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5302ac_compiler_gnu=$ac_cv_c_compiler_gnu
5303
cristy8b350f62009-11-15 23:12:43 +00005304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00005305$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005306if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005307 $as_echo_n "(cached) " >&6
5308else
5309 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5310 for ac_i in 1 2 3 4 5 6 7; do
5311 ac_script="$ac_script$as_nl$ac_script"
5312 done
5313 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00005314 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00005315 if test -z "$SED"; then
5316 ac_path_SED_found=false
5317 # Loop through the user's path and test for each of PROGNAME-LIST
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH
5320do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005323 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00005324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5326 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5327# Check for GNU ac_path_SED and select it if it is found.
5328 # Check for GNU $ac_path_SED
5329case `"$ac_path_SED" --version 2>&1` in
5330*GNU*)
5331 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5332*)
5333 ac_count=0
5334 $as_echo_n 0123456789 >"conftest.in"
5335 while :
5336 do
5337 cat "conftest.in" "conftest.in" >"conftest.tmp"
5338 mv "conftest.tmp" "conftest.in"
5339 cp "conftest.in" "conftest.nl"
5340 $as_echo '' >> "conftest.nl"
5341 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005343 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005344 if test $ac_count -gt ${ac_path_SED_max-0}; then
5345 # Best one so far, save it but keep looking for a better one
5346 ac_cv_path_SED="$ac_path_SED"
5347 ac_path_SED_max=$ac_count
5348 fi
5349 # 10*(2^10) chars as input seems more than enough
5350 test $ac_count -gt 10 && break
5351 done
5352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5353esac
5354
5355 $ac_path_SED_found && break 3
5356 done
5357 done
cristy8b350f62009-11-15 23:12:43 +00005358 done
cristy3ed852e2009-09-05 21:47:34 +00005359IFS=$as_save_IFS
5360 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00005361 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005362 fi
5363else
5364 ac_cv_path_SED=$SED
5365fi
5366
5367fi
cristy8b350f62009-11-15 23:12:43 +00005368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00005369$as_echo "$ac_cv_path_SED" >&6; }
5370 SED="$ac_cv_path_SED"
5371 rm -f conftest.sed
5372
5373test -z "$SED" && SED=sed
5374Xsed="$SED -e 1s/^X//"
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
cristy8b350f62009-11-15 23:12:43 +00005386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cristy3ed852e2009-09-05 21:47:34 +00005387$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005388if test "${ac_cv_path_GREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005389 $as_echo_n "(cached) " >&6
5390else
5391 if test -z "$GREP"; then
5392 ac_path_GREP_found=false
5393 # Loop through the user's path and test for each of PROGNAME-LIST
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5396do
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005399 for ac_prog in grep ggrep; do
cristy3ed852e2009-09-05 21:47:34 +00005400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5402 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5403# Check for GNU ac_path_GREP and select it if it is found.
5404 # Check for GNU $ac_path_GREP
5405case `"$ac_path_GREP" --version 2>&1` in
5406*GNU*)
5407 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5408*)
5409 ac_count=0
5410 $as_echo_n 0123456789 >"conftest.in"
5411 while :
5412 do
5413 cat "conftest.in" "conftest.in" >"conftest.tmp"
5414 mv "conftest.tmp" "conftest.in"
5415 cp "conftest.in" "conftest.nl"
5416 $as_echo 'GREP' >> "conftest.nl"
5417 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005419 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005420 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5421 # Best one so far, save it but keep looking for a better one
5422 ac_cv_path_GREP="$ac_path_GREP"
5423 ac_path_GREP_max=$ac_count
5424 fi
5425 # 10*(2^10) chars as input seems more than enough
5426 test $ac_count -gt 10 && break
5427 done
5428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5429esac
5430
5431 $ac_path_GREP_found && break 3
5432 done
5433 done
cristy8b350f62009-11-15 23:12:43 +00005434 done
cristy3ed852e2009-09-05 21:47:34 +00005435IFS=$as_save_IFS
5436 if test -z "$ac_cv_path_GREP"; then
cristy8b350f62009-11-15 23:12:43 +00005437 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005438 fi
5439else
5440 ac_cv_path_GREP=$GREP
5441fi
5442
5443fi
cristy8b350f62009-11-15 23:12:43 +00005444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005445$as_echo "$ac_cv_path_GREP" >&6; }
5446 GREP="$ac_cv_path_GREP"
5447
5448
cristy8b350f62009-11-15 23:12:43 +00005449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00005450$as_echo_n "checking for egrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005451if test "${ac_cv_path_EGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005452 $as_echo_n "(cached) " >&6
5453else
5454 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5455 then ac_cv_path_EGREP="$GREP -E"
5456 else
5457 if test -z "$EGREP"; then
5458 ac_path_EGREP_found=false
5459 # Loop through the user's path and test for each of PROGNAME-LIST
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5462do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005465 for ac_prog in egrep; do
cristy3ed852e2009-09-05 21:47:34 +00005466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5468 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5469# Check for GNU ac_path_EGREP and select it if it is found.
5470 # Check for GNU $ac_path_EGREP
5471case `"$ac_path_EGREP" --version 2>&1` in
5472*GNU*)
5473 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5474*)
5475 ac_count=0
5476 $as_echo_n 0123456789 >"conftest.in"
5477 while :
5478 do
5479 cat "conftest.in" "conftest.in" >"conftest.tmp"
5480 mv "conftest.tmp" "conftest.in"
5481 cp "conftest.in" "conftest.nl"
5482 $as_echo 'EGREP' >> "conftest.nl"
5483 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005485 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005486 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5487 # Best one so far, save it but keep looking for a better one
5488 ac_cv_path_EGREP="$ac_path_EGREP"
5489 ac_path_EGREP_max=$ac_count
5490 fi
5491 # 10*(2^10) chars as input seems more than enough
5492 test $ac_count -gt 10 && break
5493 done
5494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5495esac
5496
5497 $ac_path_EGREP_found && break 3
5498 done
5499 done
cristy8b350f62009-11-15 23:12:43 +00005500 done
cristy3ed852e2009-09-05 21:47:34 +00005501IFS=$as_save_IFS
5502 if test -z "$ac_cv_path_EGREP"; then
cristy8b350f62009-11-15 23:12:43 +00005503 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005504 fi
5505else
5506 ac_cv_path_EGREP=$EGREP
5507fi
5508
5509 fi
5510fi
cristy8b350f62009-11-15 23:12:43 +00005511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005512$as_echo "$ac_cv_path_EGREP" >&6; }
5513 EGREP="$ac_cv_path_EGREP"
5514
5515
cristy8b350f62009-11-15 23:12:43 +00005516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00005517$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005518if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005519 $as_echo_n "(cached) " >&6
5520else
5521 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5522 then ac_cv_path_FGREP="$GREP -F"
5523 else
5524 if test -z "$FGREP"; then
5525 ac_path_FGREP_found=false
5526 # Loop through the user's path and test for each of PROGNAME-LIST
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5529do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005532 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00005533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5535 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5536# Check for GNU ac_path_FGREP and select it if it is found.
5537 # Check for GNU $ac_path_FGREP
5538case `"$ac_path_FGREP" --version 2>&1` in
5539*GNU*)
5540 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5541*)
5542 ac_count=0
5543 $as_echo_n 0123456789 >"conftest.in"
5544 while :
5545 do
5546 cat "conftest.in" "conftest.in" >"conftest.tmp"
5547 mv "conftest.tmp" "conftest.in"
5548 cp "conftest.in" "conftest.nl"
5549 $as_echo 'FGREP' >> "conftest.nl"
5550 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005552 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005553 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5554 # Best one so far, save it but keep looking for a better one
5555 ac_cv_path_FGREP="$ac_path_FGREP"
5556 ac_path_FGREP_max=$ac_count
5557 fi
5558 # 10*(2^10) chars as input seems more than enough
5559 test $ac_count -gt 10 && break
5560 done
5561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5562esac
5563
5564 $ac_path_FGREP_found && break 3
5565 done
5566 done
cristy8b350f62009-11-15 23:12:43 +00005567 done
cristy3ed852e2009-09-05 21:47:34 +00005568IFS=$as_save_IFS
5569 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00005570 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005571 fi
5572else
5573 ac_cv_path_FGREP=$FGREP
5574fi
5575
5576 fi
5577fi
cristy8b350f62009-11-15 23:12:43 +00005578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005579$as_echo "$ac_cv_path_FGREP" >&6; }
5580 FGREP="$ac_cv_path_FGREP"
5581
5582
5583test -z "$GREP" && GREP=grep
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
cristy932c9122009-11-19 13:57:03 +00005601ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5602ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5603ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5604
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5606$as_echo_n "checking how to print strings... " >&6; }
5607# Test print first, because it will be a builtin if present.
5608if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5609 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5610 ECHO='print -r --'
5611elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5612 ECHO='printf %s\n'
5613else
5614 # Use this function as a fallback that always works.
5615 func_fallback_echo ()
5616 {
5617 eval 'cat <<_LTECHO_EOF
5618$1
5619_LTECHO_EOF'
5620 }
5621 ECHO='func_fallback_echo'
5622fi
5623
5624# func_echo_all arg...
5625# Invoke $ECHO with all args, space-separated.
5626func_echo_all ()
5627{
5628 $ECHO ""
5629}
5630
5631case "$ECHO" in
5632 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5633$as_echo "printf" >&6; } ;;
5634 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5635$as_echo "print -r" >&6; } ;;
5636 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5637$as_echo "cat" >&6; } ;;
5638esac
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
cristy3ed852e2009-09-05 21:47:34 +00005653
5654
5655# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00005656if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005657 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5658else
5659 with_gnu_ld=no
5660fi
5661
5662ac_prog=ld
5663if test "$GCC" = yes; then
5664 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00005665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00005666$as_echo_n "checking for ld used by $CC... " >&6; }
5667 case $host in
5668 *-*-mingw*)
5669 # gcc leaves a trailing carriage return which upsets mingw
5670 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5671 *)
5672 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5673 esac
5674 case $ac_prog in
5675 # Accept absolute paths.
5676 [\\/]* | ?:[\\/]*)
5677 re_direlt='/[^/][^/]*/\.\./'
5678 # Canonicalize the pathname of ld
5679 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5680 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5681 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5682 done
5683 test -z "$LD" && LD="$ac_prog"
5684 ;;
5685 "")
5686 # If it fails, then pretend we aren't using GCC.
5687 ac_prog=ld
5688 ;;
5689 *)
5690 # If it is relative, then search for the first ld in PATH.
5691 with_gnu_ld=unknown
5692 ;;
5693 esac
5694elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00005695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005696$as_echo_n "checking for GNU ld... " >&6; }
5697else
cristy8b350f62009-11-15 23:12:43 +00005698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005699$as_echo_n "checking for non-GNU ld... " >&6; }
5700fi
cristy8b350f62009-11-15 23:12:43 +00005701if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005702 $as_echo_n "(cached) " >&6
5703else
5704 if test -z "$LD"; then
5705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5706 for ac_dir in $PATH; do
5707 IFS="$lt_save_ifs"
5708 test -z "$ac_dir" && ac_dir=.
5709 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5710 lt_cv_path_LD="$ac_dir/$ac_prog"
5711 # Check to see if the program is GNU ld. I'd rather use --version,
5712 # but apparently some variants of GNU ld only accept -v.
5713 # Break only if it was the GNU/non-GNU ld that we prefer.
5714 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5715 *GNU* | *'with BFD'*)
5716 test "$with_gnu_ld" != no && break
5717 ;;
5718 *)
5719 test "$with_gnu_ld" != yes && break
5720 ;;
5721 esac
5722 fi
5723 done
5724 IFS="$lt_save_ifs"
5725else
5726 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5727fi
5728fi
5729
5730LD="$lt_cv_path_LD"
5731if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00005732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00005733$as_echo "$LD" >&6; }
5734else
cristy8b350f62009-11-15 23:12:43 +00005735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005736$as_echo "no" >&6; }
5737fi
cristy8b350f62009-11-15 23:12:43 +00005738test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005740$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005741if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005742 $as_echo_n "(cached) " >&6
5743else
5744 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5745case `$LD -v 2>&1 </dev/null` in
5746*GNU* | *'with BFD'*)
5747 lt_cv_prog_gnu_ld=yes
5748 ;;
5749*)
5750 lt_cv_prog_gnu_ld=no
5751 ;;
5752esac
5753fi
cristy8b350f62009-11-15 23:12:43 +00005754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00005755$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5756with_gnu_ld=$lt_cv_prog_gnu_ld
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766if test -n "$ac_tool_prefix"; then
5767 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5768set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00005769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00005770$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005771if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005772 $as_echo_n "(cached) " >&6
5773else
5774 if test -n "$RANLIB"; then
5775 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5776else
5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778for as_dir in $PATH
5779do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00005783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00005785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005786 break 2
5787 fi
5788done
cristy8b350f62009-11-15 23:12:43 +00005789 done
cristy3ed852e2009-09-05 21:47:34 +00005790IFS=$as_save_IFS
5791
5792fi
5793fi
5794RANLIB=$ac_cv_prog_RANLIB
5795if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00005796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00005797$as_echo "$RANLIB" >&6; }
5798else
cristy8b350f62009-11-15 23:12:43 +00005799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005800$as_echo "no" >&6; }
5801fi
5802
5803
5804fi
5805if test -z "$ac_cv_prog_RANLIB"; then
5806 ac_ct_RANLIB=$RANLIB
5807 # Extract the first word of "ranlib", so it can be a program name with args.
5808set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00005809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00005810$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005811if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005812 $as_echo_n "(cached) " >&6
5813else
5814 if test -n "$ac_ct_RANLIB"; then
5815 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5816else
5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818for as_dir in $PATH
5819do
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005822 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00005823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00005825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005826 break 2
5827 fi
5828done
cristy8b350f62009-11-15 23:12:43 +00005829 done
cristy3ed852e2009-09-05 21:47:34 +00005830IFS=$as_save_IFS
5831
5832fi
5833fi
5834ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5835if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00005836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00005837$as_echo "$ac_ct_RANLIB" >&6; }
5838else
cristy8b350f62009-11-15 23:12:43 +00005839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005840$as_echo "no" >&6; }
5841fi
5842
5843 if test "x$ac_ct_RANLIB" = x; then
5844 RANLIB=":"
5845 else
5846 case $cross_compiling:$ac_tool_warned in
5847yes:)
cristy8b350f62009-11-15 23:12:43 +00005848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00005849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5850ac_tool_warned=yes ;;
5851esac
5852 RANLIB=$ac_ct_RANLIB
5853 fi
5854else
5855 RANLIB="$ac_cv_prog_RANLIB"
5856fi
5857
5858
5859if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00005860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00005861$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5862else
cristy8b350f62009-11-15 23:12:43 +00005863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00005864$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5865fi
5866set dummy $CC; ac_cc=`$as_echo "$2" |
5867 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00005868if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005869 $as_echo_n "(cached) " >&6
5870else
cristy8b350f62009-11-15 23:12:43 +00005871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005872/* end confdefs.h. */
5873
5874int
5875main ()
5876{
5877
5878 ;
5879 return 0;
5880}
5881_ACEOF
5882# Make sure it works both with $CC and with simple cc.
5883# We do the test twice because some compilers refuse to overwrite an
5884# existing .o file with -o, though they will create one.
5885ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5886rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00005887if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00005888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890esac
cristy8b350f62009-11-15 23:12:43 +00005891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5892$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005893 (eval "$ac_try") 2>&5
5894 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5896 test $ac_status = 0; } &&
5897 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00005898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5900esac
cristy8b350f62009-11-15 23:12:43 +00005901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5902$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005903 (eval "$ac_try") 2>&5
5904 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5906 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00005907then
5908 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5909 if test "x$CC" != xcc; then
5910 # Test first that cc exists at all.
5911 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00005912 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00005913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915esac
cristy8b350f62009-11-15 23:12:43 +00005916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5917$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005918 (eval "$ac_try") 2>&5
5919 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00005922 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5923 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00005924 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00005925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927esac
cristy8b350f62009-11-15 23:12:43 +00005928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5929$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005930 (eval "$ac_try") 2>&5
5931 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5933 test $ac_status = 0; } &&
5934 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00005935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937esac
cristy8b350f62009-11-15 23:12:43 +00005938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5939$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005940 (eval "$ac_try") 2>&5
5941 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5943 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00005944 then
5945 # cc works too.
5946 :
5947 else
5948 # cc exists but doesn't like -o.
5949 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5950 fi
5951 fi
5952 fi
5953else
5954 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5955fi
5956rm -f core conftest*
5957
5958fi
5959if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00005960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00005961$as_echo "yes" >&6; }
5962else
cristy8b350f62009-11-15 23:12:43 +00005963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005964$as_echo "no" >&6; }
5965
cristy8b350f62009-11-15 23:12:43 +00005966$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00005967
5968fi
5969
5970# FIXME: we rely on the cache variable name because
5971# there is no other way.
5972set dummy $CC
5973am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5974eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5975if test "$am_t" != yes; then
5976 # Losing compiler, so override with the script.
5977 # FIXME: It is wrong to rewrite CC.
5978 # But if we don't then we get into trouble of one sort or another.
5979 # A longer-term fix would be to have automake use am__CC in this case,
5980 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5981 CC="$am_aux_dir/compile $CC"
5982fi
5983
5984
cristy3ed852e2009-09-05 21:47:34 +00005985
cristy8b350f62009-11-15 23:12:43 +00005986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00005987$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5988set x ${MAKE-make}
5989ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00005990if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005991 $as_echo_n "(cached) " >&6
5992else
5993 cat >conftest.make <<\_ACEOF
5994SHELL = /bin/sh
5995all:
5996 @echo '@@@%%%=$(MAKE)=@@@%%%'
5997_ACEOF
5998# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5999case `${MAKE-make} -f conftest.make 2>/dev/null` in
6000 *@@@%%%=?*=@@@%%%*)
6001 eval ac_cv_prog_make_${ac_make}_set=yes;;
6002 *)
6003 eval ac_cv_prog_make_${ac_make}_set=no;;
6004esac
6005rm -f conftest.make
6006fi
6007if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00006008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006009$as_echo "yes" >&6; }
6010 SET_MAKE=
6011else
cristy8b350f62009-11-15 23:12:43 +00006012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006013$as_echo "no" >&6; }
6014 SET_MAKE="MAKE=${MAKE-make}"
6015fi
6016
6017ac_ext=cpp
6018ac_cpp='$CXXCPP $CPPFLAGS'
6019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6022if test -z "$CXX"; then
6023 if test -n "$CCC"; then
6024 CXX=$CCC
6025 else
6026 if test -n "$ac_tool_prefix"; then
6027 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6028 do
6029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6030set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006032$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006033if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006034 $as_echo_n "(cached) " >&6
6035else
6036 if test -n "$CXX"; then
6037 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6038else
6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH
6041do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006044 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00006047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006048 break 2
6049 fi
6050done
cristy8b350f62009-11-15 23:12:43 +00006051 done
cristy3ed852e2009-09-05 21:47:34 +00006052IFS=$as_save_IFS
6053
6054fi
6055fi
6056CXX=$ac_cv_prog_CXX
6057if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +00006058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +00006059$as_echo "$CXX" >&6; }
6060else
cristy8b350f62009-11-15 23:12:43 +00006061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006062$as_echo "no" >&6; }
6063fi
6064
6065
6066 test -n "$CXX" && break
6067 done
6068fi
6069if test -z "$CXX"; then
6070 ac_ct_CXX=$CXX
6071 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6072do
6073 # Extract the first word of "$ac_prog", so it can be a program name with args.
6074set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006076$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006077if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006078 $as_echo_n "(cached) " >&6
6079else
6080 if test -n "$ac_ct_CXX"; then
6081 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6082else
6083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084for as_dir in $PATH
6085do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006088 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6090 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00006091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006092 break 2
6093 fi
6094done
cristy8b350f62009-11-15 23:12:43 +00006095 done
cristy3ed852e2009-09-05 21:47:34 +00006096IFS=$as_save_IFS
6097
6098fi
6099fi
6100ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6101if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +00006102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +00006103$as_echo "$ac_ct_CXX" >&6; }
6104else
cristy8b350f62009-11-15 23:12:43 +00006105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006106$as_echo "no" >&6; }
6107fi
6108
6109
6110 test -n "$ac_ct_CXX" && break
6111done
6112
6113 if test "x$ac_ct_CXX" = x; then
6114 CXX="g++"
6115 else
6116 case $cross_compiling:$ac_tool_warned in
6117yes:)
cristy8b350f62009-11-15 23:12:43 +00006118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120ac_tool_warned=yes ;;
6121esac
6122 CXX=$ac_ct_CXX
6123 fi
6124fi
6125
6126 fi
6127fi
6128# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00006129$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00006130set X $ac_compile
6131ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00006132for ac_option in --version -v -V -qversion; do
6133 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00006134case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6137esac
cristy8b350f62009-11-15 23:12:43 +00006138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6139$as_echo "$ac_try_echo"; } >&5
6140 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00006141 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006142 if test -s conftest.err; then
6143 sed '10a\
6144... rest of stderr output deleted ...
6145 10q' conftest.err >conftest.er1
6146 cat conftest.er1 >&5
6147 rm -f conftest.er1 conftest.err
6148 fi
6149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6150 test $ac_status = 0; }
6151done
cristy3ed852e2009-09-05 21:47:34 +00006152
cristy8b350f62009-11-15 23:12:43 +00006153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00006154$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006155if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006156 $as_echo_n "(cached) " >&6
6157else
cristy8b350f62009-11-15 23:12:43 +00006158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006159/* end confdefs.h. */
6160
6161int
6162main ()
6163{
6164#ifndef __GNUC__
6165 choke me
6166#endif
6167
6168 ;
6169 return 0;
6170}
6171_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006172if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006173 ac_compiler_gnu=yes
6174else
cristy8b350f62009-11-15 23:12:43 +00006175 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00006176fi
cristy3ed852e2009-09-05 21:47:34 +00006177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6179
6180fi
cristy8b350f62009-11-15 23:12:43 +00006181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00006182$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6183if test $ac_compiler_gnu = yes; then
6184 GXX=yes
6185else
6186 GXX=
6187fi
6188ac_test_CXXFLAGS=${CXXFLAGS+set}
6189ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +00006190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00006191$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006192if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006193 $as_echo_n "(cached) " >&6
6194else
6195 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6196 ac_cxx_werror_flag=yes
6197 ac_cv_prog_cxx_g=no
6198 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00006199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006200/* end confdefs.h. */
6201
6202int
6203main ()
6204{
6205
6206 ;
6207 return 0;
6208}
6209_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006210if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006211 ac_cv_prog_cxx_g=yes
6212else
cristy8b350f62009-11-15 23:12:43 +00006213 CXXFLAGS=""
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006215/* end confdefs.h. */
6216
6217int
6218main ()
6219{
6220
6221 ;
6222 return 0;
6223}
6224_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006225if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006226
cristy8b350f62009-11-15 23:12:43 +00006227else
6228 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00006229 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00006230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006231/* end confdefs.h. */
6232
6233int
6234main ()
6235{
6236
6237 ;
6238 return 0;
6239}
6240_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006241if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006242 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +00006243fi
cristy3ed852e2009-09-05 21:47:34 +00006244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245fi
cristy3ed852e2009-09-05 21:47:34 +00006246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6247fi
cristy3ed852e2009-09-05 21:47:34 +00006248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6250fi
cristy8b350f62009-11-15 23:12:43 +00006251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00006252$as_echo "$ac_cv_prog_cxx_g" >&6; }
6253if test "$ac_test_CXXFLAGS" = set; then
6254 CXXFLAGS=$ac_save_CXXFLAGS
6255elif test $ac_cv_prog_cxx_g = yes; then
6256 if test "$GXX" = yes; then
6257 CXXFLAGS="-g -O2"
6258 else
6259 CXXFLAGS="-g"
6260 fi
6261else
6262 if test "$GXX" = yes; then
6263 CXXFLAGS="-O2"
6264 else
6265 CXXFLAGS=
6266 fi
6267fi
6268ac_ext=c
6269ac_cpp='$CPP $CPPFLAGS'
6270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6272ac_compiler_gnu=$ac_cv_c_compiler_gnu
6273
6274depcc="$CXX" am_compiler_list=
6275
cristy8b350f62009-11-15 23:12:43 +00006276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006277$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006278if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006279 $as_echo_n "(cached) " >&6
6280else
6281 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6282 # We make a subdir and do the tests there. Otherwise we can end up
6283 # making bogus files that we don't know about and never remove. For
6284 # instance it was reported that on HP-UX the gcc test will end up
6285 # making a dummy file named `D' -- because `-MD' means `put the output
6286 # in D'.
6287 mkdir conftest.dir
6288 # Copy depcomp to subdir because otherwise we won't find it if we're
6289 # using a relative directory.
6290 cp "$am_depcomp" conftest.dir
6291 cd conftest.dir
6292 # We will build objects and dependencies in a subdirectory because
6293 # it helps to detect inapplicable dependency modes. For instance
6294 # both Tru64's cc and ICC support -MD to output dependencies as a
6295 # side effect of compilation, but ICC will put the dependencies in
6296 # the current directory while Tru64 will put them in the object
6297 # directory.
6298 mkdir sub
6299
6300 am_cv_CXX_dependencies_compiler_type=none
6301 if test "$am_compiler_list" = ""; then
6302 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6303 fi
6304 am__universal=false
6305 case " $depcc " in #(
6306 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6307 esac
6308
6309 for depmode in $am_compiler_list; do
6310 # Setup a source with many dependencies, because some compilers
6311 # like to wrap large dependency lists on column 80 (with \), and
6312 # we should not choose a depcomp mode which is confused by this.
6313 #
6314 # We need to recreate these files for each test, as the compiler may
6315 # overwrite some of them when testing with obscure command lines.
6316 # This happens at least with the AIX C compiler.
6317 : > sub/conftest.c
6318 for i in 1 2 3 4 5 6; do
6319 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6320 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6321 # Solaris 8's {/usr,}/bin/sh.
6322 touch sub/conftst$i.h
6323 done
6324 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6325
6326 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6327 # mode. It turns out that the SunPro C++ compiler does not properly
6328 # handle `-M -o', and we need to detect this. Also, some Intel
6329 # versions had trouble with output in subdirs
6330 am__obj=sub/conftest.${OBJEXT-o}
6331 am__minus_obj="-o $am__obj"
6332 case $depmode in
6333 gcc)
6334 # This depmode causes a compiler race in universal mode.
6335 test "$am__universal" = false || continue
6336 ;;
6337 nosideeffect)
6338 # after this tag, mechanisms are not by side-effect, so they'll
6339 # only be used when explicitly requested
6340 if test "x$enable_dependency_tracking" = xyes; then
6341 continue
6342 else
6343 break
6344 fi
6345 ;;
6346 msvisualcpp | msvcmsys)
6347 # This compiler won't grok `-c -o', but also, the minuso test has
6348 # not run yet. These depmodes are late enough in the game, and
6349 # so weak that their functioning should not be impacted.
6350 am__obj=conftest.${OBJEXT-o}
6351 am__minus_obj=
6352 ;;
6353 none) break ;;
6354 esac
6355 if depmode=$depmode \
6356 source=sub/conftest.c object=$am__obj \
6357 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6358 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6359 >/dev/null 2>conftest.err &&
6360 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6361 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6362 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6363 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6364 # icc doesn't choke on unknown options, it will just issue warnings
6365 # or remarks (even with -Werror). So we grep stderr for any message
6366 # that says an option was ignored or not supported.
6367 # When given -MP, icc 7.0 and 7.1 complain thusly:
6368 # icc: Command line warning: ignoring option '-M'; no argument required
6369 # The diagnosis changed in icc 8.0:
6370 # icc: Command line remark: option '-MP' not supported
6371 if (grep 'ignoring option' conftest.err ||
6372 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6373 am_cv_CXX_dependencies_compiler_type=$depmode
6374 break
6375 fi
6376 fi
6377 done
6378
6379 cd ..
6380 rm -rf conftest.dir
6381else
6382 am_cv_CXX_dependencies_compiler_type=none
6383fi
6384
6385fi
cristy8b350f62009-11-15 23:12:43 +00006386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006387$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6388CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6389
6390 if
6391 test "x$enable_dependency_tracking" != xno \
6392 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6393 am__fastdepCXX_TRUE=
6394 am__fastdepCXX_FALSE='#'
6395else
6396 am__fastdepCXX_TRUE='#'
6397 am__fastdepCXX_FALSE=
6398fi
6399
6400
6401
cristy8b350f62009-11-15 23:12:43 +00006402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006403$as_echo_n "checking maximum warning verbosity option... " >&6; }
6404
6405
6406
6407
6408# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00006409if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006410 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6411else
6412 ac_compile_warnings_on=""
6413fi
6414
6415
6416 if test x"$ac_compile_warnings_on" = xno
6417 then
6418 ac_compile_warnings_msg=no
6419 else
6420 if test -n "$CXX"
6421 then
6422 if test "$GXX" = "yes"
6423 then
6424 ac_compile_warnings_opt='-Wall -W'
6425 fi
6426 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6427 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6428 fi
6429
6430 if test -n "$CC"
6431 then
6432 if test "$GCC" = "yes"
6433 then
6434 ac_compile_warnings_opt='-Wall -W'
6435 fi
6436 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6437 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6438 fi
6439 fi
cristy8b350f62009-11-15 23:12:43 +00006440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00006441$as_echo "$ac_compile_warnings_msg" >&6; }
6442 unset ac_compile_warnings_msg
6443 unset ac_compile_warnings_opt
6444
cristy8b350f62009-11-15 23:12:43 +00006445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00006446$as_echo_n "checking whether ln -s works... " >&6; }
6447LN_S=$as_ln_s
6448if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00006449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006450$as_echo "yes" >&6; }
6451else
cristy8b350f62009-11-15 23:12:43 +00006452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00006453$as_echo "no, using $LN_S" >&6; }
6454fi
6455
cristy8b350f62009-11-15 23:12:43 +00006456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00006457$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6458
6459# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00006460if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006461 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006463$as_echo "yes" >&6; }
6464
cristy8b350f62009-11-15 23:12:43 +00006465$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006466
6467 LIBS="$LIBS -ldmalloc"
6468 LDFLAGS="$LDFLAGS -g"
6469else
cristy8b350f62009-11-15 23:12:43 +00006470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006471$as_echo "no" >&6; }
6472fi
6473else
cristy8b350f62009-11-15 23:12:43 +00006474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006475$as_echo "no" >&6; }
6476fi
6477
6478
6479
6480
6481if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6482 if test -n "$ac_tool_prefix"; then
6483 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6484set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006486$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006487if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006488 $as_echo_n "(cached) " >&6
6489else
6490 case $PKG_CONFIG in
6491 [\\/]* | ?:[\\/]*)
6492 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6493 ;;
6494 *)
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496for as_dir in $PATH
6497do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006504 break 2
6505 fi
6506done
cristy8b350f62009-11-15 23:12:43 +00006507 done
cristy3ed852e2009-09-05 21:47:34 +00006508IFS=$as_save_IFS
6509
6510 ;;
6511esac
6512fi
6513PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6514if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006516$as_echo "$PKG_CONFIG" >&6; }
6517else
cristy8b350f62009-11-15 23:12:43 +00006518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006519$as_echo "no" >&6; }
6520fi
6521
6522
6523fi
6524if test -z "$ac_cv_path_PKG_CONFIG"; then
6525 ac_pt_PKG_CONFIG=$PKG_CONFIG
6526 # Extract the first word of "pkg-config", so it can be a program name with args.
6527set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006529$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006530if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006531 $as_echo_n "(cached) " >&6
6532else
6533 case $ac_pt_PKG_CONFIG in
6534 [\\/]* | ?:[\\/]*)
6535 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6536 ;;
6537 *)
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006547 break 2
6548 fi
6549done
cristy8b350f62009-11-15 23:12:43 +00006550 done
cristy3ed852e2009-09-05 21:47:34 +00006551IFS=$as_save_IFS
6552
6553 ;;
6554esac
6555fi
6556ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6557if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006559$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6560else
cristy8b350f62009-11-15 23:12:43 +00006561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006562$as_echo "no" >&6; }
6563fi
6564
6565 if test "x$ac_pt_PKG_CONFIG" = x; then
6566 PKG_CONFIG=""
6567 else
6568 case $cross_compiling:$ac_tool_warned in
6569yes:)
cristy8b350f62009-11-15 23:12:43 +00006570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6572ac_tool_warned=yes ;;
6573esac
6574 PKG_CONFIG=$ac_pt_PKG_CONFIG
6575 fi
6576else
6577 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6578fi
6579
6580fi
6581if test -n "$PKG_CONFIG"; then
6582 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00006583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00006584$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6585 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00006586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006587$as_echo "yes" >&6; }
6588 else
cristy8b350f62009-11-15 23:12:43 +00006589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006590$as_echo "no" >&6; }
6591 PKG_CONFIG=""
6592 fi
6593
6594fi
6595
6596#
6597# Enable OS features.
6598#
6599
6600
cristy8b350f62009-11-15 23:12:43 +00006601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +00006602$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006603if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006604 $as_echo_n "(cached) " >&6
6605else
cristy8b350f62009-11-15 23:12:43 +00006606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006607/* end confdefs.h. */
6608#include <stdlib.h>
6609#include <stdarg.h>
6610#include <string.h>
6611#include <float.h>
6612
6613int
6614main ()
6615{
6616
6617 ;
6618 return 0;
6619}
6620_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006621if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006622 ac_cv_header_stdc=yes
6623else
cristy8b350f62009-11-15 23:12:43 +00006624 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006625fi
cristy3ed852e2009-09-05 21:47:34 +00006626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627
6628if test $ac_cv_header_stdc = yes; then
6629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006631/* end confdefs.h. */
6632#include <string.h>
6633
6634_ACEOF
6635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006636 $EGREP "memchr" >/dev/null 2>&1; then :
6637
cristy3ed852e2009-09-05 21:47:34 +00006638else
6639 ac_cv_header_stdc=no
6640fi
6641rm -f conftest*
6642
6643fi
6644
6645if test $ac_cv_header_stdc = yes; then
6646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006648/* end confdefs.h. */
6649#include <stdlib.h>
6650
6651_ACEOF
6652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006653 $EGREP "free" >/dev/null 2>&1; then :
6654
cristy3ed852e2009-09-05 21:47:34 +00006655else
6656 ac_cv_header_stdc=no
6657fi
6658rm -f conftest*
6659
6660fi
6661
6662if test $ac_cv_header_stdc = yes; then
6663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +00006664 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006665 :
6666else
cristy8b350f62009-11-15 23:12:43 +00006667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006668/* end confdefs.h. */
6669#include <ctype.h>
6670#include <stdlib.h>
6671#if ((' ' & 0x0FF) == 0x020)
6672# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6673# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6674#else
6675# define ISLOWER(c) \
6676 (('a' <= (c) && (c) <= 'i') \
6677 || ('j' <= (c) && (c) <= 'r') \
6678 || ('s' <= (c) && (c) <= 'z'))
6679# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6680#endif
6681
6682#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6683int
6684main ()
6685{
6686 int i;
6687 for (i = 0; i < 256; i++)
6688 if (XOR (islower (i), ISLOWER (i))
6689 || toupper (i) != TOUPPER (i))
6690 return 2;
6691 return 0;
6692}
6693_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006694if ac_fn_c_try_run "$LINENO"; then :
6695
cristy3ed852e2009-09-05 21:47:34 +00006696else
cristy8b350f62009-11-15 23:12:43 +00006697 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006698fi
cristy8b350f62009-11-15 23:12:43 +00006699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6700 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006701fi
6702
cristy3ed852e2009-09-05 21:47:34 +00006703fi
6704fi
cristy8b350f62009-11-15 23:12:43 +00006705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006706$as_echo "$ac_cv_header_stdc" >&6; }
6707if test $ac_cv_header_stdc = yes; then
6708
cristy8b350f62009-11-15 23:12:43 +00006709$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006710
6711fi
6712
6713# On IRIX 5.3, sys/types and inttypes.h are conflicting.
cristy3ed852e2009-09-05 21:47:34 +00006714for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6715 inttypes.h stdint.h unistd.h
cristy8b350f62009-11-15 23:12:43 +00006716do :
6717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6718ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6719"
6720eval as_val=\$$as_ac_Header
6721 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006722 cat >>confdefs.h <<_ACEOF
6723#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6724_ACEOF
6725
6726fi
6727
6728done
6729
6730
6731
cristy8b350f62009-11-15 23:12:43 +00006732 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6733if test "x$ac_cv_header_minix_config_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006734 MINIX=yes
6735else
6736 MINIX=
6737fi
6738
6739
6740 if test "$MINIX" = yes; then
6741
cristy8b350f62009-11-15 23:12:43 +00006742$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006743
6744
cristy8b350f62009-11-15 23:12:43 +00006745$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006746
6747
cristy8b350f62009-11-15 23:12:43 +00006748$as_echo "#define _MINIX 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006749
6750 fi
6751
6752
cristy8b350f62009-11-15 23:12:43 +00006753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006754$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006755if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006756 $as_echo_n "(cached) " >&6
6757else
cristy8b350f62009-11-15 23:12:43 +00006758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006759/* end confdefs.h. */
6760
6761# define __EXTENSIONS__ 1
6762 $ac_includes_default
6763int
6764main ()
6765{
6766
6767 ;
6768 return 0;
6769}
6770_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006771if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006772 ac_cv_safe_to_define___extensions__=yes
6773else
cristy8b350f62009-11-15 23:12:43 +00006774 ac_cv_safe_to_define___extensions__=no
cristy3ed852e2009-09-05 21:47:34 +00006775fi
cristy3ed852e2009-09-05 21:47:34 +00006776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777fi
cristy8b350f62009-11-15 23:12:43 +00006778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006779$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6780 test $ac_cv_safe_to_define___extensions__ = yes &&
cristy8b350f62009-11-15 23:12:43 +00006781 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006782
cristy8b350f62009-11-15 23:12:43 +00006783 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006784
cristy8b350f62009-11-15 23:12:43 +00006785 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006786
cristy8b350f62009-11-15 23:12:43 +00006787 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006788
cristy8b350f62009-11-15 23:12:43 +00006789 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6790
cristy3ed852e2009-09-05 21:47:34 +00006791
6792
6793
6794#
6795# Enable run-time checking.
6796#
6797# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00006798if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006799 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6800else
6801 enable_bounds_checking='no'
6802fi
6803
6804
6805if test "$enable_bounds_checking" = yes; then
6806
cristy8b350f62009-11-15 23:12:43 +00006807$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006808
6809fi
6810
6811#
6812# Tests for Windows
6813#
6814
6815
6816
6817GDI32_LIBS=''
6818StaticCplusPlusLibraries='no'
6819native_win32_build='no'
6820cygwin_build='no'
6821case "${host_os}" in
6822 cygwin* )
6823 StaticCplusPlusLibraries='yes'
6824 cygwin_build='yes'
6825 GDI32_LIBS='-lgdi32'
6826 ;;
6827 mingw* )
6828 StaticCplusPlusLibraries='yes'
6829 native_win32_build='yes'
6830 GDI32_LIBS='-lgdi32'
6831 ;;
6832esac
6833if test "${GDI32_LIBS}x" != 'x'; then
6834
cristy8b350f62009-11-15 23:12:43 +00006835$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006836
6837fi
6838
6839 if test "${GDI32_LIBS}x" != 'x' ; then
6840 WINGDI32_DELEGATE_TRUE=
6841 WINGDI32_DELEGATE_FALSE='#'
6842else
6843 WINGDI32_DELEGATE_TRUE='#'
6844 WINGDI32_DELEGATE_FALSE=
6845fi
6846
6847 if test "${native_win32_build}" = 'yes' ; then
6848 WIN32_NATIVE_BUILD_TRUE=
6849 WIN32_NATIVE_BUILD_FALSE='#'
6850else
6851 WIN32_NATIVE_BUILD_TRUE='#'
6852 WIN32_NATIVE_BUILD_FALSE=
6853fi
6854
6855 if test "${cygwin_build}" = 'yes' ; then
6856 CYGWIN_BUILD_TRUE=
6857 CYGWIN_BUILD_FALSE='#'
6858else
6859 CYGWIN_BUILD_TRUE='#'
6860 CYGWIN_BUILD_FALSE=
6861fi
6862
6863 if test "x${CC}" = 'xcl.exe' ; then
6864 USING_CL_TRUE=
6865 USING_CL_FALSE='#'
6866else
6867 USING_CL_TRUE='#'
6868 USING_CL_FALSE=
6869fi
6870
6871
6872WinPathScript="${srcdirfull}/winpath.sh"
6873
6874
6875#
6876# Compiler flags tweaks
6877#
6878if test "${GCC}" != "yes"; then
6879 case "${host}" in
6880 *-*-hpux* )
6881 # aCC: HP ANSI C++ B3910B A.03.34
6882 CFLAGS="${CFLAGS} -Wp,-H30000"
6883 if test -n "${CXXFLAGS}"; then
6884 CXXFLAGS='-AA'
6885 else
6886 CXXFLAGS="${CXXFLAGS} -AA"
6887 fi
6888 ;;
6889 *-dec-osf5.* )
6890 # Compaq alphaev68-dec-osf5.1 compiler
6891 if test -n "${CXXFLAGS}"; then
6892 CXXFLAGS='-std strict_ansi -noimplicit_include'
6893 else
6894 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
6895 fi
6896 esac
6897fi
6898
6899# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00006900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006901$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006902if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006903 $as_echo_n "(cached) " >&6
6904else
6905
6906im_cv_ld_lazyload='none'
6907case "${host}" in
6908 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
6909 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
6910 im_cv_ld_lazyload='-Wl,-zlazyload'
6911 fi
6912 ;;
6913esac
6914
6915fi
cristy8b350f62009-11-15 23:12:43 +00006916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00006917$as_echo "$im_cv_ld_lazyload" >&6; }
6918if test "${im_cv_ld_lazyload}" != 'none' ; then
6919 if test -z "${LDFLAGS}" ; then
6920 LDFLAGS="${im_cv_ld_lazyload}"
6921 else
6922 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
6923 fi
6924fi
6925
6926case "$host" in
6927*darwin* | *-macos10*)
6928 if test -d /opt/local ; then
6929 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
6930 LDFLAGS="$LDFLAGS -L/opt/local/lib"
6931 elif test -d /sw ; then
6932 CPPFLAGS="$CPPFLAGS -I/sw/include"
6933 LDFLAGS="$LDFLAGS -L/sw/lib"
6934 fi
6935 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00006936if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006937 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
6938else
6939 build_osxuniversal=no
6940fi
6941
6942
6943 if test "${build_osxuniversal}" != no ; then
6944 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00006945 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00006946Please re-run configure with these options:
6947 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00006948 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006949 fi
6950 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
6951 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
6952 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
6953 fi
6954 ;;
6955esac
6956
6957# Enable support for threads
6958
6959# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00006960if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006961 withval=$with_threads; with_threads=$withval
6962else
6963 with_threads='yes'
6964fi
6965
6966
6967have_threads=no
6968if test "$with_threads" != 'no'; then
6969
6970
6971
6972ac_ext=c
6973ac_cpp='$CPP $CPPFLAGS'
6974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976ac_compiler_gnu=$ac_cv_c_compiler_gnu
6977
6978acx_pthread_ok=no
6979
6980# We used to check for pthread.h first, but this fails if pthread.h
6981# requires special compiler flags (e.g. on True64 or Sequent).
6982# It gets checked for in the link test anyway.
6983
6984# First of all, check if the user has set any of the PTHREAD_LIBS,
6985# etcetera environment variables, and if threads linking works using
6986# them:
6987if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
6988 save_CFLAGS="$CFLAGS"
6989 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6990 save_LIBS="$LIBS"
6991 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00006992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
cristy3ed852e2009-09-05 21:47:34 +00006993$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006995/* end confdefs.h. */
6996
6997/* Override any GCC internal prototype to avoid an error.
6998 Use char because int might match the return type of a GCC
6999 builtin and then its argument prototype would still apply. */
7000#ifdef __cplusplus
7001extern "C"
7002#endif
7003char pthread_join ();
7004int
7005main ()
7006{
7007return pthread_join ();
7008 ;
7009 return 0;
7010}
7011_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007012if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007013 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007014fi
cristy8b350f62009-11-15 23:12:43 +00007015rm -f core conftest.err conftest.$ac_objext \
7016 conftest$ac_exeext conftest.$ac_ext
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007018$as_echo "$acx_pthread_ok" >&6; }
7019 if test x"$acx_pthread_ok" = xno; then
7020 PTHREAD_LIBS=""
7021 PTHREAD_CFLAGS=""
7022 fi
7023 LIBS="$save_LIBS"
7024 CFLAGS="$save_CFLAGS"
7025fi
7026
7027# We must check for the threads library under a number of different
7028# names; the ordering is very important because some systems
7029# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7030# libraries is broken (non-POSIX).
7031
7032# Create a list of thread flags to try. Items starting with a "-" are
7033# C compiler flags, and other items are library names, except for "none"
7034# which indicates that we try without any flags at all, and "pthread-config"
7035# which is a program returning the flags for the Pth emulation library.
7036
7037acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7038
7039# The ordering *is* (sometimes) important. Some notes on the
7040# individual items follow:
7041
7042# pthreads: AIX (must check this before -lpthread)
7043# none: in case threads are in libc; should be tried before -Kthread and
7044# other compiler flags to prevent continual compiler warnings
7045# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7046# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7047# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7048# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7049# -pthreads: Solaris/gcc
7050# -mthreads: Mingw32/gcc, Lynx/gcc
7051# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7052# doesn't hurt to check since this sometimes defines pthreads too;
7053# also defines -D_REENTRANT)
7054# ... -mt is also the pthreads flag for HP/aCC
7055# pthread: Linux, etcetera
7056# --thread-safe: KAI C++
7057# pthread-config: use pthread-config program (for GNU Pth library)
7058
7059case "${host_cpu}-${host_os}" in
7060 *solaris*)
7061
7062 # On Solaris (at least, for some versions), libc contains stubbed
7063 # (non-functional) versions of the pthreads routines, so link-based
7064 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7065 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7066 # a function called by this macro, so we could check for that, but
7067 # who knows whether they'll stub that too in a future libc.) So,
7068 # we'll just look for -pthreads and -lpthread first:
7069
7070 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7071 ;;
cristy3ed852e2009-09-05 21:47:34 +00007072esac
7073
7074if test x"$acx_pthread_ok" = xno; then
7075for flag in $acx_pthread_flags; do
7076
7077 case $flag in
7078 none)
cristy8b350f62009-11-15 23:12:43 +00007079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00007080$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7081 ;;
7082
7083 -*)
cristy8b350f62009-11-15 23:12:43 +00007084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007085$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7086 PTHREAD_CFLAGS="$flag"
7087 ;;
7088
7089 pthread-config)
7090 # Extract the first word of "pthread-config", so it can be a program name with args.
7091set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007093$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007094if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007095 $as_echo_n "(cached) " >&6
7096else
7097 if test -n "$acx_pthread_config"; then
7098 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7099else
7100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101for as_dir in $PATH
7102do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007105 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00007108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007109 break 2
7110 fi
7111done
cristy8b350f62009-11-15 23:12:43 +00007112 done
cristy3ed852e2009-09-05 21:47:34 +00007113IFS=$as_save_IFS
7114
7115 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7116fi
7117fi
7118acx_pthread_config=$ac_cv_prog_acx_pthread_config
7119if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00007120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00007121$as_echo "$acx_pthread_config" >&6; }
7122else
cristy8b350f62009-11-15 23:12:43 +00007123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007124$as_echo "no" >&6; }
7125fi
7126
7127
7128 if test x"$acx_pthread_config" = xno; then continue; fi
7129 PTHREAD_CFLAGS="`pthread-config --cflags`"
7130 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7131 ;;
7132
7133 *)
cristy8b350f62009-11-15 23:12:43 +00007134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007135$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7136 PTHREAD_LIBS="-l$flag"
7137 ;;
7138 esac
7139
7140 save_LIBS="$LIBS"
7141 save_CFLAGS="$CFLAGS"
7142 LIBS="$PTHREAD_LIBS $LIBS"
7143 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7144
7145 # Check for various functions. We must include pthread.h,
7146 # since some functions may be macros. (On the Sequent, we
7147 # need a special flag -Kthread to make this header compile.)
7148 # We check for pthread_join because it is in -lpthread on IRIX
7149 # while pthread_create is in libc. We check for pthread_attr_init
7150 # due to DEC craziness with -lpthreads. We check for
7151 # pthread_cleanup_push because it is one of the few pthread
7152 # functions on Solaris that doesn't have a non-functional libc stub.
7153 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00007154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007155/* end confdefs.h. */
7156#include <pthread.h>
7157int
7158main ()
7159{
7160pthread_t th; pthread_join(th, 0);
7161 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7162 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7163 ;
7164 return 0;
7165}
7166_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007167if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007168 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007169fi
cristy8b350f62009-11-15 23:12:43 +00007170rm -f core conftest.err conftest.$ac_objext \
7171 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007172
7173 LIBS="$save_LIBS"
7174 CFLAGS="$save_CFLAGS"
7175
cristy8b350f62009-11-15 23:12:43 +00007176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007177$as_echo "$acx_pthread_ok" >&6; }
7178 if test "x$acx_pthread_ok" = xyes; then
7179 break;
7180 fi
7181
7182 PTHREAD_LIBS=""
7183 PTHREAD_CFLAGS=""
7184done
7185fi
7186
7187# Various other checks:
7188if test "x$acx_pthread_ok" = xyes; then
7189 save_LIBS="$LIBS"
7190 LIBS="$PTHREAD_LIBS $LIBS"
7191 save_CFLAGS="$CFLAGS"
7192 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7193
7194 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00007195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00007196$as_echo_n "checking for joinable pthread attribute... " >&6; }
7197 attr_name=unknown
7198 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00007199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007200/* end confdefs.h. */
7201#include <pthread.h>
7202int
7203main ()
7204{
7205int attr=$attr; return attr;
7206 ;
7207 return 0;
7208}
7209_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007210if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007211 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00007212fi
cristy8b350f62009-11-15 23:12:43 +00007213rm -f core conftest.err conftest.$ac_objext \
7214 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007215 done
cristy8b350f62009-11-15 23:12:43 +00007216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00007217$as_echo "$attr_name" >&6; }
7218 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7219
7220cat >>confdefs.h <<_ACEOF
7221#define PTHREAD_CREATE_JOINABLE $attr_name
7222_ACEOF
7223
7224 fi
7225
cristy8b350f62009-11-15 23:12:43 +00007226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00007227$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7228 flag=no
7229 case "${host_cpu}-${host_os}" in
7230 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7231 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7232 esac
cristy8b350f62009-11-15 23:12:43 +00007233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00007234$as_echo "${flag}" >&6; }
7235 if test "x$flag" != xno; then
7236 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7237 fi
7238
7239 LIBS="$save_LIBS"
7240 CFLAGS="$save_CFLAGS"
7241
7242 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00007243 if test x"$GCC" != xyes; then
7244 for ac_prog in xlc_r cc_r
7245do
7246 # Extract the first word of "$ac_prog", so it can be a program name with args.
7247set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007249$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007250if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007251 $as_echo_n "(cached) " >&6
7252else
7253 if test -n "$PTHREAD_CC"; then
7254 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7255else
7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007261 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy736173a2009-09-20 21:18:22 +00007263 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00007264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007265 break 2
7266 fi
7267done
cristy8b350f62009-11-15 23:12:43 +00007268 done
cristy3ed852e2009-09-05 21:47:34 +00007269IFS=$as_save_IFS
7270
cristy3ed852e2009-09-05 21:47:34 +00007271fi
7272fi
7273PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7274if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007276$as_echo "$PTHREAD_CC" >&6; }
7277else
cristy8b350f62009-11-15 23:12:43 +00007278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007279$as_echo "no" >&6; }
7280fi
7281
cristy736173a2009-09-20 21:18:22 +00007282
7283 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00007284done
cristy736173a2009-09-20 21:18:22 +00007285test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00007286
cristy736173a2009-09-20 21:18:22 +00007287 else
7288 PTHREAD_CC=$CC
7289 fi
cristy3ed852e2009-09-05 21:47:34 +00007290else
cristy736173a2009-09-20 21:18:22 +00007291 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00007292fi
7293
cristy3ed852e2009-09-05 21:47:34 +00007294
7295
7296
7297
7298# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7299if test x"$acx_pthread_ok" = xyes; then
7300
cristy8b350f62009-11-15 23:12:43 +00007301$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007302
7303 :
7304else
7305 acx_pthread_ok=no
7306
7307fi
7308ac_ext=c
7309ac_cpp='$CPP $CPPFLAGS'
7310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7312ac_compiler_gnu=$ac_cv_c_compiler_gnu
7313
7314
7315 if test "$acx_pthread_ok" = yes; then
7316 have_threads=yes
7317 DEF_THREAD="$PTHREAD_CFLAGS"
7318 CFLAGS="$CFLAGS $DEF_THREAD"
7319 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7320 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007321 { $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 +00007322$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7323 CC="$PTHREAD_CC"
7324 fi
7325 fi
7326fi
7327
7328# Enable support for OpenMP
7329if test "$have_threads" != 'yes'; then
7330 ac_cv_prog_c_openmp=unsupported
7331fi
7332
7333 OPENMP_CFLAGS=
7334 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00007335if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007336 enableval=$enable_openmp;
7337fi
7338
7339 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00007340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007341$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007342if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007343 $as_echo_n "(cached) " >&6
7344else
cristy8b350f62009-11-15 23:12:43 +00007345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007347
7348#ifndef _OPENMP
7349 choke me
7350#endif
7351#include <omp.h>
7352int main () { return omp_get_num_threads (); }
7353
7354_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007355if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007356 ac_cv_prog_c_openmp='none needed'
7357else
cristy8b350f62009-11-15 23:12:43 +00007358 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00007359 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7360 ac_save_CFLAGS=$CFLAGS
7361 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00007362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007364
7365#ifndef _OPENMP
7366 choke me
7367#endif
7368#include <omp.h>
7369int main () { return omp_get_num_threads (); }
7370
7371_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007372if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007373 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00007374fi
cristy8b350f62009-11-15 23:12:43 +00007375rm -f core conftest.err conftest.$ac_objext \
7376 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007377 CFLAGS=$ac_save_CFLAGS
7378 if test "$ac_cv_prog_c_openmp" != unsupported; then
7379 break
7380 fi
7381 done
7382fi
cristy8b350f62009-11-15 23:12:43 +00007383rm -f core conftest.err conftest.$ac_objext \
7384 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007385fi
cristy8b350f62009-11-15 23:12:43 +00007386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00007387$as_echo "$ac_cv_prog_c_openmp" >&6; }
7388 case $ac_cv_prog_c_openmp in #(
7389 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00007390 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00007391 *)
cristy8b350f62009-11-15 23:12:43 +00007392 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00007393 esac
7394 fi
7395
7396
7397CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7398MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7399
7400
cristy736173a2009-09-20 21:18:22 +00007401# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00007402
7403ac_ext=c
7404ac_cpp='$CPP $CPPFLAGS'
7405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407ac_compiler_gnu=$ac_cv_c_compiler_gnu
7408
cristy8b350f62009-11-15 23:12:43 +00007409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00007410$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007411if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007412 $as_echo_n "(cached) " >&6
7413else
cristy8b350f62009-11-15 23:12:43 +00007414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007415/* end confdefs.h. */
7416
7417int
7418main ()
7419{
7420#ifndef _MSC_VER
7421 choke me
7422#endif
7423
7424 ;
7425 return 0;
7426}
7427_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007428if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007429 ax_compiler_ms=yes
7430else
cristy8b350f62009-11-15 23:12:43 +00007431 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00007432fi
cristy736173a2009-09-20 21:18:22 +00007433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434ax_cv_c_compiler_ms=$ax_compiler_ms
7435
7436fi
cristy8b350f62009-11-15 23:12:43 +00007437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00007438$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy8b350f62009-11-15 23:12:43 +00007439if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007440 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7441fi
7442
cristy736173a2009-09-20 21:18:22 +00007443ax_save_CPPFLAGS=$CPPFLAGS
7444CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +00007445for ac_header in CL/opencl.h OpenCL/OpenCL.h
cristy8b350f62009-11-15 23:12:43 +00007446do :
7447 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7448ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7449eval as_val=\$$as_ac_Header
7450 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007451 cat >>confdefs.h <<_ACEOF
7452#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7453_ACEOF
7454
7455fi
7456
7457done
7458
7459CPPFLAGS=$ax_save_CPPFLAGS
7460
cristy736173a2009-09-20 21:18:22 +00007461for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00007462do :
7463 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7464if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007465 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007466#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00007467_ACEOF
7468
7469fi
7470
7471done
7472
7473
7474
7475
cristy8b350f62009-11-15 23:12:43 +00007476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00007477$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007478if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007479 $as_echo_n "(cached) " >&6
7480else
7481 ax_cv_check_cl_libcl=no
7482case $host_cpu in
7483 x86_64) ax_check_cl_libdir=lib64 ;;
7484 *) ax_check_cl_libdir=lib ;;
7485esac
7486ax_save_CPPFLAGS=$CPPFLAGS
7487CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7488ax_save_LIBS=$LIBS
7489LIBS=""
cristya49aa422009-09-20 23:40:10 +00007490ax_check_libs="-lOpenCL -lCL"
cristy736173a2009-09-20 21:18:22 +00007491for ax_lib in $ax_check_libs; do
cristy8b350f62009-11-15 23:12:43 +00007492 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007493 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
7494else
7495 ax_try_lib=$ax_lib
7496fi
cristy736173a2009-09-20 21:18:22 +00007497 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
cristy8b350f62009-11-15 23:12:43 +00007498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007499/* end confdefs.h. */
7500
7501# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7502# include <windows.h>
7503# endif
cristya03a0852009-10-13 02:02:39 +00007504# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007505# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007506# elif defined(HAVE_OPENCL_OPENCL_H)
7507# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007508# else
cristya03a0852009-10-13 02:02:39 +00007509# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007510# endif
7511int
7512main ()
7513{
cristyc7083c12009-10-14 03:16:55 +00007514clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007515 ;
7516 return 0;
7517}
7518_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007519if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007520 ax_cv_check_cl_libcl=$ax_try_lib; break
7521else
cristy8b350f62009-11-15 23:12:43 +00007522 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"
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007524/* end confdefs.h. */
7525
7526# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7527# include <windows.h>
7528# endif
cristya03a0852009-10-13 02:02:39 +00007529# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007530# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007531# elif defined(HAVE_OPENCL_OPENCL_H)
7532# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007533# else
cristya03a0852009-10-13 02:02:39 +00007534# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007535# endif
7536int
7537main ()
7538{
cristyc7083c12009-10-14 03:16:55 +00007539clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007540 ;
7541 return 0;
7542}
7543_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007544if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007545 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
7546else
cristy8b350f62009-11-15 23:12:43 +00007547 ax_check_cl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib:/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007549/* end confdefs.h. */
7550
7551# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7552# include <windows.h>
7553# endif
cristya03a0852009-10-13 02:02:39 +00007554# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007555# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007556# elif defined(HAVE_OPENCL_OPENCL_H)
7557# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007558# else
cristya03a0852009-10-13 02:02:39 +00007559# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007560# endif
7561int
7562main ()
7563{
cristyc7083c12009-10-14 03:16:55 +00007564clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007565 ;
7566 return 0;
7567}
7568_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007569if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007570 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00007571fi
cristy8b350f62009-11-15 23:12:43 +00007572rm -f core conftest.err conftest.$ac_objext \
7573 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007574fi
cristy8b350f62009-11-15 23:12:43 +00007575rm -f core conftest.err conftest.$ac_objext \
7576 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007577fi
cristy8b350f62009-11-15 23:12:43 +00007578rm -f core conftest.err conftest.$ac_objext \
7579 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007580done
7581
cristy8b350f62009-11-15 23:12:43 +00007582if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007583 LIBS='-framework OpenCL'
cristy8b350f62009-11-15 23:12:43 +00007584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007585/* end confdefs.h. */
7586
7587# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7588# include <windows.h>
7589# endif
cristya03a0852009-10-13 02:02:39 +00007590# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007591# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007592# elif defined(HAVE_OPENCL_OPENCL_H)
7593# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007594# else
cristya03a0852009-10-13 02:02:39 +00007595# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007596# endif
7597int
7598main ()
7599{
cristyc7083c12009-10-14 03:16:55 +00007600clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007601 ;
7602 return 0;
7603}
7604_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007605if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007606 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00007607fi
cristy8b350f62009-11-15 23:12:43 +00007608rm -f core conftest.err conftest.$ac_objext \
7609 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007610fi
7611
cristy736173a2009-09-20 21:18:22 +00007612LIBS=$ax_save_LIBS
7613CPPFLAGS=$ax_save_CPPFLAGS
7614fi
cristy8b350f62009-11-15 23:12:43 +00007615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00007616$as_echo "$ax_cv_check_cl_libcl" >&6; }
7617
cristy8b350f62009-11-15 23:12:43 +00007618if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007619 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
7620else
7621 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
7622fi
cristy736173a2009-09-20 21:18:22 +00007623ac_ext=c
7624ac_cpp='$CPP $CPPFLAGS'
7625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7627ac_compiler_gnu=$ac_cv_c_compiler_gnu
7628
7629
7630
7631
7632
cristyc7083c12009-10-14 03:16:55 +00007633CFLAGS="$CL_CFLAGS $CFLAGS"
7634LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00007635
cristy2e8b51d2009-10-17 18:26:15 +00007636
cristy3ed852e2009-09-05 21:47:34 +00007637########
7638#
7639# Check for large file support
7640#
7641########
7642# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00007643if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007644 enableval=$enable_largefile;
7645fi
7646
7647if test "$enable_largefile" != no; then
7648
cristy8b350f62009-11-15 23:12:43 +00007649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007650$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007651if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007652 $as_echo_n "(cached) " >&6
7653else
7654 ac_cv_sys_largefile_CC=no
7655 if test "$GCC" != yes; then
7656 ac_save_CC=$CC
7657 while :; do
7658 # IRIX 6.2 and later do not support large files by default,
7659 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00007660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007661/* end confdefs.h. */
7662#include <sys/types.h>
7663 /* Check that off_t can represent 2**63 - 1 correctly.
7664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7665 since some C++ compilers masquerading as C compilers
7666 incorrectly reject 9223372036854775807. */
7667#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7669 && LARGE_OFF_T % 2147483647 == 1)
7670 ? 1 : -1];
7671int
7672main ()
7673{
7674
7675 ;
7676 return 0;
7677}
7678_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007679 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007680 break
cristy3ed852e2009-09-05 21:47:34 +00007681fi
cristy3ed852e2009-09-05 21:47:34 +00007682rm -f core conftest.err conftest.$ac_objext
7683 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00007684 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007685 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00007686fi
cristy3ed852e2009-09-05 21:47:34 +00007687rm -f core conftest.err conftest.$ac_objext
7688 break
7689 done
7690 CC=$ac_save_CC
7691 rm -f conftest.$ac_ext
7692 fi
7693fi
cristy8b350f62009-11-15 23:12:43 +00007694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007695$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7696 if test "$ac_cv_sys_largefile_CC" != no; then
7697 CC=$CC$ac_cv_sys_largefile_CC
7698 fi
7699
cristy8b350f62009-11-15 23:12:43 +00007700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007701$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007702if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007703 $as_echo_n "(cached) " >&6
7704else
7705 while :; do
cristy8b350f62009-11-15 23:12:43 +00007706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007707/* end confdefs.h. */
7708#include <sys/types.h>
7709 /* Check that off_t can represent 2**63 - 1 correctly.
7710 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7711 since some C++ compilers masquerading as C compilers
7712 incorrectly reject 9223372036854775807. */
7713#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7714 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7715 && LARGE_OFF_T % 2147483647 == 1)
7716 ? 1 : -1];
7717int
7718main ()
7719{
7720
7721 ;
7722 return 0;
7723}
7724_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007725if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007726 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00007727fi
cristy3ed852e2009-09-05 21:47:34 +00007728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007730/* end confdefs.h. */
7731#define _FILE_OFFSET_BITS 64
7732#include <sys/types.h>
7733 /* Check that off_t can represent 2**63 - 1 correctly.
7734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7735 since some C++ compilers masquerading as C compilers
7736 incorrectly reject 9223372036854775807. */
7737#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7739 && LARGE_OFF_T % 2147483647 == 1)
7740 ? 1 : -1];
7741int
7742main ()
7743{
7744
7745 ;
7746 return 0;
7747}
7748_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007749if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007750 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00007751fi
cristy3ed852e2009-09-05 21:47:34 +00007752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 ac_cv_sys_file_offset_bits=unknown
7754 break
7755done
7756fi
cristy8b350f62009-11-15 23:12:43 +00007757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00007758$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7759case $ac_cv_sys_file_offset_bits in #(
7760 no | unknown) ;;
7761 *)
7762cat >>confdefs.h <<_ACEOF
7763#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7764_ACEOF
7765;;
7766esac
7767rm -rf conftest*
7768 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00007769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007770$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007771if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007772 $as_echo_n "(cached) " >&6
7773else
7774 while :; do
cristy8b350f62009-11-15 23:12:43 +00007775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007776/* end confdefs.h. */
7777#include <sys/types.h>
7778 /* Check that off_t can represent 2**63 - 1 correctly.
7779 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7780 since some C++ compilers masquerading as C compilers
7781 incorrectly reject 9223372036854775807. */
7782#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7784 && LARGE_OFF_T % 2147483647 == 1)
7785 ? 1 : -1];
7786int
7787main ()
7788{
7789
7790 ;
7791 return 0;
7792}
7793_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007794if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007795 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00007796fi
cristy3ed852e2009-09-05 21:47:34 +00007797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007799/* end confdefs.h. */
7800#define _LARGE_FILES 1
7801#include <sys/types.h>
7802 /* Check that off_t can represent 2**63 - 1 correctly.
7803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7804 since some C++ compilers masquerading as C compilers
7805 incorrectly reject 9223372036854775807. */
7806#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7808 && LARGE_OFF_T % 2147483647 == 1)
7809 ? 1 : -1];
7810int
7811main ()
7812{
7813
7814 ;
7815 return 0;
7816}
7817_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007818if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007819 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00007820fi
cristy3ed852e2009-09-05 21:47:34 +00007821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 ac_cv_sys_large_files=unknown
7823 break
7824done
7825fi
cristy8b350f62009-11-15 23:12:43 +00007826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007827$as_echo "$ac_cv_sys_large_files" >&6; }
7828case $ac_cv_sys_large_files in #(
7829 no | unknown) ;;
7830 *)
7831cat >>confdefs.h <<_ACEOF
7832#define _LARGE_FILES $ac_cv_sys_large_files
7833_ACEOF
7834;;
7835esac
7836rm -rf conftest*
7837 fi
7838fi
7839
cristy8b350f62009-11-15 23:12:43 +00007840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007841$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007842if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007843 $as_echo_n "(cached) " >&6
7844else
7845 while :; do
cristy8b350f62009-11-15 23:12:43 +00007846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007847/* end confdefs.h. */
7848#include <sys/types.h> /* for off_t */
7849 #include <stdio.h>
7850int
7851main ()
7852{
7853int (*fp) (FILE *, off_t, int) = fseeko;
7854 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7855 ;
7856 return 0;
7857}
7858_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007859if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007860 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00007861fi
cristy8b350f62009-11-15 23:12:43 +00007862rm -f core conftest.err conftest.$ac_objext \
7863 conftest$ac_exeext conftest.$ac_ext
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007865/* end confdefs.h. */
7866#define _LARGEFILE_SOURCE 1
7867#include <sys/types.h> /* for off_t */
7868 #include <stdio.h>
7869int
7870main ()
7871{
7872int (*fp) (FILE *, off_t, int) = fseeko;
7873 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7874 ;
7875 return 0;
7876}
7877_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007878if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007879 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00007880fi
cristy8b350f62009-11-15 23:12:43 +00007881rm -f core conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007883 ac_cv_sys_largefile_source=unknown
7884 break
7885done
7886fi
cristy8b350f62009-11-15 23:12:43 +00007887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00007888$as_echo "$ac_cv_sys_largefile_source" >&6; }
7889case $ac_cv_sys_largefile_source in #(
7890 no | unknown) ;;
7891 *)
7892cat >>confdefs.h <<_ACEOF
7893#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7894_ACEOF
7895;;
7896esac
7897rm -rf conftest*
7898
7899# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7900# in glibc 2.1.3, but that breaks too many other things.
7901# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7902if test $ac_cv_sys_largefile_source != unknown; then
7903
cristy8b350f62009-11-15 23:12:43 +00007904$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007905
7906fi
7907
7908LFS_CPPFLAGS=''
7909if test "$enable_largefile" != no; then
7910 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
7911 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
7912 else
cristy8b350f62009-11-15 23:12:43 +00007913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00007914$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007915 if test "$cross_compiling" = yes; then :
7916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00007918as_fn_error "cannot run test program while cross compiling
7919See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007920else
cristy8b350f62009-11-15 23:12:43 +00007921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007923#include <unistd.h>
7924 main () {
7925 exit(!(sizeof(off_t) == 8));
7926 }
7927_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007928if ac_fn_c_try_run "$LINENO"; then :
7929 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007930
cristy8b350f62009-11-15 23:12:43 +00007931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007932$as_echo "yes" >&6; }
7933else
cristy8b350f62009-11-15 23:12:43 +00007934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007935$as_echo "no" >&6; }
7936fi
cristy8b350f62009-11-15 23:12:43 +00007937rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7938 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007939fi
7940
cristy3ed852e2009-09-05 21:47:34 +00007941 fi
7942 if test "$ac_cv_sys_large_files" != 'no'; then
7943 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
7944 fi
7945 if test "$ac_cv_sys_largefile_source" != 'no'; then
7946 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
7947 fi
7948fi
7949
7950
7951#
7952# Configure libtool & libltdl
7953#
7954# Configure libtool
7955enable_dlopen=yes
7956
7957
7958
7959case `pwd` in
7960 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00007961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00007962$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7963esac
7964
7965
7966
cristy932c9122009-11-19 13:57:03 +00007967macro_version='2.2.7a'
7968macro_revision='1.3130'
cristy3ed852e2009-09-05 21:47:34 +00007969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982ltmain="$ac_aux_dir/ltmain.sh"
7983
cristy932c9122009-11-19 13:57:03 +00007984# Backslashify metacharacters that are still active within
7985# double-quoted strings.
7986sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7987
7988# Same as above, but do not quote variable references.
7989double_quote_subst='s/\(["`\\]\)/\\\1/g'
7990
7991# Sed substitution to delay expansion of an escaped shell variable in a
7992# double_quote_subst'ed string.
7993delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7994
7995# Sed substitution to delay expansion of an escaped single quote.
7996delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7997
7998# Sed substitution to avoid accidental globbing in evaled expressions
7999no_glob_subst='s/\*/\\\*/g'
8000
cristy8b350f62009-11-15 23:12:43 +00008001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00008002$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008003if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008004 $as_echo_n "(cached) " >&6
8005else
8006 if test -n "$NM"; then
8007 # Let the user override the test.
8008 lt_cv_path_NM="$NM"
8009else
8010 lt_nm_to_check="${ac_tool_prefix}nm"
8011 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8012 lt_nm_to_check="$lt_nm_to_check nm"
8013 fi
8014 for lt_tmp_nm in $lt_nm_to_check; do
8015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8016 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8017 IFS="$lt_save_ifs"
8018 test -z "$ac_dir" && ac_dir=.
8019 tmp_nm="$ac_dir/$lt_tmp_nm"
8020 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8021 # Check to see if the nm accepts a BSD-compat flag.
8022 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8023 # nm: unknown option "B" ignored
8024 # Tru64's nm complains that /dev/null is an invalid object file
8025 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8026 */dev/null* | *'Invalid file or object type'*)
8027 lt_cv_path_NM="$tmp_nm -B"
8028 break
8029 ;;
8030 *)
8031 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8032 */dev/null*)
8033 lt_cv_path_NM="$tmp_nm -p"
8034 break
8035 ;;
8036 *)
8037 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8038 continue # so that we can try to find one that supports BSD flags
8039 ;;
8040 esac
8041 ;;
8042 esac
8043 fi
8044 done
8045 IFS="$lt_save_ifs"
8046 done
8047 : ${lt_cv_path_NM=no}
8048fi
8049fi
cristy8b350f62009-11-15 23:12:43 +00008050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00008051$as_echo "$lt_cv_path_NM" >&6; }
8052if test "$lt_cv_path_NM" != "no"; then
8053 NM="$lt_cv_path_NM"
8054else
8055 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy932c9122009-11-19 13:57:03 +00008056 if test -n "$DUMPBIN"; then :
8057 # Let the user override the test.
8058 else
8059 if test -n "$ac_tool_prefix"; then
8060 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00008061 do
8062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8063set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008065$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008066if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008067 $as_echo_n "(cached) " >&6
8068else
8069 if test -n "$DUMPBIN"; then
8070 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8071else
8072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073for as_dir in $PATH
8074do
8075 IFS=$as_save_IFS
8076 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008077 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8079 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008081 break 2
8082 fi
8083done
cristy8b350f62009-11-15 23:12:43 +00008084 done
cristy3ed852e2009-09-05 21:47:34 +00008085IFS=$as_save_IFS
8086
8087fi
8088fi
8089DUMPBIN=$ac_cv_prog_DUMPBIN
8090if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008092$as_echo "$DUMPBIN" >&6; }
8093else
cristy8b350f62009-11-15 23:12:43 +00008094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008095$as_echo "no" >&6; }
8096fi
8097
8098
8099 test -n "$DUMPBIN" && break
8100 done
8101fi
8102if test -z "$DUMPBIN"; then
8103 ac_ct_DUMPBIN=$DUMPBIN
cristy932c9122009-11-19 13:57:03 +00008104 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00008105do
8106 # Extract the first word of "$ac_prog", so it can be a program name with args.
8107set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008109$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008110if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008111 $as_echo_n "(cached) " >&6
8112else
8113 if test -n "$ac_ct_DUMPBIN"; then
8114 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8115else
8116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117for as_dir in $PATH
8118do
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008121 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8123 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008125 break 2
8126 fi
8127done
cristy8b350f62009-11-15 23:12:43 +00008128 done
cristy3ed852e2009-09-05 21:47:34 +00008129IFS=$as_save_IFS
8130
8131fi
8132fi
8133ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8134if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008136$as_echo "$ac_ct_DUMPBIN" >&6; }
8137else
cristy8b350f62009-11-15 23:12:43 +00008138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008139$as_echo "no" >&6; }
8140fi
8141
8142
8143 test -n "$ac_ct_DUMPBIN" && break
8144done
8145
8146 if test "x$ac_ct_DUMPBIN" = x; then
8147 DUMPBIN=":"
8148 else
8149 case $cross_compiling:$ac_tool_warned in
8150yes:)
cristy8b350f62009-11-15 23:12:43 +00008151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8153ac_tool_warned=yes ;;
8154esac
8155 DUMPBIN=$ac_ct_DUMPBIN
8156 fi
8157fi
8158
cristy932c9122009-11-19 13:57:03 +00008159 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8160 *COFF*)
8161 DUMPBIN="$DUMPBIN -symbols"
8162 ;;
8163 *)
8164 DUMPBIN=:
8165 ;;
8166 esac
8167 fi
cristy3ed852e2009-09-05 21:47:34 +00008168
8169 if test "$DUMPBIN" != ":"; then
8170 NM="$DUMPBIN"
8171 fi
8172fi
8173test -z "$NM" && NM=nm
8174
8175
8176
8177
8178
8179
cristy8b350f62009-11-15 23:12:43 +00008180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008181$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008182if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008183 $as_echo_n "(cached) " >&6
8184else
8185 lt_cv_nm_interface="BSD nm"
8186 echo "int some_variable = 0;" > conftest.$ac_ext
cristy932c9122009-11-19 13:57:03 +00008187 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008188 (eval "$ac_compile" 2>conftest.err)
8189 cat conftest.err >&5
cristy932c9122009-11-19 13:57:03 +00008190 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008191 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8192 cat conftest.err >&5
cristy932c9122009-11-19 13:57:03 +00008193 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008194 cat conftest.out >&5
8195 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8196 lt_cv_nm_interface="MS dumpbin"
8197 fi
8198 rm -f conftest*
8199fi
cristy8b350f62009-11-15 23:12:43 +00008200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008201$as_echo "$lt_cv_nm_interface" >&6; }
8202
8203# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00008204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00008205$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008206if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008207 $as_echo_n "(cached) " >&6
8208else
8209 i=0
8210 teststring="ABCD"
8211
8212 case $build_os in
8213 msdosdjgpp*)
8214 # On DJGPP, this test can blow up pretty badly due to problems in libc
8215 # (any single argument exceeding 2000 bytes causes a buffer overrun
8216 # during glob expansion). Even if it were fixed, the result of this
8217 # check would be larger than it should be.
8218 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8219 ;;
8220
8221 gnu*)
8222 # Under GNU Hurd, this test is not required because there is
8223 # no limit to the length of command line arguments.
8224 # Libtool will interpret -1 as no limit whatsoever
8225 lt_cv_sys_max_cmd_len=-1;
8226 ;;
8227
8228 cygwin* | mingw* | cegcc*)
8229 # On Win9x/ME, this test blows up -- it succeeds, but takes
8230 # about 5 minutes as the teststring grows exponentially.
8231 # Worse, since 9x/ME are not pre-emptively multitasking,
8232 # you end up with a "frozen" computer, even though with patience
8233 # the test eventually succeeds (with a max line length of 256k).
8234 # Instead, let's just punt: use the minimum linelength reported by
8235 # all of the supported platforms: 8192 (on NT/2K/XP).
8236 lt_cv_sys_max_cmd_len=8192;
8237 ;;
8238
cristy932c9122009-11-19 13:57:03 +00008239 mint*)
8240 # On MiNT this can take a long time and run out of memory.
8241 lt_cv_sys_max_cmd_len=8192;
8242 ;;
8243
cristy3ed852e2009-09-05 21:47:34 +00008244 amigaos*)
8245 # On AmigaOS with pdksh, this test takes hours, literally.
8246 # So we just punt and use a minimum line length of 8192.
8247 lt_cv_sys_max_cmd_len=8192;
8248 ;;
8249
8250 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8251 # This has been around since 386BSD, at least. Likely further.
8252 if test -x /sbin/sysctl; then
8253 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8254 elif test -x /usr/sbin/sysctl; then
8255 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8256 else
8257 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8258 fi
8259 # And add a safety zone
8260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8262 ;;
8263
8264 interix*)
8265 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8266 lt_cv_sys_max_cmd_len=196608
8267 ;;
8268
8269 osf*)
8270 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8271 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8272 # nice to cause kernel panics so lets avoid the loop below.
8273 # First set a reasonable default.
8274 lt_cv_sys_max_cmd_len=16384
8275 #
8276 if test -x /sbin/sysconfig; then
8277 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8278 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8279 esac
8280 fi
8281 ;;
8282 sco3.2v5*)
8283 lt_cv_sys_max_cmd_len=102400
8284 ;;
8285 sysv5* | sco5v6* | sysv4.2uw2*)
8286 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8287 if test -n "$kargmax"; then
8288 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8289 else
8290 lt_cv_sys_max_cmd_len=32768
8291 fi
8292 ;;
8293 *)
8294 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8295 if test -n "$lt_cv_sys_max_cmd_len"; then
8296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8297 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8298 else
8299 # Make teststring a little bigger before we do anything with it.
8300 # a 1K string should be a reasonable start.
8301 for i in 1 2 3 4 5 6 7 8 ; do
8302 teststring=$teststring$teststring
8303 done
8304 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8305 # If test is not a shell built-in, we'll probably end up computing a
8306 # maximum length that is only half of the actual maximum length, but
8307 # we can't tell.
cristy932c9122009-11-19 13:57:03 +00008308 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8309 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00008310 test $i != 17 # 1/2 MB should be enough
8311 do
8312 i=`expr $i + 1`
8313 teststring=$teststring$teststring
8314 done
8315 # Only check the string length outside the loop.
8316 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8317 teststring=
8318 # Add a significant safety factor because C++ compilers can tack on
8319 # massive amounts of additional arguments before passing them to the
8320 # linker. It appears as though 1/2 is a usable value.
8321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8322 fi
8323 ;;
8324 esac
8325
8326fi
8327
8328if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00008329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00008330$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8331else
cristy8b350f62009-11-15 23:12:43 +00008332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00008333$as_echo "none" >&6; }
8334fi
8335max_cmd_len=$lt_cv_sys_max_cmd_len
8336
8337
8338
8339
8340
8341
8342: ${CP="cp -f"}
8343: ${MV="mv -f"}
8344: ${RM="rm -f"}
8345
cristy8b350f62009-11-15 23:12:43 +00008346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00008347$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8348# Try some XSI features
8349xsi_shell=no
8350( _lt_dummy="a/b/c"
8351 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8352 = c,a/b,, \
8353 && eval 'test $(( 1 + 1 )) -eq 2 \
8354 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8355 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00008356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00008357$as_echo "$xsi_shell" >&6; }
8358
8359
cristy8b350f62009-11-15 23:12:43 +00008360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00008361$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8362lt_shell_append=no
8363( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8364 >/dev/null 2>&1 \
8365 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00008366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00008367$as_echo "$lt_shell_append" >&6; }
8368
8369
8370if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8371 lt_unset=unset
8372else
8373 lt_unset=false
8374fi
8375
8376
8377
8378
8379
8380# test EBCDIC or ASCII
8381case `echo X|tr X '\101'` in
8382 A) # ASCII based system
8383 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8384 lt_SP2NL='tr \040 \012'
8385 lt_NL2SP='tr \015\012 \040\040'
8386 ;;
8387 *) # EBCDIC based system
8388 lt_SP2NL='tr \100 \n'
8389 lt_NL2SP='tr \r\n \100\100'
8390 ;;
8391esac
8392
8393
8394
8395
8396
8397
8398
8399
8400
cristy8b350f62009-11-15 23:12:43 +00008401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008402$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008403if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008404 $as_echo_n "(cached) " >&6
8405else
8406 lt_cv_ld_reload_flag='-r'
8407fi
cristy8b350f62009-11-15 23:12:43 +00008408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008409$as_echo "$lt_cv_ld_reload_flag" >&6; }
8410reload_flag=$lt_cv_ld_reload_flag
8411case $reload_flag in
8412"" | " "*) ;;
8413*) reload_flag=" $reload_flag" ;;
8414esac
8415reload_cmds='$LD$reload_flag -o $output$reload_objs'
8416case $host_os in
8417 darwin*)
8418 if test "$GCC" = yes; then
8419 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8420 else
8421 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8422 fi
8423 ;;
8424esac
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434if test -n "$ac_tool_prefix"; then
8435 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8436set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008438$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008439if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008440 $as_echo_n "(cached) " >&6
8441else
8442 if test -n "$OBJDUMP"; then
8443 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8444else
8445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446for as_dir in $PATH
8447do
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008450 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8452 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00008453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008454 break 2
8455 fi
8456done
cristy8b350f62009-11-15 23:12:43 +00008457 done
cristy3ed852e2009-09-05 21:47:34 +00008458IFS=$as_save_IFS
8459
8460fi
8461fi
8462OBJDUMP=$ac_cv_prog_OBJDUMP
8463if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008465$as_echo "$OBJDUMP" >&6; }
8466else
cristy8b350f62009-11-15 23:12:43 +00008467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008468$as_echo "no" >&6; }
8469fi
8470
8471
8472fi
8473if test -z "$ac_cv_prog_OBJDUMP"; then
8474 ac_ct_OBJDUMP=$OBJDUMP
8475 # Extract the first word of "objdump", so it can be a program name with args.
8476set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008478$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008479if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008480 $as_echo_n "(cached) " >&6
8481else
8482 if test -n "$ac_ct_OBJDUMP"; then
8483 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8484else
8485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486for as_dir in $PATH
8487do
8488 IFS=$as_save_IFS
8489 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8492 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00008493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008494 break 2
8495 fi
8496done
cristy8b350f62009-11-15 23:12:43 +00008497 done
cristy3ed852e2009-09-05 21:47:34 +00008498IFS=$as_save_IFS
8499
8500fi
8501fi
8502ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8503if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008505$as_echo "$ac_ct_OBJDUMP" >&6; }
8506else
cristy8b350f62009-11-15 23:12:43 +00008507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008508$as_echo "no" >&6; }
8509fi
8510
8511 if test "x$ac_ct_OBJDUMP" = x; then
8512 OBJDUMP="false"
8513 else
8514 case $cross_compiling:$ac_tool_warned in
8515yes:)
cristy8b350f62009-11-15 23:12:43 +00008516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8518ac_tool_warned=yes ;;
8519esac
8520 OBJDUMP=$ac_ct_OBJDUMP
8521 fi
8522else
8523 OBJDUMP="$ac_cv_prog_OBJDUMP"
8524fi
8525
8526test -z "$OBJDUMP" && OBJDUMP=objdump
8527
8528
8529
8530
8531
8532
cristy8b350f62009-11-15 23:12:43 +00008533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00008534$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008535if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008536 $as_echo_n "(cached) " >&6
8537else
8538 lt_cv_file_magic_cmd='$MAGIC_CMD'
8539lt_cv_file_magic_test_file=
8540lt_cv_deplibs_check_method='unknown'
8541# Need to set the preceding variable on all platforms that support
8542# interlibrary dependencies.
8543# 'none' -- dependencies not supported.
8544# `unknown' -- same as none, but documents that we really don't know.
8545# 'pass_all' -- all dependencies passed with no checks.
8546# 'test_compile' -- check by making test program.
8547# 'file_magic [[regex]]' -- check by looking for files in library path
8548# which responds to the $file_magic_cmd with a given extended regex.
8549# If you have `file' or equivalent on your system and you're not sure
8550# whether `pass_all' will *always* work, you probably want this one.
8551
8552case $host_os in
8553aix[4-9]*)
8554 lt_cv_deplibs_check_method=pass_all
8555 ;;
8556
8557beos*)
8558 lt_cv_deplibs_check_method=pass_all
8559 ;;
8560
8561bsdi[45]*)
8562 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8563 lt_cv_file_magic_cmd='/usr/bin/file -L'
8564 lt_cv_file_magic_test_file=/shlib/libc.so
8565 ;;
8566
8567cygwin*)
8568 # func_win32_libid is a shell function defined in ltmain.sh
8569 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8570 lt_cv_file_magic_cmd='func_win32_libid'
8571 ;;
8572
8573mingw* | pw32*)
8574 # Base MSYS/MinGW do not provide the 'file' command needed by
8575 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8576 # unless we find 'file', for example because we are cross-compiling.
cristy932c9122009-11-19 13:57:03 +00008577 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8578 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00008579 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8580 lt_cv_file_magic_cmd='func_win32_libid'
8581 else
8582 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8583 lt_cv_file_magic_cmd='$OBJDUMP -f'
8584 fi
8585 ;;
8586
cristy932c9122009-11-19 13:57:03 +00008587cegcc*)
cristy3ed852e2009-09-05 21:47:34 +00008588 # use the weaker test based on 'objdump'. See mingw*.
8589 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8590 lt_cv_file_magic_cmd='$OBJDUMP -f'
8591 ;;
8592
8593darwin* | rhapsody*)
8594 lt_cv_deplibs_check_method=pass_all
8595 ;;
8596
8597freebsd* | dragonfly*)
8598 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8599 case $host_cpu in
8600 i*86 )
8601 # Not sure whether the presence of OpenBSD here was a mistake.
8602 # Let's accept both of them until this is cleared up.
8603 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8604 lt_cv_file_magic_cmd=/usr/bin/file
8605 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8606 ;;
8607 esac
8608 else
8609 lt_cv_deplibs_check_method=pass_all
8610 fi
8611 ;;
8612
8613gnu*)
8614 lt_cv_deplibs_check_method=pass_all
8615 ;;
8616
cristy932c9122009-11-19 13:57:03 +00008617haiku*)
8618 lt_cv_deplibs_check_method=pass_all
8619 ;;
8620
cristy3ed852e2009-09-05 21:47:34 +00008621hpux10.20* | hpux11*)
8622 lt_cv_file_magic_cmd=/usr/bin/file
8623 case $host_cpu in
8624 ia64*)
8625 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8626 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8627 ;;
8628 hppa*64*)
cristy932c9122009-11-19 13:57:03 +00008629 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]'
cristy3ed852e2009-09-05 21:47:34 +00008630 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8631 ;;
8632 *)
cristy932c9122009-11-19 13:57:03 +00008633 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cristy3ed852e2009-09-05 21:47:34 +00008634 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8635 ;;
8636 esac
8637 ;;
8638
8639interix[3-9]*)
8640 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8642 ;;
8643
8644irix5* | irix6* | nonstopux*)
8645 case $LD in
8646 *-32|*"-32 ") libmagic=32-bit;;
8647 *-n32|*"-n32 ") libmagic=N32;;
8648 *-64|*"-64 ") libmagic=64-bit;;
8649 *) libmagic=never-match;;
8650 esac
8651 lt_cv_deplibs_check_method=pass_all
8652 ;;
8653
8654# This must be Linux ELF.
cristy932c9122009-11-19 13:57:03 +00008655linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00008656 lt_cv_deplibs_check_method=pass_all
8657 ;;
8658
8659netbsd*)
8660 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8662 else
8663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8664 fi
8665 ;;
8666
8667newos6*)
8668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8669 lt_cv_file_magic_cmd=/usr/bin/file
8670 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8671 ;;
8672
8673*nto* | *qnx*)
8674 lt_cv_deplibs_check_method=pass_all
8675 ;;
8676
8677openbsd*)
8678 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8680 else
8681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8682 fi
8683 ;;
8684
8685osf3* | osf4* | osf5*)
8686 lt_cv_deplibs_check_method=pass_all
8687 ;;
8688
8689rdos*)
8690 lt_cv_deplibs_check_method=pass_all
8691 ;;
8692
8693solaris*)
8694 lt_cv_deplibs_check_method=pass_all
8695 ;;
8696
8697sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8698 lt_cv_deplibs_check_method=pass_all
8699 ;;
8700
8701sysv4 | sysv4.3*)
8702 case $host_vendor in
8703 motorola)
8704 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]'
8705 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8706 ;;
8707 ncr)
8708 lt_cv_deplibs_check_method=pass_all
8709 ;;
8710 sequent)
8711 lt_cv_file_magic_cmd='/bin/file'
8712 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8713 ;;
8714 sni)
8715 lt_cv_file_magic_cmd='/bin/file'
8716 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8717 lt_cv_file_magic_test_file=/lib/libc.so
8718 ;;
8719 siemens)
8720 lt_cv_deplibs_check_method=pass_all
8721 ;;
8722 pc)
8723 lt_cv_deplibs_check_method=pass_all
8724 ;;
8725 esac
8726 ;;
8727
8728tpf*)
8729 lt_cv_deplibs_check_method=pass_all
8730 ;;
8731esac
8732
8733fi
cristy8b350f62009-11-15 23:12:43 +00008734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00008735$as_echo "$lt_cv_deplibs_check_method" >&6; }
8736file_magic_cmd=$lt_cv_file_magic_cmd
8737deplibs_check_method=$lt_cv_deplibs_check_method
8738test -z "$deplibs_check_method" && deplibs_check_method=unknown
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751if test -n "$ac_tool_prefix"; then
8752 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8753set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008755$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008756if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008757 $as_echo_n "(cached) " >&6
8758else
8759 if test -n "$AR"; then
8760 ac_cv_prog_AR="$AR" # Let the user override the test.
8761else
8762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8763for as_dir in $PATH
8764do
8765 IFS=$as_save_IFS
8766 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008767 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8769 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00008770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008771 break 2
8772 fi
8773done
cristy8b350f62009-11-15 23:12:43 +00008774 done
cristy3ed852e2009-09-05 21:47:34 +00008775IFS=$as_save_IFS
8776
8777fi
8778fi
8779AR=$ac_cv_prog_AR
8780if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00008781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008782$as_echo "$AR" >&6; }
8783else
cristy8b350f62009-11-15 23:12:43 +00008784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008785$as_echo "no" >&6; }
8786fi
8787
8788
8789fi
8790if test -z "$ac_cv_prog_AR"; then
8791 ac_ct_AR=$AR
8792 # Extract the first word of "ar", so it can be a program name with args.
8793set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008795$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008796if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008797 $as_echo_n "(cached) " >&6
8798else
8799 if test -n "$ac_ct_AR"; then
8800 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8801else
8802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8809 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00008810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008811 break 2
8812 fi
8813done
cristy8b350f62009-11-15 23:12:43 +00008814 done
cristy3ed852e2009-09-05 21:47:34 +00008815IFS=$as_save_IFS
8816
8817fi
8818fi
8819ac_ct_AR=$ac_cv_prog_ac_ct_AR
8820if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00008821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008822$as_echo "$ac_ct_AR" >&6; }
8823else
cristy8b350f62009-11-15 23:12:43 +00008824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008825$as_echo "no" >&6; }
8826fi
8827
8828 if test "x$ac_ct_AR" = x; then
8829 AR="false"
8830 else
8831 case $cross_compiling:$ac_tool_warned in
8832yes:)
cristy8b350f62009-11-15 23:12:43 +00008833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8835ac_tool_warned=yes ;;
8836esac
8837 AR=$ac_ct_AR
8838 fi
8839else
8840 AR="$ac_cv_prog_AR"
8841fi
8842
8843test -z "$AR" && AR=ar
8844test -z "$AR_FLAGS" && AR_FLAGS=cru
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856if test -n "$ac_tool_prefix"; then
8857 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8858set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008860$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008861if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008862 $as_echo_n "(cached) " >&6
8863else
8864 if test -n "$STRIP"; then
8865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8866else
8867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868for as_dir in $PATH
8869do
8870 IFS=$as_save_IFS
8871 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008872 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8874 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00008875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008876 break 2
8877 fi
8878done
cristy8b350f62009-11-15 23:12:43 +00008879 done
cristy3ed852e2009-09-05 21:47:34 +00008880IFS=$as_save_IFS
8881
8882fi
8883fi
8884STRIP=$ac_cv_prog_STRIP
8885if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00008886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008887$as_echo "$STRIP" >&6; }
8888else
cristy8b350f62009-11-15 23:12:43 +00008889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008890$as_echo "no" >&6; }
8891fi
8892
8893
8894fi
8895if test -z "$ac_cv_prog_STRIP"; then
8896 ac_ct_STRIP=$STRIP
8897 # Extract the first word of "strip", so it can be a program name with args.
8898set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008900$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008901if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008902 $as_echo_n "(cached) " >&6
8903else
8904 if test -n "$ac_ct_STRIP"; then
8905 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8906else
8907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908for as_dir in $PATH
8909do
8910 IFS=$as_save_IFS
8911 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8914 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00008915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008916 break 2
8917 fi
8918done
cristy8b350f62009-11-15 23:12:43 +00008919 done
cristy3ed852e2009-09-05 21:47:34 +00008920IFS=$as_save_IFS
8921
8922fi
8923fi
8924ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8925if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00008926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008927$as_echo "$ac_ct_STRIP" >&6; }
8928else
cristy8b350f62009-11-15 23:12:43 +00008929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008930$as_echo "no" >&6; }
8931fi
8932
8933 if test "x$ac_ct_STRIP" = x; then
8934 STRIP=":"
8935 else
8936 case $cross_compiling:$ac_tool_warned in
8937yes:)
cristy8b350f62009-11-15 23:12:43 +00008938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8940ac_tool_warned=yes ;;
8941esac
8942 STRIP=$ac_ct_STRIP
8943 fi
8944else
8945 STRIP="$ac_cv_prog_STRIP"
8946fi
8947
8948test -z "$STRIP" && STRIP=:
8949
8950
8951
8952
8953
8954
8955if test -n "$ac_tool_prefix"; then
8956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8957set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008959$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008960if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008961 $as_echo_n "(cached) " >&6
8962else
8963 if test -n "$RANLIB"; then
8964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8965else
8966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967for as_dir in $PATH
8968do
8969 IFS=$as_save_IFS
8970 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008971 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00008974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008975 break 2
8976 fi
8977done
cristy8b350f62009-11-15 23:12:43 +00008978 done
cristy3ed852e2009-09-05 21:47:34 +00008979IFS=$as_save_IFS
8980
8981fi
8982fi
8983RANLIB=$ac_cv_prog_RANLIB
8984if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00008985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00008986$as_echo "$RANLIB" >&6; }
8987else
cristy8b350f62009-11-15 23:12:43 +00008988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008989$as_echo "no" >&6; }
8990fi
8991
8992
8993fi
8994if test -z "$ac_cv_prog_RANLIB"; then
8995 ac_ct_RANLIB=$RANLIB
8996 # Extract the first word of "ranlib", so it can be a program name with args.
8997set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008999$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009000if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009001 $as_echo_n "(cached) " >&6
9002else
9003 if test -n "$ac_ct_RANLIB"; then
9004 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9005else
9006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007for as_dir in $PATH
9008do
9009 IFS=$as_save_IFS
9010 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009011 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9013 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00009014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009015 break 2
9016 fi
9017done
cristy8b350f62009-11-15 23:12:43 +00009018 done
cristy3ed852e2009-09-05 21:47:34 +00009019IFS=$as_save_IFS
9020
9021fi
9022fi
9023ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9024if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009026$as_echo "$ac_ct_RANLIB" >&6; }
9027else
cristy8b350f62009-11-15 23:12:43 +00009028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009029$as_echo "no" >&6; }
9030fi
9031
9032 if test "x$ac_ct_RANLIB" = x; then
9033 RANLIB=":"
9034 else
9035 case $cross_compiling:$ac_tool_warned in
9036yes:)
cristy8b350f62009-11-15 23:12:43 +00009037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9039ac_tool_warned=yes ;;
9040esac
9041 RANLIB=$ac_ct_RANLIB
9042 fi
9043else
9044 RANLIB="$ac_cv_prog_RANLIB"
9045fi
9046
9047test -z "$RANLIB" && RANLIB=:
9048
9049
9050
9051
9052
9053
9054# Determine commands to create old-style static archives.
9055old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9056old_postinstall_cmds='chmod 644 $oldlib'
9057old_postuninstall_cmds=
9058
9059if test -n "$RANLIB"; then
9060 case $host_os in
9061 openbsd*)
9062 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9063 ;;
9064 *)
9065 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9066 ;;
9067 esac
9068 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9069fi
9070
cristy932c9122009-11-19 13:57:03 +00009071case $host_os in
9072 darwin*)
9073 lock_old_archive_extraction=yes ;;
9074 *)
9075 lock_old_archive_extraction=no ;;
9076esac
9077
9078
9079
9080
9081
9082
cristy3ed852e2009-09-05 21:47:34 +00009083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116# If no C compiler was specified, use CC.
9117LTCC=${LTCC-"$CC"}
9118
9119# If no C compiler flags were specified, use CFLAGS.
9120LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9121
9122# Allow CC to be a program name with arguments.
9123compiler=$CC
9124
9125
9126# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +00009127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +00009128$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009129if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009130 $as_echo_n "(cached) " >&6
9131else
9132
9133# These are sane defaults that work on at least a few old systems.
9134# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9135
9136# Character class describing NM global symbol codes.
9137symcode='[BCDEGRST]'
9138
9139# Regexp to match symbols that can be accessed directly from C.
9140sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9141
9142# Define system-specific variables.
9143case $host_os in
9144aix*)
9145 symcode='[BCDT]'
9146 ;;
9147cygwin* | mingw* | pw32* | cegcc*)
9148 symcode='[ABCDGISTW]'
9149 ;;
9150hpux*)
9151 if test "$host_cpu" = ia64; then
9152 symcode='[ABCDEGRST]'
9153 fi
9154 ;;
9155irix* | nonstopux*)
9156 symcode='[BCDEGRST]'
9157 ;;
9158osf*)
9159 symcode='[BCDEGQRST]'
9160 ;;
9161solaris*)
9162 symcode='[BDRT]'
9163 ;;
9164sco3.2v5*)
9165 symcode='[DT]'
9166 ;;
9167sysv4.2uw2*)
9168 symcode='[DT]'
9169 ;;
9170sysv5* | sco5v6* | unixware* | OpenUNIX*)
9171 symcode='[ABDT]'
9172 ;;
9173sysv4)
9174 symcode='[DFNSTU]'
9175 ;;
9176esac
9177
9178# If we're using GNU nm, then use its standard symbol codes.
9179case `$NM -V 2>&1` in
9180*GNU* | *'with BFD'*)
9181 symcode='[ABCDGIRSTW]' ;;
9182esac
9183
9184# Transform an extracted symbol line into a proper C declaration.
9185# Some systems (esp. on ia64) link data and code symbols differently,
9186# so use this general approach.
9187lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9188
9189# Transform an extracted symbol line into symbol name and symbol address
9190lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9191lt_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'"
9192
9193# Handle CRLF in mingw tool chain
9194opt_cr=
9195case $build_os in
9196mingw*)
9197 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9198 ;;
9199esac
9200
9201# Try without a prefix underscore, then with it.
9202for ac_symprfx in "" "_"; do
9203
9204 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9205 symxfrm="\\1 $ac_symprfx\\2 \\2"
9206
9207 # Write the raw and C identifiers.
9208 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9209 # Fake it for dumpbin and say T for any non-static function
9210 # and D for any global variable.
9211 # Also find C++ and __fastcall symbols from MSVC++,
9212 # which start with @ or ?.
9213 lt_cv_sys_global_symbol_pipe="$AWK '"\
9214" {last_section=section; section=\$ 3};"\
9215" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9216" \$ 0!~/External *\|/{next};"\
9217" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9218" {if(hide[section]) next};"\
9219" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9220" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9221" s[1]~/^[@?]/{print s[1], s[1]; next};"\
9222" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9223" ' prfx=^$ac_symprfx"
9224 else
9225 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9226 fi
9227
9228 # Check to see that the pipe works correctly.
9229 pipe_works=no
9230
9231 rm -f conftest*
9232 cat > conftest.$ac_ext <<_LT_EOF
9233#ifdef __cplusplus
9234extern "C" {
9235#endif
9236char nm_test_var;
9237void nm_test_func(void);
9238void nm_test_func(void){}
9239#ifdef __cplusplus
9240}
9241#endif
9242int main(){nm_test_var='a';nm_test_func();return(0);}
9243_LT_EOF
9244
cristy8b350f62009-11-15 23:12:43 +00009245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009246 (eval $ac_compile) 2>&5
9247 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9249 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009250 # Now try to grab the symbols.
9251 nlist=conftest.nm
cristy932c9122009-11-19 13:57:03 +00009252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9253 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +00009254 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9256 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +00009257 # Try sorting and uniquifying the output.
9258 if sort "$nlist" | uniq > "$nlist"T; then
9259 mv -f "$nlist"T "$nlist"
9260 else
9261 rm -f "$nlist"T
9262 fi
9263
9264 # Make sure that we snagged all the symbols we need.
9265 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9266 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9267 cat <<_LT_EOF > conftest.$ac_ext
9268#ifdef __cplusplus
9269extern "C" {
9270#endif
9271
9272_LT_EOF
9273 # Now generate the symbol file.
9274 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9275
9276 cat <<_LT_EOF >> conftest.$ac_ext
9277
9278/* The mapping between symbol names and symbols. */
9279const struct {
9280 const char *name;
9281 void *address;
9282}
9283lt__PROGRAM__LTX_preloaded_symbols[] =
9284{
9285 { "@PROGRAM@", (void *) 0 },
9286_LT_EOF
9287 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9288 cat <<\_LT_EOF >> conftest.$ac_ext
9289 {0, (void *) 0}
9290};
9291
9292/* This works around a problem in FreeBSD linker */
9293#ifdef FREEBSD_WORKAROUND
9294static const void *lt_preloaded_setup() {
9295 return lt__PROGRAM__LTX_preloaded_symbols;
9296}
9297#endif
9298
9299#ifdef __cplusplus
9300}
9301#endif
9302_LT_EOF
9303 # Now try linking the two files.
9304 mv conftest.$ac_objext conftstm.$ac_objext
9305 lt_save_LIBS="$LIBS"
9306 lt_save_CFLAGS="$CFLAGS"
9307 LIBS="conftstm.$ac_objext"
9308 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +00009309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009310 (eval $ac_link) 2>&5
9311 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9313 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +00009314 pipe_works=yes
9315 fi
9316 LIBS="$lt_save_LIBS"
9317 CFLAGS="$lt_save_CFLAGS"
9318 else
9319 echo "cannot find nm_test_func in $nlist" >&5
9320 fi
9321 else
9322 echo "cannot find nm_test_var in $nlist" >&5
9323 fi
9324 else
9325 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9326 fi
9327 else
9328 echo "$progname: failed program was:" >&5
9329 cat conftest.$ac_ext >&5
9330 fi
9331 rm -rf conftest* conftst*
9332
9333 # Do not use the global_symbol_pipe unless it works.
9334 if test "$pipe_works" = yes; then
9335 break
9336 else
9337 lt_cv_sys_global_symbol_pipe=
9338 fi
9339done
9340
9341fi
9342
9343if test -z "$lt_cv_sys_global_symbol_pipe"; then
9344 lt_cv_sys_global_symbol_to_cdecl=
9345fi
9346if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +00009347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +00009348$as_echo "failed" >&6; }
9349else
cristy8b350f62009-11-15 23:12:43 +00009350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00009351$as_echo "ok" >&6; }
9352fi
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +00009376if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009377 enableval=$enable_libtool_lock;
9378fi
9379
9380test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9381
9382# Some flags need to be propagated to the compiler or linker for good
9383# libtool support.
9384case $host in
9385ia64-*-hpux*)
9386 # Find out which ABI we are using.
9387 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009389 (eval $ac_compile) 2>&5
9390 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9392 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009393 case `/usr/bin/file conftest.$ac_objext` in
9394 *ELF-32*)
9395 HPUX_IA64_MODE="32"
9396 ;;
9397 *ELF-64*)
9398 HPUX_IA64_MODE="64"
9399 ;;
9400 esac
9401 fi
9402 rm -rf conftest*
9403 ;;
9404*-*-irix6*)
9405 # Find out which ABI we are using.
cristy932c9122009-11-19 13:57:03 +00009406 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009408 (eval $ac_compile) 2>&5
9409 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9411 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009412 if test "$lt_cv_prog_gnu_ld" = yes; then
9413 case `/usr/bin/file conftest.$ac_objext` in
9414 *32-bit*)
9415 LD="${LD-ld} -melf32bsmip"
9416 ;;
9417 *N32*)
9418 LD="${LD-ld} -melf32bmipn32"
9419 ;;
9420 *64-bit*)
9421 LD="${LD-ld} -melf64bmip"
9422 ;;
9423 esac
9424 else
9425 case `/usr/bin/file conftest.$ac_objext` in
9426 *32-bit*)
9427 LD="${LD-ld} -32"
9428 ;;
9429 *N32*)
9430 LD="${LD-ld} -n32"
9431 ;;
9432 *64-bit*)
9433 LD="${LD-ld} -64"
9434 ;;
9435 esac
9436 fi
9437 fi
9438 rm -rf conftest*
9439 ;;
9440
9441x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9442s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9443 # Find out which ABI we are using.
9444 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009446 (eval $ac_compile) 2>&5
9447 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9449 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009450 case `/usr/bin/file conftest.o` in
9451 *32-bit*)
9452 case $host in
9453 x86_64-*kfreebsd*-gnu)
9454 LD="${LD-ld} -m elf_i386_fbsd"
9455 ;;
9456 x86_64-*linux*)
9457 LD="${LD-ld} -m elf_i386"
9458 ;;
9459 ppc64-*linux*|powerpc64-*linux*)
9460 LD="${LD-ld} -m elf32ppclinux"
9461 ;;
9462 s390x-*linux*)
9463 LD="${LD-ld} -m elf_s390"
9464 ;;
9465 sparc64-*linux*)
9466 LD="${LD-ld} -m elf32_sparc"
9467 ;;
9468 esac
9469 ;;
9470 *64-bit*)
9471 case $host in
9472 x86_64-*kfreebsd*-gnu)
9473 LD="${LD-ld} -m elf_x86_64_fbsd"
9474 ;;
9475 x86_64-*linux*)
9476 LD="${LD-ld} -m elf_x86_64"
9477 ;;
9478 ppc*-*linux*|powerpc*-*linux*)
9479 LD="${LD-ld} -m elf64ppc"
9480 ;;
9481 s390*-*linux*|s390*-*tpf*)
9482 LD="${LD-ld} -m elf64_s390"
9483 ;;
9484 sparc*-*linux*)
9485 LD="${LD-ld} -m elf64_sparc"
9486 ;;
9487 esac
9488 ;;
9489 esac
9490 fi
9491 rm -rf conftest*
9492 ;;
9493
9494*-*-sco3.2v5*)
9495 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9496 SAVE_CFLAGS="$CFLAGS"
9497 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +00009498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009499$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009500if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009501 $as_echo_n "(cached) " >&6
9502else
9503 ac_ext=c
9504ac_cpp='$CPP $CPPFLAGS'
9505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9507ac_compiler_gnu=$ac_cv_c_compiler_gnu
9508
cristy8b350f62009-11-15 23:12:43 +00009509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009510/* end confdefs.h. */
9511
9512int
9513main ()
9514{
9515
9516 ;
9517 return 0;
9518}
9519_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009520if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009521 lt_cv_cc_needs_belf=yes
9522else
cristy8b350f62009-11-15 23:12:43 +00009523 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +00009524fi
cristy8b350f62009-11-15 23:12:43 +00009525rm -f core conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009527 ac_ext=c
9528ac_cpp='$CPP $CPPFLAGS'
9529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9531ac_compiler_gnu=$ac_cv_c_compiler_gnu
9532
9533fi
cristy8b350f62009-11-15 23:12:43 +00009534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009535$as_echo "$lt_cv_cc_needs_belf" >&6; }
9536 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9537 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9538 CFLAGS="$SAVE_CFLAGS"
9539 fi
9540 ;;
9541sparc*-*solaris*)
9542 # Find out which ABI we are using.
9543 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009545 (eval $ac_compile) 2>&5
9546 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9548 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009549 case `/usr/bin/file conftest.o` in
9550 *64-bit*)
9551 case $lt_cv_prog_gnu_ld in
9552 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9553 *)
9554 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9555 LD="${LD-ld} -64"
9556 fi
9557 ;;
9558 esac
9559 ;;
9560 esac
9561 fi
9562 rm -rf conftest*
9563 ;;
9564esac
9565
9566need_locks="$enable_libtool_lock"
9567
9568
9569 case $host_os in
9570 rhapsody* | darwin*)
9571 if test -n "$ac_tool_prefix"; then
9572 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9573set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009575$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009576if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009577 $as_echo_n "(cached) " >&6
9578else
9579 if test -n "$DSYMUTIL"; then
9580 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9581else
9582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583for as_dir in $PATH
9584do
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009587 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9589 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009591 break 2
9592 fi
9593done
cristy8b350f62009-11-15 23:12:43 +00009594 done
cristy3ed852e2009-09-05 21:47:34 +00009595IFS=$as_save_IFS
9596
9597fi
9598fi
9599DSYMUTIL=$ac_cv_prog_DSYMUTIL
9600if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009602$as_echo "$DSYMUTIL" >&6; }
9603else
cristy8b350f62009-11-15 23:12:43 +00009604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009605$as_echo "no" >&6; }
9606fi
9607
9608
9609fi
9610if test -z "$ac_cv_prog_DSYMUTIL"; then
9611 ac_ct_DSYMUTIL=$DSYMUTIL
9612 # Extract the first word of "dsymutil", so it can be a program name with args.
9613set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009615$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009616if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009617 $as_echo_n "(cached) " >&6
9618else
9619 if test -n "$ac_ct_DSYMUTIL"; then
9620 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9621else
9622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9623for as_dir in $PATH
9624do
9625 IFS=$as_save_IFS
9626 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009627 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9629 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009631 break 2
9632 fi
9633done
cristy8b350f62009-11-15 23:12:43 +00009634 done
cristy3ed852e2009-09-05 21:47:34 +00009635IFS=$as_save_IFS
9636
9637fi
9638fi
9639ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9640if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009642$as_echo "$ac_ct_DSYMUTIL" >&6; }
9643else
cristy8b350f62009-11-15 23:12:43 +00009644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009645$as_echo "no" >&6; }
9646fi
9647
9648 if test "x$ac_ct_DSYMUTIL" = x; then
9649 DSYMUTIL=":"
9650 else
9651 case $cross_compiling:$ac_tool_warned in
9652yes:)
cristy8b350f62009-11-15 23:12:43 +00009653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9655ac_tool_warned=yes ;;
9656esac
9657 DSYMUTIL=$ac_ct_DSYMUTIL
9658 fi
9659else
9660 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9661fi
9662
9663 if test -n "$ac_tool_prefix"; then
9664 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9665set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009667$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009668if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009669 $as_echo_n "(cached) " >&6
9670else
9671 if test -n "$NMEDIT"; then
9672 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9673else
9674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675for as_dir in $PATH
9676do
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9681 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +00009682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009683 break 2
9684 fi
9685done
cristy8b350f62009-11-15 23:12:43 +00009686 done
cristy3ed852e2009-09-05 21:47:34 +00009687IFS=$as_save_IFS
9688
9689fi
9690fi
9691NMEDIT=$ac_cv_prog_NMEDIT
9692if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009694$as_echo "$NMEDIT" >&6; }
9695else
cristy8b350f62009-11-15 23:12:43 +00009696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009697$as_echo "no" >&6; }
9698fi
9699
9700
9701fi
9702if test -z "$ac_cv_prog_NMEDIT"; then
9703 ac_ct_NMEDIT=$NMEDIT
9704 # Extract the first word of "nmedit", so it can be a program name with args.
9705set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009707$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009708if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009709 $as_echo_n "(cached) " >&6
9710else
9711 if test -n "$ac_ct_NMEDIT"; then
9712 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9713else
9714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9715for as_dir in $PATH
9716do
9717 IFS=$as_save_IFS
9718 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009719 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9721 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +00009722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009723 break 2
9724 fi
9725done
cristy8b350f62009-11-15 23:12:43 +00009726 done
cristy3ed852e2009-09-05 21:47:34 +00009727IFS=$as_save_IFS
9728
9729fi
9730fi
9731ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9732if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009734$as_echo "$ac_ct_NMEDIT" >&6; }
9735else
cristy8b350f62009-11-15 23:12:43 +00009736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009737$as_echo "no" >&6; }
9738fi
9739
9740 if test "x$ac_ct_NMEDIT" = x; then
9741 NMEDIT=":"
9742 else
9743 case $cross_compiling:$ac_tool_warned in
9744yes:)
cristy8b350f62009-11-15 23:12:43 +00009745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9747ac_tool_warned=yes ;;
9748esac
9749 NMEDIT=$ac_ct_NMEDIT
9750 fi
9751else
9752 NMEDIT="$ac_cv_prog_NMEDIT"
9753fi
9754
9755 if test -n "$ac_tool_prefix"; then
9756 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9757set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009759$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009760if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009761 $as_echo_n "(cached) " >&6
9762else
9763 if test -n "$LIPO"; then
9764 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9765else
9766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767for as_dir in $PATH
9768do
9769 IFS=$as_save_IFS
9770 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009771 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9773 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +00009774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009775 break 2
9776 fi
9777done
cristy8b350f62009-11-15 23:12:43 +00009778 done
cristy3ed852e2009-09-05 21:47:34 +00009779IFS=$as_save_IFS
9780
9781fi
9782fi
9783LIPO=$ac_cv_prog_LIPO
9784if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009786$as_echo "$LIPO" >&6; }
9787else
cristy8b350f62009-11-15 23:12:43 +00009788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009789$as_echo "no" >&6; }
9790fi
9791
9792
9793fi
9794if test -z "$ac_cv_prog_LIPO"; then
9795 ac_ct_LIPO=$LIPO
9796 # Extract the first word of "lipo", so it can be a program name with args.
9797set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009799$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009800if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009801 $as_echo_n "(cached) " >&6
9802else
9803 if test -n "$ac_ct_LIPO"; then
9804 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9805else
9806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807for as_dir in $PATH
9808do
9809 IFS=$as_save_IFS
9810 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009811 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9813 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +00009814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009815 break 2
9816 fi
9817done
cristy8b350f62009-11-15 23:12:43 +00009818 done
cristy3ed852e2009-09-05 21:47:34 +00009819IFS=$as_save_IFS
9820
9821fi
9822fi
9823ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9824if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009826$as_echo "$ac_ct_LIPO" >&6; }
9827else
cristy8b350f62009-11-15 23:12:43 +00009828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009829$as_echo "no" >&6; }
9830fi
9831
9832 if test "x$ac_ct_LIPO" = x; then
9833 LIPO=":"
9834 else
9835 case $cross_compiling:$ac_tool_warned in
9836yes:)
cristy8b350f62009-11-15 23:12:43 +00009837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9839ac_tool_warned=yes ;;
9840esac
9841 LIPO=$ac_ct_LIPO
9842 fi
9843else
9844 LIPO="$ac_cv_prog_LIPO"
9845fi
9846
9847 if test -n "$ac_tool_prefix"; then
9848 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9849set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009851$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009852if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009853 $as_echo_n "(cached) " >&6
9854else
9855 if test -n "$OTOOL"; then
9856 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9857else
9858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859for as_dir in $PATH
9860do
9861 IFS=$as_save_IFS
9862 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009863 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9865 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +00009866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009867 break 2
9868 fi
9869done
cristy8b350f62009-11-15 23:12:43 +00009870 done
cristy3ed852e2009-09-05 21:47:34 +00009871IFS=$as_save_IFS
9872
9873fi
9874fi
9875OTOOL=$ac_cv_prog_OTOOL
9876if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009878$as_echo "$OTOOL" >&6; }
9879else
cristy8b350f62009-11-15 23:12:43 +00009880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009881$as_echo "no" >&6; }
9882fi
9883
9884
9885fi
9886if test -z "$ac_cv_prog_OTOOL"; then
9887 ac_ct_OTOOL=$OTOOL
9888 # Extract the first word of "otool", so it can be a program name with args.
9889set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009891$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009892if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009893 $as_echo_n "(cached) " >&6
9894else
9895 if test -n "$ac_ct_OTOOL"; then
9896 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9897else
9898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9899for as_dir in $PATH
9900do
9901 IFS=$as_save_IFS
9902 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009903 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9905 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +00009906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009907 break 2
9908 fi
9909done
cristy8b350f62009-11-15 23:12:43 +00009910 done
cristy3ed852e2009-09-05 21:47:34 +00009911IFS=$as_save_IFS
9912
9913fi
9914fi
9915ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9916if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009918$as_echo "$ac_ct_OTOOL" >&6; }
9919else
cristy8b350f62009-11-15 23:12:43 +00009920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009921$as_echo "no" >&6; }
9922fi
9923
9924 if test "x$ac_ct_OTOOL" = x; then
9925 OTOOL=":"
9926 else
9927 case $cross_compiling:$ac_tool_warned in
9928yes:)
cristy8b350f62009-11-15 23:12:43 +00009929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9931ac_tool_warned=yes ;;
9932esac
9933 OTOOL=$ac_ct_OTOOL
9934 fi
9935else
9936 OTOOL="$ac_cv_prog_OTOOL"
9937fi
9938
9939 if test -n "$ac_tool_prefix"; then
9940 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9941set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009943$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009944if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009945 $as_echo_n "(cached) " >&6
9946else
9947 if test -n "$OTOOL64"; then
9948 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9949else
9950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951for as_dir in $PATH
9952do
9953 IFS=$as_save_IFS
9954 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9957 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +00009958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009959 break 2
9960 fi
9961done
cristy8b350f62009-11-15 23:12:43 +00009962 done
cristy3ed852e2009-09-05 21:47:34 +00009963IFS=$as_save_IFS
9964
9965fi
9966fi
9967OTOOL64=$ac_cv_prog_OTOOL64
9968if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +00009969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +00009970$as_echo "$OTOOL64" >&6; }
9971else
cristy8b350f62009-11-15 23:12:43 +00009972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009973$as_echo "no" >&6; }
9974fi
9975
9976
9977fi
9978if test -z "$ac_cv_prog_OTOOL64"; then
9979 ac_ct_OTOOL64=$OTOOL64
9980 # Extract the first word of "otool64", so it can be a program name with args.
9981set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009983$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009984if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009985 $as_echo_n "(cached) " >&6
9986else
9987 if test -n "$ac_ct_OTOOL64"; then
9988 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9989else
9990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991for as_dir in $PATH
9992do
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009995 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9997 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +00009998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009999 break 2
10000 fi
10001done
cristy8b350f62009-11-15 23:12:43 +000010002 done
cristy3ed852e2009-09-05 21:47:34 +000010003IFS=$as_save_IFS
10004
10005fi
10006fi
10007ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10008if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010010$as_echo "$ac_ct_OTOOL64" >&6; }
10011else
cristy8b350f62009-11-15 23:12:43 +000010012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010013$as_echo "no" >&6; }
10014fi
10015
10016 if test "x$ac_ct_OTOOL64" = x; then
10017 OTOOL64=":"
10018 else
10019 case $cross_compiling:$ac_tool_warned in
10020yes:)
cristy8b350f62009-11-15 23:12:43 +000010021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10023ac_tool_warned=yes ;;
10024esac
10025 OTOOL64=$ac_ct_OTOOL64
10026 fi
10027else
10028 OTOOL64="$ac_cv_prog_OTOOL64"
10029fi
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
cristy8b350f62009-11-15 23:12:43 +000010057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010058$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010059if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010060 $as_echo_n "(cached) " >&6
10061else
10062 lt_cv_apple_cc_single_mod=no
10063 if test -z "${LT_MULTI_MODULE}"; then
10064 # By default we will add the -single_module flag. You can override
10065 # by either setting the environment variable LT_MULTI_MODULE
10066 # non-empty at configure time, or by adding -multi_module to the
10067 # link flags.
10068 rm -rf libconftest.dylib*
10069 echo "int foo(void){return 1;}" > conftest.c
10070 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10071-dynamiclib -Wl,-single_module conftest.c" >&5
10072 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10073 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10074 _lt_result=$?
10075 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10076 lt_cv_apple_cc_single_mod=yes
10077 else
10078 cat conftest.err >&5
10079 fi
10080 rm -rf libconftest.dylib*
10081 rm -f conftest.*
10082 fi
10083fi
cristy8b350f62009-11-15 23:12:43 +000010084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000010085$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010087$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010088if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010089 $as_echo_n "(cached) " >&6
10090else
10091 lt_cv_ld_exported_symbols_list=no
10092 save_LDFLAGS=$LDFLAGS
10093 echo "_main" > conftest.sym
10094 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000010095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010096/* end confdefs.h. */
10097
10098int
10099main ()
10100{
10101
10102 ;
10103 return 0;
10104}
10105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010106if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010107 lt_cv_ld_exported_symbols_list=yes
10108else
cristy8b350f62009-11-15 23:12:43 +000010109 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000010110fi
cristy8b350f62009-11-15 23:12:43 +000010111rm -f core conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010113 LDFLAGS="$save_LDFLAGS"
10114
10115fi
cristy8b350f62009-11-15 23:12:43 +000010116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000010117$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy932c9122009-11-19 13:57:03 +000010118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10119$as_echo_n "checking for -force_load linker flag... " >&6; }
10120if test "${lt_cv_ld_force_load+set}" = set; then :
10121 $as_echo_n "(cached) " >&6
10122else
10123 lt_cv_ld_force_load=no
10124 cat > conftest.c << _LT_EOF
10125int forced_loaded() { return 2;}
10126_LT_EOF
10127 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10128 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10129 echo "$AR cru libconftest.a conftest.o" >&5
10130 $AR cru libconftest.a conftest.o 2>&5
10131 cat > conftest.c << _LT_EOF
10132int main() { return 0;}
10133_LT_EOF
10134 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10135 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10136 _lt_result=$?
10137 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10138 lt_cv_ld_force_load=yes
10139 else
10140 cat conftest.err >&5
10141 fi
10142 rm -f conftest.err libconftest.a conftest conftest.c
10143 rm -rf conftest.dSYM
10144
10145fi
10146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10147$as_echo "$lt_cv_ld_force_load" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010148 case $host_os in
10149 rhapsody* | darwin1.[012])
10150 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10151 darwin1.*)
10152 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10153 darwin*) # darwin 5.x on
10154 # if running on 10.5 or later, the deployment target defaults
10155 # to the OS version, if on x86, and 10.4, the deployment
10156 # target defaults to 10.4. Don't you love it?
10157 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10158 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10159 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10160 10.[012]*)
10161 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10162 10.*)
10163 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10164 esac
10165 ;;
10166 esac
10167 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10168 _lt_dar_single_mod='$single_module'
10169 fi
10170 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10171 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10172 else
10173 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10174 fi
cristy932c9122009-11-19 13:57:03 +000010175 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy3ed852e2009-09-05 21:47:34 +000010176 _lt_dsymutil='~$DSYMUTIL $lib || :'
10177 else
10178 _lt_dsymutil=
10179 fi
10180 ;;
10181 esac
10182
cristy3ed852e2009-09-05 21:47:34 +000010183for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000010184do :
10185 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10186"
10187if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010188 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010189#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000010190_ACEOF
10191
10192fi
10193
10194done
10195
10196
10197
cristy3ed852e2009-09-05 21:47:34 +000010198
10199
10200
10201# Set options
10202enable_win32_dll=yes
10203
10204case $host in
cristy932c9122009-11-19 13:57:03 +000010205*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010206 if test -n "$ac_tool_prefix"; then
10207 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10208set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010210$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010211if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010212 $as_echo_n "(cached) " >&6
10213else
10214 if test -n "$AS"; then
10215 ac_cv_prog_AS="$AS" # Let the user override the test.
10216else
10217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218for as_dir in $PATH
10219do
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10224 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000010225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010226 break 2
10227 fi
10228done
cristy8b350f62009-11-15 23:12:43 +000010229 done
cristy3ed852e2009-09-05 21:47:34 +000010230IFS=$as_save_IFS
10231
10232fi
10233fi
10234AS=$ac_cv_prog_AS
10235if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000010236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010237$as_echo "$AS" >&6; }
10238else
cristy8b350f62009-11-15 23:12:43 +000010239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010240$as_echo "no" >&6; }
10241fi
10242
10243
10244fi
10245if test -z "$ac_cv_prog_AS"; then
10246 ac_ct_AS=$AS
10247 # Extract the first word of "as", so it can be a program name with args.
10248set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010250$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010251if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010252 $as_echo_n "(cached) " >&6
10253else
10254 if test -n "$ac_ct_AS"; then
10255 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10256else
10257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258for as_dir in $PATH
10259do
10260 IFS=$as_save_IFS
10261 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10264 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000010265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010266 break 2
10267 fi
10268done
cristy8b350f62009-11-15 23:12:43 +000010269 done
cristy3ed852e2009-09-05 21:47:34 +000010270IFS=$as_save_IFS
10271
10272fi
10273fi
10274ac_ct_AS=$ac_cv_prog_ac_ct_AS
10275if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000010276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010277$as_echo "$ac_ct_AS" >&6; }
10278else
cristy8b350f62009-11-15 23:12:43 +000010279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010280$as_echo "no" >&6; }
10281fi
10282
10283 if test "x$ac_ct_AS" = x; then
10284 AS="false"
10285 else
10286 case $cross_compiling:$ac_tool_warned in
10287yes:)
cristy8b350f62009-11-15 23:12:43 +000010288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10290ac_tool_warned=yes ;;
10291esac
10292 AS=$ac_ct_AS
10293 fi
10294else
10295 AS="$ac_cv_prog_AS"
10296fi
10297
10298 if test -n "$ac_tool_prefix"; then
10299 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10300set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010302$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010303if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010304 $as_echo_n "(cached) " >&6
10305else
10306 if test -n "$DLLTOOL"; then
10307 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10308else
10309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310for as_dir in $PATH
10311do
10312 IFS=$as_save_IFS
10313 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10316 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000010317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010318 break 2
10319 fi
10320done
cristy8b350f62009-11-15 23:12:43 +000010321 done
cristy3ed852e2009-09-05 21:47:34 +000010322IFS=$as_save_IFS
10323
10324fi
10325fi
10326DLLTOOL=$ac_cv_prog_DLLTOOL
10327if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010329$as_echo "$DLLTOOL" >&6; }
10330else
cristy8b350f62009-11-15 23:12:43 +000010331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010332$as_echo "no" >&6; }
10333fi
10334
10335
10336fi
10337if test -z "$ac_cv_prog_DLLTOOL"; then
10338 ac_ct_DLLTOOL=$DLLTOOL
10339 # Extract the first word of "dlltool", so it can be a program name with args.
10340set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010342$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010343if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010344 $as_echo_n "(cached) " >&6
10345else
10346 if test -n "$ac_ct_DLLTOOL"; then
10347 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10348else
10349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350for as_dir in $PATH
10351do
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10356 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000010357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010358 break 2
10359 fi
10360done
cristy8b350f62009-11-15 23:12:43 +000010361 done
cristy3ed852e2009-09-05 21:47:34 +000010362IFS=$as_save_IFS
10363
10364fi
10365fi
10366ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10367if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010369$as_echo "$ac_ct_DLLTOOL" >&6; }
10370else
cristy8b350f62009-11-15 23:12:43 +000010371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010372$as_echo "no" >&6; }
10373fi
10374
10375 if test "x$ac_ct_DLLTOOL" = x; then
10376 DLLTOOL="false"
10377 else
10378 case $cross_compiling:$ac_tool_warned in
10379yes:)
cristy8b350f62009-11-15 23:12:43 +000010380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10382ac_tool_warned=yes ;;
10383esac
10384 DLLTOOL=$ac_ct_DLLTOOL
10385 fi
10386else
10387 DLLTOOL="$ac_cv_prog_DLLTOOL"
10388fi
10389
10390 if test -n "$ac_tool_prefix"; then
10391 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10392set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010394$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010395if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010396 $as_echo_n "(cached) " >&6
10397else
10398 if test -n "$OBJDUMP"; then
10399 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10400else
10401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402for as_dir in $PATH
10403do
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10408 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000010409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010410 break 2
10411 fi
10412done
cristy8b350f62009-11-15 23:12:43 +000010413 done
cristy3ed852e2009-09-05 21:47:34 +000010414IFS=$as_save_IFS
10415
10416fi
10417fi
10418OBJDUMP=$ac_cv_prog_OBJDUMP
10419if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010421$as_echo "$OBJDUMP" >&6; }
10422else
cristy8b350f62009-11-15 23:12:43 +000010423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010424$as_echo "no" >&6; }
10425fi
10426
10427
10428fi
10429if test -z "$ac_cv_prog_OBJDUMP"; then
10430 ac_ct_OBJDUMP=$OBJDUMP
10431 # Extract the first word of "objdump", so it can be a program name with args.
10432set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010434$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010435if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010436 $as_echo_n "(cached) " >&6
10437else
10438 if test -n "$ac_ct_OBJDUMP"; then
10439 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10440else
10441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10442for as_dir in $PATH
10443do
10444 IFS=$as_save_IFS
10445 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10448 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000010449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010450 break 2
10451 fi
10452done
cristy8b350f62009-11-15 23:12:43 +000010453 done
cristy3ed852e2009-09-05 21:47:34 +000010454IFS=$as_save_IFS
10455
10456fi
10457fi
10458ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10459if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010461$as_echo "$ac_ct_OBJDUMP" >&6; }
10462else
cristy8b350f62009-11-15 23:12:43 +000010463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010464$as_echo "no" >&6; }
10465fi
10466
10467 if test "x$ac_ct_OBJDUMP" = x; then
10468 OBJDUMP="false"
10469 else
10470 case $cross_compiling:$ac_tool_warned in
10471yes:)
cristy8b350f62009-11-15 23:12:43 +000010472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10474ac_tool_warned=yes ;;
10475esac
10476 OBJDUMP=$ac_ct_OBJDUMP
10477 fi
10478else
10479 OBJDUMP="$ac_cv_prog_OBJDUMP"
10480fi
10481
10482 ;;
10483esac
10484
10485test -z "$AS" && AS=as
10486
10487
10488
10489
10490
10491test -z "$DLLTOOL" && DLLTOOL=dlltool
10492
10493
10494
10495
10496
10497test -z "$OBJDUMP" && OBJDUMP=objdump
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000010508if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010509 enableval=$enable_shared; p=${PACKAGE-default}
10510 case $enableval in
10511 yes) enable_shared=yes ;;
10512 no) enable_shared=no ;;
10513 *)
10514 enable_shared=no
10515 # Look at the argument we got. We use all the common list separators.
10516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10517 for pkg in $enableval; do
10518 IFS="$lt_save_ifs"
10519 if test "X$pkg" = "X$p"; then
10520 enable_shared=yes
10521 fi
10522 done
10523 IFS="$lt_save_ifs"
10524 ;;
10525 esac
10526else
10527 enable_shared=yes
10528fi
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000010539if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010540 enableval=$enable_static; p=${PACKAGE-default}
10541 case $enableval in
10542 yes) enable_static=yes ;;
10543 no) enable_static=no ;;
10544 *)
10545 enable_static=no
10546 # Look at the argument we got. We use all the common list separators.
10547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10548 for pkg in $enableval; do
10549 IFS="$lt_save_ifs"
10550 if test "X$pkg" = "X$p"; then
10551 enable_static=yes
10552 fi
10553 done
10554 IFS="$lt_save_ifs"
10555 ;;
10556 esac
10557else
10558 enable_static=yes
10559fi
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000010571if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010572 withval=$with_pic; pic_mode="$withval"
10573else
10574 pic_mode=default
10575fi
10576
10577
10578test -z "$pic_mode" && pic_mode=default
10579
10580
10581
10582
10583
10584
10585
10586 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000010587if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010588 enableval=$enable_fast_install; p=${PACKAGE-default}
10589 case $enableval in
10590 yes) enable_fast_install=yes ;;
10591 no) enable_fast_install=no ;;
10592 *)
10593 enable_fast_install=no
10594 # Look at the argument we got. We use all the common list separators.
10595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10596 for pkg in $enableval; do
10597 IFS="$lt_save_ifs"
10598 if test "X$pkg" = "X$p"; then
10599 enable_fast_install=yes
10600 fi
10601 done
10602 IFS="$lt_save_ifs"
10603 ;;
10604 esac
10605else
10606 enable_fast_install=yes
10607fi
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619# This can be used to rebuild libtool when needed
10620LIBTOOL_DEPS="$ltmain"
10621
10622# Always use our own libtool.
10623LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
cristy932c9122009-11-19 13:57:03 +000010649
cristy3ed852e2009-09-05 21:47:34 +000010650test -z "$LN_S" && LN_S="ln -s"
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665if test -n "${ZSH_VERSION+set}" ; then
10666 setopt NO_GLOB_SUBST
10667fi
10668
cristy8b350f62009-11-15 23:12:43 +000010669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000010670$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010671if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010672 $as_echo_n "(cached) " >&6
10673else
10674 rm -f .libs 2>/dev/null
10675mkdir .libs 2>/dev/null
10676if test -d .libs; then
10677 lt_cv_objdir=.libs
10678else
10679 # MS-DOS does not allow filenames that begin with a dot.
10680 lt_cv_objdir=_libs
10681fi
10682rmdir .libs 2>/dev/null
10683fi
cristy8b350f62009-11-15 23:12:43 +000010684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000010685$as_echo "$lt_cv_objdir" >&6; }
10686objdir=$lt_cv_objdir
10687
10688
10689
10690
10691
10692cat >>confdefs.h <<_ACEOF
10693#define LT_OBJDIR "$lt_cv_objdir/"
10694_ACEOF
10695
10696
10697
10698
cristy3ed852e2009-09-05 21:47:34 +000010699case $host_os in
10700aix3*)
10701 # AIX sometimes has problems with the GCC collect2 program. For some
10702 # reason, if we set the COLLECT_NAMES environment variable, the problems
10703 # vanish in a puff of smoke.
10704 if test "X${COLLECT_NAMES+set}" != Xset; then
10705 COLLECT_NAMES=
10706 export COLLECT_NAMES
10707 fi
10708 ;;
10709esac
10710
cristy3ed852e2009-09-05 21:47:34 +000010711# Global variables:
10712ofile=libtool
10713can_build_shared=yes
10714
10715# All known linkers require a `.a' archive for static linking (except MSVC,
10716# which needs '.lib').
10717libext=a
10718
10719with_gnu_ld="$lt_cv_prog_gnu_ld"
10720
10721old_CC="$CC"
10722old_CFLAGS="$CFLAGS"
10723
10724# Set sane defaults for various variables
10725test -z "$CC" && CC=cc
10726test -z "$LTCC" && LTCC=$CC
10727test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10728test -z "$LD" && LD=ld
10729test -z "$ac_objext" && ac_objext=o
10730
10731for cc_temp in $compiler""; do
10732 case $cc_temp in
10733 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10734 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10735 \-*) ;;
10736 *) break;;
10737 esac
10738done
cristy932c9122009-11-19 13:57:03 +000010739cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000010740
10741
10742# Only perform the check for file, if the check method requires it
10743test -z "$MAGIC_CMD" && MAGIC_CMD=file
10744case $deplibs_check_method in
10745file_magic*)
10746 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000010747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000010748$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010749if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010750 $as_echo_n "(cached) " >&6
10751else
10752 case $MAGIC_CMD in
10753[\\/*] | ?:[\\/]*)
10754 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10755 ;;
10756*)
10757 lt_save_MAGIC_CMD="$MAGIC_CMD"
10758 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10759 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10760 for ac_dir in $ac_dummy; do
10761 IFS="$lt_save_ifs"
10762 test -z "$ac_dir" && ac_dir=.
10763 if test -f $ac_dir/${ac_tool_prefix}file; then
10764 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10765 if test -n "$file_magic_test_file"; then
10766 case $deplibs_check_method in
10767 "file_magic "*)
10768 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10769 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10770 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10771 $EGREP "$file_magic_regex" > /dev/null; then
10772 :
10773 else
10774 cat <<_LT_EOF 1>&2
10775
10776*** Warning: the command libtool uses to detect shared libraries,
10777*** $file_magic_cmd, produces output that libtool cannot recognize.
10778*** The result is that libtool may fail to recognize shared libraries
10779*** as such. This will affect the creation of libtool libraries that
10780*** depend on shared libraries, but programs linked with such libtool
10781*** libraries will work regardless of this problem. Nevertheless, you
10782*** may want to report the problem to your system manager and/or to
10783*** bug-libtool@gnu.org
10784
10785_LT_EOF
10786 fi ;;
10787 esac
10788 fi
10789 break
10790 fi
10791 done
10792 IFS="$lt_save_ifs"
10793 MAGIC_CMD="$lt_save_MAGIC_CMD"
10794 ;;
10795esac
10796fi
10797
10798MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10799if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000010800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000010801$as_echo "$MAGIC_CMD" >&6; }
10802else
cristy8b350f62009-11-15 23:12:43 +000010803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010804$as_echo "no" >&6; }
10805fi
10806
10807
10808
10809
10810
10811if test -z "$lt_cv_path_MAGIC_CMD"; then
10812 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000010813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000010814$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010815if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010816 $as_echo_n "(cached) " >&6
10817else
10818 case $MAGIC_CMD in
10819[\\/*] | ?:[\\/]*)
10820 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10821 ;;
10822*)
10823 lt_save_MAGIC_CMD="$MAGIC_CMD"
10824 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10825 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10826 for ac_dir in $ac_dummy; do
10827 IFS="$lt_save_ifs"
10828 test -z "$ac_dir" && ac_dir=.
10829 if test -f $ac_dir/file; then
10830 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10831 if test -n "$file_magic_test_file"; then
10832 case $deplibs_check_method in
10833 "file_magic "*)
10834 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10835 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10836 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10837 $EGREP "$file_magic_regex" > /dev/null; then
10838 :
10839 else
10840 cat <<_LT_EOF 1>&2
10841
10842*** Warning: the command libtool uses to detect shared libraries,
10843*** $file_magic_cmd, produces output that libtool cannot recognize.
10844*** The result is that libtool may fail to recognize shared libraries
10845*** as such. This will affect the creation of libtool libraries that
10846*** depend on shared libraries, but programs linked with such libtool
10847*** libraries will work regardless of this problem. Nevertheless, you
10848*** may want to report the problem to your system manager and/or to
10849*** bug-libtool@gnu.org
10850
10851_LT_EOF
10852 fi ;;
10853 esac
10854 fi
10855 break
10856 fi
10857 done
10858 IFS="$lt_save_ifs"
10859 MAGIC_CMD="$lt_save_MAGIC_CMD"
10860 ;;
10861esac
10862fi
10863
10864MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10865if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000010866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000010867$as_echo "$MAGIC_CMD" >&6; }
10868else
cristy8b350f62009-11-15 23:12:43 +000010869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010870$as_echo "no" >&6; }
10871fi
10872
10873
10874 else
10875 MAGIC_CMD=:
10876 fi
10877fi
10878
10879 fi
10880 ;;
10881esac
10882
10883# Use C for the default configuration in the libtool script
10884
10885lt_save_CC="$CC"
10886ac_ext=c
10887ac_cpp='$CPP $CPPFLAGS'
10888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10890ac_compiler_gnu=$ac_cv_c_compiler_gnu
10891
10892
10893# Source file extension for C test sources.
10894ac_ext=c
10895
10896# Object file extension for compiled C test sources.
10897objext=o
10898objext=$objext
10899
10900# Code to be used in simple compile tests
10901lt_simple_compile_test_code="int some_variable = 0;"
10902
10903# Code to be used in simple link tests
10904lt_simple_link_test_code='int main(){return(0);}'
10905
10906
10907
10908
10909
10910
10911
10912# If no C compiler was specified, use CC.
10913LTCC=${LTCC-"$CC"}
10914
10915# If no C compiler flags were specified, use CFLAGS.
10916LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10917
10918# Allow CC to be a program name with arguments.
10919compiler=$CC
10920
10921# Save the default compiler, since it gets overwritten when the other
10922# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10923compiler_DEFAULT=$CC
10924
10925# save warnings/boilerplate of simple test code
10926ac_outfile=conftest.$ac_objext
10927echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10928eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10929_lt_compiler_boilerplate=`cat conftest.err`
10930$RM conftest*
10931
10932ac_outfile=conftest.$ac_objext
10933echo "$lt_simple_link_test_code" >conftest.$ac_ext
10934eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10935_lt_linker_boilerplate=`cat conftest.err`
10936$RM -r conftest*
10937
10938
10939## CAVEAT EMPTOR:
10940## There is no encapsulation within the following macros, do not change
10941## the running order or otherwise move them around unless you know exactly
10942## what you are doing...
10943if test -n "$compiler"; then
10944
10945lt_prog_compiler_no_builtin_flag=
10946
10947if test "$GCC" = yes; then
cristy932c9122009-11-19 13:57:03 +000010948 case $cc_basename in
10949 nvcc*)
10950 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10951 *)
10952 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10953 esac
cristy3ed852e2009-09-05 21:47:34 +000010954
cristy8b350f62009-11-15 23:12:43 +000010955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000010956$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010957if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010958 $as_echo_n "(cached) " >&6
10959else
10960 lt_cv_prog_compiler_rtti_exceptions=no
10961 ac_outfile=conftest.$ac_objext
10962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10963 lt_compiler_flag="-fno-rtti -fno-exceptions"
10964 # Insert the option either (1) after the last *FLAGS variable, or
10965 # (2) before a word containing "conftest.", or (3) at the end.
10966 # Note that $ac_compile itself does not contain backslashes and begins
10967 # with a dollar sign (not a hyphen), so the echo should work correctly.
10968 # The option is referenced via a variable to avoid confusing sed.
10969 lt_compile=`echo "$ac_compile" | $SED \
10970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10972 -e 's:$: $lt_compiler_flag:'`
cristy932c9122009-11-19 13:57:03 +000010973 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000010974 (eval "$lt_compile" 2>conftest.err)
10975 ac_status=$?
10976 cat conftest.err >&5
cristy932c9122009-11-19 13:57:03 +000010977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000010978 if (exit $ac_status) && test -s "$ac_outfile"; then
10979 # The compiler can only warn and ignore the option if not recognized
10980 # So say no if there are warnings other than the usual output.
cristy932c9122009-11-19 13:57:03 +000010981 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000010982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10983 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10984 lt_cv_prog_compiler_rtti_exceptions=yes
10985 fi
10986 fi
10987 $RM conftest*
10988
10989fi
cristy8b350f62009-11-15 23:12:43 +000010990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000010991$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10992
10993if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10994 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10995else
10996 :
10997fi
10998
10999fi
11000
11001
11002
11003
11004
11005
11006 lt_prog_compiler_wl=
11007lt_prog_compiler_pic=
11008lt_prog_compiler_static=
11009
cristy8b350f62009-11-15 23:12:43 +000011010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011011$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11012
11013 if test "$GCC" = yes; then
11014 lt_prog_compiler_wl='-Wl,'
11015 lt_prog_compiler_static='-static'
11016
11017 case $host_os in
11018 aix*)
11019 # All AIX code is PIC.
11020 if test "$host_cpu" = ia64; then
11021 # AIX 5 now supports IA64 processor
11022 lt_prog_compiler_static='-Bstatic'
11023 fi
11024 ;;
11025
11026 amigaos*)
11027 case $host_cpu in
11028 powerpc)
11029 # see comment about AmigaOS4 .so support
11030 lt_prog_compiler_pic='-fPIC'
11031 ;;
11032 m68k)
11033 # FIXME: we need at least 68020 code to build shared libraries, but
11034 # adding the `-m68020' flag to GCC prevents building anything better,
11035 # like `-m68040'.
11036 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11037 ;;
11038 esac
11039 ;;
11040
11041 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11042 # PIC is the default for these OSes.
11043 ;;
11044
11045 mingw* | cygwin* | pw32* | os2* | cegcc*)
11046 # This hack is so that the source file can tell whether it is being
11047 # built for inclusion in a dll (and should export symbols for example).
11048 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11049 # (--disable-auto-import) libraries
11050 lt_prog_compiler_pic='-DDLL_EXPORT'
11051 ;;
11052
11053 darwin* | rhapsody*)
11054 # PIC is the default on this platform
11055 # Common symbols not allowed in MH_DYLIB files
11056 lt_prog_compiler_pic='-fno-common'
11057 ;;
11058
cristy932c9122009-11-19 13:57:03 +000011059 haiku*)
11060 # PIC is the default for Haiku.
11061 # The "-static" flag exists, but is broken.
11062 lt_prog_compiler_static=
11063 ;;
11064
cristy3ed852e2009-09-05 21:47:34 +000011065 hpux*)
11066 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11067 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11068 # sets the default TLS model and affects inlining.
11069 case $host_cpu in
11070 hppa*64*)
11071 # +Z the default
11072 ;;
11073 *)
11074 lt_prog_compiler_pic='-fPIC'
11075 ;;
11076 esac
11077 ;;
11078
11079 interix[3-9]*)
11080 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11081 # Instead, we relocate shared libraries at runtime.
11082 ;;
11083
11084 msdosdjgpp*)
11085 # Just because we use GCC doesn't mean we suddenly get shared libraries
11086 # on systems that don't support them.
11087 lt_prog_compiler_can_build_shared=no
11088 enable_shared=no
11089 ;;
11090
11091 *nto* | *qnx*)
11092 # QNX uses GNU C++, but need to define -shared option too, otherwise
11093 # it will coredump.
11094 lt_prog_compiler_pic='-fPIC -shared'
11095 ;;
11096
11097 sysv4*MP*)
11098 if test -d /usr/nec; then
11099 lt_prog_compiler_pic=-Kconform_pic
11100 fi
11101 ;;
11102
11103 *)
11104 lt_prog_compiler_pic='-fPIC'
11105 ;;
11106 esac
cristy932c9122009-11-19 13:57:03 +000011107
11108 case $cc_basename in
11109 nvcc*) # Cuda Compiler Driver 2.2
11110 lt_prog_compiler_wl='-Xlinker '
11111 lt_prog_compiler_pic='-Xcompiler -fPIC'
11112 ;;
11113 esac
cristy3ed852e2009-09-05 21:47:34 +000011114 else
11115 # PORTME Check for flag to pass linker flags through the system compiler.
11116 case $host_os in
11117 aix*)
11118 lt_prog_compiler_wl='-Wl,'
11119 if test "$host_cpu" = ia64; then
11120 # AIX 5 now supports IA64 processor
11121 lt_prog_compiler_static='-Bstatic'
11122 else
11123 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11124 fi
11125 ;;
11126
11127 mingw* | cygwin* | pw32* | os2* | cegcc*)
11128 # This hack is so that the source file can tell whether it is being
11129 # built for inclusion in a dll (and should export symbols for example).
11130 lt_prog_compiler_pic='-DDLL_EXPORT'
11131 ;;
11132
11133 hpux9* | hpux10* | hpux11*)
11134 lt_prog_compiler_wl='-Wl,'
11135 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11136 # not for PA HP-UX.
11137 case $host_cpu in
11138 hppa*64*|ia64*)
11139 # +Z the default
11140 ;;
11141 *)
11142 lt_prog_compiler_pic='+Z'
11143 ;;
11144 esac
11145 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11146 lt_prog_compiler_static='${wl}-a ${wl}archive'
11147 ;;
11148
11149 irix5* | irix6* | nonstopux*)
11150 lt_prog_compiler_wl='-Wl,'
11151 # PIC (with -KPIC) is the default.
11152 lt_prog_compiler_static='-non_shared'
11153 ;;
11154
cristy932c9122009-11-19 13:57:03 +000011155 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000011156 case $cc_basename in
11157 # old Intel for x86_64 which still supported -KPIC.
11158 ecc*)
11159 lt_prog_compiler_wl='-Wl,'
11160 lt_prog_compiler_pic='-KPIC'
11161 lt_prog_compiler_static='-static'
11162 ;;
11163 # icc used to be incompatible with GCC.
11164 # ICC 10 doesn't accept -KPIC any more.
11165 icc* | ifort*)
11166 lt_prog_compiler_wl='-Wl,'
11167 lt_prog_compiler_pic='-fPIC'
11168 lt_prog_compiler_static='-static'
11169 ;;
11170 # Lahey Fortran 8.1.
11171 lf95*)
11172 lt_prog_compiler_wl='-Wl,'
11173 lt_prog_compiler_pic='--shared'
11174 lt_prog_compiler_static='--static'
11175 ;;
cristy932c9122009-11-19 13:57:03 +000011176 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy3ed852e2009-09-05 21:47:34 +000011177 # Portland Group compilers (*not* the Pentium gcc compiler,
11178 # which looks to be a dead project)
11179 lt_prog_compiler_wl='-Wl,'
11180 lt_prog_compiler_pic='-fpic'
11181 lt_prog_compiler_static='-Bstatic'
11182 ;;
11183 ccc*)
11184 lt_prog_compiler_wl='-Wl,'
11185 # All Alpha code is PIC.
11186 lt_prog_compiler_static='-non_shared'
11187 ;;
cristy932c9122009-11-19 13:57:03 +000011188 xl* | bgxl* | bgf* | mpixl*)
11189 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000011190 lt_prog_compiler_wl='-Wl,'
11191 lt_prog_compiler_pic='-qpic'
11192 lt_prog_compiler_static='-qstaticlink'
11193 ;;
11194 *)
11195 case `$CC -V 2>&1 | sed 5q` in
cristy932c9122009-11-19 13:57:03 +000011196 *Sun\ F* | *Sun*Fortran*)
11197 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11198 lt_prog_compiler_pic='-KPIC'
11199 lt_prog_compiler_static='-Bstatic'
11200 lt_prog_compiler_wl=''
11201 ;;
cristy3ed852e2009-09-05 21:47:34 +000011202 *Sun\ C*)
11203 # Sun C 5.9
11204 lt_prog_compiler_pic='-KPIC'
11205 lt_prog_compiler_static='-Bstatic'
11206 lt_prog_compiler_wl='-Wl,'
11207 ;;
cristy3ed852e2009-09-05 21:47:34 +000011208 esac
11209 ;;
11210 esac
11211 ;;
11212
11213 newsos6)
11214 lt_prog_compiler_pic='-KPIC'
11215 lt_prog_compiler_static='-Bstatic'
11216 ;;
11217
11218 *nto* | *qnx*)
11219 # QNX uses GNU C++, but need to define -shared option too, otherwise
11220 # it will coredump.
11221 lt_prog_compiler_pic='-fPIC -shared'
11222 ;;
11223
11224 osf3* | osf4* | osf5*)
11225 lt_prog_compiler_wl='-Wl,'
11226 # All OSF/1 code is PIC.
11227 lt_prog_compiler_static='-non_shared'
11228 ;;
11229
11230 rdos*)
11231 lt_prog_compiler_static='-non_shared'
11232 ;;
11233
11234 solaris*)
11235 lt_prog_compiler_pic='-KPIC'
11236 lt_prog_compiler_static='-Bstatic'
11237 case $cc_basename in
11238 f77* | f90* | f95*)
11239 lt_prog_compiler_wl='-Qoption ld ';;
11240 *)
11241 lt_prog_compiler_wl='-Wl,';;
11242 esac
11243 ;;
11244
11245 sunos4*)
11246 lt_prog_compiler_wl='-Qoption ld '
11247 lt_prog_compiler_pic='-PIC'
11248 lt_prog_compiler_static='-Bstatic'
11249 ;;
11250
11251 sysv4 | sysv4.2uw2* | sysv4.3*)
11252 lt_prog_compiler_wl='-Wl,'
11253 lt_prog_compiler_pic='-KPIC'
11254 lt_prog_compiler_static='-Bstatic'
11255 ;;
11256
11257 sysv4*MP*)
11258 if test -d /usr/nec ;then
11259 lt_prog_compiler_pic='-Kconform_pic'
11260 lt_prog_compiler_static='-Bstatic'
11261 fi
11262 ;;
11263
11264 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11265 lt_prog_compiler_wl='-Wl,'
11266 lt_prog_compiler_pic='-KPIC'
11267 lt_prog_compiler_static='-Bstatic'
11268 ;;
11269
11270 unicos*)
11271 lt_prog_compiler_wl='-Wl,'
11272 lt_prog_compiler_can_build_shared=no
11273 ;;
11274
11275 uts4*)
11276 lt_prog_compiler_pic='-pic'
11277 lt_prog_compiler_static='-Bstatic'
11278 ;;
11279
11280 *)
11281 lt_prog_compiler_can_build_shared=no
11282 ;;
11283 esac
11284 fi
11285
11286case $host_os in
11287 # For platforms which do not support PIC, -DPIC is meaningless:
11288 *djgpp*)
11289 lt_prog_compiler_pic=
11290 ;;
11291 *)
11292 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11293 ;;
11294esac
cristy8b350f62009-11-15 23:12:43 +000011295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000011296$as_echo "$lt_prog_compiler_pic" >&6; }
11297
11298
11299
11300
11301
11302
11303#
11304# Check to make sure the PIC flag actually works.
11305#
11306if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000011307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011308$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011309if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011310 $as_echo_n "(cached) " >&6
11311else
11312 lt_cv_prog_compiler_pic_works=no
11313 ac_outfile=conftest.$ac_objext
11314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11315 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11316 # Insert the option either (1) after the last *FLAGS variable, or
11317 # (2) before a word containing "conftest.", or (3) at the end.
11318 # Note that $ac_compile itself does not contain backslashes and begins
11319 # with a dollar sign (not a hyphen), so the echo should work correctly.
11320 # The option is referenced via a variable to avoid confusing sed.
11321 lt_compile=`echo "$ac_compile" | $SED \
11322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11324 -e 's:$: $lt_compiler_flag:'`
cristy932c9122009-11-19 13:57:03 +000011325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011326 (eval "$lt_compile" 2>conftest.err)
11327 ac_status=$?
11328 cat conftest.err >&5
cristy932c9122009-11-19 13:57:03 +000011329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011330 if (exit $ac_status) && test -s "$ac_outfile"; then
11331 # The compiler can only warn and ignore the option if not recognized
11332 # So say no if there are warnings other than the usual output.
cristy932c9122009-11-19 13:57:03 +000011333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11336 lt_cv_prog_compiler_pic_works=yes
11337 fi
11338 fi
11339 $RM conftest*
11340
11341fi
cristy8b350f62009-11-15 23:12:43 +000011342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011343$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11344
11345if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11346 case $lt_prog_compiler_pic in
11347 "" | " "*) ;;
11348 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11349 esac
11350else
11351 lt_prog_compiler_pic=
11352 lt_prog_compiler_can_build_shared=no
11353fi
11354
11355fi
11356
11357
11358
11359
11360
11361
11362#
11363# Check to make sure the static flag actually works.
11364#
11365wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000011366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011367$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011368if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011369 $as_echo_n "(cached) " >&6
11370else
11371 lt_cv_prog_compiler_static_works=no
11372 save_LDFLAGS="$LDFLAGS"
11373 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11374 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11375 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11376 # The linker can only warn and ignore the option if not recognized
11377 # So say no if there are warnings
11378 if test -s conftest.err; then
11379 # Append any errors to the config.log.
11380 cat conftest.err 1>&5
cristy932c9122009-11-19 13:57:03 +000011381 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011382 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11383 if diff conftest.exp conftest.er2 >/dev/null; then
11384 lt_cv_prog_compiler_static_works=yes
11385 fi
11386 else
11387 lt_cv_prog_compiler_static_works=yes
11388 fi
11389 fi
11390 $RM -r conftest*
11391 LDFLAGS="$save_LDFLAGS"
11392
11393fi
cristy8b350f62009-11-15 23:12:43 +000011394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011395$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11396
11397if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11398 :
11399else
11400 lt_prog_compiler_static=
11401fi
11402
11403
11404
11405
11406
11407
11408
cristy8b350f62009-11-15 23:12:43 +000011409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011410$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011411if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011412 $as_echo_n "(cached) " >&6
11413else
11414 lt_cv_prog_compiler_c_o=no
11415 $RM -r conftest 2>/dev/null
11416 mkdir conftest
11417 cd conftest
11418 mkdir out
11419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11420
11421 lt_compiler_flag="-o out/conftest2.$ac_objext"
11422 # Insert the option either (1) after the last *FLAGS variable, or
11423 # (2) before a word containing "conftest.", or (3) at the end.
11424 # Note that $ac_compile itself does not contain backslashes and begins
11425 # with a dollar sign (not a hyphen), so the echo should work correctly.
11426 lt_compile=`echo "$ac_compile" | $SED \
11427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11429 -e 's:$: $lt_compiler_flag:'`
cristy932c9122009-11-19 13:57:03 +000011430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011431 (eval "$lt_compile" 2>out/conftest.err)
11432 ac_status=$?
11433 cat out/conftest.err >&5
cristy932c9122009-11-19 13:57:03 +000011434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11436 then
11437 # The compiler can only warn and ignore the option if not recognized
11438 # So say no if there are warnings
cristy932c9122009-11-19 13:57:03 +000011439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11442 lt_cv_prog_compiler_c_o=yes
11443 fi
11444 fi
11445 chmod u+w . 2>&5
11446 $RM conftest*
11447 # SGI C++ compiler will create directory out/ii_files/ for
11448 # template instantiation
11449 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11450 $RM out/* && rmdir out
11451 cd ..
11452 $RM -r conftest
11453 $RM conftest*
11454
11455fi
cristy8b350f62009-11-15 23:12:43 +000011456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000011457$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11458
11459
11460
11461
11462
11463
cristy8b350f62009-11-15 23:12:43 +000011464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011465$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011466if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011467 $as_echo_n "(cached) " >&6
11468else
11469 lt_cv_prog_compiler_c_o=no
11470 $RM -r conftest 2>/dev/null
11471 mkdir conftest
11472 cd conftest
11473 mkdir out
11474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11475
11476 lt_compiler_flag="-o out/conftest2.$ac_objext"
11477 # Insert the option either (1) after the last *FLAGS variable, or
11478 # (2) before a word containing "conftest.", or (3) at the end.
11479 # Note that $ac_compile itself does not contain backslashes and begins
11480 # with a dollar sign (not a hyphen), so the echo should work correctly.
11481 lt_compile=`echo "$ac_compile" | $SED \
11482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11484 -e 's:$: $lt_compiler_flag:'`
cristy932c9122009-11-19 13:57:03 +000011485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011486 (eval "$lt_compile" 2>out/conftest.err)
11487 ac_status=$?
11488 cat out/conftest.err >&5
cristy932c9122009-11-19 13:57:03 +000011489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011490 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11491 then
11492 # The compiler can only warn and ignore the option if not recognized
11493 # So say no if there are warnings
cristy932c9122009-11-19 13:57:03 +000011494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011495 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11496 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11497 lt_cv_prog_compiler_c_o=yes
11498 fi
11499 fi
11500 chmod u+w . 2>&5
11501 $RM conftest*
11502 # SGI C++ compiler will create directory out/ii_files/ for
11503 # template instantiation
11504 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11505 $RM out/* && rmdir out
11506 cd ..
11507 $RM -r conftest
11508 $RM conftest*
11509
11510fi
cristy8b350f62009-11-15 23:12:43 +000011511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000011512$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11513
11514
11515
11516
11517hard_links="nottested"
11518if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11519 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000011520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000011521$as_echo_n "checking if we can lock with hard links... " >&6; }
11522 hard_links=yes
11523 $RM conftest*
11524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11525 touch conftest.a
11526 ln conftest.a conftest.b 2>&5 || hard_links=no
11527 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000011528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000011529$as_echo "$hard_links" >&6; }
11530 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000011531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cristy3ed852e2009-09-05 21:47:34 +000011532$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11533 need_locks=warn
11534 fi
11535else
11536 need_locks=no
11537fi
11538
11539
11540
11541
11542
11543
cristy8b350f62009-11-15 23:12:43 +000011544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000011545$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11546
11547 runpath_var=
11548 allow_undefined_flag=
11549 always_export_symbols=no
11550 archive_cmds=
11551 archive_expsym_cmds=
11552 compiler_needs_object=no
11553 enable_shared_with_static_runtimes=no
11554 export_dynamic_flag_spec=
11555 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11556 hardcode_automatic=no
11557 hardcode_direct=no
11558 hardcode_direct_absolute=no
11559 hardcode_libdir_flag_spec=
11560 hardcode_libdir_flag_spec_ld=
11561 hardcode_libdir_separator=
11562 hardcode_minus_L=no
11563 hardcode_shlibpath_var=unsupported
11564 inherit_rpath=no
11565 link_all_deplibs=unknown
11566 module_cmds=
11567 module_expsym_cmds=
11568 old_archive_from_new_cmds=
11569 old_archive_from_expsyms_cmds=
11570 thread_safe_flag_spec=
11571 whole_archive_flag_spec=
11572 # include_expsyms should be a list of space-separated symbols to be *always*
11573 # included in the symbol list
11574 include_expsyms=
11575 # exclude_expsyms can be an extended regexp of symbols to exclude
11576 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11577 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11578 # as well as any symbol that contains `d'.
11579 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11581 # platforms (ab)use it in PIC code, but their linkers get confused if
11582 # the symbol is explicitly referenced. Since portable code cannot
11583 # rely on this symbol name, it's probably fine to never include it in
11584 # preloaded symbol tables.
11585 # Exclude shared library initialization/finalization symbols.
11586 extract_expsyms_cmds=
11587
11588 case $host_os in
11589 cygwin* | mingw* | pw32* | cegcc*)
11590 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11591 # When not using gcc, we currently assume that we are using
11592 # Microsoft Visual C++.
11593 if test "$GCC" != yes; then
11594 with_gnu_ld=no
11595 fi
11596 ;;
11597 interix*)
11598 # we just hope/assume this is gcc and not c89 (= MSVC++)
11599 with_gnu_ld=yes
11600 ;;
11601 openbsd*)
11602 with_gnu_ld=no
11603 ;;
11604 esac
11605
11606 ld_shlibs=yes
cristy932c9122009-11-19 13:57:03 +000011607
11608 # On some targets, GNU ld is compatible enough with the native linker
11609 # that we're better off using the native interface for both.
11610 lt_use_gnu_ld_interface=no
cristy3ed852e2009-09-05 21:47:34 +000011611 if test "$with_gnu_ld" = yes; then
cristy932c9122009-11-19 13:57:03 +000011612 case $host_os in
11613 aix*)
11614 # The AIX port of GNU ld has always aspired to compatibility
11615 # with the native linker. However, as the warning in the GNU ld
11616 # block says, versions before 2.19.5* couldn't really create working
11617 # shared libraries, regardless of the interface used.
11618 case `$LD -v 2>&1` in
11619 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11620 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11621 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11622 *)
11623 lt_use_gnu_ld_interface=yes
11624 ;;
11625 esac
11626 ;;
11627 *)
11628 lt_use_gnu_ld_interface=yes
11629 ;;
11630 esac
11631 fi
11632
11633 if test "$lt_use_gnu_ld_interface" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000011634 # If archive_cmds runs LD, not CC, wlarc should be empty
11635 wlarc='${wl}'
11636
11637 # Set some defaults for GNU ld with shared library support. These
11638 # are reset later if shared libraries are not supported. Putting them
11639 # here allows them to be overridden if necessary.
11640 runpath_var=LD_RUN_PATH
11641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11642 export_dynamic_flag_spec='${wl}--export-dynamic'
11643 # ancient GNU ld didn't support --whole-archive et. al.
11644 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11645 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11646 else
11647 whole_archive_flag_spec=
11648 fi
11649 supports_anon_versioning=no
11650 case `$LD -v 2>&1` in
11651 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11652 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11653 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11654 *\ 2.11.*) ;; # other 2.11 versions
11655 *) supports_anon_versioning=yes ;;
11656 esac
11657
11658 # See if GNU ld supports shared libraries.
11659 case $host_os in
11660 aix[3-9]*)
11661 # On AIX/PPC, the GNU linker is very broken
11662 if test "$host_cpu" != ia64; then
11663 ld_shlibs=no
11664 cat <<_LT_EOF 1>&2
11665
cristy932c9122009-11-19 13:57:03 +000011666*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy3ed852e2009-09-05 21:47:34 +000011667*** to be unable to reliably create shared libraries on AIX.
11668*** Therefore, libtool is disabling shared libraries support. If you
cristy932c9122009-11-19 13:57:03 +000011669*** really care for shared libraries, you may want to install binutils
11670*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11671*** You will then need to restart the configuration process.
cristy3ed852e2009-09-05 21:47:34 +000011672
11673_LT_EOF
11674 fi
11675 ;;
11676
11677 amigaos*)
11678 case $host_cpu in
11679 powerpc)
11680 # see comment about AmigaOS4 .so support
11681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11682 archive_expsym_cmds=''
11683 ;;
11684 m68k)
11685 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)'
11686 hardcode_libdir_flag_spec='-L$libdir'
11687 hardcode_minus_L=yes
11688 ;;
11689 esac
11690 ;;
11691
11692 beos*)
11693 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11694 allow_undefined_flag=unsupported
11695 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11696 # support --undefined. This deserves some investigation. FIXME
11697 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11698 else
11699 ld_shlibs=no
11700 fi
11701 ;;
11702
11703 cygwin* | mingw* | pw32* | cegcc*)
11704 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11705 # as there is no search path for DLLs.
11706 hardcode_libdir_flag_spec='-L$libdir'
cristy932c9122009-11-19 13:57:03 +000011707 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000011708 allow_undefined_flag=unsupported
11709 always_export_symbols=no
11710 enable_shared_with_static_runtimes=yes
11711 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11712
11713 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11715 # If the export-symbols file already is a .def file (1st line
11716 # is EXPORTS), use it as is; otherwise, prepend...
11717 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11718 cp $export_symbols $output_objdir/$soname.def;
11719 else
11720 echo EXPORTS > $output_objdir/$soname.def;
11721 cat $export_symbols >> $output_objdir/$soname.def;
11722 fi~
11723 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11724 else
11725 ld_shlibs=no
11726 fi
11727 ;;
11728
cristy932c9122009-11-19 13:57:03 +000011729 haiku*)
11730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11731 link_all_deplibs=yes
11732 ;;
11733
cristy3ed852e2009-09-05 21:47:34 +000011734 interix[3-9]*)
11735 hardcode_direct=no
11736 hardcode_shlibpath_var=no
11737 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11738 export_dynamic_flag_spec='${wl}-E'
11739 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11740 # Instead, shared libraries are loaded at an image base (0x10000000 by
11741 # default) and relocated if they conflict, which is a slow very memory
11742 # consuming and fragmenting process. To avoid this, we pick a random,
11743 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11744 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11745 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11746 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'
11747 ;;
11748
cristy932c9122009-11-19 13:57:03 +000011749 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000011750 tmp_diet=no
11751 if test "$host_os" = linux-dietlibc; then
11752 case $cc_basename in
11753 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11754 esac
11755 fi
11756 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11757 && test "$tmp_diet" = no
11758 then
11759 tmp_addflag=
11760 tmp_sharedflag='-shared'
11761 case $cc_basename,$host_cpu in
11762 pgcc*) # Portland Group C compiler
cristy932c9122009-11-19 13:57:03 +000011763 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'
cristy3ed852e2009-09-05 21:47:34 +000011764 tmp_addflag=' $pic_flag'
11765 ;;
cristy932c9122009-11-19 13:57:03 +000011766 pgf77* | pgf90* | pgf95* | pgfortran*)
11767 # Portland Group f77 and f90 compilers
11768 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'
cristy3ed852e2009-09-05 21:47:34 +000011769 tmp_addflag=' $pic_flag -Mnomain' ;;
11770 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11771 tmp_addflag=' -i_dynamic' ;;
11772 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11773 tmp_addflag=' -i_dynamic -nofor_main' ;;
11774 ifc* | ifort*) # Intel Fortran compiler
11775 tmp_addflag=' -nofor_main' ;;
11776 lf95*) # Lahey Fortran 8.1
11777 whole_archive_flag_spec=
11778 tmp_sharedflag='--shared' ;;
cristy932c9122009-11-19 13:57:03 +000011779 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000011780 tmp_sharedflag='-qmkshrobj'
11781 tmp_addflag= ;;
cristy932c9122009-11-19 13:57:03 +000011782 nvcc*) # Cuda Compiler Driver 2.2
11783 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'
11784 compiler_needs_object=yes
11785 ;;
cristy3ed852e2009-09-05 21:47:34 +000011786 esac
11787 case `$CC -V 2>&1 | sed 5q` in
11788 *Sun\ C*) # Sun C 5.9
cristy932c9122009-11-19 13:57:03 +000011789 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'
cristy3ed852e2009-09-05 21:47:34 +000011790 compiler_needs_object=yes
11791 tmp_sharedflag='-G' ;;
11792 *Sun\ F*) # Sun Fortran 8.3
11793 tmp_sharedflag='-G' ;;
11794 esac
11795 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11796
11797 if test "x$supports_anon_versioning" = xyes; then
11798 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11800 echo "local: *; };" >> $output_objdir/$libname.ver~
11801 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11802 fi
11803
11804 case $cc_basename in
cristy932c9122009-11-19 13:57:03 +000011805 xlf* | bgf* | bgxlf* | mpixlf*)
cristy3ed852e2009-09-05 21:47:34 +000011806 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11807 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11808 hardcode_libdir_flag_spec=
11809 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11810 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11811 if test "x$supports_anon_versioning" = xyes; then
11812 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11813 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11814 echo "local: *; };" >> $output_objdir/$libname.ver~
11815 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11816 fi
11817 ;;
11818 esac
11819 else
11820 ld_shlibs=no
11821 fi
11822 ;;
11823
11824 netbsd*)
11825 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11826 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11827 wlarc=
11828 else
11829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11830 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11831 fi
11832 ;;
11833
11834 solaris*)
11835 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11836 ld_shlibs=no
11837 cat <<_LT_EOF 1>&2
11838
11839*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11840*** create shared libraries on Solaris systems. Therefore, libtool
11841*** is disabling shared libraries support. We urge you to upgrade GNU
11842*** binutils to release 2.9.1 or newer. Another option is to modify
11843*** your PATH or compiler configuration so that the native linker is
11844*** used, and then restart.
11845
11846_LT_EOF
11847 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11850 else
11851 ld_shlibs=no
11852 fi
11853 ;;
11854
11855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11856 case `$LD -v 2>&1` in
11857 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11858 ld_shlibs=no
11859 cat <<_LT_EOF 1>&2
11860
11861*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11862*** reliably create shared libraries on SCO systems. Therefore, libtool
11863*** is disabling shared libraries support. We urge you to upgrade GNU
11864*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11865*** your PATH or compiler configuration so that the native linker is
11866*** used, and then restart.
11867
11868_LT_EOF
11869 ;;
11870 *)
11871 # For security reasons, it is highly recommended that you always
11872 # use absolute paths for naming shared libraries, and exclude the
11873 # DT_RUNPATH tag from executables and libraries. But doing so
11874 # requires that you compile everything twice, which is a pain.
11875 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11878 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11879 else
11880 ld_shlibs=no
11881 fi
11882 ;;
11883 esac
11884 ;;
11885
11886 sunos4*)
11887 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11888 wlarc=
11889 hardcode_direct=yes
11890 hardcode_shlibpath_var=no
11891 ;;
11892
11893 *)
11894 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11897 else
11898 ld_shlibs=no
11899 fi
11900 ;;
11901 esac
11902
11903 if test "$ld_shlibs" = no; then
11904 runpath_var=
11905 hardcode_libdir_flag_spec=
11906 export_dynamic_flag_spec=
11907 whole_archive_flag_spec=
11908 fi
11909 else
11910 # PORTME fill in a description of your system's linker (not GNU ld)
11911 case $host_os in
11912 aix3*)
11913 allow_undefined_flag=unsupported
11914 always_export_symbols=yes
11915 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'
11916 # Note: this linker hardcodes the directories in LIBPATH if there
11917 # are no directories specified by -L.
11918 hardcode_minus_L=yes
11919 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11920 # Neither direct hardcoding nor static linking is supported with a
11921 # broken collect2.
11922 hardcode_direct=unsupported
11923 fi
11924 ;;
11925
11926 aix[4-9]*)
11927 if test "$host_cpu" = ia64; then
11928 # On IA64, the linker does run time linking by default, so we don't
11929 # have to do anything special.
11930 aix_use_runtimelinking=no
11931 exp_sym_flag='-Bexport'
11932 no_entry_flag=""
11933 else
11934 # If we're using GNU nm, then we don't want the "-C" option.
11935 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy932c9122009-11-19 13:57:03 +000011936 # Also, AIX nm treats weak defined symbols like other global
11937 # defined symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000011938 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy932c9122009-11-19 13:57:03 +000011939 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'
cristy3ed852e2009-09-05 21:47:34 +000011940 else
11941 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'
11942 fi
11943 aix_use_runtimelinking=no
11944
11945 # Test if we are trying to use run time linking or normal
11946 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11947 # need to do runtime linking.
11948 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11949 for ld_flag in $LDFLAGS; do
11950 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11951 aix_use_runtimelinking=yes
11952 break
11953 fi
11954 done
11955 ;;
11956 esac
11957
11958 exp_sym_flag='-bexport'
11959 no_entry_flag='-bnoentry'
11960 fi
11961
11962 # When large executables or shared objects are built, AIX ld can
11963 # have problems creating the table of contents. If linking a library
11964 # or program results in "error TOC overflow" add -mminimal-toc to
11965 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11966 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11967
11968 archive_cmds=''
11969 hardcode_direct=yes
11970 hardcode_direct_absolute=yes
11971 hardcode_libdir_separator=':'
11972 link_all_deplibs=yes
11973 file_list_spec='${wl}-f,'
11974
11975 if test "$GCC" = yes; then
11976 case $host_os in aix4.[012]|aix4.[012].*)
11977 # We only want to do this on AIX 4.2 and lower, the check
11978 # below for broken collect2 doesn't work under 4.3+
11979 collect2name=`${CC} -print-prog-name=collect2`
11980 if test -f "$collect2name" &&
11981 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11982 then
11983 # We have reworked collect2
11984 :
11985 else
11986 # We have old collect2
11987 hardcode_direct=unsupported
11988 # It fails to find uninstalled libraries when the uninstalled
11989 # path is not listed in the libpath. Setting hardcode_minus_L
11990 # to unsupported forces relinking
11991 hardcode_minus_L=yes
11992 hardcode_libdir_flag_spec='-L$libdir'
11993 hardcode_libdir_separator=
11994 fi
11995 ;;
11996 esac
11997 shared_flag='-shared'
11998 if test "$aix_use_runtimelinking" = yes; then
11999 shared_flag="$shared_flag "'${wl}-G'
12000 fi
12001 else
12002 # not using gcc
12003 if test "$host_cpu" = ia64; then
12004 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12005 # chokes on -Wl,-G. The following line is correct:
12006 shared_flag='-G'
12007 else
12008 if test "$aix_use_runtimelinking" = yes; then
12009 shared_flag='${wl}-G'
12010 else
12011 shared_flag='${wl}-bM:SRE'
12012 fi
12013 fi
12014 fi
12015
12016 export_dynamic_flag_spec='${wl}-bexpall'
12017 # It seems that -bexpall does not export symbols beginning with
12018 # underscore (_), so it is better to generate a list of symbols to export.
12019 always_export_symbols=yes
12020 if test "$aix_use_runtimelinking" = yes; then
12021 # Warning - without using the other runtime loading flags (-brtl),
12022 # -berok will link without error, but may produce a broken library.
12023 allow_undefined_flag='-berok'
12024 # Determine the default libpath from the value encoded in an
12025 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012027/* end confdefs.h. */
12028
12029int
12030main ()
12031{
12032
12033 ;
12034 return 0;
12035}
12036_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012037if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012038
12039lt_aix_libpath_sed='
12040 /Import File Strings/,/^$/ {
12041 /^0/ {
12042 s/^0 *\(.*\)$/\1/
12043 p
12044 }
12045 }'
12046aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12047# Check for a 64-bit object if we didn't find anything.
12048if test -z "$aix_libpath"; then
12049 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12050fi
cristy3ed852e2009-09-05 21:47:34 +000012051fi
cristy8b350f62009-11-15 23:12:43 +000012052rm -f core conftest.err conftest.$ac_objext \
12053 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012054if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12055
12056 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy932c9122009-11-19 13:57:03 +000012057 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"
cristy3ed852e2009-09-05 21:47:34 +000012058 else
12059 if test "$host_cpu" = ia64; then
12060 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12061 allow_undefined_flag="-z nodefs"
12062 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"
12063 else
12064 # Determine the default libpath from the value encoded in an
12065 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012067/* end confdefs.h. */
12068
12069int
12070main ()
12071{
12072
12073 ;
12074 return 0;
12075}
12076_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012077if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012078
12079lt_aix_libpath_sed='
12080 /Import File Strings/,/^$/ {
12081 /^0/ {
12082 s/^0 *\(.*\)$/\1/
12083 p
12084 }
12085 }'
12086aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12087# Check for a 64-bit object if we didn't find anything.
12088if test -z "$aix_libpath"; then
12089 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12090fi
cristy3ed852e2009-09-05 21:47:34 +000012091fi
cristy8b350f62009-11-15 23:12:43 +000012092rm -f core conftest.err conftest.$ac_objext \
12093 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012094if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12095
12096 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12097 # Warning - without using the other run time loading flags,
12098 # -berok will link without error, but may produce a broken library.
12099 no_undefined_flag=' ${wl}-bernotok'
12100 allow_undefined_flag=' ${wl}-berok'
cristy932c9122009-11-19 13:57:03 +000012101 if test "$with_gnu_ld" = yes; then
12102 # We only use this code for GNU lds that support --whole-archive.
12103 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12104 else
12105 # Exported symbols can be pulled into shared objects from archives
12106 whole_archive_flag_spec='$convenience'
12107 fi
cristy3ed852e2009-09-05 21:47:34 +000012108 archive_cmds_need_lc=yes
12109 # This is similar to how AIX traditionally builds its shared libraries.
12110 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'
12111 fi
12112 fi
12113 ;;
12114
12115 amigaos*)
12116 case $host_cpu in
12117 powerpc)
12118 # see comment about AmigaOS4 .so support
12119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12120 archive_expsym_cmds=''
12121 ;;
12122 m68k)
12123 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)'
12124 hardcode_libdir_flag_spec='-L$libdir'
12125 hardcode_minus_L=yes
12126 ;;
12127 esac
12128 ;;
12129
12130 bsdi[45]*)
12131 export_dynamic_flag_spec=-rdynamic
12132 ;;
12133
12134 cygwin* | mingw* | pw32* | cegcc*)
12135 # When not using gcc, we currently assume that we are using
12136 # Microsoft Visual C++.
12137 # hardcode_libdir_flag_spec is actually meaningless, as there is
12138 # no search path for DLLs.
12139 hardcode_libdir_flag_spec=' '
12140 allow_undefined_flag=unsupported
12141 # Tell ltmain to make .lib files, not .a files.
12142 libext=lib
12143 # Tell ltmain to make .dll files, not .so files.
12144 shrext_cmds=".dll"
12145 # FIXME: Setting linknames here is a bad hack.
cristy932c9122009-11-19 13:57:03 +000012146 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000012147 # The linker will automatically build a .lib file if we build a DLL.
12148 old_archive_from_new_cmds='true'
12149 # FIXME: Should let the user specify the lib program.
12150 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12151 fix_srcfile_path='`cygpath -w "$srcfile"`'
12152 enable_shared_with_static_runtimes=yes
12153 ;;
12154
12155 darwin* | rhapsody*)
12156
12157
12158 archive_cmds_need_lc=no
12159 hardcode_direct=no
12160 hardcode_automatic=yes
12161 hardcode_shlibpath_var=unsupported
cristy932c9122009-11-19 13:57:03 +000012162 if test "$lt_cv_ld_force_load" = "yes"; then
12163 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\"`'
12164 else
12165 whole_archive_flag_spec=''
12166 fi
cristy3ed852e2009-09-05 21:47:34 +000012167 link_all_deplibs=yes
12168 allow_undefined_flag="$_lt_dar_allow_undefined"
12169 case $cc_basename in
12170 ifort*) _lt_dar_can_shared=yes ;;
12171 *) _lt_dar_can_shared=$GCC ;;
12172 esac
12173 if test "$_lt_dar_can_shared" = "yes"; then
cristy932c9122009-11-19 13:57:03 +000012174 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000012175 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12176 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12177 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}"
12178 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}"
12179
12180 else
12181 ld_shlibs=no
12182 fi
12183
12184 ;;
12185
12186 dgux*)
12187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12188 hardcode_libdir_flag_spec='-L$libdir'
12189 hardcode_shlibpath_var=no
12190 ;;
12191
12192 freebsd1*)
12193 ld_shlibs=no
12194 ;;
12195
12196 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12197 # support. Future versions do this automatically, but an explicit c++rt0.o
12198 # does not break anything, and helps significantly (at the cost of a little
12199 # extra space).
12200 freebsd2.2*)
12201 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12202 hardcode_libdir_flag_spec='-R$libdir'
12203 hardcode_direct=yes
12204 hardcode_shlibpath_var=no
12205 ;;
12206
12207 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12208 freebsd2*)
12209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12210 hardcode_direct=yes
12211 hardcode_minus_L=yes
12212 hardcode_shlibpath_var=no
12213 ;;
12214
12215 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12216 freebsd* | dragonfly*)
12217 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12218 hardcode_libdir_flag_spec='-R$libdir'
12219 hardcode_direct=yes
12220 hardcode_shlibpath_var=no
12221 ;;
12222
12223 hpux9*)
12224 if test "$GCC" = yes; then
12225 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12226 else
12227 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'
12228 fi
12229 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12230 hardcode_libdir_separator=:
12231 hardcode_direct=yes
12232
12233 # hardcode_minus_L: Not really in the search PATH,
12234 # but as the default location of the library.
12235 hardcode_minus_L=yes
12236 export_dynamic_flag_spec='${wl}-E'
12237 ;;
12238
12239 hpux10*)
cristy932c9122009-11-19 13:57:03 +000012240 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012241 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12242 else
12243 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12244 fi
12245 if test "$with_gnu_ld" = no; then
12246 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12247 hardcode_libdir_flag_spec_ld='+b $libdir'
12248 hardcode_libdir_separator=:
12249 hardcode_direct=yes
12250 hardcode_direct_absolute=yes
12251 export_dynamic_flag_spec='${wl}-E'
12252 # hardcode_minus_L: Not really in the search PATH,
12253 # but as the default location of the library.
12254 hardcode_minus_L=yes
12255 fi
12256 ;;
12257
12258 hpux11*)
cristy932c9122009-11-19 13:57:03 +000012259 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012260 case $host_cpu in
12261 hppa*64*)
12262 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12263 ;;
12264 ia64*)
12265 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12266 ;;
12267 *)
12268 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12269 ;;
12270 esac
12271 else
12272 case $host_cpu in
12273 hppa*64*)
12274 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12275 ;;
12276 ia64*)
12277 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12278 ;;
12279 *)
cristy932c9122009-11-19 13:57:03 +000012280
12281 # Older versions of the 11.00 compiler do not understand -b yet
12282 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12284$as_echo_n "checking if $CC understands -b... " >&6; }
12285if test "${lt_cv_prog_compiler__b+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12287else
12288 lt_cv_prog_compiler__b=no
12289 save_LDFLAGS="$LDFLAGS"
12290 LDFLAGS="$LDFLAGS -b"
12291 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12292 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12293 # The linker can only warn and ignore the option if not recognized
12294 # So say no if there are warnings
12295 if test -s conftest.err; then
12296 # Append any errors to the config.log.
12297 cat conftest.err 1>&5
12298 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12300 if diff conftest.exp conftest.er2 >/dev/null; then
12301 lt_cv_prog_compiler__b=yes
12302 fi
12303 else
12304 lt_cv_prog_compiler__b=yes
12305 fi
12306 fi
12307 $RM -r conftest*
12308 LDFLAGS="$save_LDFLAGS"
12309
12310fi
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12312$as_echo "$lt_cv_prog_compiler__b" >&6; }
12313
12314if test x"$lt_cv_prog_compiler__b" = xyes; then
12315 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12316else
12317 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12318fi
12319
cristy3ed852e2009-09-05 21:47:34 +000012320 ;;
12321 esac
12322 fi
12323 if test "$with_gnu_ld" = no; then
12324 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12325 hardcode_libdir_separator=:
12326
12327 case $host_cpu in
12328 hppa*64*|ia64*)
12329 hardcode_direct=no
12330 hardcode_shlibpath_var=no
12331 ;;
12332 *)
12333 hardcode_direct=yes
12334 hardcode_direct_absolute=yes
12335 export_dynamic_flag_spec='${wl}-E'
12336
12337 # hardcode_minus_L: Not really in the search PATH,
12338 # but as the default location of the library.
12339 hardcode_minus_L=yes
12340 ;;
12341 esac
12342 fi
12343 ;;
12344
12345 irix5* | irix6* | nonstopux*)
12346 if test "$GCC" = yes; then
cristy932c9122009-11-19 13:57:03 +000012347 archive_cmds='$CC -shared $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'
cristy3ed852e2009-09-05 21:47:34 +000012348 # Try to use the -exported_symbol ld option, if it does not
12349 # work, assume that -exports_file does not work either and
12350 # implicitly export all symbols.
12351 save_LDFLAGS="$LDFLAGS"
12352 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000012353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000012355int foo(void) {}
12356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012357if ac_fn_c_try_link "$LINENO"; then :
cristy932c9122009-11-19 13:57:03 +000012358 archive_expsym_cmds='$CC -shared $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'
cristy3ed852e2009-09-05 21:47:34 +000012359
cristy3ed852e2009-09-05 21:47:34 +000012360fi
cristy8b350f62009-11-15 23:12:43 +000012361rm -f core conftest.err conftest.$ac_objext \
12362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012363 LDFLAGS="$save_LDFLAGS"
12364 else
cristy932c9122009-11-19 13:57:03 +000012365 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'
12366 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'
cristy3ed852e2009-09-05 21:47:34 +000012367 fi
12368 archive_cmds_need_lc='no'
12369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12370 hardcode_libdir_separator=:
12371 inherit_rpath=yes
12372 link_all_deplibs=yes
12373 ;;
12374
12375 netbsd*)
12376 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12378 else
12379 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12380 fi
12381 hardcode_libdir_flag_spec='-R$libdir'
12382 hardcode_direct=yes
12383 hardcode_shlibpath_var=no
12384 ;;
12385
12386 newsos6)
12387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12388 hardcode_direct=yes
12389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12390 hardcode_libdir_separator=:
12391 hardcode_shlibpath_var=no
12392 ;;
12393
12394 *nto* | *qnx*)
12395 ;;
12396
12397 openbsd*)
12398 if test -f /usr/libexec/ld.so; then
12399 hardcode_direct=yes
12400 hardcode_shlibpath_var=no
12401 hardcode_direct_absolute=yes
12402 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12403 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12404 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12405 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12406 export_dynamic_flag_spec='${wl}-E'
12407 else
12408 case $host_os in
12409 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12410 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12411 hardcode_libdir_flag_spec='-R$libdir'
12412 ;;
12413 *)
12414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12415 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12416 ;;
12417 esac
12418 fi
12419 else
12420 ld_shlibs=no
12421 fi
12422 ;;
12423
12424 os2*)
12425 hardcode_libdir_flag_spec='-L$libdir'
12426 hardcode_minus_L=yes
12427 allow_undefined_flag=unsupported
cristy932c9122009-11-19 13:57:03 +000012428 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'
cristy3ed852e2009-09-05 21:47:34 +000012429 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12430 ;;
12431
12432 osf3*)
12433 if test "$GCC" = yes; then
12434 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy932c9122009-11-19 13:57:03 +000012435 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'
cristy3ed852e2009-09-05 21:47:34 +000012436 else
12437 allow_undefined_flag=' -expect_unresolved \*'
cristy932c9122009-11-19 13:57:03 +000012438 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'
cristy3ed852e2009-09-05 21:47:34 +000012439 fi
12440 archive_cmds_need_lc='no'
12441 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12442 hardcode_libdir_separator=:
12443 ;;
12444
12445 osf4* | osf5*) # as osf3* with the addition of -msym flag
12446 if test "$GCC" = yes; then
12447 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy932c9122009-11-19 13:57:03 +000012448 archive_cmds='$CC -shared${allow_undefined_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'
cristy3ed852e2009-09-05 21:47:34 +000012449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12450 else
12451 allow_undefined_flag=' -expect_unresolved \*'
cristy932c9122009-11-19 13:57:03 +000012452 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'
cristy3ed852e2009-09-05 21:47:34 +000012453 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~
cristy932c9122009-11-19 13:57:03 +000012454 $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'
cristy3ed852e2009-09-05 21:47:34 +000012455
12456 # Both c and cxx compiler support -rpath directly
12457 hardcode_libdir_flag_spec='-rpath $libdir'
12458 fi
12459 archive_cmds_need_lc='no'
12460 hardcode_libdir_separator=:
12461 ;;
12462
12463 solaris*)
12464 no_undefined_flag=' -z defs'
12465 if test "$GCC" = yes; then
12466 wlarc='${wl}'
12467 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12468 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12469 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12470 else
12471 case `$CC -V 2>&1` in
12472 *"Compilers 5.0"*)
12473 wlarc=''
12474 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12475 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12476 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12477 ;;
12478 *)
12479 wlarc='${wl}'
12480 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12481 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12482 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12483 ;;
12484 esac
12485 fi
12486 hardcode_libdir_flag_spec='-R$libdir'
12487 hardcode_shlibpath_var=no
12488 case $host_os in
12489 solaris2.[0-5] | solaris2.[0-5].*) ;;
12490 *)
12491 # The compiler driver will combine and reorder linker options,
12492 # but understands `-z linker_flag'. GCC discards it without `$wl',
12493 # but is careful enough not to reorder.
12494 # Supported since Solaris 2.6 (maybe 2.5.1?)
12495 if test "$GCC" = yes; then
12496 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12497 else
12498 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12499 fi
12500 ;;
12501 esac
12502 link_all_deplibs=yes
12503 ;;
12504
12505 sunos4*)
12506 if test "x$host_vendor" = xsequent; then
12507 # Use $CC to link under sequent, because it throws in some extra .o
12508 # files that make .init and .fini sections work.
12509 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12510 else
12511 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12512 fi
12513 hardcode_libdir_flag_spec='-L$libdir'
12514 hardcode_direct=yes
12515 hardcode_minus_L=yes
12516 hardcode_shlibpath_var=no
12517 ;;
12518
12519 sysv4)
12520 case $host_vendor in
12521 sni)
12522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12523 hardcode_direct=yes # is this really true???
12524 ;;
12525 siemens)
12526 ## LD is ld it makes a PLAMLIB
12527 ## CC just makes a GrossModule.
12528 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12529 reload_cmds='$CC -r -o $output$reload_objs'
12530 hardcode_direct=no
12531 ;;
12532 motorola)
12533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12534 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12535 ;;
12536 esac
12537 runpath_var='LD_RUN_PATH'
12538 hardcode_shlibpath_var=no
12539 ;;
12540
12541 sysv4.3*)
12542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12543 hardcode_shlibpath_var=no
12544 export_dynamic_flag_spec='-Bexport'
12545 ;;
12546
12547 sysv4*MP*)
12548 if test -d /usr/nec; then
12549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12550 hardcode_shlibpath_var=no
12551 runpath_var=LD_RUN_PATH
12552 hardcode_runpath_var=yes
12553 ld_shlibs=yes
12554 fi
12555 ;;
12556
12557 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12558 no_undefined_flag='${wl}-z,text'
12559 archive_cmds_need_lc=no
12560 hardcode_shlibpath_var=no
12561 runpath_var='LD_RUN_PATH'
12562
12563 if test "$GCC" = yes; then
12564 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12565 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12566 else
12567 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12568 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12569 fi
12570 ;;
12571
12572 sysv5* | sco3.2v5* | sco5v6*)
12573 # Note: We can NOT use -z defs as we might desire, because we do not
12574 # link with -lc, and that would cause any symbols used from libc to
12575 # always be unresolved, which means just about no library would
12576 # ever link correctly. If we're not using GNU ld we use -z text
12577 # though, which does catch some bad symbols but isn't as heavy-handed
12578 # as -z defs.
12579 no_undefined_flag='${wl}-z,text'
12580 allow_undefined_flag='${wl}-z,nodefs'
12581 archive_cmds_need_lc=no
12582 hardcode_shlibpath_var=no
12583 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12584 hardcode_libdir_separator=':'
12585 link_all_deplibs=yes
12586 export_dynamic_flag_spec='${wl}-Bexport'
12587 runpath_var='LD_RUN_PATH'
12588
12589 if test "$GCC" = yes; then
12590 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12591 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12592 else
12593 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12594 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12595 fi
12596 ;;
12597
12598 uts4*)
12599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12600 hardcode_libdir_flag_spec='-L$libdir'
12601 hardcode_shlibpath_var=no
12602 ;;
12603
12604 *)
12605 ld_shlibs=no
12606 ;;
12607 esac
12608
12609 if test x$host_vendor = xsni; then
12610 case $host in
12611 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12612 export_dynamic_flag_spec='${wl}-Blargedynsym'
12613 ;;
12614 esac
12615 fi
12616 fi
12617
cristy8b350f62009-11-15 23:12:43 +000012618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000012619$as_echo "$ld_shlibs" >&6; }
12620test "$ld_shlibs" = no && can_build_shared=no
12621
12622with_gnu_ld=$with_gnu_ld
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638#
12639# Do we need to explicitly link libc?
12640#
12641case "x$archive_cmds_need_lc" in
12642x|xyes)
12643 # Assume -lc should be added
12644 archive_cmds_need_lc=yes
12645
12646 if test "$enable_shared" = yes && test "$GCC" = yes; then
12647 case $archive_cmds in
12648 *'~'*)
12649 # FIXME: we may have to deal with multi-command sequences.
12650 ;;
12651 '$CC '*)
12652 # Test whether the compiler implicitly links with -lc since on some
12653 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12654 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000012655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000012656$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy932c9122009-11-19 13:57:03 +000012657if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12658 $as_echo_n "(cached) " >&6
12659else
12660 $RM conftest*
12661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012662
cristy932c9122009-11-19 13:57:03 +000012663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000012664 (eval $ac_compile) 2>&5
12665 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000012666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12667 test $ac_status = 0; } 2>conftest.err; then
cristy932c9122009-11-19 13:57:03 +000012668 soname=conftest
12669 lib=conftest
12670 libobjs=conftest.$ac_objext
12671 deplibs=
12672 wl=$lt_prog_compiler_wl
12673 pic_flag=$lt_prog_compiler_pic
12674 compiler_flags=-v
12675 linker_flags=-v
12676 verstring=
12677 output_objdir=.
12678 libname=conftest
12679 lt_save_allow_undefined_flag=$allow_undefined_flag
12680 allow_undefined_flag=
12681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000012682 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12683 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000012684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12685 test $ac_status = 0; }
cristy932c9122009-11-19 13:57:03 +000012686 then
12687 lt_cv_archive_cmds_need_lc=no
12688 else
12689 lt_cv_archive_cmds_need_lc=yes
12690 fi
12691 allow_undefined_flag=$lt_save_allow_undefined_flag
12692 else
12693 cat conftest.err 1>&5
12694 fi
12695 $RM conftest*
12696
12697fi
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12699$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12700 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy3ed852e2009-09-05 21:47:34 +000012701 ;;
12702 esac
12703 fi
12704 ;;
12705esac
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
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
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
cristy8b350f62009-11-15 23:12:43 +000012863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000012864$as_echo_n "checking dynamic linker characteristics... " >&6; }
12865
12866if test "$GCC" = yes; then
12867 case $host_os in
12868 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12869 *) lt_awk_arg="/^libraries:/" ;;
12870 esac
cristy932c9122009-11-19 13:57:03 +000012871 case $host_os in
12872 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12873 *) lt_sed_strip_eq="s,=/,/,g" ;;
12874 esac
12875 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12876 case $lt_search_path_spec in
12877 *\;*)
cristy3ed852e2009-09-05 21:47:34 +000012878 # if the path contains ";" then we assume it to be the separator
12879 # otherwise default to the standard path separator (i.e. ":") - it is
12880 # assumed that no part of a normal pathname contains ";" but that should
12881 # okay in the real world where ";" in dirpaths is itself problematic.
cristy932c9122009-11-19 13:57:03 +000012882 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12883 ;;
12884 *)
12885 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12886 ;;
12887 esac
cristy3ed852e2009-09-05 21:47:34 +000012888 # Ok, now we have the path, separated by spaces, we can step through it
12889 # and add multilib dir if necessary.
12890 lt_tmp_lt_search_path_spec=
12891 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12892 for lt_sys_path in $lt_search_path_spec; do
12893 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12894 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12895 else
12896 test -d "$lt_sys_path" && \
12897 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12898 fi
12899 done
cristy932c9122009-11-19 13:57:03 +000012900 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy3ed852e2009-09-05 21:47:34 +000012901BEGIN {RS=" "; FS="/|\n";} {
12902 lt_foo="";
12903 lt_count=0;
12904 for (lt_i = NF; lt_i > 0; lt_i--) {
12905 if ($lt_i != "" && $lt_i != ".") {
12906 if ($lt_i == "..") {
12907 lt_count++;
12908 } else {
12909 if (lt_count == 0) {
12910 lt_foo="/" $lt_i lt_foo;
12911 } else {
12912 lt_count--;
12913 }
12914 }
12915 }
12916 }
12917 if (lt_foo != "") { lt_freq[lt_foo]++; }
12918 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12919}'`
cristy932c9122009-11-19 13:57:03 +000012920 # AWK program above erroneously prepends '/' to C:/dos/paths
12921 # for these hosts.
12922 case $host_os in
12923 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12924 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12925 esac
12926 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy3ed852e2009-09-05 21:47:34 +000012927else
12928 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12929fi
12930library_names_spec=
12931libname_spec='lib$name'
12932soname_spec=
12933shrext_cmds=".so"
12934postinstall_cmds=
12935postuninstall_cmds=
12936finish_cmds=
12937finish_eval=
12938shlibpath_var=
12939shlibpath_overrides_runpath=unknown
12940version_type=none
12941dynamic_linker="$host_os ld.so"
12942sys_lib_dlsearch_path_spec="/lib /usr/lib"
12943need_lib_prefix=unknown
12944hardcode_into_libs=no
12945
12946# when you set need_version to no, make sure it does not cause -set_version
12947# flags to be left without arguments
12948need_version=unknown
12949
12950case $host_os in
12951aix3*)
12952 version_type=linux
12953 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12954 shlibpath_var=LIBPATH
12955
12956 # AIX 3 has no versioning support, so we append a major version to the name.
12957 soname_spec='${libname}${release}${shared_ext}$major'
12958 ;;
12959
12960aix[4-9]*)
12961 version_type=linux
12962 need_lib_prefix=no
12963 need_version=no
12964 hardcode_into_libs=yes
12965 if test "$host_cpu" = ia64; then
12966 # AIX 5 supports IA64
12967 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12968 shlibpath_var=LD_LIBRARY_PATH
12969 else
12970 # With GCC up to 2.95.x, collect2 would create an import file
12971 # for dependence libraries. The import file would start with
12972 # the line `#! .'. This would cause the generated library to
12973 # depend on `.', always an invalid library. This was fixed in
12974 # development snapshots of GCC prior to 3.0.
12975 case $host_os in
12976 aix4 | aix4.[01] | aix4.[01].*)
12977 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12978 echo ' yes '
12979 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12980 :
12981 else
12982 can_build_shared=no
12983 fi
12984 ;;
12985 esac
12986 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12987 # soname into executable. Probably we can add versioning support to
12988 # collect2, so additional links can be useful in future.
12989 if test "$aix_use_runtimelinking" = yes; then
12990 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12991 # instead of lib<name>.a to let people know that these are not
12992 # typical AIX shared libraries.
12993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12994 else
12995 # We preserve .a as extension for shared libraries through AIX4.2
12996 # and later when we are not doing run time linking.
12997 library_names_spec='${libname}${release}.a $libname.a'
12998 soname_spec='${libname}${release}${shared_ext}$major'
12999 fi
13000 shlibpath_var=LIBPATH
13001 fi
13002 ;;
13003
13004amigaos*)
13005 case $host_cpu in
13006 powerpc)
13007 # Since July 2007 AmigaOS4 officially supports .so libraries.
13008 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13010 ;;
13011 m68k)
13012 library_names_spec='$libname.ixlibrary $libname.a'
13013 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy932c9122009-11-19 13:57:03 +000013014 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'
cristy3ed852e2009-09-05 21:47:34 +000013015 ;;
13016 esac
13017 ;;
13018
13019beos*)
13020 library_names_spec='${libname}${shared_ext}'
13021 dynamic_linker="$host_os ld.so"
13022 shlibpath_var=LIBRARY_PATH
13023 ;;
13024
13025bsdi[45]*)
13026 version_type=linux
13027 need_version=no
13028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13029 soname_spec='${libname}${release}${shared_ext}$major'
13030 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13031 shlibpath_var=LD_LIBRARY_PATH
13032 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13033 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13034 # the default ld.so.conf also contains /usr/contrib/lib and
13035 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13036 # libtool to hard-code these into programs
13037 ;;
13038
13039cygwin* | mingw* | pw32* | cegcc*)
13040 version_type=windows
13041 shrext_cmds=".dll"
13042 need_version=no
13043 need_lib_prefix=no
13044
13045 case $GCC,$host_os in
13046 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13047 library_names_spec='$libname.dll.a'
13048 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13049 postinstall_cmds='base_file=`basename \${file}`~
13050 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13051 dldir=$destdir/`dirname \$dlpath`~
13052 test -d \$dldir || mkdir -p \$dldir~
13053 $install_prog $dir/$dlname \$dldir/$dlname~
13054 chmod a+x \$dldir/$dlname~
13055 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13056 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13057 fi'
13058 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13059 dlpath=$dir/\$dldll~
13060 $RM \$dlpath'
13061 shlibpath_overrides_runpath=yes
13062
13063 case $host_os in
13064 cygwin*)
13065 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13066 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy932c9122009-11-19 13:57:03 +000013067
13068 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy3ed852e2009-09-05 21:47:34 +000013069 ;;
13070 mingw* | cegcc*)
13071 # MinGW DLLs use traditional 'lib' prefix
13072 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000013073 ;;
13074 pw32*)
13075 # pw32 DLLs use 'pw' prefix rather than 'lib'
13076 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13077 ;;
13078 esac
13079 ;;
13080
13081 *)
13082 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13083 ;;
13084 esac
13085 dynamic_linker='Win32 ld.exe'
13086 # FIXME: first we should search . and the directory the executable is in
13087 shlibpath_var=PATH
13088 ;;
13089
13090darwin* | rhapsody*)
13091 dynamic_linker="$host_os dyld"
13092 version_type=darwin
13093 need_lib_prefix=no
13094 need_version=no
13095 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13096 soname_spec='${libname}${release}${major}$shared_ext'
13097 shlibpath_overrides_runpath=yes
13098 shlibpath_var=DYLD_LIBRARY_PATH
13099 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13100
13101 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13102 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13103 ;;
13104
13105dgux*)
13106 version_type=linux
13107 need_lib_prefix=no
13108 need_version=no
13109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13110 soname_spec='${libname}${release}${shared_ext}$major'
13111 shlibpath_var=LD_LIBRARY_PATH
13112 ;;
13113
13114freebsd1*)
13115 dynamic_linker=no
13116 ;;
13117
13118freebsd* | dragonfly*)
13119 # DragonFly does not have aout. When/if they implement a new
13120 # versioning mechanism, adjust this.
13121 if test -x /usr/bin/objformat; then
13122 objformat=`/usr/bin/objformat`
13123 else
13124 case $host_os in
13125 freebsd[123]*) objformat=aout ;;
13126 *) objformat=elf ;;
13127 esac
13128 fi
13129 version_type=freebsd-$objformat
13130 case $version_type in
13131 freebsd-elf*)
13132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13133 need_version=no
13134 need_lib_prefix=no
13135 ;;
13136 freebsd-*)
13137 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13138 need_version=yes
13139 ;;
13140 esac
13141 shlibpath_var=LD_LIBRARY_PATH
13142 case $host_os in
13143 freebsd2*)
13144 shlibpath_overrides_runpath=yes
13145 ;;
13146 freebsd3.[01]* | freebsdelf3.[01]*)
13147 shlibpath_overrides_runpath=yes
13148 hardcode_into_libs=yes
13149 ;;
13150 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13151 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13152 shlibpath_overrides_runpath=no
13153 hardcode_into_libs=yes
13154 ;;
13155 *) # from 4.6 on, and DragonFly
13156 shlibpath_overrides_runpath=yes
13157 hardcode_into_libs=yes
13158 ;;
13159 esac
13160 ;;
13161
13162gnu*)
13163 version_type=linux
13164 need_lib_prefix=no
13165 need_version=no
13166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13167 soname_spec='${libname}${release}${shared_ext}$major'
13168 shlibpath_var=LD_LIBRARY_PATH
13169 hardcode_into_libs=yes
13170 ;;
13171
cristy932c9122009-11-19 13:57:03 +000013172haiku*)
13173 version_type=linux
13174 need_lib_prefix=no
13175 need_version=no
13176 dynamic_linker="$host_os runtime_loader"
13177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13178 soname_spec='${libname}${release}${shared_ext}$major'
13179 shlibpath_var=LIBRARY_PATH
13180 shlibpath_overrides_runpath=yes
13181 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13182 hardcode_into_libs=yes
13183 ;;
13184
cristy3ed852e2009-09-05 21:47:34 +000013185hpux9* | hpux10* | hpux11*)
13186 # Give a soname corresponding to the major version so that dld.sl refuses to
13187 # link against other versions.
13188 version_type=sunos
13189 need_lib_prefix=no
13190 need_version=no
13191 case $host_cpu in
13192 ia64*)
13193 shrext_cmds='.so'
13194 hardcode_into_libs=yes
13195 dynamic_linker="$host_os dld.so"
13196 shlibpath_var=LD_LIBRARY_PATH
13197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13199 soname_spec='${libname}${release}${shared_ext}$major'
13200 if test "X$HPUX_IA64_MODE" = X32; then
13201 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13202 else
13203 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13204 fi
13205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13206 ;;
13207 hppa*64*)
13208 shrext_cmds='.sl'
13209 hardcode_into_libs=yes
13210 dynamic_linker="$host_os dld.sl"
13211 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13214 soname_spec='${libname}${release}${shared_ext}$major'
13215 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13217 ;;
13218 *)
13219 shrext_cmds='.sl'
13220 dynamic_linker="$host_os dld.sl"
13221 shlibpath_var=SHLIB_PATH
13222 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13224 soname_spec='${libname}${release}${shared_ext}$major'
13225 ;;
13226 esac
cristy932c9122009-11-19 13:57:03 +000013227 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000013228 postinstall_cmds='chmod 555 $lib'
cristy932c9122009-11-19 13:57:03 +000013229 # or fails outright, so override atomically:
13230 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000013231 ;;
13232
13233interix[3-9]*)
13234 version_type=linux
13235 need_lib_prefix=no
13236 need_version=no
13237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13238 soname_spec='${libname}${release}${shared_ext}$major'
13239 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13240 shlibpath_var=LD_LIBRARY_PATH
13241 shlibpath_overrides_runpath=no
13242 hardcode_into_libs=yes
13243 ;;
13244
13245irix5* | irix6* | nonstopux*)
13246 case $host_os in
13247 nonstopux*) version_type=nonstopux ;;
13248 *)
13249 if test "$lt_cv_prog_gnu_ld" = yes; then
13250 version_type=linux
13251 else
13252 version_type=irix
13253 fi ;;
13254 esac
13255 need_lib_prefix=no
13256 need_version=no
13257 soname_spec='${libname}${release}${shared_ext}$major'
13258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13259 case $host_os in
13260 irix5* | nonstopux*)
13261 libsuff= shlibsuff=
13262 ;;
13263 *)
13264 case $LD in # libtool.m4 will add one of these switches to LD
13265 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13266 libsuff= shlibsuff= libmagic=32-bit;;
13267 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13268 libsuff=32 shlibsuff=N32 libmagic=N32;;
13269 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13270 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13271 *) libsuff= shlibsuff= libmagic=never-match;;
13272 esac
13273 ;;
13274 esac
13275 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13276 shlibpath_overrides_runpath=no
13277 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13278 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13279 hardcode_into_libs=yes
13280 ;;
13281
13282# No shared lib support for Linux oldld, aout, or coff.
13283linux*oldld* | linux*aout* | linux*coff*)
13284 dynamic_linker=no
13285 ;;
13286
13287# This must be Linux ELF.
cristy932c9122009-11-19 13:57:03 +000013288linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013289 version_type=linux
13290 need_lib_prefix=no
13291 need_version=no
13292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293 soname_spec='${libname}${release}${shared_ext}$major'
13294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13295 shlibpath_var=LD_LIBRARY_PATH
13296 shlibpath_overrides_runpath=no
cristy932c9122009-11-19 13:57:03 +000013297
cristy3ed852e2009-09-05 21:47:34 +000013298 # Some binutils ld are patched to set DT_RUNPATH
cristy932c9122009-11-19 13:57:03 +000013299 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13300 $as_echo_n "(cached) " >&6
13301else
13302 lt_cv_shlibpath_overrides_runpath=no
13303 save_LDFLAGS=$LDFLAGS
13304 save_libdir=$libdir
13305 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13306 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013308/* end confdefs.h. */
13309
13310int
13311main ()
13312{
13313
13314 ;
13315 return 0;
13316}
13317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013318if ac_fn_c_try_link "$LINENO"; then :
13319 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy932c9122009-11-19 13:57:03 +000013320 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000013321fi
cristy3ed852e2009-09-05 21:47:34 +000013322fi
cristy8b350f62009-11-15 23:12:43 +000013323rm -f core conftest.err conftest.$ac_objext \
13324 conftest$ac_exeext conftest.$ac_ext
cristy932c9122009-11-19 13:57:03 +000013325 LDFLAGS=$save_LDFLAGS
13326 libdir=$save_libdir
13327
13328fi
13329
13330 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000013331
13332 # This implies no fast_install, which is unacceptable.
13333 # Some rework will be needed to allow for fast_install
13334 # before this can be enabled.
13335 hardcode_into_libs=yes
13336
cristy3ed852e2009-09-05 21:47:34 +000013337 # Append ld.so.conf contents to the search path
13338 if test -f /etc/ld.so.conf; then
cristy932c9122009-11-19 13:57:03 +000013339 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' ' '`
13340 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000013341 fi
13342
13343 # We used to test for /lib/ld.so.1 and disable shared libraries on
13344 # powerpc, because MkLinux only supported shared libraries with the
13345 # GNU dynamic linker. Since this was broken with cross compilers,
13346 # most powerpc-linux boxes support dynamic linking these days and
13347 # people can always --disable-shared, the test was removed, and we
13348 # assume the GNU/Linux dynamic linker is in use.
13349 dynamic_linker='GNU/Linux ld.so'
13350 ;;
13351
13352netbsd*)
13353 version_type=sunos
13354 need_lib_prefix=no
13355 need_version=no
13356 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13359 dynamic_linker='NetBSD (a.out) ld.so'
13360 else
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13362 soname_spec='${libname}${release}${shared_ext}$major'
13363 dynamic_linker='NetBSD ld.elf_so'
13364 fi
13365 shlibpath_var=LD_LIBRARY_PATH
13366 shlibpath_overrides_runpath=yes
13367 hardcode_into_libs=yes
13368 ;;
13369
13370newsos6)
13371 version_type=linux
13372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13373 shlibpath_var=LD_LIBRARY_PATH
13374 shlibpath_overrides_runpath=yes
13375 ;;
13376
13377*nto* | *qnx*)
13378 version_type=qnx
13379 need_lib_prefix=no
13380 need_version=no
13381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13382 soname_spec='${libname}${release}${shared_ext}$major'
13383 shlibpath_var=LD_LIBRARY_PATH
13384 shlibpath_overrides_runpath=no
13385 hardcode_into_libs=yes
13386 dynamic_linker='ldqnx.so'
13387 ;;
13388
13389openbsd*)
13390 version_type=sunos
13391 sys_lib_dlsearch_path_spec="/usr/lib"
13392 need_lib_prefix=no
13393 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13394 case $host_os in
13395 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13396 *) need_version=no ;;
13397 esac
13398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13400 shlibpath_var=LD_LIBRARY_PATH
13401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13402 case $host_os in
13403 openbsd2.[89] | openbsd2.[89].*)
13404 shlibpath_overrides_runpath=no
13405 ;;
13406 *)
13407 shlibpath_overrides_runpath=yes
13408 ;;
13409 esac
13410 else
13411 shlibpath_overrides_runpath=yes
13412 fi
13413 ;;
13414
13415os2*)
13416 libname_spec='$name'
13417 shrext_cmds=".dll"
13418 need_lib_prefix=no
13419 library_names_spec='$libname${shared_ext} $libname.a'
13420 dynamic_linker='OS/2 ld.exe'
13421 shlibpath_var=LIBPATH
13422 ;;
13423
13424osf3* | osf4* | osf5*)
13425 version_type=osf
13426 need_lib_prefix=no
13427 need_version=no
13428 soname_spec='${libname}${release}${shared_ext}$major'
13429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13430 shlibpath_var=LD_LIBRARY_PATH
13431 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13432 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13433 ;;
13434
13435rdos*)
13436 dynamic_linker=no
13437 ;;
13438
13439solaris*)
13440 version_type=linux
13441 need_lib_prefix=no
13442 need_version=no
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444 soname_spec='${libname}${release}${shared_ext}$major'
13445 shlibpath_var=LD_LIBRARY_PATH
13446 shlibpath_overrides_runpath=yes
13447 hardcode_into_libs=yes
13448 # ldd complains unless libraries are executable
13449 postinstall_cmds='chmod +x $lib'
13450 ;;
13451
13452sunos4*)
13453 version_type=sunos
13454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13455 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13456 shlibpath_var=LD_LIBRARY_PATH
13457 shlibpath_overrides_runpath=yes
13458 if test "$with_gnu_ld" = yes; then
13459 need_lib_prefix=no
13460 fi
13461 need_version=yes
13462 ;;
13463
13464sysv4 | sysv4.3*)
13465 version_type=linux
13466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13467 soname_spec='${libname}${release}${shared_ext}$major'
13468 shlibpath_var=LD_LIBRARY_PATH
13469 case $host_vendor in
13470 sni)
13471 shlibpath_overrides_runpath=no
13472 need_lib_prefix=no
13473 runpath_var=LD_RUN_PATH
13474 ;;
13475 siemens)
13476 need_lib_prefix=no
13477 ;;
13478 motorola)
13479 need_lib_prefix=no
13480 need_version=no
13481 shlibpath_overrides_runpath=no
13482 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13483 ;;
13484 esac
13485 ;;
13486
13487sysv4*MP*)
13488 if test -d /usr/nec ;then
13489 version_type=linux
13490 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13491 soname_spec='$libname${shared_ext}.$major'
13492 shlibpath_var=LD_LIBRARY_PATH
13493 fi
13494 ;;
13495
13496sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13497 version_type=freebsd-elf
13498 need_lib_prefix=no
13499 need_version=no
13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13501 soname_spec='${libname}${release}${shared_ext}$major'
13502 shlibpath_var=LD_LIBRARY_PATH
13503 shlibpath_overrides_runpath=yes
13504 hardcode_into_libs=yes
13505 if test "$with_gnu_ld" = yes; then
13506 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13507 else
13508 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13509 case $host_os in
13510 sco3.2v5*)
13511 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13512 ;;
13513 esac
13514 fi
13515 sys_lib_dlsearch_path_spec='/usr/lib'
13516 ;;
13517
13518tpf*)
13519 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13520 version_type=linux
13521 need_lib_prefix=no
13522 need_version=no
13523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13524 shlibpath_var=LD_LIBRARY_PATH
13525 shlibpath_overrides_runpath=no
13526 hardcode_into_libs=yes
13527 ;;
13528
13529uts4*)
13530 version_type=linux
13531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13532 soname_spec='${libname}${release}${shared_ext}$major'
13533 shlibpath_var=LD_LIBRARY_PATH
13534 ;;
13535
13536*)
13537 dynamic_linker=no
13538 ;;
13539esac
cristy8b350f62009-11-15 23:12:43 +000013540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000013541$as_echo "$dynamic_linker" >&6; }
13542test "$dynamic_linker" = no && can_build_shared=no
13543
13544variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13545if test "$GCC" = yes; then
13546 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13547fi
13548
13549if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13550 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13551fi
13552if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13553 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13554fi
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
cristy932c9122009-11-19 13:57:03 +000013642
13643
13644
13645
13646
cristy8b350f62009-11-15 23:12:43 +000013647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000013648$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13649hardcode_action=
13650if test -n "$hardcode_libdir_flag_spec" ||
13651 test -n "$runpath_var" ||
13652 test "X$hardcode_automatic" = "Xyes" ; then
13653
13654 # We can hardcode non-existent directories.
13655 if test "$hardcode_direct" != no &&
13656 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13657 # have to relink, otherwise we might link with an installed library
13658 # when we should be linking with a yet-to-be-installed one
13659 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13660 test "$hardcode_minus_L" != no; then
13661 # Linking always hardcodes the temporary library directory.
13662 hardcode_action=relink
13663 else
13664 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13665 hardcode_action=immediate
13666 fi
13667else
13668 # We cannot hardcode anything, or else we can only hardcode existing
13669 # directories.
13670 hardcode_action=unsupported
13671fi
cristy8b350f62009-11-15 23:12:43 +000013672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000013673$as_echo "$hardcode_action" >&6; }
13674
13675if test "$hardcode_action" = relink ||
13676 test "$inherit_rpath" = yes; then
13677 # Fast installation is not supported
13678 enable_fast_install=no
13679elif test "$shlibpath_overrides_runpath" = yes ||
13680 test "$enable_shared" = no; then
13681 # Fast installation is not necessary
13682 enable_fast_install=needless
13683fi
13684
13685
13686
13687
13688
13689
13690 if test "x$enable_dlopen" != xyes; then
13691 enable_dlopen=unknown
13692 enable_dlopen_self=unknown
13693 enable_dlopen_self_static=unknown
13694else
13695 lt_cv_dlopen=no
13696 lt_cv_dlopen_libs=
13697
13698 case $host_os in
13699 beos*)
13700 lt_cv_dlopen="load_add_on"
13701 lt_cv_dlopen_libs=
13702 lt_cv_dlopen_self=yes
13703 ;;
13704
13705 mingw* | pw32* | cegcc*)
13706 lt_cv_dlopen="LoadLibrary"
13707 lt_cv_dlopen_libs=
13708 ;;
13709
13710 cygwin*)
13711 lt_cv_dlopen="dlopen"
13712 lt_cv_dlopen_libs=
13713 ;;
13714
13715 darwin*)
13716 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000013717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000013718$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013719if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013720 $as_echo_n "(cached) " >&6
13721else
13722 ac_check_lib_save_LIBS=$LIBS
13723LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013725/* end confdefs.h. */
13726
13727/* Override any GCC internal prototype to avoid an error.
13728 Use char because int might match the return type of a GCC
13729 builtin and then its argument prototype would still apply. */
13730#ifdef __cplusplus
13731extern "C"
13732#endif
13733char dlopen ();
13734int
13735main ()
13736{
13737return dlopen ();
13738 ;
13739 return 0;
13740}
13741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013742if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013743 ac_cv_lib_dl_dlopen=yes
13744else
cristy8b350f62009-11-15 23:12:43 +000013745 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000013746fi
cristy8b350f62009-11-15 23:12:43 +000013747rm -f core conftest.err conftest.$ac_objext \
13748 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013749LIBS=$ac_check_lib_save_LIBS
13750fi
cristy8b350f62009-11-15 23:12:43 +000013751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000013752$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013753if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013754 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13755else
13756
13757 lt_cv_dlopen="dyld"
13758 lt_cv_dlopen_libs=
13759 lt_cv_dlopen_self=yes
13760
13761fi
13762
13763 ;;
13764
13765 *)
cristy8b350f62009-11-15 23:12:43 +000013766 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13767if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013768 lt_cv_dlopen="shl_load"
13769else
cristy8b350f62009-11-15 23:12:43 +000013770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000013771$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013772if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013773 $as_echo_n "(cached) " >&6
13774else
13775 ac_check_lib_save_LIBS=$LIBS
13776LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013778/* end confdefs.h. */
13779
13780/* Override any GCC internal prototype to avoid an error.
13781 Use char because int might match the return type of a GCC
13782 builtin and then its argument prototype would still apply. */
13783#ifdef __cplusplus
13784extern "C"
13785#endif
13786char shl_load ();
13787int
13788main ()
13789{
13790return shl_load ();
13791 ;
13792 return 0;
13793}
13794_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013795if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013796 ac_cv_lib_dld_shl_load=yes
13797else
cristy8b350f62009-11-15 23:12:43 +000013798 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000013799fi
cristy8b350f62009-11-15 23:12:43 +000013800rm -f core conftest.err conftest.$ac_objext \
13801 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013802LIBS=$ac_check_lib_save_LIBS
13803fi
cristy8b350f62009-11-15 23:12:43 +000013804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000013805$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013806if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013807 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13808else
cristy8b350f62009-11-15 23:12:43 +000013809 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13810if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013811 lt_cv_dlopen="dlopen"
13812else
cristy8b350f62009-11-15 23:12:43 +000013813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000013814$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013815if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013816 $as_echo_n "(cached) " >&6
13817else
13818 ac_check_lib_save_LIBS=$LIBS
13819LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013821/* end confdefs.h. */
13822
13823/* Override any GCC internal prototype to avoid an error.
13824 Use char because int might match the return type of a GCC
13825 builtin and then its argument prototype would still apply. */
13826#ifdef __cplusplus
13827extern "C"
13828#endif
13829char dlopen ();
13830int
13831main ()
13832{
13833return dlopen ();
13834 ;
13835 return 0;
13836}
13837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013838if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013839 ac_cv_lib_dl_dlopen=yes
13840else
cristy8b350f62009-11-15 23:12:43 +000013841 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000013842fi
cristy8b350f62009-11-15 23:12:43 +000013843rm -f core conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013845LIBS=$ac_check_lib_save_LIBS
13846fi
cristy8b350f62009-11-15 23:12:43 +000013847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000013848$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013849if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13851else
cristy8b350f62009-11-15 23:12:43 +000013852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000013853$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013854if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013855 $as_echo_n "(cached) " >&6
13856else
13857 ac_check_lib_save_LIBS=$LIBS
13858LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013860/* end confdefs.h. */
13861
13862/* Override any GCC internal prototype to avoid an error.
13863 Use char because int might match the return type of a GCC
13864 builtin and then its argument prototype would still apply. */
13865#ifdef __cplusplus
13866extern "C"
13867#endif
13868char dlopen ();
13869int
13870main ()
13871{
13872return dlopen ();
13873 ;
13874 return 0;
13875}
13876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013877if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013878 ac_cv_lib_svld_dlopen=yes
13879else
cristy8b350f62009-11-15 23:12:43 +000013880 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000013881fi
cristy8b350f62009-11-15 23:12:43 +000013882rm -f core conftest.err conftest.$ac_objext \
13883 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013884LIBS=$ac_check_lib_save_LIBS
13885fi
cristy8b350f62009-11-15 23:12:43 +000013886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000013887$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013888if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13890else
cristy8b350f62009-11-15 23:12:43 +000013891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000013892$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013893if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013894 $as_echo_n "(cached) " >&6
13895else
13896 ac_check_lib_save_LIBS=$LIBS
13897LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013899/* end confdefs.h. */
13900
13901/* Override any GCC internal prototype to avoid an error.
13902 Use char because int might match the return type of a GCC
13903 builtin and then its argument prototype would still apply. */
13904#ifdef __cplusplus
13905extern "C"
13906#endif
13907char dld_link ();
13908int
13909main ()
13910{
13911return dld_link ();
13912 ;
13913 return 0;
13914}
13915_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013916if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013917 ac_cv_lib_dld_dld_link=yes
13918else
cristy8b350f62009-11-15 23:12:43 +000013919 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000013920fi
cristy8b350f62009-11-15 23:12:43 +000013921rm -f core conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013923LIBS=$ac_check_lib_save_LIBS
13924fi
cristy8b350f62009-11-15 23:12:43 +000013925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000013926$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013927if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013928 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13929fi
13930
13931
13932fi
13933
13934
13935fi
13936
13937
13938fi
13939
13940
13941fi
13942
13943
13944fi
13945
13946 ;;
13947 esac
13948
13949 if test "x$lt_cv_dlopen" != xno; then
13950 enable_dlopen=yes
13951 else
13952 enable_dlopen=no
13953 fi
13954
13955 case $lt_cv_dlopen in
13956 dlopen)
13957 save_CPPFLAGS="$CPPFLAGS"
13958 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13959
13960 save_LDFLAGS="$LDFLAGS"
13961 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13962
13963 save_LIBS="$LIBS"
13964 LIBS="$lt_cv_dlopen_libs $LIBS"
13965
cristy8b350f62009-11-15 23:12:43 +000013966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000013967$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013968if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013969 $as_echo_n "(cached) " >&6
13970else
13971 if test "$cross_compiling" = yes; then :
13972 lt_cv_dlopen_self=cross
13973else
13974 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13975 lt_status=$lt_dlunknown
13976 cat > conftest.$ac_ext <<_LT_EOF
cristy932c9122009-11-19 13:57:03 +000013977#line 13977 "configure"
cristy3ed852e2009-09-05 21:47:34 +000013978#include "confdefs.h"
13979
13980#if HAVE_DLFCN_H
13981#include <dlfcn.h>
13982#endif
13983
13984#include <stdio.h>
13985
13986#ifdef RTLD_GLOBAL
13987# define LT_DLGLOBAL RTLD_GLOBAL
13988#else
13989# ifdef DL_GLOBAL
13990# define LT_DLGLOBAL DL_GLOBAL
13991# else
13992# define LT_DLGLOBAL 0
13993# endif
13994#endif
13995
13996/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13997 find out it does not work in some platform. */
13998#ifndef LT_DLLAZY_OR_NOW
13999# ifdef RTLD_LAZY
14000# define LT_DLLAZY_OR_NOW RTLD_LAZY
14001# else
14002# ifdef DL_LAZY
14003# define LT_DLLAZY_OR_NOW DL_LAZY
14004# else
14005# ifdef RTLD_NOW
14006# define LT_DLLAZY_OR_NOW RTLD_NOW
14007# else
14008# ifdef DL_NOW
14009# define LT_DLLAZY_OR_NOW DL_NOW
14010# else
14011# define LT_DLLAZY_OR_NOW 0
14012# endif
14013# endif
14014# endif
14015# endif
14016#endif
14017
cristy932c9122009-11-19 13:57:03 +000014018/* When -fvisbility=hidden is used, assume the code has been annotated
14019 correspondingly for the symbols needed. */
14020#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14021void fnord () __attribute__((visibility("default")));
14022#endif
14023
14024void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000014025int main ()
14026{
14027 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14028 int status = $lt_dlunknown;
14029
14030 if (self)
14031 {
14032 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy932c9122009-11-19 13:57:03 +000014033 else
14034 {
14035 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14036 else puts (dlerror ());
14037 }
cristy3ed852e2009-09-05 21:47:34 +000014038 /* dlclose (self); */
14039 }
14040 else
14041 puts (dlerror ());
14042
14043 return status;
14044}
14045_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014047 (eval $ac_link) 2>&5
14048 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14050 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014051 (./conftest; exit; ) >&5 2>/dev/null
14052 lt_status=$?
14053 case x$lt_status in
14054 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14055 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14056 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14057 esac
14058 else :
14059 # compilation failed
14060 lt_cv_dlopen_self=no
14061 fi
14062fi
14063rm -fr conftest*
14064
14065
14066fi
cristy8b350f62009-11-15 23:12:43 +000014067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000014068$as_echo "$lt_cv_dlopen_self" >&6; }
14069
14070 if test "x$lt_cv_dlopen_self" = xyes; then
14071 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000014072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014073$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014074if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014075 $as_echo_n "(cached) " >&6
14076else
14077 if test "$cross_compiling" = yes; then :
14078 lt_cv_dlopen_self_static=cross
14079else
14080 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14081 lt_status=$lt_dlunknown
14082 cat > conftest.$ac_ext <<_LT_EOF
cristy932c9122009-11-19 13:57:03 +000014083#line 14083 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014084#include "confdefs.h"
14085
14086#if HAVE_DLFCN_H
14087#include <dlfcn.h>
14088#endif
14089
14090#include <stdio.h>
14091
14092#ifdef RTLD_GLOBAL
14093# define LT_DLGLOBAL RTLD_GLOBAL
14094#else
14095# ifdef DL_GLOBAL
14096# define LT_DLGLOBAL DL_GLOBAL
14097# else
14098# define LT_DLGLOBAL 0
14099# endif
14100#endif
14101
14102/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14103 find out it does not work in some platform. */
14104#ifndef LT_DLLAZY_OR_NOW
14105# ifdef RTLD_LAZY
14106# define LT_DLLAZY_OR_NOW RTLD_LAZY
14107# else
14108# ifdef DL_LAZY
14109# define LT_DLLAZY_OR_NOW DL_LAZY
14110# else
14111# ifdef RTLD_NOW
14112# define LT_DLLAZY_OR_NOW RTLD_NOW
14113# else
14114# ifdef DL_NOW
14115# define LT_DLLAZY_OR_NOW DL_NOW
14116# else
14117# define LT_DLLAZY_OR_NOW 0
14118# endif
14119# endif
14120# endif
14121# endif
14122#endif
14123
cristy932c9122009-11-19 13:57:03 +000014124/* When -fvisbility=hidden is used, assume the code has been annotated
14125 correspondingly for the symbols needed. */
14126#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14127void fnord () __attribute__((visibility("default")));
14128#endif
14129
14130void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000014131int main ()
14132{
14133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14134 int status = $lt_dlunknown;
14135
14136 if (self)
14137 {
14138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy932c9122009-11-19 13:57:03 +000014139 else
14140 {
14141 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14142 else puts (dlerror ());
14143 }
cristy3ed852e2009-09-05 21:47:34 +000014144 /* dlclose (self); */
14145 }
14146 else
14147 puts (dlerror ());
14148
14149 return status;
14150}
14151_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014153 (eval $ac_link) 2>&5
14154 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14156 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014157 (./conftest; exit; ) >&5 2>/dev/null
14158 lt_status=$?
14159 case x$lt_status in
14160 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14161 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14162 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14163 esac
14164 else :
14165 # compilation failed
14166 lt_cv_dlopen_self_static=no
14167 fi
14168fi
14169rm -fr conftest*
14170
14171
14172fi
cristy8b350f62009-11-15 23:12:43 +000014173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014174$as_echo "$lt_cv_dlopen_self_static" >&6; }
14175 fi
14176
14177 CPPFLAGS="$save_CPPFLAGS"
14178 LDFLAGS="$save_LDFLAGS"
14179 LIBS="$save_LIBS"
14180 ;;
14181 esac
14182
14183 case $lt_cv_dlopen_self in
14184 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14185 *) enable_dlopen_self=unknown ;;
14186 esac
14187
14188 case $lt_cv_dlopen_self_static in
14189 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14190 *) enable_dlopen_self_static=unknown ;;
14191 esac
14192fi
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210striplib=
14211old_striplib=
cristy8b350f62009-11-15 23:12:43 +000014212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000014213$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14214if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14215 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14216 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000014217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014218$as_echo "yes" >&6; }
14219else
14220# FIXME - insert some real tests, host_os isn't really good enough
14221 case $host_os in
14222 darwin*)
14223 if test -n "$STRIP" ; then
14224 striplib="$STRIP -x"
14225 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000014226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014227$as_echo "yes" >&6; }
14228 else
cristy8b350f62009-11-15 23:12:43 +000014229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014230$as_echo "no" >&6; }
14231 fi
14232 ;;
14233 *)
cristy8b350f62009-11-15 23:12:43 +000014234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014235$as_echo "no" >&6; }
14236 ;;
14237 esac
14238fi
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000014252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014253$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014255$as_echo "$can_build_shared" >&6; }
14256
cristy8b350f62009-11-15 23:12:43 +000014257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014258$as_echo_n "checking whether to build shared libraries... " >&6; }
14259 test "$can_build_shared" = "no" && enable_shared=no
14260
14261 # On AIX, shared libraries and static libraries use the same namespace, and
14262 # are all built from PIC.
14263 case $host_os in
14264 aix3*)
14265 test "$enable_shared" = yes && enable_static=no
14266 if test -n "$RANLIB"; then
14267 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14268 postinstall_cmds='$RANLIB $lib'
14269 fi
14270 ;;
14271
14272 aix[4-9]*)
14273 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14274 test "$enable_shared" = yes && enable_static=no
14275 fi
14276 ;;
14277 esac
cristy8b350f62009-11-15 23:12:43 +000014278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014279$as_echo "$enable_shared" >&6; }
14280
cristy8b350f62009-11-15 23:12:43 +000014281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014282$as_echo_n "checking whether to build static libraries... " >&6; }
14283 # Make sure either enable_shared or enable_static is yes.
14284 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000014285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014286$as_echo "$enable_static" >&6; }
14287
14288
14289
14290
14291fi
14292ac_ext=c
14293ac_cpp='$CPP $CPPFLAGS'
14294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14296ac_compiler_gnu=$ac_cv_c_compiler_gnu
14297
14298CC="$lt_save_CC"
14299
cristy932c9122009-11-19 13:57:03 +000014300 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14301 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14302 (test "X$CXX" != "Xg++"))) ; then
14303 ac_ext=cpp
14304ac_cpp='$CXXCPP $CPPFLAGS'
14305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14309$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14310if test -z "$CXXCPP"; then
14311 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
14312 $as_echo_n "(cached) " >&6
14313else
14314 # Double quotes because CXXCPP needs to be expanded
14315 for CXXCPP in "$CXX -E" "/lib/cpp"
14316 do
14317 ac_preproc_ok=false
14318for ac_cxx_preproc_warn_flag in '' yes
14319do
14320 # Use a header file that comes with gcc, so configuring glibc
14321 # with a fresh cross-compiler works.
14322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14323 # <limits.h> exists even on freestanding compilers.
14324 # On the NeXT, cc -E runs the code through the compiler's parser,
14325 # not just through cpp. "Syntax error" is here to catch this case.
14326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327/* end confdefs.h. */
14328#ifdef __STDC__
14329# include <limits.h>
14330#else
14331# include <assert.h>
14332#endif
14333 Syntax error
14334_ACEOF
14335if ac_fn_cxx_try_cpp "$LINENO"; then :
14336
14337else
14338 # Broken: fails on valid input.
14339continue
14340fi
14341rm -f conftest.err conftest.$ac_ext
14342
14343 # OK, works on sane cases. Now check whether nonexistent headers
14344 # can be detected and how.
14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346/* end confdefs.h. */
14347#include <ac_nonexistent.h>
14348_ACEOF
14349if ac_fn_cxx_try_cpp "$LINENO"; then :
14350 # Broken: success on invalid input.
14351continue
14352else
14353 # Passes both tests.
14354ac_preproc_ok=:
14355break
14356fi
14357rm -f conftest.err conftest.$ac_ext
14358
14359done
14360# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14361rm -f conftest.err conftest.$ac_ext
14362if $ac_preproc_ok; then :
14363 break
14364fi
14365
14366 done
14367 ac_cv_prog_CXXCPP=$CXXCPP
14368
14369fi
14370 CXXCPP=$ac_cv_prog_CXXCPP
14371else
14372 ac_cv_prog_CXXCPP=$CXXCPP
14373fi
14374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14375$as_echo "$CXXCPP" >&6; }
14376ac_preproc_ok=false
14377for ac_cxx_preproc_warn_flag in '' yes
14378do
14379 # Use a header file that comes with gcc, so configuring glibc
14380 # with a fresh cross-compiler works.
14381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14382 # <limits.h> exists even on freestanding compilers.
14383 # On the NeXT, cc -E runs the code through the compiler's parser,
14384 # not just through cpp. "Syntax error" is here to catch this case.
14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386/* end confdefs.h. */
14387#ifdef __STDC__
14388# include <limits.h>
14389#else
14390# include <assert.h>
14391#endif
14392 Syntax error
14393_ACEOF
14394if ac_fn_cxx_try_cpp "$LINENO"; then :
14395
14396else
14397 # Broken: fails on valid input.
14398continue
14399fi
14400rm -f conftest.err conftest.$ac_ext
14401
14402 # OK, works on sane cases. Now check whether nonexistent headers
14403 # can be detected and how.
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405/* end confdefs.h. */
14406#include <ac_nonexistent.h>
14407_ACEOF
14408if ac_fn_cxx_try_cpp "$LINENO"; then :
14409 # Broken: success on invalid input.
14410continue
14411else
14412 # Passes both tests.
14413ac_preproc_ok=:
14414break
14415fi
14416rm -f conftest.err conftest.$ac_ext
14417
14418done
14419# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14420rm -f conftest.err conftest.$ac_ext
14421if $ac_preproc_ok; then :
14422
14423else
14424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14426as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
14427See \`config.log' for more details." "$LINENO" 5; }
14428fi
14429
14430ac_ext=c
14431ac_cpp='$CPP $CPPFLAGS'
14432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14434ac_compiler_gnu=$ac_cv_c_compiler_gnu
14435
14436else
14437 _lt_caught_CXX_error=yes
14438fi
cristy3ed852e2009-09-05 21:47:34 +000014439
14440ac_ext=cpp
14441ac_cpp='$CXXCPP $CPPFLAGS'
14442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14445
14446archive_cmds_need_lc_CXX=no
14447allow_undefined_flag_CXX=
14448always_export_symbols_CXX=no
14449archive_expsym_cmds_CXX=
14450compiler_needs_object_CXX=no
14451export_dynamic_flag_spec_CXX=
14452hardcode_direct_CXX=no
14453hardcode_direct_absolute_CXX=no
14454hardcode_libdir_flag_spec_CXX=
14455hardcode_libdir_flag_spec_ld_CXX=
14456hardcode_libdir_separator_CXX=
14457hardcode_minus_L_CXX=no
14458hardcode_shlibpath_var_CXX=unsupported
14459hardcode_automatic_CXX=no
14460inherit_rpath_CXX=no
14461module_cmds_CXX=
14462module_expsym_cmds_CXX=
14463link_all_deplibs_CXX=unknown
14464old_archive_cmds_CXX=$old_archive_cmds
cristy932c9122009-11-19 13:57:03 +000014465reload_flag_CXX=$reload_flag
14466reload_cmds_CXX=$reload_cmds
cristy3ed852e2009-09-05 21:47:34 +000014467no_undefined_flag_CXX=
14468whole_archive_flag_spec_CXX=
14469enable_shared_with_static_runtimes_CXX=no
14470
14471# Source file extension for C++ test sources.
14472ac_ext=cpp
14473
14474# Object file extension for compiled C++ test sources.
14475objext=o
14476objext_CXX=$objext
14477
14478# No sense in running all these tests if we already determined that
14479# the CXX compiler isn't working. Some variables (like enable_shared)
14480# are currently assumed to apply to all compilers on this platform,
14481# and will be corrupted by setting them based on a non-working compiler.
14482if test "$_lt_caught_CXX_error" != yes; then
14483 # Code to be used in simple compile tests
14484 lt_simple_compile_test_code="int some_variable = 0;"
14485
14486 # Code to be used in simple link tests
14487 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14488
14489 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14490
14491
14492
14493
14494
14495
14496# If no C compiler was specified, use CC.
14497LTCC=${LTCC-"$CC"}
14498
14499# If no C compiler flags were specified, use CFLAGS.
14500LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14501
14502# Allow CC to be a program name with arguments.
14503compiler=$CC
14504
14505
14506 # save warnings/boilerplate of simple test code
14507 ac_outfile=conftest.$ac_objext
14508echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14509eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14510_lt_compiler_boilerplate=`cat conftest.err`
14511$RM conftest*
14512
14513 ac_outfile=conftest.$ac_objext
14514echo "$lt_simple_link_test_code" >conftest.$ac_ext
14515eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14516_lt_linker_boilerplate=`cat conftest.err`
14517$RM -r conftest*
14518
14519
14520 # Allow CC to be a program name with arguments.
14521 lt_save_CC=$CC
14522 lt_save_LD=$LD
14523 lt_save_GCC=$GCC
14524 GCC=$GXX
14525 lt_save_with_gnu_ld=$with_gnu_ld
14526 lt_save_path_LD=$lt_cv_path_LD
14527 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14528 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14529 else
14530 $as_unset lt_cv_prog_gnu_ld
14531 fi
14532 if test -n "${lt_cv_path_LDCXX+set}"; then
14533 lt_cv_path_LD=$lt_cv_path_LDCXX
14534 else
14535 $as_unset lt_cv_path_LD
14536 fi
14537 test -z "${LDCXX+set}" || LD=$LDCXX
14538 CC=${CXX-"c++"}
14539 compiler=$CC
14540 compiler_CXX=$CC
14541 for cc_temp in $compiler""; do
14542 case $cc_temp in
14543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14545 \-*) ;;
14546 *) break;;
14547 esac
14548done
cristy932c9122009-11-19 13:57:03 +000014549cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000014550
14551
14552 if test -n "$compiler"; then
14553 # We don't want -fno-exception when compiling C++ code, so set the
14554 # no_builtin_flag separately
14555 if test "$GXX" = yes; then
14556 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14557 else
14558 lt_prog_compiler_no_builtin_flag_CXX=
14559 fi
14560
14561 if test "$GXX" = yes; then
14562 # Set up default GNU C++ configuration
14563
14564
14565
14566# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000014567if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014568 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14569else
14570 with_gnu_ld=no
14571fi
14572
14573ac_prog=ld
14574if test "$GCC" = yes; then
14575 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000014576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000014577$as_echo_n "checking for ld used by $CC... " >&6; }
14578 case $host in
14579 *-*-mingw*)
14580 # gcc leaves a trailing carriage return which upsets mingw
14581 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14582 *)
14583 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14584 esac
14585 case $ac_prog in
14586 # Accept absolute paths.
14587 [\\/]* | ?:[\\/]*)
14588 re_direlt='/[^/][^/]*/\.\./'
14589 # Canonicalize the pathname of ld
14590 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14591 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14592 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14593 done
14594 test -z "$LD" && LD="$ac_prog"
14595 ;;
14596 "")
14597 # If it fails, then pretend we aren't using GCC.
14598 ac_prog=ld
14599 ;;
14600 *)
14601 # If it is relative, then search for the first ld in PATH.
14602 with_gnu_ld=unknown
14603 ;;
14604 esac
14605elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000014606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014607$as_echo_n "checking for GNU ld... " >&6; }
14608else
cristy8b350f62009-11-15 23:12:43 +000014609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014610$as_echo_n "checking for non-GNU ld... " >&6; }
14611fi
cristy8b350f62009-11-15 23:12:43 +000014612if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014613 $as_echo_n "(cached) " >&6
14614else
14615 if test -z "$LD"; then
14616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14617 for ac_dir in $PATH; do
14618 IFS="$lt_save_ifs"
14619 test -z "$ac_dir" && ac_dir=.
14620 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14621 lt_cv_path_LD="$ac_dir/$ac_prog"
14622 # Check to see if the program is GNU ld. I'd rather use --version,
14623 # but apparently some variants of GNU ld only accept -v.
14624 # Break only if it was the GNU/non-GNU ld that we prefer.
14625 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14626 *GNU* | *'with BFD'*)
14627 test "$with_gnu_ld" != no && break
14628 ;;
14629 *)
14630 test "$with_gnu_ld" != yes && break
14631 ;;
14632 esac
14633 fi
14634 done
14635 IFS="$lt_save_ifs"
14636else
14637 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14638fi
14639fi
14640
14641LD="$lt_cv_path_LD"
14642if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000014643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000014644$as_echo "$LD" >&6; }
14645else
cristy8b350f62009-11-15 23:12:43 +000014646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014647$as_echo "no" >&6; }
14648fi
cristy8b350f62009-11-15 23:12:43 +000014649test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014651$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014652if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014653 $as_echo_n "(cached) " >&6
14654else
14655 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14656case `$LD -v 2>&1 </dev/null` in
14657*GNU* | *'with BFD'*)
14658 lt_cv_prog_gnu_ld=yes
14659 ;;
14660*)
14661 lt_cv_prog_gnu_ld=no
14662 ;;
14663esac
14664fi
cristy8b350f62009-11-15 23:12:43 +000014665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014666$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14667with_gnu_ld=$lt_cv_prog_gnu_ld
14668
14669
14670
14671
14672
14673
14674
14675 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14676 # archiving commands below assume that GNU ld is being used.
14677 if test "$with_gnu_ld" = yes; then
14678 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14679 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14680
14681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14682 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14683
14684 # If archive_cmds runs LD, not CC, wlarc should be empty
14685 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14686 # investigate it a little bit more. (MM)
14687 wlarc='${wl}'
14688
14689 # ancient GNU ld didn't support --whole-archive et. al.
14690 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14691 $GREP 'no-whole-archive' > /dev/null; then
14692 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14693 else
14694 whole_archive_flag_spec_CXX=
14695 fi
14696 else
14697 with_gnu_ld=no
14698 wlarc=
14699
14700 # A generic and very simple default shared library creation
14701 # command for GNU C++ for the case where it uses the native
14702 # linker, instead of GNU ld. If possible, this setting should
14703 # overridden to take advantage of the native linker features on
14704 # the platform it is being used on.
14705 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14706 fi
14707
14708 # Commands to make compiler produce verbose output that lists
14709 # what "hidden" libraries, object files and flags are used when
14710 # linking a shared library.
cristy932c9122009-11-19 13:57:03 +000014711 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000014712
14713 else
14714 GXX=no
14715 with_gnu_ld=no
14716 wlarc=
14717 fi
14718
14719 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000014720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014721$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14722 ld_shlibs_CXX=yes
14723 case $host_os in
14724 aix3*)
14725 # FIXME: insert proper C++ library support
14726 ld_shlibs_CXX=no
14727 ;;
14728 aix[4-9]*)
14729 if test "$host_cpu" = ia64; then
14730 # On IA64, the linker does run time linking by default, so we don't
14731 # have to do anything special.
14732 aix_use_runtimelinking=no
14733 exp_sym_flag='-Bexport'
14734 no_entry_flag=""
14735 else
14736 aix_use_runtimelinking=no
14737
14738 # Test if we are trying to use run time linking or normal
14739 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14740 # need to do runtime linking.
14741 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14742 for ld_flag in $LDFLAGS; do
14743 case $ld_flag in
14744 *-brtl*)
14745 aix_use_runtimelinking=yes
14746 break
14747 ;;
14748 esac
14749 done
14750 ;;
14751 esac
14752
14753 exp_sym_flag='-bexport'
14754 no_entry_flag='-bnoentry'
14755 fi
14756
14757 # When large executables or shared objects are built, AIX ld can
14758 # have problems creating the table of contents. If linking a library
14759 # or program results in "error TOC overflow" add -mminimal-toc to
14760 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14761 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14762
14763 archive_cmds_CXX=''
14764 hardcode_direct_CXX=yes
14765 hardcode_direct_absolute_CXX=yes
14766 hardcode_libdir_separator_CXX=':'
14767 link_all_deplibs_CXX=yes
14768 file_list_spec_CXX='${wl}-f,'
14769
14770 if test "$GXX" = yes; then
14771 case $host_os in aix4.[012]|aix4.[012].*)
14772 # We only want to do this on AIX 4.2 and lower, the check
14773 # below for broken collect2 doesn't work under 4.3+
14774 collect2name=`${CC} -print-prog-name=collect2`
14775 if test -f "$collect2name" &&
14776 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14777 then
14778 # We have reworked collect2
14779 :
14780 else
14781 # We have old collect2
14782 hardcode_direct_CXX=unsupported
14783 # It fails to find uninstalled libraries when the uninstalled
14784 # path is not listed in the libpath. Setting hardcode_minus_L
14785 # to unsupported forces relinking
14786 hardcode_minus_L_CXX=yes
14787 hardcode_libdir_flag_spec_CXX='-L$libdir'
14788 hardcode_libdir_separator_CXX=
14789 fi
14790 esac
14791 shared_flag='-shared'
14792 if test "$aix_use_runtimelinking" = yes; then
14793 shared_flag="$shared_flag "'${wl}-G'
14794 fi
14795 else
14796 # not using gcc
14797 if test "$host_cpu" = ia64; then
14798 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14799 # chokes on -Wl,-G. The following line is correct:
14800 shared_flag='-G'
14801 else
14802 if test "$aix_use_runtimelinking" = yes; then
14803 shared_flag='${wl}-G'
14804 else
14805 shared_flag='${wl}-bM:SRE'
14806 fi
14807 fi
14808 fi
14809
14810 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14811 # It seems that -bexpall does not export symbols beginning with
14812 # underscore (_), so it is better to generate a list of symbols to
14813 # export.
14814 always_export_symbols_CXX=yes
14815 if test "$aix_use_runtimelinking" = yes; then
14816 # Warning - without using the other runtime loading flags (-brtl),
14817 # -berok will link without error, but may produce a broken library.
14818 allow_undefined_flag_CXX='-berok'
14819 # Determine the default libpath from the value encoded in an empty
14820 # executable.
cristy8b350f62009-11-15 23:12:43 +000014821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014822/* end confdefs.h. */
14823
14824int
14825main ()
14826{
14827
14828 ;
14829 return 0;
14830}
14831_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014832if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014833
14834lt_aix_libpath_sed='
14835 /Import File Strings/,/^$/ {
14836 /^0/ {
14837 s/^0 *\(.*\)$/\1/
14838 p
14839 }
14840 }'
14841aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14842# Check for a 64-bit object if we didn't find anything.
14843if test -z "$aix_libpath"; then
14844 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14845fi
cristy3ed852e2009-09-05 21:47:34 +000014846fi
cristy8b350f62009-11-15 23:12:43 +000014847rm -f core conftest.err conftest.$ac_objext \
14848 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014849if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14850
14851 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14852
cristy932c9122009-11-19 13:57:03 +000014853 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"
cristy3ed852e2009-09-05 21:47:34 +000014854 else
14855 if test "$host_cpu" = ia64; then
14856 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14857 allow_undefined_flag_CXX="-z nodefs"
14858 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"
14859 else
14860 # Determine the default libpath from the value encoded in an
14861 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000014862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014863/* end confdefs.h. */
14864
14865int
14866main ()
14867{
14868
14869 ;
14870 return 0;
14871}
14872_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014873if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014874
14875lt_aix_libpath_sed='
14876 /Import File Strings/,/^$/ {
14877 /^0/ {
14878 s/^0 *\(.*\)$/\1/
14879 p
14880 }
14881 }'
14882aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14883# Check for a 64-bit object if we didn't find anything.
14884if test -z "$aix_libpath"; then
14885 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14886fi
cristy3ed852e2009-09-05 21:47:34 +000014887fi
cristy8b350f62009-11-15 23:12:43 +000014888rm -f core conftest.err conftest.$ac_objext \
14889 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014890if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14891
14892 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14893 # Warning - without using the other run time loading flags,
14894 # -berok will link without error, but may produce a broken library.
14895 no_undefined_flag_CXX=' ${wl}-bernotok'
14896 allow_undefined_flag_CXX=' ${wl}-berok'
cristy932c9122009-11-19 13:57:03 +000014897 if test "$with_gnu_ld" = yes; then
14898 # We only use this code for GNU lds that support --whole-archive.
14899 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14900 else
14901 # Exported symbols can be pulled into shared objects from archives
14902 whole_archive_flag_spec_CXX='$convenience'
14903 fi
cristy3ed852e2009-09-05 21:47:34 +000014904 archive_cmds_need_lc_CXX=yes
14905 # This is similar to how AIX traditionally builds its shared
14906 # libraries.
14907 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'
14908 fi
14909 fi
14910 ;;
14911
14912 beos*)
14913 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14914 allow_undefined_flag_CXX=unsupported
14915 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14916 # support --undefined. This deserves some investigation. FIXME
14917 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14918 else
14919 ld_shlibs_CXX=no
14920 fi
14921 ;;
14922
14923 chorus*)
14924 case $cc_basename in
14925 *)
14926 # FIXME: insert proper C++ library support
14927 ld_shlibs_CXX=no
14928 ;;
14929 esac
14930 ;;
14931
14932 cygwin* | mingw* | pw32* | cegcc*)
14933 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14934 # as there is no search path for DLLs.
14935 hardcode_libdir_flag_spec_CXX='-L$libdir'
cristy932c9122009-11-19 13:57:03 +000014936 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000014937 allow_undefined_flag_CXX=unsupported
14938 always_export_symbols_CXX=no
14939 enable_shared_with_static_runtimes_CXX=yes
14940
14941 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14942 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'
14943 # If the export-symbols file already is a .def file (1st line
14944 # is EXPORTS), use it as is; otherwise, prepend...
14945 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14946 cp $export_symbols $output_objdir/$soname.def;
14947 else
14948 echo EXPORTS > $output_objdir/$soname.def;
14949 cat $export_symbols >> $output_objdir/$soname.def;
14950 fi~
14951 $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'
14952 else
14953 ld_shlibs_CXX=no
14954 fi
14955 ;;
14956 darwin* | rhapsody*)
14957
14958
14959 archive_cmds_need_lc_CXX=no
14960 hardcode_direct_CXX=no
14961 hardcode_automatic_CXX=yes
14962 hardcode_shlibpath_var_CXX=unsupported
cristy932c9122009-11-19 13:57:03 +000014963 if test "$lt_cv_ld_force_load" = "yes"; then
14964 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\"`'
14965 else
14966 whole_archive_flag_spec_CXX=''
14967 fi
cristy3ed852e2009-09-05 21:47:34 +000014968 link_all_deplibs_CXX=yes
14969 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14970 case $cc_basename in
14971 ifort*) _lt_dar_can_shared=yes ;;
14972 *) _lt_dar_can_shared=$GCC ;;
14973 esac
14974 if test "$_lt_dar_can_shared" = "yes"; then
cristy932c9122009-11-19 13:57:03 +000014975 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000014976 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}"
14977 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14978 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}"
14979 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}"
14980 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14981 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}"
14982 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}"
14983 fi
14984
14985 else
14986 ld_shlibs_CXX=no
14987 fi
14988
14989 ;;
14990
14991 dgux*)
14992 case $cc_basename in
14993 ec++*)
14994 # FIXME: insert proper C++ library support
14995 ld_shlibs_CXX=no
14996 ;;
14997 ghcx*)
14998 # Green Hills C++ Compiler
14999 # FIXME: insert proper C++ library support
15000 ld_shlibs_CXX=no
15001 ;;
15002 *)
15003 # FIXME: insert proper C++ library support
15004 ld_shlibs_CXX=no
15005 ;;
15006 esac
15007 ;;
15008
15009 freebsd[12]*)
15010 # C++ shared libraries reported to be fairly broken before
15011 # switch to ELF
15012 ld_shlibs_CXX=no
15013 ;;
15014
15015 freebsd-elf*)
15016 archive_cmds_need_lc_CXX=no
15017 ;;
15018
15019 freebsd* | dragonfly*)
15020 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15021 # conventions
15022 ld_shlibs_CXX=yes
15023 ;;
15024
15025 gnu*)
15026 ;;
15027
cristy932c9122009-11-19 13:57:03 +000015028 haiku*)
15029 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15030 link_all_deplibs_CXX=yes
15031 ;;
15032
cristy3ed852e2009-09-05 21:47:34 +000015033 hpux9*)
15034 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15035 hardcode_libdir_separator_CXX=:
15036 export_dynamic_flag_spec_CXX='${wl}-E'
15037 hardcode_direct_CXX=yes
15038 hardcode_minus_L_CXX=yes # Not in the search PATH,
15039 # but as the default
15040 # location of the library.
15041
15042 case $cc_basename in
15043 CC*)
15044 # FIXME: insert proper C++ library support
15045 ld_shlibs_CXX=no
15046 ;;
15047 aCC*)
15048 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'
15049 # Commands to make compiler produce verbose output that lists
15050 # what "hidden" libraries, object files and flags are used when
15051 # linking a shared library.
15052 #
15053 # There doesn't appear to be a way to prevent this compiler from
15054 # explicitly linking system object files so we need to strip them
15055 # from the output so that they don't get included in the library
15056 # dependencies.
cristy932c9122009-11-19 13:57:03 +000015057 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"'
cristy3ed852e2009-09-05 21:47:34 +000015058 ;;
15059 *)
15060 if test "$GXX" = yes; then
15061 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
15062 else
15063 # FIXME: insert proper C++ library support
15064 ld_shlibs_CXX=no
15065 fi
15066 ;;
15067 esac
15068 ;;
15069
15070 hpux10*|hpux11*)
15071 if test $with_gnu_ld = no; then
15072 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15073 hardcode_libdir_separator_CXX=:
15074
15075 case $host_cpu in
15076 hppa*64*|ia64*)
15077 ;;
15078 *)
15079 export_dynamic_flag_spec_CXX='${wl}-E'
15080 ;;
15081 esac
15082 fi
15083 case $host_cpu in
15084 hppa*64*|ia64*)
15085 hardcode_direct_CXX=no
15086 hardcode_shlibpath_var_CXX=no
15087 ;;
15088 *)
15089 hardcode_direct_CXX=yes
15090 hardcode_direct_absolute_CXX=yes
15091 hardcode_minus_L_CXX=yes # Not in the search PATH,
15092 # but as the default
15093 # location of the library.
15094 ;;
15095 esac
15096
15097 case $cc_basename in
15098 CC*)
15099 # FIXME: insert proper C++ library support
15100 ld_shlibs_CXX=no
15101 ;;
15102 aCC*)
15103 case $host_cpu in
15104 hppa*64*)
15105 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15106 ;;
15107 ia64*)
15108 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15109 ;;
15110 *)
15111 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15112 ;;
15113 esac
15114 # Commands to make compiler produce verbose output that lists
15115 # what "hidden" libraries, object files and flags are used when
15116 # linking a shared library.
15117 #
15118 # There doesn't appear to be a way to prevent this compiler from
15119 # explicitly linking system object files so we need to strip them
15120 # from the output so that they don't get included in the library
15121 # dependencies.
cristy932c9122009-11-19 13:57:03 +000015122 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"'
cristy3ed852e2009-09-05 21:47:34 +000015123 ;;
15124 *)
15125 if test "$GXX" = yes; then
15126 if test $with_gnu_ld = no; then
15127 case $host_cpu in
15128 hppa*64*)
15129 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15130 ;;
15131 ia64*)
15132 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15133 ;;
15134 *)
15135 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15136 ;;
15137 esac
15138 fi
15139 else
15140 # FIXME: insert proper C++ library support
15141 ld_shlibs_CXX=no
15142 fi
15143 ;;
15144 esac
15145 ;;
15146
15147 interix[3-9]*)
15148 hardcode_direct_CXX=no
15149 hardcode_shlibpath_var_CXX=no
15150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15151 export_dynamic_flag_spec_CXX='${wl}-E'
15152 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15153 # Instead, shared libraries are loaded at an image base (0x10000000 by
15154 # default) and relocated if they conflict, which is a slow very memory
15155 # consuming and fragmenting process. To avoid this, we pick a random,
15156 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15157 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15158 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'
15159 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'
15160 ;;
15161 irix5* | irix6*)
15162 case $cc_basename in
15163 CC*)
15164 # SGI C++
cristy932c9122009-11-19 13:57:03 +000015165 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'
cristy3ed852e2009-09-05 21:47:34 +000015166
15167 # Archives containing C++ object files must be created using
15168 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15169 # necessary to make sure instantiated templates are included
15170 # in the archive.
15171 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15172 ;;
15173 *)
15174 if test "$GXX" = yes; then
15175 if test "$with_gnu_ld" = no; then
cristy932c9122009-11-19 13:57:03 +000015176 archive_cmds_CXX='$CC -shared -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'
cristy3ed852e2009-09-05 21:47:34 +000015177 else
cristy932c9122009-11-19 13:57:03 +000015178 archive_cmds_CXX='$CC -shared -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'
cristy3ed852e2009-09-05 21:47:34 +000015179 fi
15180 fi
15181 link_all_deplibs_CXX=yes
15182 ;;
15183 esac
15184 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15185 hardcode_libdir_separator_CXX=:
15186 inherit_rpath_CXX=yes
15187 ;;
15188
cristy932c9122009-11-19 13:57:03 +000015189 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015190 case $cc_basename in
15191 KCC*)
15192 # Kuck and Associates, Inc. (KAI) C++ Compiler
15193
15194 # KCC will only create a shared library if the output file
15195 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15196 # to its proper name (with version) after linking.
15197 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'
15198 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'
15199 # Commands to make compiler produce verbose output that lists
15200 # what "hidden" libraries, object files and flags are used when
15201 # linking a shared library.
15202 #
15203 # There doesn't appear to be a way to prevent this compiler from
15204 # explicitly linking system object files so we need to strip them
15205 # from the output so that they don't get included in the library
15206 # dependencies.
cristy932c9122009-11-19 13:57:03 +000015207 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"'
cristy3ed852e2009-09-05 21:47:34 +000015208
15209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15210 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15211
15212 # Archives containing C++ object files must be created using
15213 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15214 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15215 ;;
15216 icpc* | ecpc* )
15217 # Intel C++
15218 with_gnu_ld=yes
15219 # version 8.0 and above of icpc choke on multiply defined symbols
15220 # if we add $predep_objects and $postdep_objects, however 7.1 and
15221 # earlier do not add the objects themselves.
15222 case `$CC -V 2>&1` in
15223 *"Version 7."*)
15224 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15225 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'
15226 ;;
15227 *) # Version 8.0 or newer
15228 tmp_idyn=
15229 case $host_cpu in
15230 ia64*) tmp_idyn=' -i_dynamic';;
15231 esac
15232 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15233 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'
15234 ;;
15235 esac
15236 archive_cmds_need_lc_CXX=no
15237 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15238 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15239 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15240 ;;
15241 pgCC* | pgcpp*)
15242 # Portland Group C++ compiler
15243 case `$CC -V` in
15244 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15245 prelink_cmds_CXX='tpldir=Template.dir~
15246 rm -rf $tpldir~
15247 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15248 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15249 old_archive_cmds_CXX='tpldir=Template.dir~
15250 rm -rf $tpldir~
15251 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15252 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15253 $RANLIB $oldlib'
15254 archive_cmds_CXX='tpldir=Template.dir~
15255 rm -rf $tpldir~
15256 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15257 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15258 archive_expsym_cmds_CXX='tpldir=Template.dir~
15259 rm -rf $tpldir~
15260 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15261 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15262 ;;
15263 *) # Version 6 will use weak symbols
15264 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15265 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'
15266 ;;
15267 esac
15268
15269 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15270 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy932c9122009-11-19 13:57:03 +000015271 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'
cristy3ed852e2009-09-05 21:47:34 +000015272 ;;
15273 cxx*)
15274 # Compaq C++
15275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15276 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'
15277
15278 runpath_var=LD_RUN_PATH
15279 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15280 hardcode_libdir_separator_CXX=:
15281
15282 # Commands to make compiler produce verbose output that lists
15283 # what "hidden" libraries, object files and flags are used when
15284 # linking a shared library.
15285 #
15286 # There doesn't appear to be a way to prevent this compiler from
15287 # explicitly linking system object files so we need to strip them
15288 # from the output so that they don't get included in the library
15289 # dependencies.
cristy932c9122009-11-19 13:57:03 +000015290 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'
cristy3ed852e2009-09-05 21:47:34 +000015291 ;;
cristy932c9122009-11-19 13:57:03 +000015292 xl* | mpixl* | bgxl*)
cristy3ed852e2009-09-05 21:47:34 +000015293 # IBM XL 8.0 on PPC, with GNU ld
15294 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15295 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15296 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15297 if test "x$supports_anon_versioning" = xyes; then
15298 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15300 echo "local: *; };" >> $output_objdir/$libname.ver~
15301 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15302 fi
15303 ;;
15304 *)
15305 case `$CC -V 2>&1 | sed 5q` in
15306 *Sun\ C*)
15307 # Sun C++ 5.9
15308 no_undefined_flag_CXX=' -zdefs'
15309 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15310 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'
15311 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy932c9122009-11-19 13:57:03 +000015312 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'
cristy3ed852e2009-09-05 21:47:34 +000015313 compiler_needs_object_CXX=yes
15314
15315 # Not sure whether something based on
15316 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15317 # would be better.
cristy932c9122009-11-19 13:57:03 +000015318 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000015319
15320 # Archives containing C++ object files must be created using
15321 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15322 # necessary to make sure instantiated templates are included
15323 # in the archive.
15324 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15325 ;;
15326 esac
15327 ;;
15328 esac
15329 ;;
15330
15331 lynxos*)
15332 # FIXME: insert proper C++ library support
15333 ld_shlibs_CXX=no
15334 ;;
15335
15336 m88k*)
15337 # FIXME: insert proper C++ library support
15338 ld_shlibs_CXX=no
15339 ;;
15340
15341 mvs*)
15342 case $cc_basename in
15343 cxx*)
15344 # FIXME: insert proper C++ library support
15345 ld_shlibs_CXX=no
15346 ;;
15347 *)
15348 # FIXME: insert proper C++ library support
15349 ld_shlibs_CXX=no
15350 ;;
15351 esac
15352 ;;
15353
15354 netbsd*)
15355 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15356 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15357 wlarc=
15358 hardcode_libdir_flag_spec_CXX='-R$libdir'
15359 hardcode_direct_CXX=yes
15360 hardcode_shlibpath_var_CXX=no
15361 fi
15362 # Workaround some broken pre-1.5 toolchains
15363 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15364 ;;
15365
15366 *nto* | *qnx*)
15367 ld_shlibs_CXX=yes
15368 ;;
15369
15370 openbsd2*)
15371 # C++ shared libraries are fairly broken
15372 ld_shlibs_CXX=no
15373 ;;
15374
15375 openbsd*)
15376 if test -f /usr/libexec/ld.so; then
15377 hardcode_direct_CXX=yes
15378 hardcode_shlibpath_var_CXX=no
15379 hardcode_direct_absolute_CXX=yes
15380 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15381 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15382 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15383 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15384 export_dynamic_flag_spec_CXX='${wl}-E'
15385 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15386 fi
cristy932c9122009-11-19 13:57:03 +000015387 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000015388 else
15389 ld_shlibs_CXX=no
15390 fi
15391 ;;
15392
15393 osf3* | osf4* | osf5*)
15394 case $cc_basename in
15395 KCC*)
15396 # Kuck and Associates, Inc. (KAI) C++ Compiler
15397
15398 # KCC will only create a shared library if the output file
15399 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15400 # to its proper name (with version) after linking.
15401 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'
15402
15403 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15404 hardcode_libdir_separator_CXX=:
15405
15406 # Archives containing C++ object files must be created using
15407 # the KAI C++ compiler.
15408 case $host in
15409 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15410 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15411 esac
15412 ;;
15413 RCC*)
15414 # Rational C++ 2.4.1
15415 # FIXME: insert proper C++ library support
15416 ld_shlibs_CXX=no
15417 ;;
15418 cxx*)
15419 case $host in
15420 osf3*)
15421 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy932c9122009-11-19 13:57:03 +000015422 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'
cristy3ed852e2009-09-05 21:47:34 +000015423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15424 ;;
15425 *)
15426 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy932c9122009-11-19 13:57:03 +000015427 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'
cristy3ed852e2009-09-05 21:47:34 +000015428 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15429 echo "-hidden">> $lib.exp~
cristy932c9122009-11-19 13:57:03 +000015430 $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~
cristy3ed852e2009-09-05 21:47:34 +000015431 $RM $lib.exp'
15432 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15433 ;;
15434 esac
15435
15436 hardcode_libdir_separator_CXX=:
15437
15438 # Commands to make compiler produce verbose output that lists
15439 # what "hidden" libraries, object files and flags are used when
15440 # linking a shared library.
15441 #
15442 # There doesn't appear to be a way to prevent this compiler from
15443 # explicitly linking system object files so we need to strip them
15444 # from the output so that they don't get included in the library
15445 # dependencies.
cristy932c9122009-11-19 13:57:03 +000015446 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"'
cristy3ed852e2009-09-05 21:47:34 +000015447 ;;
15448 *)
15449 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15450 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15451 case $host in
15452 osf3*)
cristy932c9122009-11-19 13:57:03 +000015453 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'
cristy3ed852e2009-09-05 21:47:34 +000015454 ;;
15455 *)
cristy932c9122009-11-19 13:57:03 +000015456 archive_cmds_CXX='$CC -shared -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'
cristy3ed852e2009-09-05 21:47:34 +000015457 ;;
15458 esac
15459
15460 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15461 hardcode_libdir_separator_CXX=:
15462
15463 # Commands to make compiler produce verbose output that lists
15464 # what "hidden" libraries, object files and flags are used when
15465 # linking a shared library.
cristy932c9122009-11-19 13:57:03 +000015466 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015467
15468 else
15469 # FIXME: insert proper C++ library support
15470 ld_shlibs_CXX=no
15471 fi
15472 ;;
15473 esac
15474 ;;
15475
15476 psos*)
15477 # FIXME: insert proper C++ library support
15478 ld_shlibs_CXX=no
15479 ;;
15480
15481 sunos4*)
15482 case $cc_basename in
15483 CC*)
15484 # Sun C++ 4.x
15485 # FIXME: insert proper C++ library support
15486 ld_shlibs_CXX=no
15487 ;;
15488 lcc*)
15489 # Lucid
15490 # FIXME: insert proper C++ library support
15491 ld_shlibs_CXX=no
15492 ;;
15493 *)
15494 # FIXME: insert proper C++ library support
15495 ld_shlibs_CXX=no
15496 ;;
15497 esac
15498 ;;
15499
15500 solaris*)
15501 case $cc_basename in
15502 CC*)
15503 # Sun C++ 4.2, 5.x and Centerline C++
15504 archive_cmds_need_lc_CXX=yes
15505 no_undefined_flag_CXX=' -zdefs'
15506 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15507 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15508 $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'
15509
15510 hardcode_libdir_flag_spec_CXX='-R$libdir'
15511 hardcode_shlibpath_var_CXX=no
15512 case $host_os in
15513 solaris2.[0-5] | solaris2.[0-5].*) ;;
15514 *)
15515 # The compiler driver will combine and reorder linker options,
15516 # but understands `-z linker_flag'.
15517 # Supported since Solaris 2.6 (maybe 2.5.1?)
15518 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15519 ;;
15520 esac
15521 link_all_deplibs_CXX=yes
15522
cristy932c9122009-11-19 13:57:03 +000015523 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000015524
15525 # Archives containing C++ object files must be created using
15526 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15527 # necessary to make sure instantiated templates are included
15528 # in the archive.
15529 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15530 ;;
15531 gcx*)
15532 # Green Hills C++ Compiler
15533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15534
15535 # The C++ compiler must be used to create the archive.
15536 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15537 ;;
15538 *)
15539 # GNU C++ compiler with Solaris linker
15540 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15541 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15542 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15543 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15544 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15545 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15546
15547 # Commands to make compiler produce verbose output that lists
15548 # what "hidden" libraries, object files and flags are used when
15549 # linking a shared library.
cristy932c9122009-11-19 13:57:03 +000015550 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015551 else
15552 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15553 # platform.
15554 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15555 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15556 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15557
15558 # Commands to make compiler produce verbose output that lists
15559 # what "hidden" libraries, object files and flags are used when
15560 # linking a shared library.
cristy932c9122009-11-19 13:57:03 +000015561 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015562 fi
15563
15564 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15565 case $host_os in
15566 solaris2.[0-5] | solaris2.[0-5].*) ;;
15567 *)
15568 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15569 ;;
15570 esac
15571 fi
15572 ;;
15573 esac
15574 ;;
15575
15576 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15577 no_undefined_flag_CXX='${wl}-z,text'
15578 archive_cmds_need_lc_CXX=no
15579 hardcode_shlibpath_var_CXX=no
15580 runpath_var='LD_RUN_PATH'
15581
15582 case $cc_basename in
15583 CC*)
15584 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15585 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15586 ;;
15587 *)
15588 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15589 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15590 ;;
15591 esac
15592 ;;
15593
15594 sysv5* | sco3.2v5* | sco5v6*)
15595 # Note: We can NOT use -z defs as we might desire, because we do not
15596 # link with -lc, and that would cause any symbols used from libc to
15597 # always be unresolved, which means just about no library would
15598 # ever link correctly. If we're not using GNU ld we use -z text
15599 # though, which does catch some bad symbols but isn't as heavy-handed
15600 # as -z defs.
15601 no_undefined_flag_CXX='${wl}-z,text'
15602 allow_undefined_flag_CXX='${wl}-z,nodefs'
15603 archive_cmds_need_lc_CXX=no
15604 hardcode_shlibpath_var_CXX=no
15605 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15606 hardcode_libdir_separator_CXX=':'
15607 link_all_deplibs_CXX=yes
15608 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15609 runpath_var='LD_RUN_PATH'
15610
15611 case $cc_basename in
15612 CC*)
15613 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15614 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy932c9122009-11-19 13:57:03 +000015615 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15616 '"$old_archive_cmds_CXX"
15617 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15618 '"$reload_cmds_CXX"
cristy3ed852e2009-09-05 21:47:34 +000015619 ;;
15620 *)
15621 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15622 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15623 ;;
15624 esac
15625 ;;
15626
15627 tandem*)
15628 case $cc_basename in
15629 NCC*)
15630 # NonStop-UX NCC 3.20
15631 # FIXME: insert proper C++ library support
15632 ld_shlibs_CXX=no
15633 ;;
15634 *)
15635 # FIXME: insert proper C++ library support
15636 ld_shlibs_CXX=no
15637 ;;
15638 esac
15639 ;;
15640
15641 vxworks*)
15642 # FIXME: insert proper C++ library support
15643 ld_shlibs_CXX=no
15644 ;;
15645
15646 *)
15647 # FIXME: insert proper C++ library support
15648 ld_shlibs_CXX=no
15649 ;;
15650 esac
15651
cristy8b350f62009-11-15 23:12:43 +000015652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000015653$as_echo "$ld_shlibs_CXX" >&6; }
15654 test "$ld_shlibs_CXX" = no && can_build_shared=no
15655
15656 GCC_CXX="$GXX"
15657 LD_CXX="$LD"
15658
15659 ## CAVEAT EMPTOR:
15660 ## There is no encapsulation within the following macros, do not change
15661 ## the running order or otherwise move them around unless you know exactly
15662 ## what you are doing...
15663 # Dependencies to place before and after the object being linked:
15664predep_objects_CXX=
15665postdep_objects_CXX=
15666predeps_CXX=
15667postdeps_CXX=
15668compiler_lib_search_path_CXX=
15669
15670cat > conftest.$ac_ext <<_LT_EOF
15671class Foo
15672{
15673public:
15674 Foo (void) { a = 0; }
15675private:
15676 int a;
15677};
15678_LT_EOF
15679
cristy8b350f62009-11-15 23:12:43 +000015680if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015681 (eval $ac_compile) 2>&5
15682 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15684 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000015685 # Parse the compiler output and extract the necessary
15686 # objects, libraries and library flags.
15687
15688 # Sentinel used to keep track of whether or not we are before
15689 # the conftest object file.
15690 pre_test_object_deps_done=no
15691
15692 for p in `eval "$output_verbose_link_cmd"`; do
15693 case $p in
15694
15695 -L* | -R* | -l*)
15696 # Some compilers place space between "-{L,R}" and the path.
15697 # Remove the space.
15698 if test $p = "-L" ||
15699 test $p = "-R"; then
15700 prev=$p
15701 continue
15702 else
15703 prev=
15704 fi
15705
15706 if test "$pre_test_object_deps_done" = no; then
15707 case $p in
15708 -L* | -R*)
15709 # Internal compiler library paths should come after those
15710 # provided the user. The postdeps already come after the
15711 # user supplied libs so there is no need to process them.
15712 if test -z "$compiler_lib_search_path_CXX"; then
15713 compiler_lib_search_path_CXX="${prev}${p}"
15714 else
15715 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15716 fi
15717 ;;
15718 # The "-l" case would never come before the object being
15719 # linked, so don't bother handling this case.
15720 esac
15721 else
15722 if test -z "$postdeps_CXX"; then
15723 postdeps_CXX="${prev}${p}"
15724 else
15725 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15726 fi
15727 fi
15728 ;;
15729
15730 *.$objext)
15731 # This assumes that the test object file only shows up
15732 # once in the compiler output.
15733 if test "$p" = "conftest.$objext"; then
15734 pre_test_object_deps_done=yes
15735 continue
15736 fi
15737
15738 if test "$pre_test_object_deps_done" = no; then
15739 if test -z "$predep_objects_CXX"; then
15740 predep_objects_CXX="$p"
15741 else
15742 predep_objects_CXX="$predep_objects_CXX $p"
15743 fi
15744 else
15745 if test -z "$postdep_objects_CXX"; then
15746 postdep_objects_CXX="$p"
15747 else
15748 postdep_objects_CXX="$postdep_objects_CXX $p"
15749 fi
15750 fi
15751 ;;
15752
15753 *) ;; # Ignore the rest.
15754
15755 esac
15756 done
15757
15758 # Clean up.
15759 rm -f a.out a.exe
15760else
15761 echo "libtool.m4: error: problem compiling CXX test program"
15762fi
15763
15764$RM -f confest.$objext
15765
15766# PORTME: override above test on systems where it is broken
15767case $host_os in
15768interix[3-9]*)
15769 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15770 # hack all around it, let's just trust "g++" to DTRT.
15771 predep_objects_CXX=
15772 postdep_objects_CXX=
15773 postdeps_CXX=
15774 ;;
15775
15776linux*)
15777 case `$CC -V 2>&1 | sed 5q` in
15778 *Sun\ C*)
15779 # Sun C++ 5.9
15780
15781 # The more standards-conforming stlport4 library is
15782 # incompatible with the Cstd library. Avoid specifying
15783 # it if it's in CXXFLAGS. Ignore libCrun as
15784 # -library=stlport4 depends on it.
15785 case " $CXX $CXXFLAGS " in
15786 *" -library=stlport4 "*)
15787 solaris_use_stlport4=yes
15788 ;;
15789 esac
15790
15791 if test "$solaris_use_stlport4" != yes; then
15792 postdeps_CXX='-library=Cstd -library=Crun'
15793 fi
15794 ;;
15795 esac
15796 ;;
15797
15798solaris*)
15799 case $cc_basename in
15800 CC*)
15801 # The more standards-conforming stlport4 library is
15802 # incompatible with the Cstd library. Avoid specifying
15803 # it if it's in CXXFLAGS. Ignore libCrun as
15804 # -library=stlport4 depends on it.
15805 case " $CXX $CXXFLAGS " in
15806 *" -library=stlport4 "*)
15807 solaris_use_stlport4=yes
15808 ;;
15809 esac
15810
15811 # Adding this requires a known-good setup of shared libraries for
15812 # Sun compiler versions before 5.6, else PIC objects from an old
15813 # archive will be linked into the output, leading to subtle bugs.
15814 if test "$solaris_use_stlport4" != yes; then
15815 postdeps_CXX='-library=Cstd -library=Crun'
15816 fi
15817 ;;
15818 esac
15819 ;;
15820esac
15821
15822
15823case " $postdeps_CXX " in
15824*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15825esac
15826 compiler_lib_search_dirs_CXX=
15827if test -n "${compiler_lib_search_path_CXX}"; then
15828 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15829fi
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861 lt_prog_compiler_wl_CXX=
15862lt_prog_compiler_pic_CXX=
15863lt_prog_compiler_static_CXX=
15864
cristy8b350f62009-11-15 23:12:43 +000015865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000015866$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15867
15868 # C++ specific cases for pic, static, wl, etc.
15869 if test "$GXX" = yes; then
15870 lt_prog_compiler_wl_CXX='-Wl,'
15871 lt_prog_compiler_static_CXX='-static'
15872
15873 case $host_os in
15874 aix*)
15875 # All AIX code is PIC.
15876 if test "$host_cpu" = ia64; then
15877 # AIX 5 now supports IA64 processor
15878 lt_prog_compiler_static_CXX='-Bstatic'
15879 fi
15880 ;;
15881
15882 amigaos*)
15883 case $host_cpu in
15884 powerpc)
15885 # see comment about AmigaOS4 .so support
15886 lt_prog_compiler_pic_CXX='-fPIC'
15887 ;;
15888 m68k)
15889 # FIXME: we need at least 68020 code to build shared libraries, but
15890 # adding the `-m68020' flag to GCC prevents building anything better,
15891 # like `-m68040'.
15892 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15893 ;;
15894 esac
15895 ;;
15896
15897 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15898 # PIC is the default for these OSes.
15899 ;;
15900 mingw* | cygwin* | os2* | pw32* | cegcc*)
15901 # This hack is so that the source file can tell whether it is being
15902 # built for inclusion in a dll (and should export symbols for example).
15903 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15904 # (--disable-auto-import) libraries
15905 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15906 ;;
15907 darwin* | rhapsody*)
15908 # PIC is the default on this platform
15909 # Common symbols not allowed in MH_DYLIB files
15910 lt_prog_compiler_pic_CXX='-fno-common'
15911 ;;
15912 *djgpp*)
15913 # DJGPP does not support shared libraries at all
15914 lt_prog_compiler_pic_CXX=
15915 ;;
cristy932c9122009-11-19 13:57:03 +000015916 haiku*)
15917 # PIC is the default for Haiku.
15918 # The "-static" flag exists, but is broken.
15919 lt_prog_compiler_static_CXX=
15920 ;;
cristy3ed852e2009-09-05 21:47:34 +000015921 interix[3-9]*)
15922 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15923 # Instead, we relocate shared libraries at runtime.
15924 ;;
15925 sysv4*MP*)
15926 if test -d /usr/nec; then
15927 lt_prog_compiler_pic_CXX=-Kconform_pic
15928 fi
15929 ;;
15930 hpux*)
15931 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15932 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15933 # sets the default TLS model and affects inlining.
15934 case $host_cpu in
15935 hppa*64*)
15936 ;;
15937 *)
15938 lt_prog_compiler_pic_CXX='-fPIC'
15939 ;;
15940 esac
15941 ;;
15942 *qnx* | *nto*)
15943 # QNX uses GNU C++, but need to define -shared option too, otherwise
15944 # it will coredump.
15945 lt_prog_compiler_pic_CXX='-fPIC -shared'
15946 ;;
15947 *)
15948 lt_prog_compiler_pic_CXX='-fPIC'
15949 ;;
15950 esac
15951 else
15952 case $host_os in
15953 aix[4-9]*)
15954 # All AIX code is PIC.
15955 if test "$host_cpu" = ia64; then
15956 # AIX 5 now supports IA64 processor
15957 lt_prog_compiler_static_CXX='-Bstatic'
15958 else
15959 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15960 fi
15961 ;;
15962 chorus*)
15963 case $cc_basename in
15964 cxch68*)
15965 # Green Hills C++ Compiler
15966 # _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"
15967 ;;
15968 esac
15969 ;;
15970 dgux*)
15971 case $cc_basename in
15972 ec++*)
15973 lt_prog_compiler_pic_CXX='-KPIC'
15974 ;;
15975 ghcx*)
15976 # Green Hills C++ Compiler
15977 lt_prog_compiler_pic_CXX='-pic'
15978 ;;
15979 *)
15980 ;;
15981 esac
15982 ;;
15983 freebsd* | dragonfly*)
15984 # FreeBSD uses GNU C++
15985 ;;
15986 hpux9* | hpux10* | hpux11*)
15987 case $cc_basename in
15988 CC*)
15989 lt_prog_compiler_wl_CXX='-Wl,'
15990 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15991 if test "$host_cpu" != ia64; then
15992 lt_prog_compiler_pic_CXX='+Z'
15993 fi
15994 ;;
15995 aCC*)
15996 lt_prog_compiler_wl_CXX='-Wl,'
15997 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15998 case $host_cpu in
15999 hppa*64*|ia64*)
16000 # +Z the default
16001 ;;
16002 *)
16003 lt_prog_compiler_pic_CXX='+Z'
16004 ;;
16005 esac
16006 ;;
16007 *)
16008 ;;
16009 esac
16010 ;;
16011 interix*)
16012 # This is c89, which is MS Visual C++ (no shared libs)
16013 # Anyone wants to do a port?
16014 ;;
16015 irix5* | irix6* | nonstopux*)
16016 case $cc_basename in
16017 CC*)
16018 lt_prog_compiler_wl_CXX='-Wl,'
16019 lt_prog_compiler_static_CXX='-non_shared'
16020 # CC pic flag -KPIC is the default.
16021 ;;
16022 *)
16023 ;;
16024 esac
16025 ;;
cristy932c9122009-11-19 13:57:03 +000016026 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016027 case $cc_basename in
16028 KCC*)
16029 # KAI C++ Compiler
16030 lt_prog_compiler_wl_CXX='--backend -Wl,'
16031 lt_prog_compiler_pic_CXX='-fPIC'
16032 ;;
16033 ecpc* )
16034 # old Intel C++ for x86_64 which still supported -KPIC.
16035 lt_prog_compiler_wl_CXX='-Wl,'
16036 lt_prog_compiler_pic_CXX='-KPIC'
16037 lt_prog_compiler_static_CXX='-static'
16038 ;;
16039 icpc* )
16040 # Intel C++, used to be incompatible with GCC.
16041 # ICC 10 doesn't accept -KPIC any more.
16042 lt_prog_compiler_wl_CXX='-Wl,'
16043 lt_prog_compiler_pic_CXX='-fPIC'
16044 lt_prog_compiler_static_CXX='-static'
16045 ;;
16046 pgCC* | pgcpp*)
16047 # Portland Group C++ compiler
16048 lt_prog_compiler_wl_CXX='-Wl,'
16049 lt_prog_compiler_pic_CXX='-fpic'
16050 lt_prog_compiler_static_CXX='-Bstatic'
16051 ;;
16052 cxx*)
16053 # Compaq C++
16054 # Make sure the PIC flag is empty. It appears that all Alpha
16055 # Linux and Compaq Tru64 Unix objects are PIC.
16056 lt_prog_compiler_pic_CXX=
16057 lt_prog_compiler_static_CXX='-non_shared'
16058 ;;
cristy932c9122009-11-19 13:57:03 +000016059 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16060 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000016061 lt_prog_compiler_wl_CXX='-Wl,'
16062 lt_prog_compiler_pic_CXX='-qpic'
16063 lt_prog_compiler_static_CXX='-qstaticlink'
16064 ;;
16065 *)
16066 case `$CC -V 2>&1 | sed 5q` in
16067 *Sun\ C*)
16068 # Sun C++ 5.9
16069 lt_prog_compiler_pic_CXX='-KPIC'
16070 lt_prog_compiler_static_CXX='-Bstatic'
16071 lt_prog_compiler_wl_CXX='-Qoption ld '
16072 ;;
16073 esac
16074 ;;
16075 esac
16076 ;;
16077 lynxos*)
16078 ;;
16079 m88k*)
16080 ;;
16081 mvs*)
16082 case $cc_basename in
16083 cxx*)
16084 lt_prog_compiler_pic_CXX='-W c,exportall'
16085 ;;
16086 *)
16087 ;;
16088 esac
16089 ;;
16090 netbsd*)
16091 ;;
16092 *qnx* | *nto*)
16093 # QNX uses GNU C++, but need to define -shared option too, otherwise
16094 # it will coredump.
16095 lt_prog_compiler_pic_CXX='-fPIC -shared'
16096 ;;
16097 osf3* | osf4* | osf5*)
16098 case $cc_basename in
16099 KCC*)
16100 lt_prog_compiler_wl_CXX='--backend -Wl,'
16101 ;;
16102 RCC*)
16103 # Rational C++ 2.4.1
16104 lt_prog_compiler_pic_CXX='-pic'
16105 ;;
16106 cxx*)
16107 # Digital/Compaq C++
16108 lt_prog_compiler_wl_CXX='-Wl,'
16109 # Make sure the PIC flag is empty. It appears that all Alpha
16110 # Linux and Compaq Tru64 Unix objects are PIC.
16111 lt_prog_compiler_pic_CXX=
16112 lt_prog_compiler_static_CXX='-non_shared'
16113 ;;
16114 *)
16115 ;;
16116 esac
16117 ;;
16118 psos*)
16119 ;;
16120 solaris*)
16121 case $cc_basename in
16122 CC*)
16123 # Sun C++ 4.2, 5.x and Centerline C++
16124 lt_prog_compiler_pic_CXX='-KPIC'
16125 lt_prog_compiler_static_CXX='-Bstatic'
16126 lt_prog_compiler_wl_CXX='-Qoption ld '
16127 ;;
16128 gcx*)
16129 # Green Hills C++ Compiler
16130 lt_prog_compiler_pic_CXX='-PIC'
16131 ;;
16132 *)
16133 ;;
16134 esac
16135 ;;
16136 sunos4*)
16137 case $cc_basename in
16138 CC*)
16139 # Sun C++ 4.x
16140 lt_prog_compiler_pic_CXX='-pic'
16141 lt_prog_compiler_static_CXX='-Bstatic'
16142 ;;
16143 lcc*)
16144 # Lucid
16145 lt_prog_compiler_pic_CXX='-pic'
16146 ;;
16147 *)
16148 ;;
16149 esac
16150 ;;
16151 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16152 case $cc_basename in
16153 CC*)
16154 lt_prog_compiler_wl_CXX='-Wl,'
16155 lt_prog_compiler_pic_CXX='-KPIC'
16156 lt_prog_compiler_static_CXX='-Bstatic'
16157 ;;
16158 esac
16159 ;;
16160 tandem*)
16161 case $cc_basename in
16162 NCC*)
16163 # NonStop-UX NCC 3.20
16164 lt_prog_compiler_pic_CXX='-KPIC'
16165 ;;
16166 *)
16167 ;;
16168 esac
16169 ;;
16170 vxworks*)
16171 ;;
16172 *)
16173 lt_prog_compiler_can_build_shared_CXX=no
16174 ;;
16175 esac
16176 fi
16177
16178case $host_os in
16179 # For platforms which do not support PIC, -DPIC is meaningless:
16180 *djgpp*)
16181 lt_prog_compiler_pic_CXX=
16182 ;;
16183 *)
16184 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16185 ;;
16186esac
cristy8b350f62009-11-15 23:12:43 +000016187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016188$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16189
16190
16191
16192#
16193# Check to make sure the PIC flag actually works.
16194#
16195if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000016196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
cristy3ed852e2009-09-05 21:47:34 +000016197$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016198if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016199 $as_echo_n "(cached) " >&6
16200else
16201 lt_cv_prog_compiler_pic_works_CXX=no
16202 ac_outfile=conftest.$ac_objext
16203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16204 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16205 # Insert the option either (1) after the last *FLAGS variable, or
16206 # (2) before a word containing "conftest.", or (3) at the end.
16207 # Note that $ac_compile itself does not contain backslashes and begins
16208 # with a dollar sign (not a hyphen), so the echo should work correctly.
16209 # The option is referenced via a variable to avoid confusing sed.
16210 lt_compile=`echo "$ac_compile" | $SED \
16211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16213 -e 's:$: $lt_compiler_flag:'`
cristy932c9122009-11-19 13:57:03 +000016214 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016215 (eval "$lt_compile" 2>conftest.err)
16216 ac_status=$?
16217 cat conftest.err >&5
cristy932c9122009-11-19 13:57:03 +000016218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016219 if (exit $ac_status) && test -s "$ac_outfile"; then
16220 # The compiler can only warn and ignore the option if not recognized
16221 # So say no if there are warnings other than the usual output.
cristy932c9122009-11-19 13:57:03 +000016222 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16224 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16225 lt_cv_prog_compiler_pic_works_CXX=yes
16226 fi
16227 fi
16228 $RM conftest*
16229
16230fi
cristy8b350f62009-11-15 23:12:43 +000016231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016232$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16233
16234if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16235 case $lt_prog_compiler_pic_CXX in
16236 "" | " "*) ;;
16237 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16238 esac
16239else
16240 lt_prog_compiler_pic_CXX=
16241 lt_prog_compiler_can_build_shared_CXX=no
16242fi
16243
16244fi
16245
16246
16247
16248#
16249# Check to make sure the static flag actually works.
16250#
16251wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000016252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000016253$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016254if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016255 $as_echo_n "(cached) " >&6
16256else
16257 lt_cv_prog_compiler_static_works_CXX=no
16258 save_LDFLAGS="$LDFLAGS"
16259 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16260 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16261 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16262 # The linker can only warn and ignore the option if not recognized
16263 # So say no if there are warnings
16264 if test -s conftest.err; then
16265 # Append any errors to the config.log.
16266 cat conftest.err 1>&5
cristy932c9122009-11-19 13:57:03 +000016267 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16269 if diff conftest.exp conftest.er2 >/dev/null; then
16270 lt_cv_prog_compiler_static_works_CXX=yes
16271 fi
16272 else
16273 lt_cv_prog_compiler_static_works_CXX=yes
16274 fi
16275 fi
16276 $RM -r conftest*
16277 LDFLAGS="$save_LDFLAGS"
16278
16279fi
cristy8b350f62009-11-15 23:12:43 +000016280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016281$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16282
16283if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16284 :
16285else
16286 lt_prog_compiler_static_CXX=
16287fi
16288
16289
16290
16291
cristy8b350f62009-11-15 23:12:43 +000016292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016293$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016294if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016295 $as_echo_n "(cached) " >&6
16296else
16297 lt_cv_prog_compiler_c_o_CXX=no
16298 $RM -r conftest 2>/dev/null
16299 mkdir conftest
16300 cd conftest
16301 mkdir out
16302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16303
16304 lt_compiler_flag="-o out/conftest2.$ac_objext"
16305 # Insert the option either (1) after the last *FLAGS variable, or
16306 # (2) before a word containing "conftest.", or (3) at the end.
16307 # Note that $ac_compile itself does not contain backslashes and begins
16308 # with a dollar sign (not a hyphen), so the echo should work correctly.
16309 lt_compile=`echo "$ac_compile" | $SED \
16310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16312 -e 's:$: $lt_compiler_flag:'`
cristy932c9122009-11-19 13:57:03 +000016313 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016314 (eval "$lt_compile" 2>out/conftest.err)
16315 ac_status=$?
16316 cat out/conftest.err >&5
cristy932c9122009-11-19 13:57:03 +000016317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016318 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16319 then
16320 # The compiler can only warn and ignore the option if not recognized
16321 # So say no if there are warnings
cristy932c9122009-11-19 13:57:03 +000016322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016323 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16324 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16325 lt_cv_prog_compiler_c_o_CXX=yes
16326 fi
16327 fi
16328 chmod u+w . 2>&5
16329 $RM conftest*
16330 # SGI C++ compiler will create directory out/ii_files/ for
16331 # template instantiation
16332 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16333 $RM out/* && rmdir out
16334 cd ..
16335 $RM -r conftest
16336 $RM conftest*
16337
16338fi
cristy8b350f62009-11-15 23:12:43 +000016339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016340$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16341
16342
16343
cristy8b350f62009-11-15 23:12:43 +000016344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016345$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016346if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016347 $as_echo_n "(cached) " >&6
16348else
16349 lt_cv_prog_compiler_c_o_CXX=no
16350 $RM -r conftest 2>/dev/null
16351 mkdir conftest
16352 cd conftest
16353 mkdir out
16354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16355
16356 lt_compiler_flag="-o out/conftest2.$ac_objext"
16357 # Insert the option either (1) after the last *FLAGS variable, or
16358 # (2) before a word containing "conftest.", or (3) at the end.
16359 # Note that $ac_compile itself does not contain backslashes and begins
16360 # with a dollar sign (not a hyphen), so the echo should work correctly.
16361 lt_compile=`echo "$ac_compile" | $SED \
16362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16364 -e 's:$: $lt_compiler_flag:'`
cristy932c9122009-11-19 13:57:03 +000016365 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016366 (eval "$lt_compile" 2>out/conftest.err)
16367 ac_status=$?
16368 cat out/conftest.err >&5
cristy932c9122009-11-19 13:57:03 +000016369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016370 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16371 then
16372 # The compiler can only warn and ignore the option if not recognized
16373 # So say no if there are warnings
cristy932c9122009-11-19 13:57:03 +000016374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016375 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16376 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16377 lt_cv_prog_compiler_c_o_CXX=yes
16378 fi
16379 fi
16380 chmod u+w . 2>&5
16381 $RM conftest*
16382 # SGI C++ compiler will create directory out/ii_files/ for
16383 # template instantiation
16384 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16385 $RM out/* && rmdir out
16386 cd ..
16387 $RM -r conftest
16388 $RM conftest*
16389
16390fi
cristy8b350f62009-11-15 23:12:43 +000016391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016392$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16393
16394
16395
16396
16397hard_links="nottested"
16398if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16399 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000016400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016401$as_echo_n "checking if we can lock with hard links... " >&6; }
16402 hard_links=yes
16403 $RM conftest*
16404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16405 touch conftest.a
16406 ln conftest.a conftest.b 2>&5 || hard_links=no
16407 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000016408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016409$as_echo "$hard_links" >&6; }
16410 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000016411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cristy3ed852e2009-09-05 21:47:34 +000016412$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16413 need_locks=warn
16414 fi
16415else
16416 need_locks=no
16417fi
16418
16419
16420
cristy8b350f62009-11-15 23:12:43 +000016421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016422$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16423
16424 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16425 case $host_os in
16426 aix[4-9]*)
16427 # If we're using GNU nm, then we don't want the "-C" option.
16428 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy932c9122009-11-19 13:57:03 +000016429 # Also, AIX nm treats weak defined symbols like other global defined
16430 # symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000016431 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy932c9122009-11-19 13:57:03 +000016432 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'
cristy3ed852e2009-09-05 21:47:34 +000016433 else
16434 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'
16435 fi
16436 ;;
16437 pw32*)
16438 export_symbols_cmds_CXX="$ltdll_cmds"
16439 ;;
16440 cygwin* | mingw* | cegcc*)
16441 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16442 ;;
16443 *)
16444 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16445 ;;
16446 esac
16447 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16448
cristy8b350f62009-11-15 23:12:43 +000016449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016450$as_echo "$ld_shlibs_CXX" >&6; }
16451test "$ld_shlibs_CXX" = no && can_build_shared=no
16452
16453with_gnu_ld_CXX=$with_gnu_ld
16454
16455
16456
16457
16458
16459
16460#
16461# Do we need to explicitly link libc?
16462#
16463case "x$archive_cmds_need_lc_CXX" in
16464x|xyes)
16465 # Assume -lc should be added
16466 archive_cmds_need_lc_CXX=yes
16467
16468 if test "$enable_shared" = yes && test "$GCC" = yes; then
16469 case $archive_cmds_CXX in
16470 *'~'*)
16471 # FIXME: we may have to deal with multi-command sequences.
16472 ;;
16473 '$CC '*)
16474 # Test whether the compiler implicitly links with -lc since on some
16475 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16476 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000016477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000016478$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy932c9122009-11-19 13:57:03 +000016479if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
16480 $as_echo_n "(cached) " >&6
16481else
16482 $RM conftest*
16483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016484
cristy932c9122009-11-19 13:57:03 +000016485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016486 (eval $ac_compile) 2>&5
16487 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16489 test $ac_status = 0; } 2>conftest.err; then
cristy932c9122009-11-19 13:57:03 +000016490 soname=conftest
16491 lib=conftest
16492 libobjs=conftest.$ac_objext
16493 deplibs=
16494 wl=$lt_prog_compiler_wl_CXX
16495 pic_flag=$lt_prog_compiler_pic_CXX
16496 compiler_flags=-v
16497 linker_flags=-v
16498 verstring=
16499 output_objdir=.
16500 libname=conftest
16501 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16502 allow_undefined_flag_CXX=
16503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016504 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16505 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16507 test $ac_status = 0; }
cristy932c9122009-11-19 13:57:03 +000016508 then
16509 lt_cv_archive_cmds_need_lc_CXX=no
16510 else
16511 lt_cv_archive_cmds_need_lc_CXX=yes
16512 fi
16513 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16514 else
16515 cat conftest.err 1>&5
16516 fi
16517 $RM conftest*
16518
16519fi
16520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16521$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16522 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy3ed852e2009-09-05 21:47:34 +000016523 ;;
16524 esac
16525 fi
16526 ;;
16527esac
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
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
cristy8b350f62009-11-15 23:12:43 +000016592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000016593$as_echo_n "checking dynamic linker characteristics... " >&6; }
16594
16595library_names_spec=
16596libname_spec='lib$name'
16597soname_spec=
16598shrext_cmds=".so"
16599postinstall_cmds=
16600postuninstall_cmds=
16601finish_cmds=
16602finish_eval=
16603shlibpath_var=
16604shlibpath_overrides_runpath=unknown
16605version_type=none
16606dynamic_linker="$host_os ld.so"
16607sys_lib_dlsearch_path_spec="/lib /usr/lib"
16608need_lib_prefix=unknown
16609hardcode_into_libs=no
16610
16611# when you set need_version to no, make sure it does not cause -set_version
16612# flags to be left without arguments
16613need_version=unknown
16614
16615case $host_os in
16616aix3*)
16617 version_type=linux
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16619 shlibpath_var=LIBPATH
16620
16621 # AIX 3 has no versioning support, so we append a major version to the name.
16622 soname_spec='${libname}${release}${shared_ext}$major'
16623 ;;
16624
16625aix[4-9]*)
16626 version_type=linux
16627 need_lib_prefix=no
16628 need_version=no
16629 hardcode_into_libs=yes
16630 if test "$host_cpu" = ia64; then
16631 # AIX 5 supports IA64
16632 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16633 shlibpath_var=LD_LIBRARY_PATH
16634 else
16635 # With GCC up to 2.95.x, collect2 would create an import file
16636 # for dependence libraries. The import file would start with
16637 # the line `#! .'. This would cause the generated library to
16638 # depend on `.', always an invalid library. This was fixed in
16639 # development snapshots of GCC prior to 3.0.
16640 case $host_os in
16641 aix4 | aix4.[01] | aix4.[01].*)
16642 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16643 echo ' yes '
16644 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16645 :
16646 else
16647 can_build_shared=no
16648 fi
16649 ;;
16650 esac
16651 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16652 # soname into executable. Probably we can add versioning support to
16653 # collect2, so additional links can be useful in future.
16654 if test "$aix_use_runtimelinking" = yes; then
16655 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16656 # instead of lib<name>.a to let people know that these are not
16657 # typical AIX shared libraries.
16658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16659 else
16660 # We preserve .a as extension for shared libraries through AIX4.2
16661 # and later when we are not doing run time linking.
16662 library_names_spec='${libname}${release}.a $libname.a'
16663 soname_spec='${libname}${release}${shared_ext}$major'
16664 fi
16665 shlibpath_var=LIBPATH
16666 fi
16667 ;;
16668
16669amigaos*)
16670 case $host_cpu in
16671 powerpc)
16672 # Since July 2007 AmigaOS4 officially supports .so libraries.
16673 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16675 ;;
16676 m68k)
16677 library_names_spec='$libname.ixlibrary $libname.a'
16678 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy932c9122009-11-19 13:57:03 +000016679 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'
cristy3ed852e2009-09-05 21:47:34 +000016680 ;;
16681 esac
16682 ;;
16683
16684beos*)
16685 library_names_spec='${libname}${shared_ext}'
16686 dynamic_linker="$host_os ld.so"
16687 shlibpath_var=LIBRARY_PATH
16688 ;;
16689
16690bsdi[45]*)
16691 version_type=linux
16692 need_version=no
16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16694 soname_spec='${libname}${release}${shared_ext}$major'
16695 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16696 shlibpath_var=LD_LIBRARY_PATH
16697 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16698 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16699 # the default ld.so.conf also contains /usr/contrib/lib and
16700 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16701 # libtool to hard-code these into programs
16702 ;;
16703
16704cygwin* | mingw* | pw32* | cegcc*)
16705 version_type=windows
16706 shrext_cmds=".dll"
16707 need_version=no
16708 need_lib_prefix=no
16709
16710 case $GCC,$host_os in
16711 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16712 library_names_spec='$libname.dll.a'
16713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16714 postinstall_cmds='base_file=`basename \${file}`~
16715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16716 dldir=$destdir/`dirname \$dlpath`~
16717 test -d \$dldir || mkdir -p \$dldir~
16718 $install_prog $dir/$dlname \$dldir/$dlname~
16719 chmod a+x \$dldir/$dlname~
16720 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16721 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16722 fi'
16723 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16724 dlpath=$dir/\$dldll~
16725 $RM \$dlpath'
16726 shlibpath_overrides_runpath=yes
16727
16728 case $host_os in
16729 cygwin*)
16730 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16731 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy932c9122009-11-19 13:57:03 +000016732
cristy3ed852e2009-09-05 21:47:34 +000016733 ;;
16734 mingw* | cegcc*)
16735 # MinGW DLLs use traditional 'lib' prefix
16736 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000016737 ;;
16738 pw32*)
16739 # pw32 DLLs use 'pw' prefix rather than 'lib'
16740 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16741 ;;
16742 esac
16743 ;;
16744
16745 *)
16746 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16747 ;;
16748 esac
16749 dynamic_linker='Win32 ld.exe'
16750 # FIXME: first we should search . and the directory the executable is in
16751 shlibpath_var=PATH
16752 ;;
16753
16754darwin* | rhapsody*)
16755 dynamic_linker="$host_os dyld"
16756 version_type=darwin
16757 need_lib_prefix=no
16758 need_version=no
16759 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16760 soname_spec='${libname}${release}${major}$shared_ext'
16761 shlibpath_overrides_runpath=yes
16762 shlibpath_var=DYLD_LIBRARY_PATH
16763 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16764
16765 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16766 ;;
16767
16768dgux*)
16769 version_type=linux
16770 need_lib_prefix=no
16771 need_version=no
16772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16773 soname_spec='${libname}${release}${shared_ext}$major'
16774 shlibpath_var=LD_LIBRARY_PATH
16775 ;;
16776
16777freebsd1*)
16778 dynamic_linker=no
16779 ;;
16780
16781freebsd* | dragonfly*)
16782 # DragonFly does not have aout. When/if they implement a new
16783 # versioning mechanism, adjust this.
16784 if test -x /usr/bin/objformat; then
16785 objformat=`/usr/bin/objformat`
16786 else
16787 case $host_os in
16788 freebsd[123]*) objformat=aout ;;
16789 *) objformat=elf ;;
16790 esac
16791 fi
16792 version_type=freebsd-$objformat
16793 case $version_type in
16794 freebsd-elf*)
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16796 need_version=no
16797 need_lib_prefix=no
16798 ;;
16799 freebsd-*)
16800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16801 need_version=yes
16802 ;;
16803 esac
16804 shlibpath_var=LD_LIBRARY_PATH
16805 case $host_os in
16806 freebsd2*)
16807 shlibpath_overrides_runpath=yes
16808 ;;
16809 freebsd3.[01]* | freebsdelf3.[01]*)
16810 shlibpath_overrides_runpath=yes
16811 hardcode_into_libs=yes
16812 ;;
16813 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16814 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16815 shlibpath_overrides_runpath=no
16816 hardcode_into_libs=yes
16817 ;;
16818 *) # from 4.6 on, and DragonFly
16819 shlibpath_overrides_runpath=yes
16820 hardcode_into_libs=yes
16821 ;;
16822 esac
16823 ;;
16824
16825gnu*)
16826 version_type=linux
16827 need_lib_prefix=no
16828 need_version=no
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16830 soname_spec='${libname}${release}${shared_ext}$major'
16831 shlibpath_var=LD_LIBRARY_PATH
16832 hardcode_into_libs=yes
16833 ;;
16834
cristy932c9122009-11-19 13:57:03 +000016835haiku*)
16836 version_type=linux
16837 need_lib_prefix=no
16838 need_version=no
16839 dynamic_linker="$host_os runtime_loader"
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16841 soname_spec='${libname}${release}${shared_ext}$major'
16842 shlibpath_var=LIBRARY_PATH
16843 shlibpath_overrides_runpath=yes
16844 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16845 hardcode_into_libs=yes
16846 ;;
16847
cristy3ed852e2009-09-05 21:47:34 +000016848hpux9* | hpux10* | hpux11*)
16849 # Give a soname corresponding to the major version so that dld.sl refuses to
16850 # link against other versions.
16851 version_type=sunos
16852 need_lib_prefix=no
16853 need_version=no
16854 case $host_cpu in
16855 ia64*)
16856 shrext_cmds='.so'
16857 hardcode_into_libs=yes
16858 dynamic_linker="$host_os dld.so"
16859 shlibpath_var=LD_LIBRARY_PATH
16860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16863 if test "X$HPUX_IA64_MODE" = X32; then
16864 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16865 else
16866 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16867 fi
16868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16869 ;;
16870 hppa*64*)
16871 shrext_cmds='.sl'
16872 hardcode_into_libs=yes
16873 dynamic_linker="$host_os dld.sl"
16874 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877 soname_spec='${libname}${release}${shared_ext}$major'
16878 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16880 ;;
16881 *)
16882 shrext_cmds='.sl'
16883 dynamic_linker="$host_os dld.sl"
16884 shlibpath_var=SHLIB_PATH
16885 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16887 soname_spec='${libname}${release}${shared_ext}$major'
16888 ;;
16889 esac
cristy932c9122009-11-19 13:57:03 +000016890 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000016891 postinstall_cmds='chmod 555 $lib'
cristy932c9122009-11-19 13:57:03 +000016892 # or fails outright, so override atomically:
16893 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000016894 ;;
16895
16896interix[3-9]*)
16897 version_type=linux
16898 need_lib_prefix=no
16899 need_version=no
16900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16901 soname_spec='${libname}${release}${shared_ext}$major'
16902 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16903 shlibpath_var=LD_LIBRARY_PATH
16904 shlibpath_overrides_runpath=no
16905 hardcode_into_libs=yes
16906 ;;
16907
16908irix5* | irix6* | nonstopux*)
16909 case $host_os in
16910 nonstopux*) version_type=nonstopux ;;
16911 *)
16912 if test "$lt_cv_prog_gnu_ld" = yes; then
16913 version_type=linux
16914 else
16915 version_type=irix
16916 fi ;;
16917 esac
16918 need_lib_prefix=no
16919 need_version=no
16920 soname_spec='${libname}${release}${shared_ext}$major'
16921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16922 case $host_os in
16923 irix5* | nonstopux*)
16924 libsuff= shlibsuff=
16925 ;;
16926 *)
16927 case $LD in # libtool.m4 will add one of these switches to LD
16928 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16929 libsuff= shlibsuff= libmagic=32-bit;;
16930 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16931 libsuff=32 shlibsuff=N32 libmagic=N32;;
16932 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16933 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16934 *) libsuff= shlibsuff= libmagic=never-match;;
16935 esac
16936 ;;
16937 esac
16938 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16939 shlibpath_overrides_runpath=no
16940 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16941 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16942 hardcode_into_libs=yes
16943 ;;
16944
16945# No shared lib support for Linux oldld, aout, or coff.
16946linux*oldld* | linux*aout* | linux*coff*)
16947 dynamic_linker=no
16948 ;;
16949
16950# This must be Linux ELF.
cristy932c9122009-11-19 13:57:03 +000016951linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016952 version_type=linux
16953 need_lib_prefix=no
16954 need_version=no
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956 soname_spec='${libname}${release}${shared_ext}$major'
16957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16958 shlibpath_var=LD_LIBRARY_PATH
16959 shlibpath_overrides_runpath=no
cristy932c9122009-11-19 13:57:03 +000016960
cristy3ed852e2009-09-05 21:47:34 +000016961 # Some binutils ld are patched to set DT_RUNPATH
cristy932c9122009-11-19 13:57:03 +000016962 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16963 $as_echo_n "(cached) " >&6
16964else
16965 lt_cv_shlibpath_overrides_runpath=no
16966 save_LDFLAGS=$LDFLAGS
16967 save_libdir=$libdir
16968 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16969 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016971/* end confdefs.h. */
16972
16973int
16974main ()
16975{
16976
16977 ;
16978 return 0;
16979}
16980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016981if ac_fn_cxx_try_link "$LINENO"; then :
16982 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy932c9122009-11-19 13:57:03 +000016983 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000016984fi
cristy3ed852e2009-09-05 21:47:34 +000016985fi
cristy8b350f62009-11-15 23:12:43 +000016986rm -f core conftest.err conftest.$ac_objext \
16987 conftest$ac_exeext conftest.$ac_ext
cristy932c9122009-11-19 13:57:03 +000016988 LDFLAGS=$save_LDFLAGS
16989 libdir=$save_libdir
16990
16991fi
16992
16993 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000016994
16995 # This implies no fast_install, which is unacceptable.
16996 # Some rework will be needed to allow for fast_install
16997 # before this can be enabled.
16998 hardcode_into_libs=yes
16999
cristy3ed852e2009-09-05 21:47:34 +000017000 # Append ld.so.conf contents to the search path
17001 if test -f /etc/ld.so.conf; then
cristy932c9122009-11-19 13:57:03 +000017002 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' ' '`
17003 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000017004 fi
17005
17006 # We used to test for /lib/ld.so.1 and disable shared libraries on
17007 # powerpc, because MkLinux only supported shared libraries with the
17008 # GNU dynamic linker. Since this was broken with cross compilers,
17009 # most powerpc-linux boxes support dynamic linking these days and
17010 # people can always --disable-shared, the test was removed, and we
17011 # assume the GNU/Linux dynamic linker is in use.
17012 dynamic_linker='GNU/Linux ld.so'
17013 ;;
17014
17015netbsd*)
17016 version_type=sunos
17017 need_lib_prefix=no
17018 need_version=no
17019 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17022 dynamic_linker='NetBSD (a.out) ld.so'
17023 else
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17025 soname_spec='${libname}${release}${shared_ext}$major'
17026 dynamic_linker='NetBSD ld.elf_so'
17027 fi
17028 shlibpath_var=LD_LIBRARY_PATH
17029 shlibpath_overrides_runpath=yes
17030 hardcode_into_libs=yes
17031 ;;
17032
17033newsos6)
17034 version_type=linux
17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17036 shlibpath_var=LD_LIBRARY_PATH
17037 shlibpath_overrides_runpath=yes
17038 ;;
17039
17040*nto* | *qnx*)
17041 version_type=qnx
17042 need_lib_prefix=no
17043 need_version=no
17044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17045 soname_spec='${libname}${release}${shared_ext}$major'
17046 shlibpath_var=LD_LIBRARY_PATH
17047 shlibpath_overrides_runpath=no
17048 hardcode_into_libs=yes
17049 dynamic_linker='ldqnx.so'
17050 ;;
17051
17052openbsd*)
17053 version_type=sunos
17054 sys_lib_dlsearch_path_spec="/usr/lib"
17055 need_lib_prefix=no
17056 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17057 case $host_os in
17058 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17059 *) need_version=no ;;
17060 esac
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17063 shlibpath_var=LD_LIBRARY_PATH
17064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17065 case $host_os in
17066 openbsd2.[89] | openbsd2.[89].*)
17067 shlibpath_overrides_runpath=no
17068 ;;
17069 *)
17070 shlibpath_overrides_runpath=yes
17071 ;;
17072 esac
17073 else
17074 shlibpath_overrides_runpath=yes
17075 fi
17076 ;;
17077
17078os2*)
17079 libname_spec='$name'
17080 shrext_cmds=".dll"
17081 need_lib_prefix=no
17082 library_names_spec='$libname${shared_ext} $libname.a'
17083 dynamic_linker='OS/2 ld.exe'
17084 shlibpath_var=LIBPATH
17085 ;;
17086
17087osf3* | osf4* | osf5*)
17088 version_type=osf
17089 need_lib_prefix=no
17090 need_version=no
17091 soname_spec='${libname}${release}${shared_ext}$major'
17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17093 shlibpath_var=LD_LIBRARY_PATH
17094 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17095 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17096 ;;
17097
17098rdos*)
17099 dynamic_linker=no
17100 ;;
17101
17102solaris*)
17103 version_type=linux
17104 need_lib_prefix=no
17105 need_version=no
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107 soname_spec='${libname}${release}${shared_ext}$major'
17108 shlibpath_var=LD_LIBRARY_PATH
17109 shlibpath_overrides_runpath=yes
17110 hardcode_into_libs=yes
17111 # ldd complains unless libraries are executable
17112 postinstall_cmds='chmod +x $lib'
17113 ;;
17114
17115sunos4*)
17116 version_type=sunos
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17118 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17119 shlibpath_var=LD_LIBRARY_PATH
17120 shlibpath_overrides_runpath=yes
17121 if test "$with_gnu_ld" = yes; then
17122 need_lib_prefix=no
17123 fi
17124 need_version=yes
17125 ;;
17126
17127sysv4 | sysv4.3*)
17128 version_type=linux
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 shlibpath_var=LD_LIBRARY_PATH
17132 case $host_vendor in
17133 sni)
17134 shlibpath_overrides_runpath=no
17135 need_lib_prefix=no
17136 runpath_var=LD_RUN_PATH
17137 ;;
17138 siemens)
17139 need_lib_prefix=no
17140 ;;
17141 motorola)
17142 need_lib_prefix=no
17143 need_version=no
17144 shlibpath_overrides_runpath=no
17145 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17146 ;;
17147 esac
17148 ;;
17149
17150sysv4*MP*)
17151 if test -d /usr/nec ;then
17152 version_type=linux
17153 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17154 soname_spec='$libname${shared_ext}.$major'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 fi
17157 ;;
17158
17159sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17160 version_type=freebsd-elf
17161 need_lib_prefix=no
17162 need_version=no
17163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 shlibpath_var=LD_LIBRARY_PATH
17166 shlibpath_overrides_runpath=yes
17167 hardcode_into_libs=yes
17168 if test "$with_gnu_ld" = yes; then
17169 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17170 else
17171 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17172 case $host_os in
17173 sco3.2v5*)
17174 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17175 ;;
17176 esac
17177 fi
17178 sys_lib_dlsearch_path_spec='/usr/lib'
17179 ;;
17180
17181tpf*)
17182 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17183 version_type=linux
17184 need_lib_prefix=no
17185 need_version=no
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 shlibpath_overrides_runpath=no
17189 hardcode_into_libs=yes
17190 ;;
17191
17192uts4*)
17193 version_type=linux
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195 soname_spec='${libname}${release}${shared_ext}$major'
17196 shlibpath_var=LD_LIBRARY_PATH
17197 ;;
17198
17199*)
17200 dynamic_linker=no
17201 ;;
17202esac
cristy8b350f62009-11-15 23:12:43 +000017203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000017204$as_echo "$dynamic_linker" >&6; }
17205test "$dynamic_linker" = no && can_build_shared=no
17206
17207variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17208if test "$GCC" = yes; then
17209 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17210fi
17211
17212if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17213 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17214fi
17215if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17216 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17217fi
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
cristy932c9122009-11-19 13:57:03 +000017254
17255
cristy8b350f62009-11-15 23:12:43 +000017256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000017257$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17258hardcode_action_CXX=
17259if test -n "$hardcode_libdir_flag_spec_CXX" ||
17260 test -n "$runpath_var_CXX" ||
17261 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17262
17263 # We can hardcode non-existent directories.
17264 if test "$hardcode_direct_CXX" != no &&
17265 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17266 # have to relink, otherwise we might link with an installed library
17267 # when we should be linking with a yet-to-be-installed one
17268 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17269 test "$hardcode_minus_L_CXX" != no; then
17270 # Linking always hardcodes the temporary library directory.
17271 hardcode_action_CXX=relink
17272 else
17273 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17274 hardcode_action_CXX=immediate
17275 fi
17276else
17277 # We cannot hardcode anything, or else we can only hardcode existing
17278 # directories.
17279 hardcode_action_CXX=unsupported
17280fi
cristy8b350f62009-11-15 23:12:43 +000017281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017282$as_echo "$hardcode_action_CXX" >&6; }
17283
17284if test "$hardcode_action_CXX" = relink ||
17285 test "$inherit_rpath_CXX" = yes; then
17286 # Fast installation is not supported
17287 enable_fast_install=no
17288elif test "$shlibpath_overrides_runpath" = yes ||
17289 test "$enable_shared" = no; then
17290 # Fast installation is not necessary
17291 enable_fast_install=needless
17292fi
17293
17294
17295
17296
17297
17298
17299
17300 fi # test -n "$compiler"
17301
17302 CC=$lt_save_CC
17303 LDCXX=$LD
17304 LD=$lt_save_LD
17305 GCC=$lt_save_GCC
17306 with_gnu_ld=$lt_save_with_gnu_ld
17307 lt_cv_path_LDCXX=$lt_cv_path_LD
17308 lt_cv_path_LD=$lt_save_path_LD
17309 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17310 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17311fi # test "$_lt_caught_CXX_error" != yes
17312
17313ac_ext=c
17314ac_cpp='$CPP $CPPFLAGS'
17315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17317ac_compiler_gnu=$ac_cv_c_compiler_gnu
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331 ac_config_commands="$ac_config_commands libtool"
17332
17333
17334
17335
17336# Only expand once:
17337
17338
17339
17340
17341
17342# Configure libltdl
17343
17344
17345
17346
17347
17348
17349
cristy8b350f62009-11-15 23:12:43 +000017350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000017351$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017352if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017353 $as_echo_n "(cached) " >&6
17354else
17355
17356module=yes
17357eval libltdl_cv_shlibext=$shrext_cmds
17358
17359fi
cristy8b350f62009-11-15 23:12:43 +000017360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017361$as_echo "$libltdl_cv_shlibext" >&6; }
17362if test -n "$libltdl_cv_shlibext"; then
17363
17364cat >>confdefs.h <<_ACEOF
17365#define LT_MODULE_EXT "$libltdl_cv_shlibext"
17366_ACEOF
17367
17368fi
17369
cristy8b350f62009-11-15 23:12:43 +000017370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017371$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017372if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017373 $as_echo_n "(cached) " >&6
17374else
17375 lt_cv_module_path_var="$shlibpath_var"
17376fi
cristy8b350f62009-11-15 23:12:43 +000017377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000017378$as_echo "$lt_cv_module_path_var" >&6; }
17379if test -n "$lt_cv_module_path_var"; then
17380
17381cat >>confdefs.h <<_ACEOF
17382#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
17383_ACEOF
17384
17385fi
17386
cristy8b350f62009-11-15 23:12:43 +000017387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017388$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017389if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017390 $as_echo_n "(cached) " >&6
17391else
17392 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
17393fi
cristy8b350f62009-11-15 23:12:43 +000017394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017395$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
17396if test -n "$lt_cv_sys_dlsearch_path"; then
17397 sys_dlsearch_path=
17398 for dir in $lt_cv_sys_dlsearch_path; do
17399 if test -z "$sys_dlsearch_path"; then
17400 sys_dlsearch_path="$dir"
17401 else
17402 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
17403 fi
17404 done
17405
17406cat >>confdefs.h <<_ACEOF
17407#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
17408_ACEOF
17409
17410fi
17411
17412
17413LT_DLLOADERS=
17414
17415
17416ac_ext=c
17417ac_cpp='$CPP $CPPFLAGS'
17418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17420ac_compiler_gnu=$ac_cv_c_compiler_gnu
17421
17422
17423LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000017424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017425$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017426if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017427 $as_echo_n "(cached) " >&6
17428else
17429 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000017430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017431/* end confdefs.h. */
17432
17433/* Override any GCC internal prototype to avoid an error.
17434 Use char because int might match the return type of a GCC
17435 builtin and then its argument prototype would still apply. */
17436#ifdef __cplusplus
17437extern "C"
17438#endif
17439char dlopen ();
17440int
17441main ()
17442{
17443return dlopen ();
17444 ;
17445 return 0;
17446}
17447_ACEOF
17448for ac_lib in '' dl; do
17449 if test -z "$ac_lib"; then
17450 ac_res="none required"
17451 else
17452 ac_res=-l$ac_lib
17453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17454 fi
cristy8b350f62009-11-15 23:12:43 +000017455 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017456 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000017457fi
cristy8b350f62009-11-15 23:12:43 +000017458rm -f core conftest.err conftest.$ac_objext \
17459 conftest$ac_exeext
17460 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017461 break
17462fi
17463done
cristy8b350f62009-11-15 23:12:43 +000017464if test "${ac_cv_search_dlopen+set}" = set; then :
17465
cristy3ed852e2009-09-05 21:47:34 +000017466else
17467 ac_cv_search_dlopen=no
17468fi
17469rm conftest.$ac_ext
17470LIBS=$ac_func_search_save_LIBS
17471fi
cristy8b350f62009-11-15 23:12:43 +000017472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017473$as_echo "$ac_cv_search_dlopen" >&6; }
17474ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000017475if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000017476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17477
cristy8b350f62009-11-15 23:12:43 +000017478$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017479
17480 if test "$ac_cv_search_dlopen" != "none required" ; then
17481 LIBADD_DLOPEN="-ldl"
17482 fi
17483 libltdl_cv_lib_dl_dlopen="yes"
17484 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17485else
cristy8b350f62009-11-15 23:12:43 +000017486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017487/* end confdefs.h. */
17488#if HAVE_DLFCN_H
17489# include <dlfcn.h>
17490#endif
17491
17492int
17493main ()
17494{
17495dlopen(0, 0);
17496 ;
17497 return 0;
17498}
17499_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017500if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017501
cristy8b350f62009-11-15 23:12:43 +000017502$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017503
17504 libltdl_cv_func_dlopen="yes"
17505 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17506else
cristy8b350f62009-11-15 23:12:43 +000017507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017508$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017509if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017510 $as_echo_n "(cached) " >&6
17511else
17512 ac_check_lib_save_LIBS=$LIBS
17513LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017515/* end confdefs.h. */
17516
17517/* Override any GCC internal prototype to avoid an error.
17518 Use char because int might match the return type of a GCC
17519 builtin and then its argument prototype would still apply. */
17520#ifdef __cplusplus
17521extern "C"
17522#endif
17523char dlopen ();
17524int
17525main ()
17526{
17527return dlopen ();
17528 ;
17529 return 0;
17530}
17531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017532if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017533 ac_cv_lib_svld_dlopen=yes
17534else
cristy8b350f62009-11-15 23:12:43 +000017535 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000017536fi
cristy8b350f62009-11-15 23:12:43 +000017537rm -f core conftest.err conftest.$ac_objext \
17538 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017539LIBS=$ac_check_lib_save_LIBS
17540fi
cristy8b350f62009-11-15 23:12:43 +000017541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017542$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017543if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017544
cristy8b350f62009-11-15 23:12:43 +000017545$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017546
17547 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
17548 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17549fi
17550
17551fi
cristy8b350f62009-11-15 23:12:43 +000017552rm -f core conftest.err conftest.$ac_objext \
17553 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017554fi
17555
17556if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17557then
17558 lt_save_LIBS="$LIBS"
17559 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000017560 for ac_func in dlerror
17561do :
17562 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
17563if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017564 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017565#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000017566_ACEOF
17567
17568fi
17569done
17570
17571 LIBS="$lt_save_LIBS"
17572fi
17573
17574
17575LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000017576ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17577if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017578
cristy8b350f62009-11-15 23:12:43 +000017579$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017580
17581 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17582else
cristy8b350f62009-11-15 23:12:43 +000017583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017584$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017585if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017586 $as_echo_n "(cached) " >&6
17587else
17588 ac_check_lib_save_LIBS=$LIBS
17589LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017591/* end confdefs.h. */
17592
17593/* Override any GCC internal prototype to avoid an error.
17594 Use char because int might match the return type of a GCC
17595 builtin and then its argument prototype would still apply. */
17596#ifdef __cplusplus
17597extern "C"
17598#endif
17599char shl_load ();
17600int
17601main ()
17602{
17603return shl_load ();
17604 ;
17605 return 0;
17606}
17607_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017608if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017609 ac_cv_lib_dld_shl_load=yes
17610else
cristy8b350f62009-11-15 23:12:43 +000017611 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000017612fi
cristy8b350f62009-11-15 23:12:43 +000017613rm -f core conftest.err conftest.$ac_objext \
17614 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017615LIBS=$ac_check_lib_save_LIBS
17616fi
cristy8b350f62009-11-15 23:12:43 +000017617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000017618$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017619if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017620
cristy8b350f62009-11-15 23:12:43 +000017621$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017622
17623 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17624 LIBADD_SHL_LOAD="-ldld"
17625fi
17626
17627fi
17628
17629
17630
17631case $host_os in
17632darwin[1567].*)
17633# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000017634 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
17635if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017636
cristy8b350f62009-11-15 23:12:43 +000017637$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017638
17639 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
17640fi
17641
17642 ;;
17643beos*)
17644 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
17645 ;;
17646cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000017647 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
17648"
17649if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
17650 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000017651else
cristy8b350f62009-11-15 23:12:43 +000017652 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000017653fi
17654
cristy3ed852e2009-09-05 21:47:34 +000017655cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017656#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000017657_ACEOF
17658
cristy3ed852e2009-09-05 21:47:34 +000017659 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
17660 ;;
17661esac
17662
cristy8b350f62009-11-15 23:12:43 +000017663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017664$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017665if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017666 $as_echo_n "(cached) " >&6
17667else
17668 ac_check_lib_save_LIBS=$LIBS
17669LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017671/* end confdefs.h. */
17672
17673/* Override any GCC internal prototype to avoid an error.
17674 Use char because int might match the return type of a GCC
17675 builtin and then its argument prototype would still apply. */
17676#ifdef __cplusplus
17677extern "C"
17678#endif
17679char dld_link ();
17680int
17681main ()
17682{
17683return dld_link ();
17684 ;
17685 return 0;
17686}
17687_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017688if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017689 ac_cv_lib_dld_dld_link=yes
17690else
cristy8b350f62009-11-15 23:12:43 +000017691 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000017692fi
cristy8b350f62009-11-15 23:12:43 +000017693rm -f core conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017695LIBS=$ac_check_lib_save_LIBS
17696fi
cristy8b350f62009-11-15 23:12:43 +000017697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000017698$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017699if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017700
cristy8b350f62009-11-15 23:12:43 +000017701$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017702
17703 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
17704fi
17705
17706
17707
17708
17709LT_DLPREOPEN=
17710if test -n "$LT_DLLOADERS"
17711then
17712 for lt_loader in $LT_DLLOADERS; do
17713 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
17714 done
17715
cristy8b350f62009-11-15 23:12:43 +000017716$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017717
17718fi
17719
17720
17721LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
17722
17723
17724ac_ext=c
17725ac_cpp='$CPP $CPPFLAGS'
17726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17728ac_compiler_gnu=$ac_cv_c_compiler_gnu
17729
17730
cristy8b350f62009-11-15 23:12:43 +000017731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000017732$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017733if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017734 $as_echo_n "(cached) " >&6
17735else
17736 lt_cv_sys_symbol_underscore=no
17737 cat > conftest.$ac_ext <<_LT_EOF
17738void nm_test_func(){}
17739int main(){nm_test_func;return 0;}
17740_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000017741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017742 (eval $ac_compile) 2>&5
17743 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17745 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017746 # Now try to grab the symbols.
17747 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000017748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017749 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
17750 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17752 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000017753 # See whether the symbols have a leading underscore.
17754 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
17755 lt_cv_sys_symbol_underscore=yes
17756 else
17757 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
17758 :
17759 else
17760 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
17761 fi
17762 fi
17763 else
17764 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
17765 fi
17766 else
17767 echo "configure: failed program was:" >&5
17768 cat conftest.c >&5
17769 fi
17770 rm -rf conftest*
17771
17772fi
cristy8b350f62009-11-15 23:12:43 +000017773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000017774$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
17775 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
17776
17777
17778if test x"$lt_cv_sys_symbol_underscore" = xyes; then
17779 if test x"$libltdl_cv_func_dlopen" = xyes ||
17780 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000017781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000017782$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017783if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017784 $as_echo_n "(cached) " >&6
17785else
17786 libltdl_cv_need_uscore=unknown
17787 save_LIBS="$LIBS"
17788 LIBS="$LIBS $LIBADD_DLOPEN"
17789 if test "$cross_compiling" = yes; then :
17790 libltdl_cv_need_uscore=cross
17791else
17792 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17793 lt_status=$lt_dlunknown
17794 cat > conftest.$ac_ext <<_LT_EOF
cristy932c9122009-11-19 13:57:03 +000017795#line 17795 "configure"
cristy3ed852e2009-09-05 21:47:34 +000017796#include "confdefs.h"
17797
17798#if HAVE_DLFCN_H
17799#include <dlfcn.h>
17800#endif
17801
17802#include <stdio.h>
17803
17804#ifdef RTLD_GLOBAL
17805# define LT_DLGLOBAL RTLD_GLOBAL
17806#else
17807# ifdef DL_GLOBAL
17808# define LT_DLGLOBAL DL_GLOBAL
17809# else
17810# define LT_DLGLOBAL 0
17811# endif
17812#endif
17813
17814/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17815 find out it does not work in some platform. */
17816#ifndef LT_DLLAZY_OR_NOW
17817# ifdef RTLD_LAZY
17818# define LT_DLLAZY_OR_NOW RTLD_LAZY
17819# else
17820# ifdef DL_LAZY
17821# define LT_DLLAZY_OR_NOW DL_LAZY
17822# else
17823# ifdef RTLD_NOW
17824# define LT_DLLAZY_OR_NOW RTLD_NOW
17825# else
17826# ifdef DL_NOW
17827# define LT_DLLAZY_OR_NOW DL_NOW
17828# else
17829# define LT_DLLAZY_OR_NOW 0
17830# endif
17831# endif
17832# endif
17833# endif
17834#endif
17835
cristy932c9122009-11-19 13:57:03 +000017836/* When -fvisbility=hidden is used, assume the code has been annotated
17837 correspondingly for the symbols needed. */
17838#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17839void fnord () __attribute__((visibility("default")));
17840#endif
17841
17842void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000017843int main ()
17844{
17845 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17846 int status = $lt_dlunknown;
17847
17848 if (self)
17849 {
17850 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy932c9122009-11-19 13:57:03 +000017851 else
17852 {
17853 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17854 else puts (dlerror ());
17855 }
cristy3ed852e2009-09-05 21:47:34 +000017856 /* dlclose (self); */
17857 }
17858 else
17859 puts (dlerror ());
17860
17861 return status;
17862}
17863_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000017864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017865 (eval $ac_link) 2>&5
17866 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17868 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000017869 (./conftest; exit; ) >&5 2>/dev/null
17870 lt_status=$?
17871 case x$lt_status in
17872 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
17873 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
17874 x$lt_dlunknown|x*) ;;
17875 esac
17876 else :
17877 # compilation failed
17878
17879 fi
17880fi
17881rm -fr conftest*
17882
17883 LIBS="$save_LIBS"
17884
17885fi
cristy8b350f62009-11-15 23:12:43 +000017886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000017887$as_echo "$libltdl_cv_need_uscore" >&6; }
17888 fi
17889fi
17890
17891if test x"$libltdl_cv_need_uscore" = xyes; then
17892
cristy8b350f62009-11-15 23:12:43 +000017893$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017894
17895fi
17896
cristy8b350f62009-11-15 23:12:43 +000017897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017898$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017899if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017900 $as_echo_n "(cached) " >&6
17901else
17902 # PORTME does your system automatically load deplibs for dlopen?
17903 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
17904 # For now, we just catch OSes we know something about -- in the
17905 # future, we'll try test this programmatically.
17906 lt_cv_sys_dlopen_deplibs=unknown
17907 case $host_os in
17908 aix3*|aix4.1.*|aix4.2.*)
17909 # Unknown whether this is true for these versions of AIX, but
17910 # we want this `case' here to explicitly catch those versions.
17911 lt_cv_sys_dlopen_deplibs=unknown
17912 ;;
17913 aix[4-9]*)
17914 lt_cv_sys_dlopen_deplibs=yes
17915 ;;
17916 amigaos*)
17917 case $host_cpu in
17918 powerpc)
17919 lt_cv_sys_dlopen_deplibs=no
17920 ;;
17921 esac
17922 ;;
17923 darwin*)
17924 # Assuming the user has installed a libdl from somewhere, this is true
17925 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
17926 lt_cv_sys_dlopen_deplibs=yes
17927 ;;
17928 freebsd* | dragonfly*)
17929 lt_cv_sys_dlopen_deplibs=yes
17930 ;;
cristy932c9122009-11-19 13:57:03 +000017931 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017932 # GNU and its variants, using gnu ld.so (Glibc)
17933 lt_cv_sys_dlopen_deplibs=yes
17934 ;;
17935 hpux10*|hpux11*)
17936 lt_cv_sys_dlopen_deplibs=yes
17937 ;;
17938 interix*)
17939 lt_cv_sys_dlopen_deplibs=yes
17940 ;;
17941 irix[12345]*|irix6.[01]*)
17942 # Catch all versions of IRIX before 6.2, and indicate that we don't
17943 # know how it worked for any of those versions.
17944 lt_cv_sys_dlopen_deplibs=unknown
17945 ;;
17946 irix*)
17947 # The case above catches anything before 6.2, and it's known that
17948 # at 6.2 and later dlopen does load deplibs.
17949 lt_cv_sys_dlopen_deplibs=yes
17950 ;;
17951 netbsd*)
17952 lt_cv_sys_dlopen_deplibs=yes
17953 ;;
17954 openbsd*)
17955 lt_cv_sys_dlopen_deplibs=yes
17956 ;;
17957 osf[1234]*)
17958 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
17959 # it did *not* use an RPATH in a shared library to find objects the
17960 # library depends on, so we explicitly say `no'.
17961 lt_cv_sys_dlopen_deplibs=no
17962 ;;
17963 osf5.0|osf5.0a|osf5.1)
17964 # dlopen *does* load deplibs and with the right loader patch applied
17965 # it even uses RPATH in a shared library to search for shared objects
17966 # that the library depends on, but there's no easy way to know if that
17967 # patch is installed. Since this is the case, all we can really
17968 # say is unknown -- it depends on the patch being installed. If
17969 # it is, this changes to `yes'. Without it, it would be `no'.
17970 lt_cv_sys_dlopen_deplibs=unknown
17971 ;;
17972 osf*)
17973 # the two cases above should catch all versions of osf <= 5.1. Read
17974 # the comments above for what we know about them.
17975 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
17976 # is used to find them so we can finally say `yes'.
17977 lt_cv_sys_dlopen_deplibs=yes
17978 ;;
17979 qnx*)
17980 lt_cv_sys_dlopen_deplibs=yes
17981 ;;
17982 solaris*)
17983 lt_cv_sys_dlopen_deplibs=yes
17984 ;;
17985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17986 libltdl_cv_sys_dlopen_deplibs=yes
17987 ;;
17988 esac
17989
17990fi
cristy8b350f62009-11-15 23:12:43 +000017991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000017992$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
17993if test "$lt_cv_sys_dlopen_deplibs" != yes; then
17994
cristy8b350f62009-11-15 23:12:43 +000017995$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017996
17997fi
17998
17999:
18000
cristy3ed852e2009-09-05 21:47:34 +000018001for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000018002do :
18003 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18004"
18005if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018006 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018007#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000018008_ACEOF
18009
18010fi
18011
18012done
18013
18014
cristy8b350f62009-11-15 23:12:43 +000018015ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000018016# include <argz.h>
18017#endif
cristy8b350f62009-11-15 23:12:43 +000018018"
18019if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018020
18021cat >>confdefs.h <<_ACEOF
18022#define HAVE_ERROR_T 1
18023_ACEOF
18024
18025
18026else
18027
cristy8b350f62009-11-15 23:12:43 +000018028$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018029
18030
cristy8b350f62009-11-15 23:12:43 +000018031$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018032
18033fi
18034
18035
18036ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000018037for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
18038 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000018039do :
18040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18041ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18042eval as_val=\$$as_ac_var
18043 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018044 cat >>confdefs.h <<_ACEOF
18045#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18046_ACEOF
18047
18048else
18049 ARGZ_H=argz.h;
18050
18051 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18052
18053fi
18054done
18055
18056
cristy8b350f62009-11-15 23:12:43 +000018057if test -z "$ARGZ_H"; then :
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018059$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018060if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018061 $as_echo_n "(cached) " >&6
18062else
18063 case $host_os in #(
18064 *cygwin*)
18065 lt_cv_sys_argz_works=no
18066 if test "$cross_compiling" != no; then
18067 lt_cv_sys_argz_works="guessing no"
18068 else
18069 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
18070 save_IFS=$IFS
18071 IFS=-.
18072 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
18073 IFS=$save_IFS
18074 lt_os_major=${2-0}
18075 lt_os_minor=${3-0}
18076 lt_os_micro=${4-0}
18077 if test "$lt_os_major" -gt 1 \
18078 || { test "$lt_os_major" -eq 1 \
18079 && { test "$lt_os_minor" -gt 5 \
18080 || { test "$lt_os_minor" -eq 5 \
18081 && test "$lt_os_micro" -gt 24; }; }; }; then
18082 lt_cv_sys_argz_works=yes
18083 fi
18084 fi
18085 ;; #(
18086 *) lt_cv_sys_argz_works=yes ;;
18087 esac
18088fi
cristy8b350f62009-11-15 23:12:43 +000018089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018090$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018091 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018092
cristy8b350f62009-11-15 23:12:43 +000018093$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018094
18095else
18096 ARGZ_H=argz.h
18097
18098
18099 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18100
18101fi
cristy3ed852e2009-09-05 21:47:34 +000018102fi
18103
18104
18105
cristy8b350f62009-11-15 23:12:43 +000018106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018107$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018108if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018109 $as_echo_n "(cached) " >&6
18110else
18111 if test -n "$lt_cv_sys_global_symbol_pipe"; then
18112 libltdl_cv_preloaded_symbols=yes
18113 else
18114 libltdl_cv_preloaded_symbols=no
18115 fi
18116
18117fi
cristy8b350f62009-11-15 23:12:43 +000018118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018119$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
18120if test x"$libltdl_cv_preloaded_symbols" = xyes; then
18121
cristy8b350f62009-11-15 23:12:43 +000018122$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018123
18124fi
18125
18126# Set options
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000018139if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018140 withval=$with_included_ltdl;
18141fi
18142
18143
18144if test "x$with_included_ltdl" != xyes; then
18145 # We are not being forced to use the included libltdl sources, so
18146 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000018147 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000018148
cristy8b350f62009-11-15 23:12:43 +000018149"
18150if test "x$ac_cv_header_ltdl_h" = x""yes; then :
18151 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000018152 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000018153"
18154if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000018156$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018157if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018158 $as_echo_n "(cached) " >&6
18159else
18160 ac_check_lib_save_LIBS=$LIBS
18161LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018163/* end confdefs.h. */
18164
18165/* Override any GCC internal prototype to avoid an error.
18166 Use char because int might match the return type of a GCC
18167 builtin and then its argument prototype would still apply. */
18168#ifdef __cplusplus
18169extern "C"
18170#endif
18171char lt_dladvise_preload ();
18172int
18173main ()
18174{
18175return lt_dladvise_preload ();
18176 ;
18177 return 0;
18178}
18179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018180if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018181 ac_cv_lib_ltdl_lt_dladvise_preload=yes
18182else
cristy8b350f62009-11-15 23:12:43 +000018183 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000018184fi
cristy8b350f62009-11-15 23:12:43 +000018185rm -f core conftest.err conftest.$ac_objext \
18186 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018187LIBS=$ac_check_lib_save_LIBS
18188fi
cristy8b350f62009-11-15 23:12:43 +000018189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000018190$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018191if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018192 with_included_ltdl=no
18193else
18194 with_included_ltdl=yes
18195fi
18196
18197else
18198 with_included_ltdl=yes
18199fi
18200
18201else
18202 with_included_ltdl=yes
18203fi
18204
18205
18206fi
18207
18208
18209
18210
18211# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000018212if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018213 withval=$with_ltdl_include;
18214fi
18215
18216
18217if test -n "$with_ltdl_include"; then
18218 if test -f "$with_ltdl_include/ltdl.h"; then :
18219 else
cristy8b350f62009-11-15 23:12:43 +000018220 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018221 fi
18222else
18223 with_ltdl_include=no
18224fi
18225
18226
18227# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000018228if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018229 withval=$with_ltdl_lib;
18230fi
18231
18232
18233if test -n "$with_ltdl_lib"; then
18234 if test -f "$with_ltdl_lib/libltdl.la"; then :
18235 else
cristy8b350f62009-11-15 23:12:43 +000018236 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018237 fi
18238else
18239 with_ltdl_lib=no
18240fi
18241
18242case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
18243 ,yes,no,no,)
18244 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000018245 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000018246 "") enable_ltdl_convenience=yes
18247 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
18248esac
18249LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
18250LTDLDEPS=$LIBLTDL
18251LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
18252
18253
18254
18255
18256
18257# For backwards non-gettext consistent compatibility...
18258INCLTDL="$LTDLINCL"
18259
18260
18261 ;;
18262 ,no,no,no,)
18263 # If the included ltdl is not to be used, then use the
18264 # preinstalled libltdl we found.
18265
cristy8b350f62009-11-15 23:12:43 +000018266$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018267
18268 LIBLTDL=-lltdl
18269 LTDLDEPS=
18270 LTDLINCL=
18271 ;;
18272 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000018273 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018274 ;;
18275 *) with_included_ltdl=no
18276 LIBLTDL="-L$with_ltdl_lib -lltdl"
18277 LTDLDEPS=
18278 LTDLINCL="-I$with_ltdl_include"
18279 ;;
18280esac
18281INCLTDL="$LTDLINCL"
18282
18283# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000018284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000018285$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018287$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000018289$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018291$as_echo "$LIBLTDL" >&6; }
18292
18293
18294
18295# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000018296if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018297 enableval=$enable_ltdl_install;
18298fi
18299
18300
18301case ,${enable_ltdl_install},${enable_ltdl_convenience} in
18302 *yes*) ;;
18303 *) enable_ltdl_convenience=yes ;;
18304esac
18305
18306 if test x"${enable_ltdl_install-no}" != xno; then
18307 INSTALL_LTDL_TRUE=
18308 INSTALL_LTDL_FALSE='#'
18309else
18310 INSTALL_LTDL_TRUE='#'
18311 INSTALL_LTDL_FALSE=
18312fi
18313
18314 if test x"${enable_ltdl_convenience-no}" != xno; then
18315 CONVENIENCE_LTDL_TRUE=
18316 CONVENIENCE_LTDL_FALSE='#'
18317else
18318 CONVENIENCE_LTDL_TRUE='#'
18319 CONVENIENCE_LTDL_FALSE=
18320fi
18321
18322
18323
18324
18325
18326
cristy3ed852e2009-09-05 21:47:34 +000018327# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
18328# the user used. This is so that ltdl.h can pick up the parent projects
18329# config.h file, The first file in AC_CONFIG_HEADERS must contain the
18330# definitions required by ltdl.c.
18331# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
18332
18333
18334
cristy3ed852e2009-09-05 21:47:34 +000018335for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000018336do :
18337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18338ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18339"
18340eval as_val=\$$as_ac_Header
18341 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018342 cat >>confdefs.h <<_ACEOF
18343#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18344_ACEOF
18345
18346fi
18347
18348done
18349
18350
cristy3ed852e2009-09-05 21:47:34 +000018351for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000018352do :
18353 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18354ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18355eval as_val=\$$as_ac_var
18356 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018357 cat >>confdefs.h <<_ACEOF
18358#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18359_ACEOF
18360
18361else
18362
18363
18364 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
18365
18366fi
18367done
18368
cristy3ed852e2009-09-05 21:47:34 +000018369for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000018370do :
18371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18372ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18373eval as_val=\$$as_ac_var
18374 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018375 cat >>confdefs.h <<_ACEOF
18376#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18377_ACEOF
18378
18379else
18380
18381
18382 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
18383
18384fi
18385done
18386
18387
18388
18389cat >>confdefs.h <<_ACEOF
18390#define LT_LIBEXT "$libext"
18391_ACEOF
18392
18393
18394name=ltdl
18395LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
18396
18397
18398
18399
18400
18401
18402
18403
18404# Only expand once:
18405
18406
18407
18408# Check to see if building shared libraries
18409libtool_build_shared_libs='no'
18410if test "$enable_shared" = 'yes'; then
18411 libtool_build_shared_libs='yes'
18412fi
18413
18414# Check to see if building static libraries
18415libtool_build_static_libs='no'
18416if test "$enable_static" = 'yes'; then
18417 libtool_build_static_libs='yes'
18418fi
18419
18420# MinGW and Cygwin can't build C++ DLLs which support exceptions.
18421if test "${StaticCplusPlusLibraries}" = 'yes'; then
18422 LTCXXLIBOPTS='--static'
18423
18424fi
18425
18426#
18427# Enable support for building loadable modules
18428#
18429
18430# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000018431if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018432 withval=$with_modules; with_modules=$withval
18433else
18434 with_modules=$libtool_build_shared_libs
18435fi
18436
18437
18438# Only allow building loadable modules if we are building shared libraries
18439if test "$with_modules" != 'no' ; then
18440 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000018441 { $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 +000018442$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
18443 with_modules='no'
18444 fi
18445fi
18446if test "$with_modules" != 'no'; then
18447
cristy8b350f62009-11-15 23:12:43 +000018448$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018449
18450fi
18451 if test "$with_modules" != 'no'; then
18452 WITH_MODULES_TRUE=
18453 WITH_MODULES_FALSE='#'
18454else
18455 WITH_MODULES_TRUE='#'
18456 WITH_MODULES_FALSE=
18457fi
18458
18459
18460# Enable building/use of libltdl if we are building shared libraries regardless
18461# of whether modules are built or not.
18462with_ltdl='no'
18463if test "$libtool_build_shared_libs" != 'no'; then
18464 with_ltdl='yes'
18465fi
18466
18467 if test "$with_ltdl" != 'no'; then
18468 WITH_LTDL_TRUE=
18469 WITH_LTDL_FALSE='#'
18470else
18471 WITH_LTDL_TRUE='#'
18472 WITH_LTDL_FALSE=
18473fi
18474
18475if test "$with_ltdl" != 'no'; then
18476
cristy8b350f62009-11-15 23:12:43 +000018477$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018478
18479
18480 # Set DLLDFLAGS
18481 if test X"$enable_shared" = Xyes; then
18482 DLLDFLAGS=-export-dynamic
18483
18484 fi
18485fi
18486
18487# Enable build using delegate libraries built in subdirectories rather than installed
18488# delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
18489# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000018490if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018491 enableval=$enable_delegate_build; enable_delegate_build=$enableval
18492else
18493 enable_delegate_build='no'
18494fi
18495
18496
18497# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000018498if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018499 enableval=$enable_deprecated; enable_deprecated=$enableval
18500else
18501 enable_deprecated='no'
18502fi
18503
18504
18505if test "$enable_deprecated" = 'yes'; then
18506
cristy8b350f62009-11-15 23:12:43 +000018507$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018508
18509else
18510 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
18511fi
18512
18513# Build a version of ImageMagick which operates uninstalled.
18514# Used to build distributions located via MAGICK_HOME / executable path
18515# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000018516if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018517 enableval=$enable_installed; enable_installed=$enableval
18518else
18519 enable_installed='yes'
18520fi
18521
18522
18523if test "$enable_installed" = 'yes'; then
18524
cristy8b350f62009-11-15 23:12:43 +000018525$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018526
18527else
18528 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
18529fi
18530
18531# Permit enciphering and deciphering image pixels.
18532# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000018533if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018534 enableval=$enable_cipher; enable_cipher=$enableval
18535else
18536 enable_cipher='yes'
18537fi
18538
18539
18540if test "$enable_cipher" = 'yes'; then
18541
cristy8b350f62009-11-15 23:12:43 +000018542$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018543
18544fi
18545
18546# Build an embeddable version of ImageMagick.
18547# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000018548if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018549 enableval=$enable_embeddable; enable_embeddable=$enableval
18550else
18551 enable_embeddable='no'
18552fi
18553
18554
18555if test "$enable_embeddable" = 'yes'; then
18556
cristy8b350f62009-11-15 23:12:43 +000018557$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018558
18559fi
18560
18561# Build a high dynamic range version of ImageMagick.
18562# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000018563if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018564 enableval=$enable_hdri; enable_hdri=$enableval
18565else
18566 enable_hdri='no'
18567fi
18568
18569
18570MAGICK_HDRI=""
18571if test "$enable_hdri" = 'yes'; then
18572 MAGICK_HDRI="HDRI"
18573
cristy8b350f62009-11-15 23:12:43 +000018574$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018575
18576fi
18577
cristy3ed852e2009-09-05 21:47:34 +000018578# Build a version of ImageMagick with assert statements.
18579# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000018580if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018581 enableval=$enable_assert; enable_assert=$enableval
18582else
18583 enable_assert='yes'
18584fi
18585
18586
18587if test "$enable_assert" = 'no'; then
18588
cristy8b350f62009-11-15 23:12:43 +000018589$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018590
18591fi
18592
18593# Add configure option --enable-maintainer-mode which enables dependency
18594# checking and generation useful to package maintainers. This is made an
18595# option to avoid confusing end users.
18596
cristy8b350f62009-11-15 23:12:43 +000018597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000018598$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18599 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000018600if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018601 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18602else
18603 USE_MAINTAINER_MODE=no
18604fi
18605
cristy8b350f62009-11-15 23:12:43 +000018606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000018607$as_echo "$USE_MAINTAINER_MODE" >&6; }
18608 if test $USE_MAINTAINER_MODE = yes; then
18609 MAINTAINER_MODE_TRUE=
18610 MAINTAINER_MODE_FALSE='#'
18611else
18612 MAINTAINER_MODE_TRUE='#'
18613 MAINTAINER_MODE_FALSE=
18614fi
18615
18616 MAINT=$MAINTAINER_MODE_TRUE
18617
18618
18619
18620
18621# Enable ccmalloc memory debugging support
18622# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000018623if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018624 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
18625else
18626 enable_ccmalloc='no'
18627fi
18628
18629
18630# Enable Electric Fence memory debugging support
18631# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000018632if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018633 enableval=$enable_efence; enable_efence=$enableval
18634else
18635 enable_efence='no'
18636fi
18637
18638
18639# Enable prof-based profiling support
18640# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000018641if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018642 enableval=$enable_prof; enable_prof=$enableval
18643else
18644 enable_prof='no'
18645fi
18646
18647
18648# Enable gprof-based profiling support
18649# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000018650if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018651 enableval=$enable_gprof; enable_gprof=$enableval
18652else
18653 enable_gprof='no'
18654fi
18655
18656
18657# Enable gcov-based profiling support
18658# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000018659if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018660 enableval=$enable_gcov; enable_gcov=$enableval
18661else
18662 enable_gcov='no'
18663fi
18664
18665
18666enable_profiling='no'
18667if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
18668 enable_profiling='yes'
18669 if test "$libtool_build_shared_libs" = 'yes'; then
18670 echo "Warning: Can not profile code using shared libraries"
18671 fi
18672fi
18673
18674# Magick API method prefix
18675
18676# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000018677if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018678 withval=$with_method_prefix; with_method_prefix=$enableval
18679else
18680 with_method_prefix=''
18681fi
18682
18683
18684if test "$with_method_prefix" != ''; then
18685
18686cat >>confdefs.h <<_ACEOF
18687#define NAMESPACE_PREFIX $with_method_prefix
18688_ACEOF
18689
18690fi
18691
18692# Number of bits in a Quantum
18693
18694# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000018695if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018696 withval=$with_quantum_depth; with_quantum_depth=$withval
18697else
18698 with_quantum_depth=16
18699fi
18700
18701
18702if test "$with_quantum_depth" != '8'; then
18703 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
18704fi
18705
18706case "${with_quantum_depth}" in
18707 8 ) ;;
18708 16 ) ;;
18709 32 ) ;;
18710 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000018711 * ) { as_fn_set_status 16
18712as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000018713esac
18714QUANTUM_DEPTH="$with_quantum_depth"
18715
18716cat >>confdefs.h <<_ACEOF
18717#define QUANTUM_DEPTH $QUANTUM_DEPTH
18718_ACEOF
18719
18720
18721# Set pixel cache threshold
18722
18723# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000018724if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018725 withval=$with_cache; with_cache=$withval
18726else
18727 with_cache=''
18728fi
18729
18730
18731if test "$with_cache" != ''; then
18732
18733cat >>confdefs.h <<_ACEOF
18734#define PixelCacheThreshold $with_cache
18735_ACEOF
18736
18737 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
18738fi
18739
18740# Disable/Enable support for full delegate paths
18741
18742# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000018743if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018744 withval=$with_frozenpaths; with_frozenpaths=$withval
18745else
18746 with_frozenpaths='no'
18747fi
18748
18749
18750# Enable build/install of Magick++
18751
18752# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000018753if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018754 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
18755else
18756 with_magick_plus_plus='yes'
18757fi
18758
18759
18760# Disable build/install of PerlMagick.
18761
18762# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000018763if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018764 withval=$with_perl; with_perl=$withval
18765else
18766 with_perl=$libtool_build_shared_libs
18767fi
18768
18769
18770# Options to pass when configuring PerlMagick
18771
18772# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000018773if test "${with_perl_options+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018774 withval=$with_perl_options;
18775fi
18776
18777
18778PERL_MAKE_OPTIONS=$with_perl_options
18779
18780
18781
18782# Enable umem, object-caching memory allocation library.
18783
18784# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000018785if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018786 withval=$with_umem; with_umem=$withval
18787else
18788 with_umem='no'
18789fi
18790
18791if test "$with_umem" != 'yes' ; then
18792 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
18793fi
18794
18795#
18796# Specify path to shared libstdc++ if not in normal location
18797#
18798
18799# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000018800if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018801 withval=$with_libstdc; with_libstdc=$withval
18802else
18803 with_libstdc=''
18804fi
18805
18806
18807if test "$with_libstdc" != ''; then
18808 if test -d "$with_libstdc"; then
18809 LIBSTDCLDFLAGS="-L$with_libstdc"
18810 fi
18811fi
18812
18813
18814# Does gcc required -traditional?
18815if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000018816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000018817$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018818if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018819 $as_echo_n "(cached) " >&6
18820else
18821 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000018822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018823/* end confdefs.h. */
18824#include <sgtty.h>
18825Autoconf TIOCGETP
18826_ACEOF
18827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000018828 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000018829 ac_cv_prog_gcc_traditional=yes
18830else
18831 ac_cv_prog_gcc_traditional=no
18832fi
18833rm -f conftest*
18834
18835
18836 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000018837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018838/* end confdefs.h. */
18839#include <termio.h>
18840Autoconf TCGETA
18841_ACEOF
18842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000018843 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000018844 ac_cv_prog_gcc_traditional=yes
18845fi
18846rm -f conftest*
18847
18848 fi
18849fi
cristy8b350f62009-11-15 23:12:43 +000018850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000018851$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
18852 if test $ac_cv_prog_gcc_traditional = yes; then
18853 CC="$CC -traditional"
18854 fi
18855fi
18856
18857
18858########
18859#
18860# Set defines required to build DLLs and modules using MinGW
18861#
18862########
18863# These options are set for multi-thread DLL module build
18864# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
18865# module: _DLL
18866# executable/Magick++: _DLL _MAGICKMOD_
18867MODULE_EXTRA_CPPFLAGS=''
18868LIBRARY_EXTRA_CPPFLAGS=''
18869if test "${native_win32_build}" = 'yes'; then
18870 if test "${libtool_build_shared_libs}" = 'yes'; then
18871 CPPFLAGS="$CPPFLAGS -D_DLL"
18872 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
18873 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
18874 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
18875 if test "$with_modules" = 'yes'; then
18876 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
18877 else
18878 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
18879 fi
18880 else
18881 CPPFLAGS="$CPPFLAGS -D_LIB"
18882 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
18883 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
18884 fi
18885 if test "$with_threads" = 'yes'; then
18886 CPPFLAGS="$CPPFLAGS -D_MT"
18887 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
18888 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
18889 fi
18890fi
18891
18892
18893
18894# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000018895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000018896$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018897if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018898 $as_echo_n "(cached) " >&6
18899else
cristy8b350f62009-11-15 23:12:43 +000018900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018901/* end confdefs.h. */
18902#include <stdlib.h>
18903#include <stdarg.h>
18904#include <string.h>
18905#include <float.h>
18906
18907int
18908main ()
18909{
18910
18911 ;
18912 return 0;
18913}
18914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018915if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018916 ac_cv_header_stdc=yes
18917else
cristy8b350f62009-11-15 23:12:43 +000018918 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000018919fi
cristy3ed852e2009-09-05 21:47:34 +000018920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18921
18922if test $ac_cv_header_stdc = yes; then
18923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000018924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018925/* end confdefs.h. */
18926#include <string.h>
18927
18928_ACEOF
18929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000018930 $EGREP "memchr" >/dev/null 2>&1; then :
18931
cristy3ed852e2009-09-05 21:47:34 +000018932else
18933 ac_cv_header_stdc=no
18934fi
18935rm -f conftest*
18936
18937fi
18938
18939if test $ac_cv_header_stdc = yes; then
18940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000018941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018942/* end confdefs.h. */
18943#include <stdlib.h>
18944
18945_ACEOF
18946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000018947 $EGREP "free" >/dev/null 2>&1; then :
18948
cristy3ed852e2009-09-05 21:47:34 +000018949else
18950 ac_cv_header_stdc=no
18951fi
18952rm -f conftest*
18953
18954fi
18955
18956if test $ac_cv_header_stdc = yes; then
18957 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000018958 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018959 :
18960else
cristy8b350f62009-11-15 23:12:43 +000018961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018962/* end confdefs.h. */
18963#include <ctype.h>
18964#include <stdlib.h>
18965#if ((' ' & 0x0FF) == 0x020)
18966# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18967# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18968#else
18969# define ISLOWER(c) \
18970 (('a' <= (c) && (c) <= 'i') \
18971 || ('j' <= (c) && (c) <= 'r') \
18972 || ('s' <= (c) && (c) <= 'z'))
18973# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18974#endif
18975
18976#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18977int
18978main ()
18979{
18980 int i;
18981 for (i = 0; i < 256; i++)
18982 if (XOR (islower (i), ISLOWER (i))
18983 || toupper (i) != TOUPPER (i))
18984 return 2;
18985 return 0;
18986}
18987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018988if ac_fn_c_try_run "$LINENO"; then :
18989
cristy3ed852e2009-09-05 21:47:34 +000018990else
cristy8b350f62009-11-15 23:12:43 +000018991 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000018992fi
cristy8b350f62009-11-15 23:12:43 +000018993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18994 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018995fi
18996
cristy3ed852e2009-09-05 21:47:34 +000018997fi
18998fi
cristy8b350f62009-11-15 23:12:43 +000018999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000019000$as_echo "$ac_cv_header_stdc" >&6; }
19001if test $ac_cv_header_stdc = yes; then
19002
cristy8b350f62009-11-15 23:12:43 +000019003$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019004
19005fi
19006
19007if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000019008 { $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 +000019009 header files. Compilation cannot proceed. Please install the ANSI C
19010 headers and rerun this script." >&5
19011$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19012 header files. Compilation cannot proceed. Please install the ANSI C
19013 headers and rerun this script." >&2;};
19014fi
cristy3ed852e2009-09-05 21:47:34 +000019015ac_header_dirent=no
19016for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19017 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000019018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000019019$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000019021 $as_echo_n "(cached) " >&6
19022else
cristy8b350f62009-11-15 23:12:43 +000019023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019024/* end confdefs.h. */
19025#include <sys/types.h>
19026#include <$ac_hdr>
19027
19028int
19029main ()
19030{
19031if ((DIR *) 0)
19032return 0;
19033 ;
19034 return 0;
19035}
19036_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019037if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019038 eval "$as_ac_Header=yes"
19039else
cristy8b350f62009-11-15 23:12:43 +000019040 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000019041fi
cristy3ed852e2009-09-05 21:47:34 +000019042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19043fi
cristy8b350f62009-11-15 23:12:43 +000019044eval ac_res=\$$as_ac_Header
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000019046$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019047eval as_val=\$$as_ac_Header
19048 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019049 cat >>confdefs.h <<_ACEOF
19050#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19051_ACEOF
19052
19053ac_header_dirent=$ac_hdr; break
19054fi
19055
19056done
19057# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19058if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000019059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019060$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019061if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019062 $as_echo_n "(cached) " >&6
19063else
19064 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019066/* end confdefs.h. */
19067
19068/* Override any GCC internal prototype to avoid an error.
19069 Use char because int might match the return type of a GCC
19070 builtin and then its argument prototype would still apply. */
19071#ifdef __cplusplus
19072extern "C"
19073#endif
19074char opendir ();
19075int
19076main ()
19077{
19078return opendir ();
19079 ;
19080 return 0;
19081}
19082_ACEOF
19083for ac_lib in '' dir; do
19084 if test -z "$ac_lib"; then
19085 ac_res="none required"
19086 else
19087 ac_res=-l$ac_lib
19088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19089 fi
cristy8b350f62009-11-15 23:12:43 +000019090 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019091 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019092fi
cristy8b350f62009-11-15 23:12:43 +000019093rm -f core conftest.err conftest.$ac_objext \
19094 conftest$ac_exeext
19095 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019096 break
19097fi
19098done
cristy8b350f62009-11-15 23:12:43 +000019099if test "${ac_cv_search_opendir+set}" = set; then :
19100
cristy3ed852e2009-09-05 21:47:34 +000019101else
19102 ac_cv_search_opendir=no
19103fi
19104rm conftest.$ac_ext
19105LIBS=$ac_func_search_save_LIBS
19106fi
cristy8b350f62009-11-15 23:12:43 +000019107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019108$as_echo "$ac_cv_search_opendir" >&6; }
19109ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019110if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19112
19113fi
19114
19115else
cristy8b350f62009-11-15 23:12:43 +000019116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019117$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019118if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019119 $as_echo_n "(cached) " >&6
19120else
19121 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019123/* end confdefs.h. */
19124
19125/* Override any GCC internal prototype to avoid an error.
19126 Use char because int might match the return type of a GCC
19127 builtin and then its argument prototype would still apply. */
19128#ifdef __cplusplus
19129extern "C"
19130#endif
19131char opendir ();
19132int
19133main ()
19134{
19135return opendir ();
19136 ;
19137 return 0;
19138}
19139_ACEOF
19140for ac_lib in '' x; do
19141 if test -z "$ac_lib"; then
19142 ac_res="none required"
19143 else
19144 ac_res=-l$ac_lib
19145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19146 fi
cristy8b350f62009-11-15 23:12:43 +000019147 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019148 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019149fi
cristy8b350f62009-11-15 23:12:43 +000019150rm -f core conftest.err conftest.$ac_objext \
19151 conftest$ac_exeext
19152 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019153 break
19154fi
19155done
cristy8b350f62009-11-15 23:12:43 +000019156if test "${ac_cv_search_opendir+set}" = set; then :
19157
cristy3ed852e2009-09-05 21:47:34 +000019158else
19159 ac_cv_search_opendir=no
19160fi
19161rm conftest.$ac_ext
19162LIBS=$ac_func_search_save_LIBS
19163fi
cristy8b350f62009-11-15 23:12:43 +000019164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019165$as_echo "$ac_cv_search_opendir" >&6; }
19166ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019167if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19169
19170fi
19171
19172fi
19173
19174
19175# Check additional headers
cristy3ed852e2009-09-05 21:47:34 +000019176for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h
cristy8b350f62009-11-15 23:12:43 +000019177do :
19178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19179ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19180eval as_val=\$$as_ac_Header
19181 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019182 cat >>confdefs.h <<_ACEOF
19183#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19184_ACEOF
19185
19186fi
19187
19188done
19189
19190
19191########
19192#
19193# Checks for typedefs, structures, and compiler characteristics.
19194#
19195########
19196
cristy8b350f62009-11-15 23:12:43 +000019197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000019198$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019199if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019200 $as_echo_n "(cached) " >&6
19201else
cristy8b350f62009-11-15 23:12:43 +000019202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019203/* end confdefs.h. */
19204
19205#include <stdbool.h>
19206#ifndef bool
19207 "error: bool is not defined"
19208#endif
19209#ifndef false
19210 "error: false is not defined"
19211#endif
19212#if false
19213 "error: false is not 0"
19214#endif
19215#ifndef true
19216 "error: true is not defined"
19217#endif
19218#if true != 1
19219 "error: true is not 1"
19220#endif
19221#ifndef __bool_true_false_are_defined
19222 "error: __bool_true_false_are_defined is not defined"
19223#endif
19224
19225 struct s { _Bool s: 1; _Bool t; } s;
19226
19227 char a[true == 1 ? 1 : -1];
19228 char b[false == 0 ? 1 : -1];
19229 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19230 char d[(bool) 0.5 == true ? 1 : -1];
19231 bool e = &s;
19232 char f[(_Bool) 0.0 == false ? 1 : -1];
19233 char g[true];
19234 char h[sizeof (_Bool)];
19235 char i[sizeof s.t];
19236 enum { j = false, k = true, l = false * true, m = true * 256 };
19237 /* The following fails for
19238 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19239 _Bool n[m];
19240 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19241 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19242# if defined __xlc__ || defined __GNUC__
19243 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19244 reported by James Lemley on 2005-10-05; see
19245 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19246 This test is not quite right, since xlc is allowed to
19247 reject this program, as the initializer for xlcbug is
19248 not one of the forms that C requires support for.
19249 However, doing the test right would require a runtime
19250 test, and that would make cross-compilation harder.
19251 Let us hope that IBM fixes the xlc bug, and also adds
19252 support for this kind of constant expression. In the
19253 meantime, this test will reject xlc, which is OK, since
19254 our stdbool.h substitute should suffice. We also test
19255 this with GCC, where it should work, to detect more
19256 quickly whether someone messes up the test in the
19257 future. */
19258 char digs[] = "0123456789";
19259 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19260# endif
19261 /* Catch a bug in an HP-UX C compiler. See
19262 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19263 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19264 */
19265 _Bool q = true;
19266 _Bool *pq = &q;
19267
19268int
19269main ()
19270{
19271
19272 *pq |= q;
19273 *pq |= ! q;
19274 /* Refer to every declared value, to avoid compiler optimizations. */
19275 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19276 + !m + !n + !o + !p + !q + !pq);
19277
19278 ;
19279 return 0;
19280}
19281_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019282if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019283 ac_cv_header_stdbool_h=yes
19284else
cristy8b350f62009-11-15 23:12:43 +000019285 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000019286fi
cristy3ed852e2009-09-05 21:47:34 +000019287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19288fi
cristy8b350f62009-11-15 23:12:43 +000019289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000019290$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019291ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19292if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019293
19294cat >>confdefs.h <<_ACEOF
19295#define HAVE__BOOL 1
19296_ACEOF
19297
19298
19299fi
19300
19301if test $ac_cv_header_stdbool_h = yes; then
19302
cristy8b350f62009-11-15 23:12:43 +000019303$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019304
19305fi
19306
cristy8b350f62009-11-15 23:12:43 +000019307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019308$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019309if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019310 $as_echo_n "(cached) " >&6
19311else
cristy8b350f62009-11-15 23:12:43 +000019312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019313/* end confdefs.h. */
19314
19315int
19316main ()
19317{
19318
19319volatile int x;
19320int * volatile y = (int *) 0;
19321return !x && !y;
19322 ;
19323 return 0;
19324}
19325_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019326if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019327 ac_cv_c_volatile=yes
19328else
cristy8b350f62009-11-15 23:12:43 +000019329 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000019330fi
cristy3ed852e2009-09-05 21:47:34 +000019331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19332fi
cristy8b350f62009-11-15 23:12:43 +000019333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019334$as_echo "$ac_cv_c_volatile" >&6; }
19335if test $ac_cv_c_volatile = no; then
19336
cristy8b350f62009-11-15 23:12:43 +000019337$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019338
19339fi
19340
cristy8b350f62009-11-15 23:12:43 +000019341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000019342$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019343if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019344 $as_echo_n "(cached) " >&6
19345else
cristy8b350f62009-11-15 23:12:43 +000019346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019347/* end confdefs.h. */
19348#define x(y) #y
19349
19350char *s = x(teststring);
19351_ACEOF
19352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019353 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019354 ac_cv_c_stringize=no
19355else
19356 ac_cv_c_stringize=yes
19357fi
19358rm -f conftest*
19359
19360fi
cristy8b350f62009-11-15 23:12:43 +000019361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000019362$as_echo "$ac_cv_c_stringize" >&6; }
19363if test $ac_cv_c_stringize = yes; then
19364
cristy8b350f62009-11-15 23:12:43 +000019365$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019366
19367fi
19368
cristy8b350f62009-11-15 23:12:43 +000019369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019370$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019371if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019372 $as_echo_n "(cached) " >&6
19373else
cristy8b350f62009-11-15 23:12:43 +000019374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019375/* end confdefs.h. */
19376#include <sys/types.h>
19377#include <sys/stat.h>
19378
19379#if defined S_ISBLK && defined S_IFDIR
19380extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19381#endif
19382
19383#if defined S_ISBLK && defined S_IFCHR
19384extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19385#endif
19386
19387#if defined S_ISLNK && defined S_IFREG
19388extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19389#endif
19390
19391#if defined S_ISSOCK && defined S_IFREG
19392extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19393#endif
19394
19395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019396if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019397 ac_cv_header_stat_broken=no
19398else
cristy8b350f62009-11-15 23:12:43 +000019399 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000019400fi
cristy3ed852e2009-09-05 21:47:34 +000019401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19402fi
cristy8b350f62009-11-15 23:12:43 +000019403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019404$as_echo "$ac_cv_header_stat_broken" >&6; }
19405if test $ac_cv_header_stat_broken = yes; then
19406
cristy8b350f62009-11-15 23:12:43 +000019407$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019408
19409fi
19410
cristy8b350f62009-11-15 23:12:43 +000019411{ $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 +000019412$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019413if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019414 $as_echo_n "(cached) " >&6
19415else
cristy8b350f62009-11-15 23:12:43 +000019416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019417/* end confdefs.h. */
19418#include <sys/types.h>
19419#include <sys/time.h>
19420#include <time.h>
19421
19422int
19423main ()
19424{
19425if ((struct tm *) 0)
19426return 0;
19427 ;
19428 return 0;
19429}
19430_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019431if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019432 ac_cv_header_time=yes
19433else
cristy8b350f62009-11-15 23:12:43 +000019434 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000019435fi
cristy3ed852e2009-09-05 21:47:34 +000019436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19437fi
cristy8b350f62009-11-15 23:12:43 +000019438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000019439$as_echo "$ac_cv_header_time" >&6; }
19440if test $ac_cv_header_time = yes; then
19441
cristy8b350f62009-11-15 23:12:43 +000019442$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019443
19444fi
19445
cristy8b350f62009-11-15 23:12:43 +000019446{ $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 +000019447$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019448if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019449 $as_echo_n "(cached) " >&6
19450else
cristy8b350f62009-11-15 23:12:43 +000019451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019452/* end confdefs.h. */
19453#include <sys/types.h>
19454#include <time.h>
19455
19456int
19457main ()
19458{
19459struct tm tm;
19460 int *p = &tm.tm_sec;
19461 return !p;
19462 ;
19463 return 0;
19464}
19465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019466if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019467 ac_cv_struct_tm=time.h
19468else
cristy8b350f62009-11-15 23:12:43 +000019469 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000019470fi
cristy3ed852e2009-09-05 21:47:34 +000019471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19472fi
cristy8b350f62009-11-15 23:12:43 +000019473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000019474$as_echo "$ac_cv_struct_tm" >&6; }
19475if test $ac_cv_struct_tm = sys/time.h; then
19476
cristy8b350f62009-11-15 23:12:43 +000019477$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019478
19479fi
19480
cristy8b350f62009-11-15 23:12:43 +000019481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000019482$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019483if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019484 $as_echo_n "(cached) " >&6
19485else
19486 echo '#! /bin/cat
19487exit 69
19488' >conftest
19489chmod u+x conftest
19490(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
19491if test $? -ne 69; then
19492 ac_cv_sys_interpreter=yes
19493else
19494 ac_cv_sys_interpreter=no
19495fi
19496rm -f conftest
19497fi
cristy8b350f62009-11-15 23:12:43 +000019498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000019499$as_echo "$ac_cv_sys_interpreter" >&6; }
19500interpval=$ac_cv_sys_interpreter
19501
19502
19503# If the C compiler does not fully support the ANSI C qualifier const,
19504# define const to be empty.
cristy8b350f62009-11-15 23:12:43 +000019505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019506$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019507if test "${ac_cv_c_const+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019508 $as_echo_n "(cached) " >&6
19509else
cristy8b350f62009-11-15 23:12:43 +000019510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019511/* end confdefs.h. */
19512
19513int
19514main ()
19515{
19516/* FIXME: Include the comments suggested by Paul. */
19517#ifndef __cplusplus
19518 /* Ultrix mips cc rejects this. */
19519 typedef int charset[2];
19520 const charset cs;
19521 /* SunOS 4.1.1 cc rejects this. */
19522 char const *const *pcpcc;
19523 char **ppc;
19524 /* NEC SVR4.0.2 mips cc rejects this. */
19525 struct point {int x, y;};
19526 static struct point const zero = {0,0};
19527 /* AIX XL C 1.02.0.0 rejects this.
19528 It does not let you subtract one const X* pointer from another in
19529 an arm of an if-expression whose if-part is not a constant
19530 expression */
19531 const char *g = "string";
19532 pcpcc = &g + (g ? g-g : 0);
19533 /* HPUX 7.0 cc rejects these. */
19534 ++pcpcc;
19535 ppc = (char**) pcpcc;
19536 pcpcc = (char const *const *) ppc;
19537 { /* SCO 3.2v4 cc rejects this. */
19538 char *t;
19539 char const *s = 0 ? (char *) 0 : (char const *) 0;
19540
19541 *t++ = 0;
19542 if (s) return 0;
19543 }
19544 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19545 int x[] = {25, 17};
19546 const int *foo = &x[0];
19547 ++foo;
19548 }
19549 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19550 typedef const int *iptr;
19551 iptr p = 0;
19552 ++p;
19553 }
19554 { /* AIX XL C 1.02.0.0 rejects this saying
19555 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19556 struct s { int j; const int *ap[3]; };
19557 struct s *b; b->j = 5;
19558 }
19559 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19560 const int foo = 10;
19561 if (!foo) return 0;
19562 }
19563 return !cs[0] && !zero.x;
19564#endif
19565
19566 ;
19567 return 0;
19568}
19569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019570if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019571 ac_cv_c_const=yes
19572else
cristy8b350f62009-11-15 23:12:43 +000019573 ac_cv_c_const=no
cristy3ed852e2009-09-05 21:47:34 +000019574fi
cristy3ed852e2009-09-05 21:47:34 +000019575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576fi
cristy8b350f62009-11-15 23:12:43 +000019577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019578$as_echo "$ac_cv_c_const" >&6; }
19579if test $ac_cv_c_const = no; then
19580
cristy8b350f62009-11-15 23:12:43 +000019581$as_echo "#define const /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019582
19583fi
19584
19585
19586# If the C compiler supports the keyword inline, do nothing. Otherwise
19587# define inline to __inline__ or __inline if it accepts one of those,
19588# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000019589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019590$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019591if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019592 $as_echo_n "(cached) " >&6
19593else
19594 ac_cv_c_inline=no
19595for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000019596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019597/* end confdefs.h. */
19598#ifndef __cplusplus
19599typedef int foo_t;
19600static $ac_kw foo_t static_foo () {return 0; }
19601$ac_kw foo_t foo () {return 0; }
19602#endif
19603
19604_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019605if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019606 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019607fi
cristy3ed852e2009-09-05 21:47:34 +000019608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19609 test "$ac_cv_c_inline" != no && break
19610done
19611
19612fi
cristy8b350f62009-11-15 23:12:43 +000019613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019614$as_echo "$ac_cv_c_inline" >&6; }
19615
cristy3ed852e2009-09-05 21:47:34 +000019616case $ac_cv_c_inline in
19617 inline | yes) ;;
19618 *)
19619 case $ac_cv_c_inline in
19620 no) ac_val=;;
19621 *) ac_val=$ac_cv_c_inline;;
19622 esac
19623 cat >>confdefs.h <<_ACEOF
19624#ifndef __cplusplus
19625#define inline $ac_val
19626#endif
19627_ACEOF
19628 ;;
19629esac
19630
19631
19632# If the C compiler supports the keyword restrict, do nothing. Otherwise
19633# define restrict to __restrict__ or __restrict if it accepts one of those,
19634# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000019635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000019636$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019637if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019638 $as_echo_n "(cached) " >&6
19639else
19640 ac_cv_c_restrict=no
19641 # The order here caters to the fact that C++ does not require restrict.
19642 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000019643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019644/* end confdefs.h. */
19645typedef int * int_ptr;
19646 int foo (int_ptr $ac_kw ip) {
19647 return ip[0];
19648 }
19649int
19650main ()
19651{
19652int s[1];
19653 int * $ac_kw t = s;
19654 t[0] = 0;
19655 return foo(t)
19656 ;
19657 return 0;
19658}
19659_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019660if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019661 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019662fi
cristy3ed852e2009-09-05 21:47:34 +000019663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19664 test "$ac_cv_c_restrict" != no && break
19665 done
19666
19667fi
cristy8b350f62009-11-15 23:12:43 +000019668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000019669$as_echo "$ac_cv_c_restrict" >&6; }
19670
cristy3ed852e2009-09-05 21:47:34 +000019671 case $ac_cv_c_restrict in
19672 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000019673 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019674 ;;
19675 *) cat >>confdefs.h <<_ACEOF
19676#define restrict $ac_cv_c_restrict
19677_ACEOF
19678 ;;
19679 esac
19680
19681
19682# If words are stored with the most significant byte first (like
19683# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000019684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000019685$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019686if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019687 $as_echo_n "(cached) " >&6
19688else
19689 ac_cv_c_bigendian=unknown
19690 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000019691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019692/* end confdefs.h. */
19693#ifndef __APPLE_CC__
19694 not a universal capable compiler
19695 #endif
19696 typedef int dummy;
19697
19698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019699if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019700
19701 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000019702 # there are at least two -arch flags with different values.
19703 ac_arch=
19704 ac_prev=
19705 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19706 if test -n "$ac_prev"; then
19707 case $ac_word in
19708 i?86 | x86_64 | ppc | ppc64)
19709 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19710 ac_arch=$ac_word
19711 else
19712 ac_cv_c_bigendian=universal
19713 break
19714 fi
19715 ;;
19716 esac
19717 ac_prev=
19718 elif test "x$ac_word" = "x-arch"; then
19719 ac_prev=arch
19720 fi
19721 done
cristy3ed852e2009-09-05 21:47:34 +000019722fi
cristy3ed852e2009-09-05 21:47:34 +000019723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19724 if test $ac_cv_c_bigendian = unknown; then
19725 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000019726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019727/* end confdefs.h. */
19728#include <sys/types.h>
19729 #include <sys/param.h>
19730
19731int
19732main ()
19733{
19734#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19735 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19736 && LITTLE_ENDIAN)
19737 bogus endian macros
19738 #endif
19739
19740 ;
19741 return 0;
19742}
19743_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019744if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019745 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000019746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019747/* end confdefs.h. */
19748#include <sys/types.h>
19749 #include <sys/param.h>
19750
19751int
19752main ()
19753{
19754#if BYTE_ORDER != BIG_ENDIAN
19755 not big endian
19756 #endif
19757
19758 ;
19759 return 0;
19760}
19761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019762if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019763 ac_cv_c_bigendian=yes
19764else
cristy8b350f62009-11-15 23:12:43 +000019765 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000019766fi
cristy3ed852e2009-09-05 21:47:34 +000019767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019768fi
cristy3ed852e2009-09-05 21:47:34 +000019769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19770 fi
19771 if test $ac_cv_c_bigendian = unknown; then
19772 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000019773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019774/* end confdefs.h. */
19775#include <limits.h>
19776
19777int
19778main ()
19779{
19780#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
19781 bogus endian macros
19782 #endif
19783
19784 ;
19785 return 0;
19786}
19787_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019788if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019789 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000019790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019791/* end confdefs.h. */
19792#include <limits.h>
19793
19794int
19795main ()
19796{
19797#ifndef _BIG_ENDIAN
19798 not big endian
19799 #endif
19800
19801 ;
19802 return 0;
19803}
19804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019805if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019806 ac_cv_c_bigendian=yes
19807else
cristy8b350f62009-11-15 23:12:43 +000019808 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000019809fi
cristy3ed852e2009-09-05 21:47:34 +000019810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019811fi
cristy3ed852e2009-09-05 21:47:34 +000019812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19813 fi
19814 if test $ac_cv_c_bigendian = unknown; then
19815 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000019816 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019817 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000019818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019819/* end confdefs.h. */
19820short int ascii_mm[] =
19821 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19822 short int ascii_ii[] =
19823 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19824 int use_ascii (int i) {
19825 return ascii_mm[i] + ascii_ii[i];
19826 }
19827 short int ebcdic_ii[] =
19828 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19829 short int ebcdic_mm[] =
19830 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19831 int use_ebcdic (int i) {
19832 return ebcdic_mm[i] + ebcdic_ii[i];
19833 }
19834 extern int foo;
19835
19836int
19837main ()
19838{
19839return use_ascii (foo) == use_ebcdic (foo);
19840 ;
19841 return 0;
19842}
19843_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019844if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019845 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
19846 ac_cv_c_bigendian=yes
19847 fi
19848 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19849 if test "$ac_cv_c_bigendian" = unknown; then
19850 ac_cv_c_bigendian=no
19851 else
19852 # finding both strings is unlikely to happen, but who knows?
19853 ac_cv_c_bigendian=unknown
19854 fi
19855 fi
cristy3ed852e2009-09-05 21:47:34 +000019856fi
cristy3ed852e2009-09-05 21:47:34 +000019857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19858else
cristy8b350f62009-11-15 23:12:43 +000019859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019860/* end confdefs.h. */
19861$ac_includes_default
19862int
19863main ()
19864{
19865
19866 /* Are we little or big endian? From Harbison&Steele. */
19867 union
19868 {
19869 long int l;
19870 char c[sizeof (long int)];
19871 } u;
19872 u.l = 1;
19873 return u.c[sizeof (long int) - 1] == 1;
19874
19875 ;
19876 return 0;
19877}
19878_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019879if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019880 ac_cv_c_bigendian=no
19881else
cristy8b350f62009-11-15 23:12:43 +000019882 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000019883fi
cristy8b350f62009-11-15 23:12:43 +000019884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19885 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019886fi
19887
cristy3ed852e2009-09-05 21:47:34 +000019888 fi
19889fi
cristy8b350f62009-11-15 23:12:43 +000019890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000019891$as_echo "$ac_cv_c_bigendian" >&6; }
19892 case $ac_cv_c_bigendian in #(
19893 yes)
cristy8b350f62009-11-15 23:12:43 +000019894 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019895;; #(
19896 no)
19897 ;; #(
19898 universal)
19899
cristy8b350f62009-11-15 23:12:43 +000019900$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019901
19902 ;; #(
19903 *)
cristy8b350f62009-11-15 23:12:43 +000019904 as_fn_error "unknown endianness
19905 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019906 esac
19907
19908
19909# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000019910ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19911if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019912
cristy3ed852e2009-09-05 21:47:34 +000019913else
19914
19915cat >>confdefs.h <<_ACEOF
19916#define mode_t int
19917_ACEOF
19918
19919fi
19920
19921
19922# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000019923ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19924if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019925
cristy3ed852e2009-09-05 21:47:34 +000019926else
19927
19928cat >>confdefs.h <<_ACEOF
19929#define off_t long int
19930_ACEOF
19931
19932fi
19933
19934
19935# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000019936ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19937if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019938
cristy3ed852e2009-09-05 21:47:34 +000019939else
19940
19941cat >>confdefs.h <<_ACEOF
19942#define pid_t int
19943_ACEOF
19944
19945fi
19946
19947
19948# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000019949ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19950if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019951
cristy3ed852e2009-09-05 21:47:34 +000019952else
19953
19954cat >>confdefs.h <<_ACEOF
19955#define size_t unsigned int
19956_ACEOF
19957
19958fi
19959
19960
19961# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000019962ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
19963if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019964
cristy3ed852e2009-09-05 21:47:34 +000019965else
19966
19967cat >>confdefs.h <<_ACEOF
19968#define ssize_t int
19969_ACEOF
19970
19971fi
19972
19973
19974# If the C compiler supports a working long double type with more range
19975# or precision than the double type, define HAVE_LONG_DOUBLE.
19976
cristy8b350f62009-11-15 23:12:43 +000019977 { $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 +000019978$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019979if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019980 $as_echo_n "(cached) " >&6
19981else
cristy8b350f62009-11-15 23:12:43 +000019982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019983/* end confdefs.h. */
19984#include <float.h>
19985 long double const a[] =
19986 {
19987 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
19988 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
19989 };
19990 long double
19991 f (long double x)
19992 {
19993 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
19994 + (x ? f (x) : 'c'));
19995 }
19996
19997int
19998main ()
19999{
20000static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20001 + (DBL_MANT_DIG < LDBL_MANT_DIG)
20002 - (LDBL_MAX_EXP < DBL_MAX_EXP)
20003 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20004 && (int) LDBL_EPSILON == 0
20005 )];
20006test_array [0] = 0
20007
20008 ;
20009 return 0;
20010}
20011_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020012if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020013 ac_cv_type_long_double_wider=yes
20014else
cristy8b350f62009-11-15 23:12:43 +000020015 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000020016fi
cristy3ed852e2009-09-05 21:47:34 +000020017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20018fi
cristy8b350f62009-11-15 23:12:43 +000020019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000020020$as_echo "$ac_cv_type_long_double_wider" >&6; }
20021 if test $ac_cv_type_long_double_wider = yes; then
20022
cristy8b350f62009-11-15 23:12:43 +000020023$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020024
20025 fi
20026
20027
20028# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20029# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000020030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020031$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020032if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020033 $as_echo_n "(cached) " >&6
20034else
cristy8b350f62009-11-15 23:12:43 +000020035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020036/* end confdefs.h. */
20037$ac_includes_default
20038int
20039main ()
20040{
20041static int test_array [1 - 2 * !(((char) -1) < 0)];
20042test_array [0] = 0
20043
20044 ;
20045 return 0;
20046}
20047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020048if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020049 ac_cv_c_char_unsigned=no
20050else
cristy8b350f62009-11-15 23:12:43 +000020051 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000020052fi
cristy3ed852e2009-09-05 21:47:34 +000020053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20054fi
cristy8b350f62009-11-15 23:12:43 +000020055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020056$as_echo "$ac_cv_c_char_unsigned" >&6; }
20057if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000020058 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020059
20060fi
20061
20062
20063# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20064# The cast to long int works around a bug in the HP C Compiler
20065# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20066# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20067# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020069$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020070if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020071 $as_echo_n "(cached) " >&6
20072else
cristy8b350f62009-11-15 23:12:43 +000020073 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 +000020074
cristy3ed852e2009-09-05 21:47:34 +000020075else
cristy8b350f62009-11-15 23:12:43 +000020076 if test "$ac_cv_type_signed_short" = yes; then
20077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020079{ as_fn_set_status 77
20080as_fn_error "cannot compute sizeof (signed short)
20081See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020082 else
20083 ac_cv_sizeof_signed_short=0
20084 fi
20085fi
cristy8b350f62009-11-15 23:12:43 +000020086
cristy3ed852e2009-09-05 21:47:34 +000020087fi
cristy8b350f62009-11-15 23:12:43 +000020088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020089$as_echo "$ac_cv_sizeof_signed_short" >&6; }
20090
20091
20092
20093cat >>confdefs.h <<_ACEOF
20094#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
20095_ACEOF
20096
20097
20098
20099# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
20100# The cast to long int works around a bug in the HP C Compiler
20101# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20102# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20103# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020105$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020106if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020107 $as_echo_n "(cached) " >&6
20108else
cristy8b350f62009-11-15 23:12:43 +000020109 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 +000020110
cristy3ed852e2009-09-05 21:47:34 +000020111else
cristy8b350f62009-11-15 23:12:43 +000020112 if test "$ac_cv_type_unsigned_short" = yes; then
20113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020115{ as_fn_set_status 77
20116as_fn_error "cannot compute sizeof (unsigned short)
20117See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020118 else
20119 ac_cv_sizeof_unsigned_short=0
20120 fi
20121fi
cristy8b350f62009-11-15 23:12:43 +000020122
cristy3ed852e2009-09-05 21:47:34 +000020123fi
cristy8b350f62009-11-15 23:12:43 +000020124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020125$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20126
20127
20128
20129cat >>confdefs.h <<_ACEOF
20130#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20131_ACEOF
20132
20133
20134
20135# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
20136# The cast to long int works around a bug in the HP C Compiler
20137# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20138# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20139# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020141$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020142if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020143 $as_echo_n "(cached) " >&6
20144else
cristy8b350f62009-11-15 23:12:43 +000020145 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 +000020146
cristy3ed852e2009-09-05 21:47:34 +000020147else
cristy8b350f62009-11-15 23:12:43 +000020148 if test "$ac_cv_type_signed_int" = yes; then
20149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020151{ as_fn_set_status 77
20152as_fn_error "cannot compute sizeof (signed int)
20153See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020154 else
20155 ac_cv_sizeof_signed_int=0
20156 fi
20157fi
cristy8b350f62009-11-15 23:12:43 +000020158
cristy3ed852e2009-09-05 21:47:34 +000020159fi
cristy8b350f62009-11-15 23:12:43 +000020160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020161$as_echo "$ac_cv_sizeof_signed_int" >&6; }
20162
20163
20164
20165cat >>confdefs.h <<_ACEOF
20166#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
20167_ACEOF
20168
20169
20170
20171# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
20172# The cast to long int works around a bug in the HP C Compiler
20173# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20174# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20175# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020177$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020178if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020179 $as_echo_n "(cached) " >&6
20180else
cristy8b350f62009-11-15 23:12:43 +000020181 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 +000020182
cristy3ed852e2009-09-05 21:47:34 +000020183else
cristy8b350f62009-11-15 23:12:43 +000020184 if test "$ac_cv_type_unsigned_int" = yes; then
20185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020187{ as_fn_set_status 77
20188as_fn_error "cannot compute sizeof (unsigned int)
20189See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020190 else
20191 ac_cv_sizeof_unsigned_int=0
20192 fi
20193fi
cristy8b350f62009-11-15 23:12:43 +000020194
cristy3ed852e2009-09-05 21:47:34 +000020195fi
cristy8b350f62009-11-15 23:12:43 +000020196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020197$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20198
20199
20200
20201cat >>confdefs.h <<_ACEOF
20202#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20203_ACEOF
20204
20205
20206
20207# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
20208# The cast to long int works around a bug in the HP C Compiler
20209# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20210# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20211# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020213$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020214if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020215 $as_echo_n "(cached) " >&6
20216else
cristy8b350f62009-11-15 23:12:43 +000020217 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 +000020218
cristy3ed852e2009-09-05 21:47:34 +000020219else
cristy8b350f62009-11-15 23:12:43 +000020220 if test "$ac_cv_type_signed_long" = yes; then
20221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020223{ as_fn_set_status 77
20224as_fn_error "cannot compute sizeof (signed long)
20225See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020226 else
20227 ac_cv_sizeof_signed_long=0
20228 fi
20229fi
cristy8b350f62009-11-15 23:12:43 +000020230
cristy3ed852e2009-09-05 21:47:34 +000020231fi
cristy8b350f62009-11-15 23:12:43 +000020232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020233$as_echo "$ac_cv_sizeof_signed_long" >&6; }
20234
20235
20236
20237cat >>confdefs.h <<_ACEOF
20238#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
20239_ACEOF
20240
20241
20242
20243# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
20244# The cast to long int works around a bug in the HP C Compiler
20245# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20246# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20247# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020249$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020250if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020251 $as_echo_n "(cached) " >&6
20252else
cristy8b350f62009-11-15 23:12:43 +000020253 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 +000020254
cristy3ed852e2009-09-05 21:47:34 +000020255else
cristy8b350f62009-11-15 23:12:43 +000020256 if test "$ac_cv_type_unsigned_long" = yes; then
20257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020259{ as_fn_set_status 77
20260as_fn_error "cannot compute sizeof (unsigned long)
20261See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020262 else
20263 ac_cv_sizeof_unsigned_long=0
20264 fi
20265fi
cristy8b350f62009-11-15 23:12:43 +000020266
cristy3ed852e2009-09-05 21:47:34 +000020267fi
cristy8b350f62009-11-15 23:12:43 +000020268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020269$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20270
20271
20272
20273cat >>confdefs.h <<_ACEOF
20274#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20275_ACEOF
20276
20277
20278
20279# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
20280# 'signed long long' is not supported then the value defined is zero.
20281# The cast to long int works around a bug in the HP C Compiler
20282# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20283# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20284# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020286$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020287if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020288 $as_echo_n "(cached) " >&6
20289else
cristy8b350f62009-11-15 23:12:43 +000020290 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 +000020291
cristy3ed852e2009-09-05 21:47:34 +000020292else
cristy8b350f62009-11-15 23:12:43 +000020293 if test "$ac_cv_type_signed_long_long" = yes; then
20294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020296{ as_fn_set_status 77
20297as_fn_error "cannot compute sizeof (signed long long)
20298See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020299 else
20300 ac_cv_sizeof_signed_long_long=0
20301 fi
20302fi
cristy8b350f62009-11-15 23:12:43 +000020303
cristy3ed852e2009-09-05 21:47:34 +000020304fi
cristy8b350f62009-11-15 23:12:43 +000020305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020306$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
20307
20308
20309
20310cat >>confdefs.h <<_ACEOF
20311#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
20312_ACEOF
20313
20314
20315
20316# Obtain size of a 'unsigned long long' and define as
20317# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
20318# supported then the value defined is zero.
20319# The cast to long int works around a bug in the HP C Compiler
20320# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20321# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20322# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020324$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020325if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020326 $as_echo_n "(cached) " >&6
20327else
cristy8b350f62009-11-15 23:12:43 +000020328 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 +000020329
cristy3ed852e2009-09-05 21:47:34 +000020330else
cristy8b350f62009-11-15 23:12:43 +000020331 if test "$ac_cv_type_unsigned_long_long" = yes; then
20332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020334{ as_fn_set_status 77
20335as_fn_error "cannot compute sizeof (unsigned long long)
20336See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020337 else
20338 ac_cv_sizeof_unsigned_long_long=0
20339 fi
20340fi
cristy8b350f62009-11-15 23:12:43 +000020341
cristy3ed852e2009-09-05 21:47:34 +000020342fi
cristy8b350f62009-11-15 23:12:43 +000020343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020344$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20345
20346
20347
20348cat >>confdefs.h <<_ACEOF
20349#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20350_ACEOF
20351
20352
20353
20354# Obtain size of off_t and define as SIZEOF_OFF_T
20355# The cast to long int works around a bug in the HP C Compiler
20356# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20357# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20358# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020360$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020361if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020362 $as_echo_n "(cached) " >&6
20363else
cristy8b350f62009-11-15 23:12:43 +000020364 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 +000020365
cristy3ed852e2009-09-05 21:47:34 +000020366else
cristy8b350f62009-11-15 23:12:43 +000020367 if test "$ac_cv_type_off_t" = yes; then
20368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020370{ as_fn_set_status 77
20371as_fn_error "cannot compute sizeof (off_t)
20372See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020373 else
20374 ac_cv_sizeof_off_t=0
20375 fi
20376fi
cristy8b350f62009-11-15 23:12:43 +000020377
cristy3ed852e2009-09-05 21:47:34 +000020378fi
cristy8b350f62009-11-15 23:12:43 +000020379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020380$as_echo "$ac_cv_sizeof_off_t" >&6; }
20381
20382
20383
20384cat >>confdefs.h <<_ACEOF
20385#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20386_ACEOF
20387
20388
20389
20390# Obtain size of size_t and define as SIZEOF_SIZE_T
20391# The cast to long int works around a bug in the HP C Compiler
20392# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20393# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20394# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020396$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020397if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020398 $as_echo_n "(cached) " >&6
20399else
cristy8b350f62009-11-15 23:12:43 +000020400 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 +000020401
cristy3ed852e2009-09-05 21:47:34 +000020402else
cristy8b350f62009-11-15 23:12:43 +000020403 if test "$ac_cv_type_size_t" = yes; then
20404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020406{ as_fn_set_status 77
20407as_fn_error "cannot compute sizeof (size_t)
20408See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020409 else
20410 ac_cv_sizeof_size_t=0
20411 fi
20412fi
cristy8b350f62009-11-15 23:12:43 +000020413
cristy3ed852e2009-09-05 21:47:34 +000020414fi
cristy8b350f62009-11-15 23:12:43 +000020415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020416$as_echo "$ac_cv_sizeof_size_t" >&6; }
20417
20418
20419
20420cat >>confdefs.h <<_ACEOF
20421#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20422_ACEOF
20423
20424
20425
20426# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
20427# The cast to long int works around a bug in the HP C Compiler
20428# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20429# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20430# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000020432$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020433if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020434 $as_echo_n "(cached) " >&6
20435else
cristy8b350f62009-11-15 23:12:43 +000020436 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 +000020437
cristy3ed852e2009-09-05 21:47:34 +000020438else
cristy8b350f62009-11-15 23:12:43 +000020439 if test "$ac_cv_type_unsigned_intp" = yes; then
20440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020442{ as_fn_set_status 77
20443as_fn_error "cannot compute sizeof (unsigned int*)
20444See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020445 else
20446 ac_cv_sizeof_unsigned_intp=0
20447 fi
20448fi
cristy8b350f62009-11-15 23:12:43 +000020449
cristy3ed852e2009-09-05 21:47:34 +000020450fi
cristy8b350f62009-11-15 23:12:43 +000020451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000020452$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
20453
20454
20455
20456cat >>confdefs.h <<_ACEOF
20457#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
20458_ACEOF
20459
20460
20461
20462#
20463# Compute sized types for current CPU and compiler options.
20464#
20465
cristy8b350f62009-11-15 23:12:43 +000020466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020467$as_echo_n "checking for signed 8-bit type... " >&6; }
20468INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000020469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020470$as_echo "$INT8_T" >&6; }
20471
20472
cristy8b350f62009-11-15 23:12:43 +000020473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020474$as_echo_n "checking for unsigned 8-bit type... " >&6; }
20475UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000020476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020477$as_echo "$UINT8_T" >&6; }
20478
20479
cristy8b350f62009-11-15 23:12:43 +000020480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020481$as_echo_n "checking for signed 16-bit type... " >&6; }
20482INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000020483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020484$as_echo "$INT16_T" >&6; }
20485
20486
cristy8b350f62009-11-15 23:12:43 +000020487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020488$as_echo_n "checking for unsigned 16-bit type... " >&6; }
20489UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000020490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020491$as_echo "$UINT16_T" >&6; }
20492
20493
cristy8b350f62009-11-15 23:12:43 +000020494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020495$as_echo_n "checking for signed 32-bit type... " >&6; }
20496INT32_T='none'
20497if test $ac_cv_sizeof_signed_int -eq 4; then
20498 INT32_T='signed int'
20499elif test $ac_cv_sizeof_signed_long -eq 4; then
20500 INT32_T='signed long'
20501fi
cristy8b350f62009-11-15 23:12:43 +000020502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020503$as_echo "$INT32_T" >&6; }
20504
20505
cristy8b350f62009-11-15 23:12:43 +000020506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020507$as_echo_n "checking for unsigned 32-bit type... " >&6; }
20508UINT32_T='none'
20509if test $ac_cv_sizeof_unsigned_int -eq 4; then
20510 UINT32_T='unsigned int'
20511elif test $ac_cv_sizeof_unsigned_long -eq 4; then
20512 UINT32_T='unsigned long'
20513fi
cristy8b350f62009-11-15 23:12:43 +000020514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020515$as_echo "$UINT32_T" >&6; }
20516
20517
cristy8b350f62009-11-15 23:12:43 +000020518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020519$as_echo_n "checking for signed 64-bit type... " >&6; }
20520INT64_T='none'
20521if test $ac_cv_sizeof_signed_long -eq 8; then
20522 INT64_T='signed long'
20523elif test $ac_cv_sizeof_signed_long_long -eq 8; then
20524 INT64_T='signed long long'
20525fi
cristy8b350f62009-11-15 23:12:43 +000020526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020527$as_echo "$INT64_T" >&6; }
20528
20529
cristy8b350f62009-11-15 23:12:43 +000020530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020531$as_echo_n "checking for unsigned 64-bit type... " >&6; }
20532UINT64_T='none'
20533if test $ac_cv_sizeof_unsigned_long -eq 8; then
20534 UINT64_T='unsigned long'
20535elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
20536 UINT64_T='unsigned long long'
20537fi
cristy8b350f62009-11-15 23:12:43 +000020538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020539$as_echo "$UINT64_T" >&6; }
20540
20541
cristy8b350f62009-11-15 23:12:43 +000020542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020543$as_echo_n "checking for unsigned maximum type... " >&6; }
20544UINTMAX_T='none'
20545if test "$UINT64_T" != 'none'; then
20546 UINTMAX_T=$UINT64_T
20547elif test "$UINT32_T" != 'none'; then
20548 UINTMAX_T=$UINT32_T
20549fi
cristy8b350f62009-11-15 23:12:43 +000020550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020551$as_echo "$UINTMAX_T" >&6; }
20552
20553
cristy8b350f62009-11-15 23:12:43 +000020554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020555$as_echo_n "checking for pointer difference type... " >&6; }
20556UINTPTR_T='none'
20557if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
20558 UINTPTR_T='unsigned long'
20559elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
20560 UINTPTR_T='unsigned long long'
20561fi
cristy8b350f62009-11-15 23:12:43 +000020562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020563$as_echo "$UINTPTR_T" >&6; }
20564
20565
cristy8b350f62009-11-15 23:12:43 +000020566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020567$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020569/* end confdefs.h. */
20570
20571int
20572main ()
20573{
20574{ const char *func = __func__; return(func != 0 ? 0 : 1); }
20575 ;
20576 return 0;
20577}
20578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020579if ac_fn_c_try_compile "$LINENO"; then :
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020581$as_echo "yes" >&6; }
20582else
cristy8b350f62009-11-15 23:12:43 +000020583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020584$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020586$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020588/* end confdefs.h. */
20589
20590int
20591main ()
20592{
20593{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
20594 ;
20595 return 0;
20596}
20597_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020598if ac_fn_c_try_compile "$LINENO"; then :
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020600$as_echo "yes" >&6; }
20601
cristy8b350f62009-11-15 23:12:43 +000020602$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020603
20604else
cristy8b350f62009-11-15 23:12:43 +000020605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020606$as_echo "no" >&6; }
20607
cristy8b350f62009-11-15 23:12:43 +000020608$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020609
20610fi
cristy3ed852e2009-09-05 21:47:34 +000020611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20612fi
cristy3ed852e2009-09-05 21:47:34 +000020613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20614
20615########
20616#
20617# Check for functions
20618#
20619########
cristy3ed852e2009-09-05 21:47:34 +000020620for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000020621do :
20622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20623ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20624eval as_val=\$$as_ac_Header
20625 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020626 cat >>confdefs.h <<_ACEOF
20627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20628_ACEOF
20629
20630fi
20631
20632done
20633
cristy3ed852e2009-09-05 21:47:34 +000020634for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000020635do :
20636 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20637if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020638 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020639#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000020640_ACEOF
20641
20642fi
20643done
20644
cristy8b350f62009-11-15 23:12:43 +000020645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000020646$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020647if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020648 $as_echo_n "(cached) " >&6
20649else
cristy8b350f62009-11-15 23:12:43 +000020650 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020651 magick_cv_func_mmap_fileio=no
20652else
cristy8b350f62009-11-15 23:12:43 +000020653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020654/* end confdefs.h. */
20655$ac_includes_default
20656/* malloc might have been renamed as rpl_malloc. */
20657#undef malloc
20658
20659/*
20660 This test is derived from GNU Autoconf's similar macro.
20661 The purpose of this test is to verify that files may be memory
20662 mapped, and that memory mapping and file I/O are coherent.
20663
20664 The test creates a test file, memory maps the file, updates
20665 the file using the memory map, and then reads the file using
20666 file I/O to verify that the file contains the updates.
20667*/
20668
20669#include <fcntl.h>
20670#include <sys/mman.h>
20671
20672#if !STDC_HEADERS && !HAVE_STDLIB_H
20673char *malloc ();
20674#endif
20675
20676/* This mess was copied from the GNU getpagesize.h. */
20677#if !HAVE_GETPAGESIZE
20678/* Assume that all systems that can run configure have sys/param.h. */
20679# if !HAVE_SYS_PARAM_H
20680# define HAVE_SYS_PARAM_H 1
20681# endif
20682
20683# ifdef _SC_PAGESIZE
20684# define getpagesize() sysconf(_SC_PAGESIZE)
20685# else /* no _SC_PAGESIZE */
20686# if HAVE_SYS_PARAM_H
20687# include <sys/param.h>
20688# ifdef EXEC_PAGESIZE
20689# define getpagesize() EXEC_PAGESIZE
20690# else /* no EXEC_PAGESIZE */
20691# ifdef NBPG
20692# define getpagesize() NBPG * CLSIZE
20693# ifndef CLSIZE
20694# define CLSIZE 1
20695# endif /* no CLSIZE */
20696# else /* no NBPG */
20697# ifdef NBPC
20698# define getpagesize() NBPC
20699# else /* no NBPC */
20700# ifdef PAGESIZE
20701# define getpagesize() PAGESIZE
20702# endif /* PAGESIZE */
20703# endif /* no NBPC */
20704# endif /* no NBPG */
20705# endif /* no EXEC_PAGESIZE */
20706# else /* no HAVE_SYS_PARAM_H */
20707# define getpagesize() 8192 /* punt totally */
20708# endif /* no HAVE_SYS_PARAM_H */
20709# endif /* no _SC_PAGESIZE */
20710
20711#endif /* no HAVE_GETPAGESIZE */
20712
20713int
20714main ()
20715{
20716 char *data, *data2, *data3;
20717 int i, pagesize;
20718 int fd;
20719
20720 pagesize = getpagesize ();
20721
20722 /* First, make a file with some known garbage in it. */
20723 data = (char *) malloc (pagesize);
20724 if (!data)
20725 exit (1);
20726 for (i = 0; i < pagesize; ++i)
20727 *(data + i) = rand ();
20728 umask (0);
20729 fd = creat ("conftest.mmap", 0600);
20730 if (fd < 0)
20731 exit (1);
20732 if (write (fd, data, pagesize) != pagesize)
20733 exit (1);
20734 close (fd);
20735
20736 /* Mmap the file as read/write/shared and verify that we see the
20737 same garbage. */
20738 fd = open ("conftest.mmap", O_RDWR);
20739 if (fd < 0)
20740 exit (1);
20741 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
20742 if (data2 == 0)
20743 exit (1);
20744 for (i = 0; i < pagesize; ++i)
20745 if (*(data + i) != *(data2 + i))
20746 exit (1);
20747
20748 /* Finally, make sure that changes to the mapped area
20749 percolate back to the file as seen by read(). */
20750 for (i = 0; i < pagesize; ++i)
20751 *(data2 + i) = *(data2 + i) + 1;
20752 data3 = (char *) malloc (pagesize);
20753 if (!data3)
20754 exit (1);
20755 if (read (fd, data3, pagesize) != pagesize)
20756 exit (1);
20757 for (i = 0; i < pagesize; ++i)
20758 if (*(data2 + i) != *(data3 + i))
20759 exit (1);
20760 close (fd);
20761 exit (0);
20762}
20763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020764if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020765 magick_cv_func_mmap_fileio=yes
20766else
cristy8b350f62009-11-15 23:12:43 +000020767 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000020768fi
cristy8b350f62009-11-15 23:12:43 +000020769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20770 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020771fi
20772
cristy3ed852e2009-09-05 21:47:34 +000020773fi
cristy8b350f62009-11-15 23:12:43 +000020774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000020775$as_echo "$magick_cv_func_mmap_fileio" >&6; }
20776if test $magick_cv_func_mmap_fileio = yes; then
20777
cristy8b350f62009-11-15 23:12:43 +000020778$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020779
20780fi
20781rm -f conftest.mmap
20782
cristy8b350f62009-11-15 23:12:43 +000020783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000020784$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020785if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020786 $as_echo_n "(cached) " >&6
20787else
cristy8b350f62009-11-15 23:12:43 +000020788 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020789 ac_cv_func_closedir_void=yes
20790else
cristy8b350f62009-11-15 23:12:43 +000020791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020792/* end confdefs.h. */
20793$ac_includes_default
20794#include <$ac_header_dirent>
20795#ifndef __cplusplus
20796int closedir ();
20797#endif
20798
20799int
20800main ()
20801{
20802return closedir (opendir (".")) != 0;
20803 ;
20804 return 0;
20805}
20806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020807if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020808 ac_cv_func_closedir_void=no
20809else
cristy8b350f62009-11-15 23:12:43 +000020810 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000020811fi
cristy8b350f62009-11-15 23:12:43 +000020812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20813 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020814fi
20815
cristy3ed852e2009-09-05 21:47:34 +000020816fi
cristy8b350f62009-11-15 23:12:43 +000020817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000020818$as_echo "$ac_cv_func_closedir_void" >&6; }
20819if test $ac_cv_func_closedir_void = yes; then
20820
cristy8b350f62009-11-15 23:12:43 +000020821$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020822
20823fi
20824
cristy3ed852e2009-09-05 21:47:34 +000020825for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000020826do :
20827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20828ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20829eval as_val=\$$as_ac_Header
20830 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020831 cat >>confdefs.h <<_ACEOF
20832#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20833_ACEOF
20834
20835fi
20836
20837done
20838
cristy3ed852e2009-09-05 21:47:34 +000020839for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000020840do :
20841 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20842if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020843 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020844#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000020845_ACEOF
20846
20847fi
20848done
20849
cristy8b350f62009-11-15 23:12:43 +000020850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000020851$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020852if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020853 $as_echo_n "(cached) " >&6
20854else
cristy8b350f62009-11-15 23:12:43 +000020855 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020856 ac_cv_func_mmap_fixed_mapped=no
20857else
cristy8b350f62009-11-15 23:12:43 +000020858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020859/* end confdefs.h. */
20860$ac_includes_default
20861/* malloc might have been renamed as rpl_malloc. */
20862#undef malloc
20863
20864/* Thanks to Mike Haertel and Jim Avera for this test.
20865 Here is a matrix of mmap possibilities:
20866 mmap private not fixed
20867 mmap private fixed at somewhere currently unmapped
20868 mmap private fixed at somewhere already mapped
20869 mmap shared not fixed
20870 mmap shared fixed at somewhere currently unmapped
20871 mmap shared fixed at somewhere already mapped
20872 For private mappings, we should verify that changes cannot be read()
20873 back from the file, nor mmap's back from the file at a different
20874 address. (There have been systems where private was not correctly
20875 implemented like the infamous i386 svr4.0, and systems where the
20876 VM page cache was not coherent with the file system buffer cache
20877 like early versions of FreeBSD and possibly contemporary NetBSD.)
20878 For shared mappings, we should conversely verify that changes get
20879 propagated back to all the places they're supposed to be.
20880
20881 Grep wants private fixed already mapped.
20882 The main things grep needs to know about mmap are:
20883 * does it exist and is it safe to write into the mmap'd area
20884 * how to use it (BSD variants) */
20885
20886#include <fcntl.h>
20887#include <sys/mman.h>
20888
20889#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20890char *malloc ();
20891#endif
20892
20893/* This mess was copied from the GNU getpagesize.h. */
20894#ifndef HAVE_GETPAGESIZE
20895/* Assume that all systems that can run configure have sys/param.h. */
20896# ifndef HAVE_SYS_PARAM_H
20897# define HAVE_SYS_PARAM_H 1
20898# endif
20899
20900# ifdef _SC_PAGESIZE
20901# define getpagesize() sysconf(_SC_PAGESIZE)
20902# else /* no _SC_PAGESIZE */
20903# ifdef HAVE_SYS_PARAM_H
20904# include <sys/param.h>
20905# ifdef EXEC_PAGESIZE
20906# define getpagesize() EXEC_PAGESIZE
20907# else /* no EXEC_PAGESIZE */
20908# ifdef NBPG
20909# define getpagesize() NBPG * CLSIZE
20910# ifndef CLSIZE
20911# define CLSIZE 1
20912# endif /* no CLSIZE */
20913# else /* no NBPG */
20914# ifdef NBPC
20915# define getpagesize() NBPC
20916# else /* no NBPC */
20917# ifdef PAGESIZE
20918# define getpagesize() PAGESIZE
20919# endif /* PAGESIZE */
20920# endif /* no NBPC */
20921# endif /* no NBPG */
20922# endif /* no EXEC_PAGESIZE */
20923# else /* no HAVE_SYS_PARAM_H */
20924# define getpagesize() 8192 /* punt totally */
20925# endif /* no HAVE_SYS_PARAM_H */
20926# endif /* no _SC_PAGESIZE */
20927
20928#endif /* no HAVE_GETPAGESIZE */
20929
20930int
20931main ()
20932{
20933 char *data, *data2, *data3;
20934 int i, pagesize;
20935 int fd;
20936
20937 pagesize = getpagesize ();
20938
20939 /* First, make a file with some known garbage in it. */
20940 data = (char *) malloc (pagesize);
20941 if (!data)
20942 return 1;
20943 for (i = 0; i < pagesize; ++i)
20944 *(data + i) = rand ();
20945 umask (0);
20946 fd = creat ("conftest.mmap", 0600);
20947 if (fd < 0)
20948 return 1;
20949 if (write (fd, data, pagesize) != pagesize)
20950 return 1;
20951 close (fd);
20952
20953 /* Next, try to mmap the file at a fixed address which already has
20954 something else allocated at it. If we can, also make sure that
20955 we see the same garbage. */
20956 fd = open ("conftest.mmap", O_RDWR);
20957 if (fd < 0)
20958 return 1;
20959 data2 = (char *) malloc (2 * pagesize);
20960 if (!data2)
20961 return 1;
20962 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20963 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20964 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20965 return 1;
20966 for (i = 0; i < pagesize; ++i)
20967 if (*(data + i) != *(data2 + i))
20968 return 1;
20969
20970 /* Finally, make sure that changes to the mapped area do not
20971 percolate back to the file as seen by read(). (This is a bug on
20972 some variants of i386 svr4.0.) */
20973 for (i = 0; i < pagesize; ++i)
20974 *(data2 + i) = *(data2 + i) + 1;
20975 data3 = (char *) malloc (pagesize);
20976 if (!data3)
20977 return 1;
20978 if (read (fd, data3, pagesize) != pagesize)
20979 return 1;
20980 for (i = 0; i < pagesize; ++i)
20981 if (*(data + i) != *(data3 + i))
20982 return 1;
20983 close (fd);
20984 return 0;
20985}
20986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020987if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020988 ac_cv_func_mmap_fixed_mapped=yes
20989else
cristy8b350f62009-11-15 23:12:43 +000020990 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000020991fi
cristy8b350f62009-11-15 23:12:43 +000020992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20993 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020994fi
20995
cristy3ed852e2009-09-05 21:47:34 +000020996fi
cristy8b350f62009-11-15 23:12:43 +000020997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000020998$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20999if test $ac_cv_func_mmap_fixed_mapped = yes; then
21000
cristy8b350f62009-11-15 23:12:43 +000021001$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021002
21003fi
21004rm -f conftest.mmap
21005
cristy3ed852e2009-09-05 21:47:34 +000021006for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000021007do :
21008 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21009if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021010 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021011#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000021012_ACEOF
21013
21014fi
21015
21016done
21017
cristy3ed852e2009-09-05 21:47:34 +000021018for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000021019do :
21020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21021ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21022eval as_val=\$$as_ac_var
21023 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021024 cat >>confdefs.h <<_ACEOF
21025#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21026_ACEOF
21027
21028fi
21029done
21030
21031if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021033$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021034if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021035 $as_echo_n "(cached) " >&6
21036else
cristy8b350f62009-11-15 23:12:43 +000021037 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021038 ac_cv_func_fork_works=cross
21039else
cristy8b350f62009-11-15 23:12:43 +000021040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021041/* end confdefs.h. */
21042$ac_includes_default
21043int
21044main ()
21045{
21046
21047 /* By Ruediger Kuhlmann. */
21048 return fork () < 0;
21049
21050 ;
21051 return 0;
21052}
21053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021054if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021055 ac_cv_func_fork_works=yes
21056else
cristy8b350f62009-11-15 23:12:43 +000021057 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021058fi
cristy8b350f62009-11-15 23:12:43 +000021059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21060 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021061fi
21062
cristy3ed852e2009-09-05 21:47:34 +000021063fi
cristy8b350f62009-11-15 23:12:43 +000021064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021065$as_echo "$ac_cv_func_fork_works" >&6; }
21066
21067else
21068 ac_cv_func_fork_works=$ac_cv_func_fork
21069fi
21070if test "x$ac_cv_func_fork_works" = xcross; then
21071 case $host in
21072 *-*-amigaos* | *-*-msdosdjgpp*)
21073 # Override, as these systems have only a dummy fork() stub
21074 ac_cv_func_fork_works=no
21075 ;;
21076 *)
21077 ac_cv_func_fork_works=yes
21078 ;;
21079 esac
cristy8b350f62009-11-15 23:12:43 +000021080 { $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 +000021081$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21082fi
21083ac_cv_func_vfork_works=$ac_cv_func_vfork
21084if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021086$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021087if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021088 $as_echo_n "(cached) " >&6
21089else
cristy8b350f62009-11-15 23:12:43 +000021090 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021091 ac_cv_func_vfork_works=cross
21092else
cristy8b350f62009-11-15 23:12:43 +000021093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021094/* end confdefs.h. */
21095/* Thanks to Paul Eggert for this test. */
21096$ac_includes_default
21097#include <sys/wait.h>
21098#ifdef HAVE_VFORK_H
21099# include <vfork.h>
21100#endif
21101/* On some sparc systems, changes by the child to local and incoming
21102 argument registers are propagated back to the parent. The compiler
21103 is told about this with #include <vfork.h>, but some compilers
21104 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21105 static variable whose address is put into a register that is
21106 clobbered by the vfork. */
21107static void
21108#ifdef __cplusplus
21109sparc_address_test (int arg)
21110# else
21111sparc_address_test (arg) int arg;
21112#endif
21113{
21114 static pid_t child;
21115 if (!child) {
21116 child = vfork ();
21117 if (child < 0) {
21118 perror ("vfork");
21119 _exit(2);
21120 }
21121 if (!child) {
21122 arg = getpid();
21123 write(-1, "", 0);
21124 _exit (arg);
21125 }
21126 }
21127}
21128
21129int
21130main ()
21131{
21132 pid_t parent = getpid ();
21133 pid_t child;
21134
21135 sparc_address_test (0);
21136
21137 child = vfork ();
21138
21139 if (child == 0) {
21140 /* Here is another test for sparc vfork register problems. This
21141 test uses lots of local variables, at least as many local
21142 variables as main has allocated so far including compiler
21143 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21144 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21145 reuse the register of parent for one of the local variables,
21146 since it will think that parent can't possibly be used any more
21147 in this routine. Assigning to the local variable will thus
21148 munge parent in the parent process. */
21149 pid_t
21150 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21151 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21152 /* Convince the compiler that p..p7 are live; otherwise, it might
21153 use the same hardware register for all 8 local variables. */
21154 if (p != p1 || p != p2 || p != p3 || p != p4
21155 || p != p5 || p != p6 || p != p7)
21156 _exit(1);
21157
21158 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21159 from child file descriptors. If the child closes a descriptor
21160 before it execs or exits, this munges the parent's descriptor
21161 as well. Test for this by closing stdout in the child. */
21162 _exit(close(fileno(stdout)) != 0);
21163 } else {
21164 int status;
21165 struct stat st;
21166
21167 while (wait(&status) != child)
21168 ;
21169 return (
21170 /* Was there some problem with vforking? */
21171 child < 0
21172
21173 /* Did the child fail? (This shouldn't happen.) */
21174 || status
21175
21176 /* Did the vfork/compiler bug occur? */
21177 || parent != getpid()
21178
21179 /* Did the file descriptor bug occur? */
21180 || fstat(fileno(stdout), &st) != 0
21181 );
21182 }
21183}
21184_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021185if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021186 ac_cv_func_vfork_works=yes
21187else
cristy8b350f62009-11-15 23:12:43 +000021188 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021189fi
cristy8b350f62009-11-15 23:12:43 +000021190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21191 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021192fi
21193
cristy3ed852e2009-09-05 21:47:34 +000021194fi
cristy8b350f62009-11-15 23:12:43 +000021195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021196$as_echo "$ac_cv_func_vfork_works" >&6; }
21197
21198fi;
21199if test "x$ac_cv_func_fork_works" = xcross; then
21200 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000021201 { $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 +000021202$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21203fi
21204
21205if test "x$ac_cv_func_vfork_works" = xyes; then
21206
cristy8b350f62009-11-15 23:12:43 +000021207$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021208
21209else
21210
cristy8b350f62009-11-15 23:12:43 +000021211$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021212
21213fi
21214if test "x$ac_cv_func_fork_works" = xyes; then
21215
cristy8b350f62009-11-15 23:12:43 +000021216$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021217
21218fi
21219
cristy8b350f62009-11-15 23:12:43 +000021220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021221$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021222if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021223 $as_echo_n "(cached) " >&6
21224else
cristy8b350f62009-11-15 23:12:43 +000021225 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021226 ac_cv_func_memcmp_working=no
21227else
cristy8b350f62009-11-15 23:12:43 +000021228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021229/* end confdefs.h. */
21230$ac_includes_default
21231int
21232main ()
21233{
21234
21235 /* Some versions of memcmp are not 8-bit clean. */
21236 char c0 = '\100', c1 = '\200', c2 = '\201';
21237 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21238 return 1;
21239
21240 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21241 or more and with at least one buffer not starting on a 4-byte boundary.
21242 William Lewis provided this test program. */
21243 {
21244 char foo[21];
21245 char bar[21];
21246 int i;
21247 for (i = 0; i < 4; i++)
21248 {
21249 char *a = foo + i;
21250 char *b = bar + i;
21251 strcpy (a, "--------01111111");
21252 strcpy (b, "--------10000000");
21253 if (memcmp (a, b, 16) >= 0)
21254 return 1;
21255 }
21256 return 0;
21257 }
21258
21259 ;
21260 return 0;
21261}
21262_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021263if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021264 ac_cv_func_memcmp_working=yes
21265else
cristy8b350f62009-11-15 23:12:43 +000021266 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000021267fi
cristy8b350f62009-11-15 23:12:43 +000021268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21269 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021270fi
21271
cristy3ed852e2009-09-05 21:47:34 +000021272fi
cristy8b350f62009-11-15 23:12:43 +000021273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000021274$as_echo "$ac_cv_func_memcmp_working" >&6; }
21275test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21276 *" memcmp.$ac_objext "* ) ;;
21277 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21278 ;;
21279esac
21280
21281
cristy3ed852e2009-09-05 21:47:34 +000021282for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000021283do :
21284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21285ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21286eval as_val=\$$as_ac_Header
21287 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021288 cat >>confdefs.h <<_ACEOF
21289#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21290_ACEOF
21291
21292fi
21293
21294done
21295
cristy8b350f62009-11-15 23:12:43 +000021296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000021297$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021298if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021299 $as_echo_n "(cached) " >&6
21300else
21301 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21302 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21303 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000021304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021305/* end confdefs.h. */
21306$ac_includes_default
21307#ifdef HAVE_SYS_SELECT_H
21308# include <sys/select.h>
21309#endif
21310#ifdef HAVE_SYS_SOCKET_H
21311# include <sys/socket.h>
21312#endif
21313
21314int
21315main ()
21316{
21317extern int select ($ac_arg1,
21318 $ac_arg234, $ac_arg234, $ac_arg234,
21319 $ac_arg5);
21320 ;
21321 return 0;
21322}
21323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021324if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021325 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000021326fi
cristy3ed852e2009-09-05 21:47:34 +000021327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 done
21329 done
21330done
21331# Provide a safe default value.
21332: ${ac_cv_func_select_args='int,int *,struct timeval *'}
21333
21334fi
cristy8b350f62009-11-15 23:12:43 +000021335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000021336$as_echo "$ac_cv_func_select_args" >&6; }
21337ac_save_IFS=$IFS; IFS=','
21338set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21339IFS=$ac_save_IFS
21340shift
21341
21342cat >>confdefs.h <<_ACEOF
21343#define SELECT_TYPE_ARG1 $1
21344_ACEOF
21345
21346
21347cat >>confdefs.h <<_ACEOF
21348#define SELECT_TYPE_ARG234 ($2)
21349_ACEOF
21350
21351
21352cat >>confdefs.h <<_ACEOF
21353#define SELECT_TYPE_ARG5 ($3)
21354_ACEOF
21355
21356rm -f conftest*
21357
cristy8b350f62009-11-15 23:12:43 +000021358if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021359 $as_echo_n "(cached) " >&6
21360else
21361 ac_cv_func_setvbuf_reversed=no
21362fi
21363
21364
cristy8b350f62009-11-15 23:12:43 +000021365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000021366$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021367if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021368 $as_echo_n "(cached) " >&6
21369else
cristy8b350f62009-11-15 23:12:43 +000021370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021371/* end confdefs.h. */
21372#include <sys/types.h>
21373#include <signal.h>
21374
21375int
21376main ()
21377{
21378return *(signal (0, 0)) (0) == 1;
21379 ;
21380 return 0;
21381}
21382_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021383if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021384 ac_cv_type_signal=int
21385else
cristy8b350f62009-11-15 23:12:43 +000021386 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000021387fi
cristy3ed852e2009-09-05 21:47:34 +000021388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21389fi
cristy8b350f62009-11-15 23:12:43 +000021390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000021391$as_echo "$ac_cv_type_signal" >&6; }
21392
21393cat >>confdefs.h <<_ACEOF
21394#define RETSIGTYPE $ac_cv_type_signal
21395_ACEOF
21396
21397
cristy8b350f62009-11-15 23:12:43 +000021398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021399$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021400if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021401 $as_echo_n "(cached) " >&6
21402else
cristy8b350f62009-11-15 23:12:43 +000021403 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021404 ac_cv_func_strtod=no
21405else
cristy8b350f62009-11-15 23:12:43 +000021406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021407/* end confdefs.h. */
21408
21409$ac_includes_default
21410#ifndef strtod
21411double strtod ();
21412#endif
21413int
21414main()
21415{
21416 {
21417 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
21418 char *string = " +69";
21419 char *term;
21420 double value;
21421 value = strtod (string, &term);
21422 if (value != 69 || term != (string + 4))
21423 return 1;
21424 }
21425
21426 {
21427 /* Under Solaris 2.4, strtod returns the wrong value for the
21428 terminating character under some conditions. */
21429 char *string = "NaN";
21430 char *term;
21431 strtod (string, &term);
21432 if (term != string && *(term - 1) == 0)
21433 return 1;
21434 }
21435 return 0;
21436}
21437
21438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021439if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021440 ac_cv_func_strtod=yes
21441else
cristy8b350f62009-11-15 23:12:43 +000021442 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000021443fi
cristy8b350f62009-11-15 23:12:43 +000021444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21445 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021446fi
21447
cristy3ed852e2009-09-05 21:47:34 +000021448fi
cristy8b350f62009-11-15 23:12:43 +000021449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021450$as_echo "$ac_cv_func_strtod" >&6; }
21451if test $ac_cv_func_strtod = no; then
21452 case " $LIBOBJS " in
21453 *" strtod.$ac_objext "* ) ;;
21454 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21455 ;;
21456esac
21457
cristy8b350f62009-11-15 23:12:43 +000021458ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21459if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021460
cristy3ed852e2009-09-05 21:47:34 +000021461fi
21462
cristy3ed852e2009-09-05 21:47:34 +000021463if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000021464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021465$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021466if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021467 $as_echo_n "(cached) " >&6
21468else
21469 ac_check_lib_save_LIBS=$LIBS
21470LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000021471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021472/* end confdefs.h. */
21473
21474/* Override any GCC internal prototype to avoid an error.
21475 Use char because int might match the return type of a GCC
21476 builtin and then its argument prototype would still apply. */
21477#ifdef __cplusplus
21478extern "C"
21479#endif
21480char pow ();
21481int
21482main ()
21483{
21484return pow ();
21485 ;
21486 return 0;
21487}
21488_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021489if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021490 ac_cv_lib_m_pow=yes
21491else
cristy8b350f62009-11-15 23:12:43 +000021492 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000021493fi
cristy8b350f62009-11-15 23:12:43 +000021494rm -f core conftest.err conftest.$ac_objext \
21495 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021496LIBS=$ac_check_lib_save_LIBS
21497fi
cristy8b350f62009-11-15 23:12:43 +000021498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021499$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021500if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021501 POW_LIB=-lm
21502else
cristy8b350f62009-11-15 23:12:43 +000021503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021504$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21505fi
21506
21507fi
21508
21509fi
21510
cristy3ed852e2009-09-05 21:47:34 +000021511for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000021512do :
21513 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21514if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021515 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021516#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000021517_ACEOF
21518
cristy8b350f62009-11-15 23:12:43 +000021519ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21520if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021521
cristy8b350f62009-11-15 23:12:43 +000021522$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021523
21524fi
21525
21526fi
21527done
21528
21529
21530
cristye43a45e2009-09-28 14:49:00 +000021531for ac_func in _exit atexit clock directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol symlink sysconf sigemptyset sigaction strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000021532do :
21533 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21534ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21535eval as_val=\$$as_ac_var
21536 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021537 cat >>confdefs.h <<_ACEOF
21538#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21539_ACEOF
21540
21541fi
21542done
21543
21544
cristye43a45e2009-09-28 14:49:00 +000021545#
21546# Check for clock_gettime().
21547#
cristy8b350f62009-11-15 23:12:43 +000021548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021549$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021550if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021551 $as_echo_n "(cached) " >&6
21552else
21553 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021555/* end confdefs.h. */
21556
21557/* Override any GCC internal prototype to avoid an error.
21558 Use char because int might match the return type of a GCC
21559 builtin and then its argument prototype would still apply. */
21560#ifdef __cplusplus
21561extern "C"
21562#endif
21563char clock_gettime ();
21564int
21565main ()
21566{
21567return clock_gettime ();
21568 ;
21569 return 0;
21570}
21571_ACEOF
21572for ac_lib in '' rt; do
21573 if test -z "$ac_lib"; then
21574 ac_res="none required"
21575 else
21576 ac_res=-l$ac_lib
21577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21578 fi
cristy8b350f62009-11-15 23:12:43 +000021579 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021580 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000021581fi
cristy8b350f62009-11-15 23:12:43 +000021582rm -f core conftest.err conftest.$ac_objext \
21583 conftest$ac_exeext
21584 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021585 break
21586fi
21587done
cristy8b350f62009-11-15 23:12:43 +000021588if test "${ac_cv_search_clock_gettime+set}" = set; then :
21589
cristye43a45e2009-09-28 14:49:00 +000021590else
21591 ac_cv_search_clock_gettime=no
21592fi
21593rm conftest.$ac_ext
21594LIBS=$ac_func_search_save_LIBS
21595fi
cristy8b350f62009-11-15 23:12:43 +000021596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021597$as_echo "$ac_cv_search_clock_gettime" >&6; }
21598ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000021599if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000021600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21601
21602
cristy8b350f62009-11-15 23:12:43 +000021603$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021604
cristy8b350f62009-11-15 23:12:43 +000021605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000021606$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021608/* end confdefs.h. */
21609#include <time.h>
21610int
21611main ()
21612{
21613clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000021614 ;
21615 return 0;
21616}
21617_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021618if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021619
cristy8b350f62009-11-15 23:12:43 +000021620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000021621$as_echo "yes" >&6; }
21622
cristy8b350f62009-11-15 23:12:43 +000021623$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021624
21625
21626else
cristy8b350f62009-11-15 23:12:43 +000021627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000021628$as_echo "no" >&6; }
21629
21630fi
cristye43a45e2009-09-28 14:49:00 +000021631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21632
21633else
21634
cristy8b350f62009-11-15 23:12:43 +000021635 for ac_func in gettimeofday ftime
21636do :
21637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21638ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21639eval as_val=\$$as_ac_var
21640 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000021641 cat >>confdefs.h <<_ACEOF
21642#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21643_ACEOF
21644 break
21645fi
21646done
21647
21648
21649
21650fi
21651
21652
cristy3ed852e2009-09-05 21:47:34 +000021653########
21654#
21655# Check for function prototypes
21656#
21657########
21658
cristy8b350f62009-11-15 23:12:43 +000021659ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000021660#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021661"
21662if test "x$ac_cv_have_decl_pread" = x""yes; then :
21663 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021664else
cristy8b350f62009-11-15 23:12:43 +000021665 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021666fi
21667
cristy3ed852e2009-09-05 21:47:34 +000021668cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021669#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021670_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021671ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000021672#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021673"
21674if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
21675 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021676else
cristy8b350f62009-11-15 23:12:43 +000021677 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021678fi
21679
cristy3ed852e2009-09-05 21:47:34 +000021680cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021681#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021682_ACEOF
21683
21684
cristy8b350f62009-11-15 23:12:43 +000021685ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000021686#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000021687"
21688if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
21689 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021690else
cristy8b350f62009-11-15 23:12:43 +000021691 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021692fi
21693
cristy3ed852e2009-09-05 21:47:34 +000021694cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021695#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021696_ACEOF
21697
21698
cristy8b350f62009-11-15 23:12:43 +000021699ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000021700#include <stdio.h>
21701#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000021702"
21703if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
21704 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021705else
cristy8b350f62009-11-15 23:12:43 +000021706 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021707fi
21708
cristy3ed852e2009-09-05 21:47:34 +000021709cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021710#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021711_ACEOF
21712
21713
cristy3ed852e2009-09-05 21:47:34 +000021714########
21715#
21716# C++ Support Tests (For Magick++)
21717#
21718########
21719have_magick_plus_plus='no'
21720if test "$with_magick_plus_plus" = 'yes'; then
21721 OLIBS="$LIBS"
21722 LIBS=''
21723 ac_ext=cpp
21724ac_cpp='$CXXCPP $CPPFLAGS'
21725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21728
21729
21730 # Full set of headers used...
21731 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
21732 # functional iomanip iosfwd iostream iterator list string strstream utility
21733 ac_ext=cpp
21734ac_cpp='$CXXCPP $CPPFLAGS'
21735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21738
21739 ac_ext=cpp
21740ac_cpp='$CXXCPP $CPPFLAGS'
21741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21744if test -z "$CXX"; then
21745 if test -n "$CCC"; then
21746 CXX=$CCC
21747 else
21748 if test -n "$ac_tool_prefix"; then
21749 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
21750 do
21751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21752set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000021753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000021754$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021755if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021756 $as_echo_n "(cached) " >&6
21757else
21758 if test -n "$CXX"; then
21759 ac_cv_prog_CXX="$CXX" # Let the user override the test.
21760else
21761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21762for as_dir in $PATH
21763do
21764 IFS=$as_save_IFS
21765 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000021766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000021767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21768 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000021769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000021770 break 2
21771 fi
21772done
cristy8b350f62009-11-15 23:12:43 +000021773 done
cristy3ed852e2009-09-05 21:47:34 +000021774IFS=$as_save_IFS
21775
21776fi
21777fi
21778CXX=$ac_cv_prog_CXX
21779if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000021780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000021781$as_echo "$CXX" >&6; }
21782else
cristy8b350f62009-11-15 23:12:43 +000021783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021784$as_echo "no" >&6; }
21785fi
21786
21787
21788 test -n "$CXX" && break
21789 done
21790fi
21791if test -z "$CXX"; then
21792 ac_ct_CXX=$CXX
21793 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
21794do
21795 # Extract the first word of "$ac_prog", so it can be a program name with args.
21796set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000021797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000021798$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021799if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021800 $as_echo_n "(cached) " >&6
21801else
21802 if test -n "$ac_ct_CXX"; then
21803 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21804else
21805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21806for as_dir in $PATH
21807do
21808 IFS=$as_save_IFS
21809 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000021810 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000021811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21812 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000021813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000021814 break 2
21815 fi
21816done
cristy8b350f62009-11-15 23:12:43 +000021817 done
cristy3ed852e2009-09-05 21:47:34 +000021818IFS=$as_save_IFS
21819
21820fi
21821fi
21822ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
21823if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000021824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000021825$as_echo "$ac_ct_CXX" >&6; }
21826else
cristy8b350f62009-11-15 23:12:43 +000021827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021828$as_echo "no" >&6; }
21829fi
21830
21831
21832 test -n "$ac_ct_CXX" && break
21833done
21834
21835 if test "x$ac_ct_CXX" = x; then
21836 CXX="g++"
21837 else
21838 case $cross_compiling:$ac_tool_warned in
21839yes:)
cristy8b350f62009-11-15 23:12:43 +000021840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000021841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21842ac_tool_warned=yes ;;
21843esac
21844 CXX=$ac_ct_CXX
21845 fi
21846fi
21847
21848 fi
21849fi
21850# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000021851$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000021852set X $ac_compile
21853ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000021854for ac_option in --version -v -V -qversion; do
21855 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000021856case "(($ac_try" in
21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21859esac
cristy8b350f62009-11-15 23:12:43 +000021860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21861$as_echo "$ac_try_echo"; } >&5
21862 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000021863 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000021864 if test -s conftest.err; then
21865 sed '10a\
21866... rest of stderr output deleted ...
21867 10q' conftest.err >conftest.er1
21868 cat conftest.er1 >&5
21869 rm -f conftest.er1 conftest.err
21870 fi
21871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21872 test $ac_status = 0; }
21873done
cristy3ed852e2009-09-05 21:47:34 +000021874
cristy8b350f62009-11-15 23:12:43 +000021875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000021876$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021877if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021878 $as_echo_n "(cached) " >&6
21879else
cristy8b350f62009-11-15 23:12:43 +000021880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021881/* end confdefs.h. */
21882
21883int
21884main ()
21885{
21886#ifndef __GNUC__
21887 choke me
21888#endif
21889
21890 ;
21891 return 0;
21892}
21893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021894if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021895 ac_compiler_gnu=yes
21896else
cristy8b350f62009-11-15 23:12:43 +000021897 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000021898fi
cristy3ed852e2009-09-05 21:47:34 +000021899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21901
21902fi
cristy8b350f62009-11-15 23:12:43 +000021903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000021904$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
21905if test $ac_compiler_gnu = yes; then
21906 GXX=yes
21907else
21908 GXX=
21909fi
21910ac_test_CXXFLAGS=${CXXFLAGS+set}
21911ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000021912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000021913$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021914if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021915 $as_echo_n "(cached) " >&6
21916else
21917 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21918 ac_cxx_werror_flag=yes
21919 ac_cv_prog_cxx_g=no
21920 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000021921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021922/* end confdefs.h. */
21923
21924int
21925main ()
21926{
21927
21928 ;
21929 return 0;
21930}
21931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021932if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021933 ac_cv_prog_cxx_g=yes
21934else
cristy8b350f62009-11-15 23:12:43 +000021935 CXXFLAGS=""
21936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021937/* end confdefs.h. */
21938
21939int
21940main ()
21941{
21942
21943 ;
21944 return 0;
21945}
21946_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021947if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021948
cristy8b350f62009-11-15 23:12:43 +000021949else
21950 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000021951 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000021952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021953/* end confdefs.h. */
21954
21955int
21956main ()
21957{
21958
21959 ;
21960 return 0;
21961}
21962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021963if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021964 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000021965fi
cristy3ed852e2009-09-05 21:47:34 +000021966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21967fi
cristy3ed852e2009-09-05 21:47:34 +000021968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21969fi
cristy3ed852e2009-09-05 21:47:34 +000021970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21971 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
21972fi
cristy8b350f62009-11-15 23:12:43 +000021973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000021974$as_echo "$ac_cv_prog_cxx_g" >&6; }
21975if test "$ac_test_CXXFLAGS" = set; then
21976 CXXFLAGS=$ac_save_CXXFLAGS
21977elif test $ac_cv_prog_cxx_g = yes; then
21978 if test "$GXX" = yes; then
21979 CXXFLAGS="-g -O2"
21980 else
21981 CXXFLAGS="-g"
21982 fi
21983else
21984 if test "$GXX" = yes; then
21985 CXXFLAGS="-O2"
21986 else
21987 CXXFLAGS=
21988 fi
21989fi
21990ac_ext=cpp
21991ac_cpp='$CXXCPP $CPPFLAGS'
21992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21995
21996depcc="$CXX" am_compiler_list=
21997
cristy8b350f62009-11-15 23:12:43 +000021998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021999$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022000if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022001 $as_echo_n "(cached) " >&6
22002else
22003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22004 # We make a subdir and do the tests there. Otherwise we can end up
22005 # making bogus files that we don't know about and never remove. For
22006 # instance it was reported that on HP-UX the gcc test will end up
22007 # making a dummy file named `D' -- because `-MD' means `put the output
22008 # in D'.
22009 mkdir conftest.dir
22010 # Copy depcomp to subdir because otherwise we won't find it if we're
22011 # using a relative directory.
22012 cp "$am_depcomp" conftest.dir
22013 cd conftest.dir
22014 # We will build objects and dependencies in a subdirectory because
22015 # it helps to detect inapplicable dependency modes. For instance
22016 # both Tru64's cc and ICC support -MD to output dependencies as a
22017 # side effect of compilation, but ICC will put the dependencies in
22018 # the current directory while Tru64 will put them in the object
22019 # directory.
22020 mkdir sub
22021
22022 am_cv_CXX_dependencies_compiler_type=none
22023 if test "$am_compiler_list" = ""; then
22024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22025 fi
22026 am__universal=false
22027 case " $depcc " in #(
22028 *\ -arch\ *\ -arch\ *) am__universal=true ;;
22029 esac
22030
22031 for depmode in $am_compiler_list; do
22032 # Setup a source with many dependencies, because some compilers
22033 # like to wrap large dependency lists on column 80 (with \), and
22034 # we should not choose a depcomp mode which is confused by this.
22035 #
22036 # We need to recreate these files for each test, as the compiler may
22037 # overwrite some of them when testing with obscure command lines.
22038 # This happens at least with the AIX C compiler.
22039 : > sub/conftest.c
22040 for i in 1 2 3 4 5 6; do
22041 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22042 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22043 # Solaris 8's {/usr,}/bin/sh.
22044 touch sub/conftst$i.h
22045 done
22046 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22047
22048 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22049 # mode. It turns out that the SunPro C++ compiler does not properly
22050 # handle `-M -o', and we need to detect this. Also, some Intel
22051 # versions had trouble with output in subdirs
22052 am__obj=sub/conftest.${OBJEXT-o}
22053 am__minus_obj="-o $am__obj"
22054 case $depmode in
22055 gcc)
22056 # This depmode causes a compiler race in universal mode.
22057 test "$am__universal" = false || continue
22058 ;;
22059 nosideeffect)
22060 # after this tag, mechanisms are not by side-effect, so they'll
22061 # only be used when explicitly requested
22062 if test "x$enable_dependency_tracking" = xyes; then
22063 continue
22064 else
22065 break
22066 fi
22067 ;;
22068 msvisualcpp | msvcmsys)
22069 # This compiler won't grok `-c -o', but also, the minuso test has
22070 # not run yet. These depmodes are late enough in the game, and
22071 # so weak that their functioning should not be impacted.
22072 am__obj=conftest.${OBJEXT-o}
22073 am__minus_obj=
22074 ;;
22075 none) break ;;
22076 esac
22077 if depmode=$depmode \
22078 source=sub/conftest.c object=$am__obj \
22079 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22080 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
22081 >/dev/null 2>conftest.err &&
22082 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22083 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22084 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
22085 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22086 # icc doesn't choke on unknown options, it will just issue warnings
22087 # or remarks (even with -Werror). So we grep stderr for any message
22088 # that says an option was ignored or not supported.
22089 # When given -MP, icc 7.0 and 7.1 complain thusly:
22090 # icc: Command line warning: ignoring option '-M'; no argument required
22091 # The diagnosis changed in icc 8.0:
22092 # icc: Command line remark: option '-MP' not supported
22093 if (grep 'ignoring option' conftest.err ||
22094 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22095 am_cv_CXX_dependencies_compiler_type=$depmode
22096 break
22097 fi
22098 fi
22099 done
22100
22101 cd ..
22102 rm -rf conftest.dir
22103else
22104 am_cv_CXX_dependencies_compiler_type=none
22105fi
22106
22107fi
cristy8b350f62009-11-15 23:12:43 +000022108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022109$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
22110CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
22111
22112 if
22113 test "x$enable_dependency_tracking" != xno \
22114 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
22115 am__fastdepCXX_TRUE=
22116 am__fastdepCXX_FALSE='#'
22117else
22118 am__fastdepCXX_TRUE='#'
22119 am__fastdepCXX_FALSE=
22120fi
22121
22122
cristy8b350f62009-11-15 23:12:43 +000022123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022124$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022125if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022126 $as_echo_n "(cached) " >&6
22127else
22128
22129 ac_ext=cpp
22130ac_cpp='$CXXCPP $CPPFLAGS'
22131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22134
cristy8b350f62009-11-15 23:12:43 +000022135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022136/* end confdefs.h. */
22137
22138int f(int x){return 1;}
22139int f(char x){return 1;}
22140int f(bool x){return 1;}
22141
22142int
22143main ()
22144{
22145bool b = true; return f(b);
22146 ;
22147 return 0;
22148}
22149_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022150if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022151 ac_cv_cxx_have_bool=yes
22152else
cristy8b350f62009-11-15 23:12:43 +000022153 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000022154fi
cristy3ed852e2009-09-05 21:47:34 +000022155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22156 ac_ext=cpp
22157ac_cpp='$CXXCPP $CPPFLAGS'
22158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22161
22162
22163fi
cristy8b350f62009-11-15 23:12:43 +000022164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000022165$as_echo "$ac_cv_cxx_have_bool" >&6; }
22166if test "$ac_cv_cxx_have_bool" = yes; then
22167
cristy8b350f62009-11-15 23:12:43 +000022168$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022169
22170fi
22171
cristy8b350f62009-11-15 23:12:43 +000022172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022173$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022174if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022175 $as_echo_n "(cached) " >&6
22176else
22177
22178 ac_ext=cpp
22179ac_cpp='$CXXCPP $CPPFLAGS'
22180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22183
cristy8b350f62009-11-15 23:12:43 +000022184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022185/* end confdefs.h. */
22186namespace Outer { namespace Inner { int i = 0; }}
22187int
22188main ()
22189{
22190using namespace Outer::Inner; return i;
22191 ;
22192 return 0;
22193}
22194_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022195if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022196 ac_cv_cxx_have_namespaces=yes
22197else
cristy8b350f62009-11-15 23:12:43 +000022198 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000022199fi
cristy3ed852e2009-09-05 21:47:34 +000022200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22201 ac_ext=cpp
22202ac_cpp='$CXXCPP $CPPFLAGS'
22203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22206
22207
22208fi
cristy8b350f62009-11-15 23:12:43 +000022209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022210$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
22211if test "$ac_cv_cxx_have_namespaces" = yes; then
22212
cristy8b350f62009-11-15 23:12:43 +000022213$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022214
22215fi
22216
cristy8b350f62009-11-15 23:12:43 +000022217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022218$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022219if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022220 $as_echo_n "(cached) " >&6
22221else
22222
22223 ac_ext=cpp
22224ac_cpp='$CXXCPP $CPPFLAGS'
22225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22228
cristy8b350f62009-11-15 23:12:43 +000022229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022230/* end confdefs.h. */
22231#include <iostream>
22232 std::istream& is = std::cin;
22233
22234int
22235main ()
22236{
22237return 0;
22238 ;
22239 return 0;
22240}
22241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022242if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022243 ac_cv_cxx_have_std_namespace=yes
22244else
cristy8b350f62009-11-15 23:12:43 +000022245 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000022246fi
cristy3ed852e2009-09-05 21:47:34 +000022247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22248 ac_ext=cpp
22249ac_cpp='$CXXCPP $CPPFLAGS'
22250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22253
22254
22255fi
cristy8b350f62009-11-15 23:12:43 +000022256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022257$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
22258if test "$ac_cv_cxx_have_std_namespace" = yes; then
22259
cristy8b350f62009-11-15 23:12:43 +000022260$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022261
22262fi
22263
cristy8b350f62009-11-15 23:12:43 +000022264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000022265$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022266if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022267 $as_echo_n "(cached) " >&6
22268else
22269
22270
22271 ac_ext=cpp
22272ac_cpp='$CXXCPP $CPPFLAGS'
22273ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22274ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22275ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22276
cristy8b350f62009-11-15 23:12:43 +000022277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022278/* end confdefs.h. */
22279#include <iostream>
22280#include <map>
22281#include <iomanip>
22282#include <cmath>
22283#ifdef HAVE_NAMESPACES
22284using namespace std;
22285#endif
22286int
22287main ()
22288{
22289return 0;
22290 ;
22291 return 0;
22292}
22293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022294if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022295 ac_cv_cxx_have_std_libs=yes
22296else
cristy8b350f62009-11-15 23:12:43 +000022297 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000022298fi
cristy3ed852e2009-09-05 21:47:34 +000022299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22300 ac_ext=cpp
22301ac_cpp='$CXXCPP $CPPFLAGS'
22302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22305
22306
22307fi
cristy8b350f62009-11-15 23:12:43 +000022308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000022309$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
22310if test "$ac_cv_cxx_have_std_libs" = yes; then
22311
cristy8b350f62009-11-15 23:12:43 +000022312$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022313
22314fi
22315
cristy8b350f62009-11-15 23:12:43 +000022316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000022317$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022318if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022319 $as_echo_n "(cached) " >&6
22320else
22321
22322 ac_ext=cpp
22323ac_cpp='$CXXCPP $CPPFLAGS'
22324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22327
cristy8b350f62009-11-15 23:12:43 +000022328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022329/* end confdefs.h. */
22330const wchar_t* s=L"wide string";
22331_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022332if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022333 ac_cv_cxx_have_lstring=yes
22334else
cristy8b350f62009-11-15 23:12:43 +000022335 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000022336fi
cristy3ed852e2009-09-05 21:47:34 +000022337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338 ac_ext=cpp
22339ac_cpp='$CXXCPP $CPPFLAGS'
22340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22343
22344
22345fi
cristy8b350f62009-11-15 23:12:43 +000022346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000022347$as_echo "$ac_cv_cxx_have_lstring" >&6; }
22348if test "$ac_cv_cxx_have_lstring" = yes; then
22349
cristy8b350f62009-11-15 23:12:43 +000022350$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022351
22352fi
22353
22354
22355 OPENMP_CXXFLAGS=
22356 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000022357if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022358 enableval=$enable_openmp;
22359fi
22360
22361 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000022362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000022363$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022364if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022365 $as_echo_n "(cached) " >&6
22366else
cristy8b350f62009-11-15 23:12:43 +000022367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22368/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022369
22370#ifndef _OPENMP
22371 choke me
22372#endif
22373#include <omp.h>
22374int main () { return omp_get_num_threads (); }
22375
22376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022377if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022378 ac_cv_prog_cxx_openmp='none needed'
22379else
cristy8b350f62009-11-15 23:12:43 +000022380 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000022381 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
22382 ac_save_CXXFLAGS=$CXXFLAGS
22383 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000022384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22385/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022386
22387#ifndef _OPENMP
22388 choke me
22389#endif
22390#include <omp.h>
22391int main () { return omp_get_num_threads (); }
22392
22393_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022394if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022395 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000022396fi
cristy8b350f62009-11-15 23:12:43 +000022397rm -f core conftest.err conftest.$ac_objext \
22398 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022399 CXXFLAGS=$ac_save_CXXFLAGS
22400 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
22401 break
22402 fi
22403 done
22404fi
cristy8b350f62009-11-15 23:12:43 +000022405rm -f core conftest.err conftest.$ac_objext \
22406 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022407fi
cristy8b350f62009-11-15 23:12:43 +000022408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022409$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
22410 case $ac_cv_prog_cxx_openmp in #(
22411 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000022412 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000022413 *)
cristy8b350f62009-11-15 23:12:43 +000022414 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000022415 esac
22416 fi
22417
22418
22419 ac_ext=c
22420ac_cpp='$CPP $CPPFLAGS'
22421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22423ac_compiler_gnu=$ac_cv_c_compiler_gnu
22424
22425
cristy8b350f62009-11-15 23:12:43 +000022426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000022427$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
22428 if \
22429 test $ac_cv_cxx_have_bool = 'yes' && \
22430 test $ac_cv_cxx_have_lstring = 'yes' && \
22431 test $ac_cv_cxx_have_namespaces = 'yes' && \
22432 test $ac_cv_cxx_have_std_libs = 'yes' && \
22433 test $ac_cv_cxx_have_std_namespace = 'yes'; then
22434 have_magick_plus_plus='yes'
22435 else
22436 have_magick_plus_plus='no (failed tests)'
22437 fi
cristy8b350f62009-11-15 23:12:43 +000022438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000022439$as_echo "$have_magick_plus_plus" >&6; }
22440 LIBS="$OLIBS"
22441fi
22442 if test "$have_magick_plus_plus" = 'yes'; then
22443 WITH_MAGICK_PLUS_PLUS_TRUE=
22444 WITH_MAGICK_PLUS_PLUS_FALSE='#'
22445else
22446 WITH_MAGICK_PLUS_PLUS_TRUE='#'
22447 WITH_MAGICK_PLUS_PLUS_FALSE=
22448fi
22449
22450
22451# Only check for delegate libraries in subdirectories if requested.
22452if test "$enable_delegate_build" != 'no'; then
22453 # Check for delegate sub-directories and add -I & -L options as required.
22454 # This presumes that delegates are installed as detailed in the ImageMagick
22455 # README. If delegates are installed in a standard location where the
22456 # compiler will automatically find them then these options should not be
22457 # required.
22458
22459 #
22460 # Most delegates have includes in the same directory as the library, but not all...
22461 #
22462 # Includes
22463 for dir in bzlib fftw fpx jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
22464 if test -d "$builddir/$dir"; then
22465 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
22466 else
22467 if test -d "$srcdirfull/$dir"; then
22468 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
22469 fi
22470 fi
22471 done
22472
22473 # Libraries
22474 for dir in bzlib fftw fpx jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
22475 if test -d "$builddir/$dir/.libs"; then
22476 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
22477 else
22478 if test -d "$srcdirfull/$dir/.libs"; then
22479 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
22480 fi
22481 fi
22482 if test -d "$builddir/$dir"; then
22483 LDFLAGS="$LDFLAGS -L$builddir/$dir"
22484 else
22485 if test -d "$srcdirfull/$dir"; then
22486 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
22487 fi
22488 fi
22489 done
22490fi
22491
22492# Assume that delegate headers reside under same directory as ImageMagick
22493# installation prefix.
22494MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
22495
22496#
22497# Find the X11 RGB database
22498#
cristy8b350f62009-11-15 23:12:43 +000022499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022500$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022501if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022502 $as_echo_n "(cached) " >&6
22503else
22504 # Look for the header file in a standard set of common directories.
22505# Check X11 before X11Rn because it is often a symlink to the current release.
22506 for ac_dir in \
22507 /lib/usr/lib/X11 \
22508 /usr/X11/lib \
22509 /usr/X11R4/lib \
22510 /usr/X11R5/lib \
22511 /usr/X11R6/lib \
22512 /usr/X11R7/lib \
22513 /usr/X386/lib \
22514 /usr/XFree86/lib/X11 \
22515 /usr/athena/lib \
22516 /usr/lib \
22517 /usr/lib/X11 \
22518 /usr/lib/X11R4 \
22519 /usr/lib/X11R5 \
22520 /usr/lib/X11R6 \
22521 /usr/lib/X11R7 \
22522 /usr/local/X11/lib \
22523 /usr/local/X11R4/lib \
22524 /usr/local/X11R5/lib \
22525 /usr/local/X11R6/lib \
22526 /usr/local/lib \
22527 /usr/local/lib/X11 \
22528 /usr/local/lib/X11R4 \
22529 /usr/local/lib/X11R5 \
22530 /usr/local/lib/X11R6 \
22531 /usr/local/lib/X11R7 \
22532 /usr/local/x11r5/lib \
22533 /usr/lpp/Xamples/lib \
22534 /usr/openwin/lib \
22535 /usr/openwin/share/lib \
22536 /usr/unsupported/lib \
22537 /usr/x386/lib \
22538 ; do
22539 if test -f "$ac_dir/X11/rgb.txt"; then
22540 im_cv_x_configure="$ac_dir/X11/"
22541 break
22542 elif test -f "$ac_dir/rgb.txt"; then
22543 im_cv_x_configure="$ac_dir/"
22544 break
22545 fi
22546
22547 done
22548fi
cristy8b350f62009-11-15 23:12:43 +000022549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000022550$as_echo "$im_cv_x_configure" >&6; }
22551X11_CONFIGURE_PATH="$im_cv_x_configure"
22552case "${build_os}" in
22553 mingw* )
22554 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
22555 ;;
22556esac
22557
22558cat >>confdefs.h <<_ACEOF
22559#define X11_CONFIGURE_PATH "$X11ConfigurePath"
22560_ACEOF
22561
22562
22563#
22564# Find OpenMP library
22565#
22566GOMP_LIBS=''
22567if test "$enable_openmp" != 'no'; then
22568 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000022569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022570$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022571if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022572 $as_echo_n "(cached) " >&6
22573else
22574 ac_check_lib_save_LIBS=$LIBS
22575LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022577/* end confdefs.h. */
22578
22579/* Override any GCC internal prototype to avoid an error.
22580 Use char because int might match the return type of a GCC
22581 builtin and then its argument prototype would still apply. */
22582#ifdef __cplusplus
22583extern "C"
22584#endif
22585char GOMP_parallel_start ();
22586int
22587main ()
22588{
22589return GOMP_parallel_start ();
22590 ;
22591 return 0;
22592}
22593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022594if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022595 ac_cv_lib_gomp_GOMP_parallel_start=yes
22596else
cristy8b350f62009-11-15 23:12:43 +000022597 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000022598fi
cristy8b350f62009-11-15 23:12:43 +000022599rm -f core conftest.err conftest.$ac_objext \
22600 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022601LIBS=$ac_check_lib_save_LIBS
22602fi
cristy8b350f62009-11-15 23:12:43 +000022603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000022604$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022605if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022606 GOMP_LIBS="-lgomp"
22607fi
22608 # gcc
22609 else
cristy8b350f62009-11-15 23:12:43 +000022610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000022611$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022612if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022613 $as_echo_n "(cached) " >&6
22614else
22615 ac_check_lib_save_LIBS=$LIBS
22616LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022618/* end confdefs.h. */
22619
22620/* Override any GCC internal prototype to avoid an error.
22621 Use char because int might match the return type of a GCC
22622 builtin and then its argument prototype would still apply. */
22623#ifdef __cplusplus
22624extern "C"
22625#endif
22626char sunw_mp_register_warn ();
22627int
22628main ()
22629{
22630return sunw_mp_register_warn ();
22631 ;
22632 return 0;
22633}
22634_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022635if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022636 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
22637else
cristy8b350f62009-11-15 23:12:43 +000022638 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000022639fi
cristy8b350f62009-11-15 23:12:43 +000022640rm -f core conftest.err conftest.$ac_objext \
22641 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022642LIBS=$ac_check_lib_save_LIBS
22643fi
cristy8b350f62009-11-15 23:12:43 +000022644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000022645$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022646if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022647 GOMP_LIBS="-lmtsk"
22648fi
22649 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000022650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022651$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022652if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022653 $as_echo_n "(cached) " >&6
22654else
22655 ac_check_lib_save_LIBS=$LIBS
22656LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022658/* end confdefs.h. */
22659
22660/* Override any GCC internal prototype to avoid an error.
22661 Use char because int might match the return type of a GCC
22662 builtin and then its argument prototype would still apply. */
22663#ifdef __cplusplus
22664extern "C"
22665#endif
22666char _xlsmpFlush ();
22667int
22668main ()
22669{
22670return _xlsmpFlush ();
22671 ;
22672 return 0;
22673}
22674_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022675if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022676 ac_cv_lib_xlsmp__xlsmpFlush=yes
22677else
cristy8b350f62009-11-15 23:12:43 +000022678 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000022679fi
cristy8b350f62009-11-15 23:12:43 +000022680rm -f core conftest.err conftest.$ac_objext \
22681 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022682LIBS=$ac_check_lib_save_LIBS
22683fi
cristy8b350f62009-11-15 23:12:43 +000022684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000022685$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022686if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022687 GOMP_LIBS="-lxlsmp"
22688fi
22689 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000022690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022691$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022692if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022693 $as_echo_n "(cached) " >&6
22694else
22695 ac_check_lib_save_LIBS=$LIBS
22696LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022698/* end confdefs.h. */
22699
22700/* Override any GCC internal prototype to avoid an error.
22701 Use char because int might match the return type of a GCC
22702 builtin and then its argument prototype would still apply. */
22703#ifdef __cplusplus
22704extern "C"
22705#endif
22706char mp_destroy ();
22707int
22708main ()
22709{
22710return mp_destroy ();
22711 ;
22712 return 0;
22713}
22714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022715if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022716 ac_cv_lib_mp_mp_destroy=yes
22717else
cristy8b350f62009-11-15 23:12:43 +000022718 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000022719fi
cristy8b350f62009-11-15 23:12:43 +000022720rm -f core conftest.err conftest.$ac_objext \
22721 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022722LIBS=$ac_check_lib_save_LIBS
22723fi
cristy8b350f62009-11-15 23:12:43 +000022724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000022725$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022726if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022727 GOMP_LIBS="-lmp"
22728fi
22729 # SGI IRIX 6.5 MIPSpro C/C++
22730 fi
22731 LIBS="$GOMP_LIBS $LIBS"
22732fi
22733
22734
22735#
22736# Find Posix threads library
22737#
22738THREAD_LIBS=''
22739if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
22740
22741 if test "x$PTHREAD_LIBS" = "x"; then
22742 case "${host_cpu}-${host_os}" in
22743 *-freebsd*)
22744
22745
22746
22747ac_ext=c
22748ac_cpp='$CPP $CPPFLAGS'
22749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22751ac_compiler_gnu=$ac_cv_c_compiler_gnu
22752
22753magick_pthread_lib_ok=no
22754
22755LIB=-lc_r
22756save_LIBS="$LIBS"
22757LIBS="$LIBS $LIB"
22758
cristy8b350f62009-11-15 23:12:43 +000022759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000022760$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022762/* end confdefs.h. */
22763#include <pthread.h>
22764int
22765main ()
22766{
22767 pthread_t th;
22768 pthread_join(th, 0);
22769 pthread_attr_init(0);
22770 pthread_cleanup_push(0, 0);
22771 pthread_create(0,0,0,0);
22772 pthread_cleanup_pop(0);
22773 ;
22774 return 0;
22775}
22776_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022777if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022778 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000022779fi
cristy8b350f62009-11-15 23:12:43 +000022780rm -f core conftest.err conftest.$ac_objext \
22781 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022782
cristy8b350f62009-11-15 23:12:43 +000022783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000022784$as_echo "${magick_pthread_lib_ok}" >&6; }
22785if test "$magick_pthread_lib_ok" = yes
22786then
22787 PTHREAD_LIBS=-lc_r
22788 :
22789else
22790
22791 :
22792fi
22793
22794LIBS="$save_LIBS"
22795
22796ac_ext=c
22797ac_cpp='$CPP $CPPFLAGS'
22798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22800ac_compiler_gnu=$ac_cv_c_compiler_gnu
22801
22802 ;;
22803 esac
22804 fi
22805
22806 for lib in pthread pthreads; do
22807 if test "x$PTHREAD_LIBS" = "x"; then
22808
22809
22810
22811ac_ext=c
22812ac_cpp='$CPP $CPPFLAGS'
22813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22815ac_compiler_gnu=$ac_cv_c_compiler_gnu
22816
22817magick_pthread_lib_ok=no
22818
22819LIB=-l$lib
22820save_LIBS="$LIBS"
22821LIBS="$LIBS $LIB"
22822
cristy8b350f62009-11-15 23:12:43 +000022823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000022824$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022826/* end confdefs.h. */
22827#include <pthread.h>
22828int
22829main ()
22830{
22831 pthread_t th;
22832 pthread_join(th, 0);
22833 pthread_attr_init(0);
22834 pthread_cleanup_push(0, 0);
22835 pthread_create(0,0,0,0);
22836 pthread_cleanup_pop(0);
22837 ;
22838 return 0;
22839}
22840_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022841if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022842 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000022843fi
cristy8b350f62009-11-15 23:12:43 +000022844rm -f core conftest.err conftest.$ac_objext \
22845 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022846
cristy8b350f62009-11-15 23:12:43 +000022847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000022848$as_echo "${magick_pthread_lib_ok}" >&6; }
22849if test "$magick_pthread_lib_ok" = yes
22850then
22851 PTHREAD_LIBS=-l$lib
22852 :
22853else
22854
22855 :
22856fi
22857
22858LIBS="$save_LIBS"
22859
22860ac_ext=c
22861ac_cpp='$CPP $CPPFLAGS'
22862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22864ac_compiler_gnu=$ac_cv_c_compiler_gnu
22865
22866
22867 fi
22868 done
22869
22870 THREAD_LIBS="$PTHREAD_LIBS"
22871 LIBS="$LIBS $THREAD_LIBS"
22872fi
22873
22874
22875#
22876# Check for umem.
22877#
22878have_umem='no'
22879UMEM_LIBS=''
22880if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000022881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000022882$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000022884$as_echo "" >&6; }
22885 failed=0
22886 passed=0
cristy8b350f62009-11-15 23:12:43 +000022887 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
22888if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022889 passed=`expr $passed + 1`
22890else
22891 failed=`expr $failed + 1`
22892fi
22893
22894
cristy8b350f62009-11-15 23:12:43 +000022895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000022896$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022897if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022898 $as_echo_n "(cached) " >&6
22899else
22900 ac_check_lib_save_LIBS=$LIBS
22901LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022903/* end confdefs.h. */
22904
22905/* Override any GCC internal prototype to avoid an error.
22906 Use char because int might match the return type of a GCC
22907 builtin and then its argument prototype would still apply. */
22908#ifdef __cplusplus
22909extern "C"
22910#endif
22911char umem_alloc ();
22912int
22913main ()
22914{
22915return umem_alloc ();
22916 ;
22917 return 0;
22918}
22919_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022920if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022921 ac_cv_lib_umem_umem_alloc=yes
22922else
cristy8b350f62009-11-15 23:12:43 +000022923 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000022924fi
cristy8b350f62009-11-15 23:12:43 +000022925rm -f core conftest.err conftest.$ac_objext \
22926 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022927LIBS=$ac_check_lib_save_LIBS
22928fi
cristy8b350f62009-11-15 23:12:43 +000022929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022930$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022931if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022932 passed=`expr $passed + 1`
22933else
22934 failed=`expr $failed + 1`
22935fi
22936
cristy8b350f62009-11-15 23:12:43 +000022937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000022938$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022939if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022940 $as_echo_n "(cached) " >&6
22941else
22942 ac_check_lib_save_LIBS=$LIBS
22943LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022945/* end confdefs.h. */
22946
22947/* Override any GCC internal prototype to avoid an error.
22948 Use char because int might match the return type of a GCC
22949 builtin and then its argument prototype would still apply. */
22950#ifdef __cplusplus
22951extern "C"
22952#endif
22953char umem_free ();
22954int
22955main ()
22956{
22957return umem_free ();
22958 ;
22959 return 0;
22960}
22961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022962if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022963 ac_cv_lib_umem_umem_free=yes
22964else
cristy8b350f62009-11-15 23:12:43 +000022965 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000022966fi
cristy8b350f62009-11-15 23:12:43 +000022967rm -f core conftest.err conftest.$ac_objext \
22968 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022969LIBS=$ac_check_lib_save_LIBS
22970fi
cristy8b350f62009-11-15 23:12:43 +000022971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000022972$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022973if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022974 passed=`expr $passed + 1`
22975else
22976 failed=`expr $failed + 1`
22977fi
22978
cristy8b350f62009-11-15 23:12:43 +000022979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000022980$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
22981 if test $passed -gt 0; then
22982 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000022983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000022984$as_echo "no -- some components failed test" >&6; }
22985 have_umem='no (failed tests)'
22986 else
22987 UMEM_LIBS='-lumem'
22988 LIBS="$UMEM_LIBS $LIBS"
22989
cristy8b350f62009-11-15 23:12:43 +000022990$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022991
cristy8b350f62009-11-15 23:12:43 +000022992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022993$as_echo "yes" >&6; }
22994 have_umem='yes'
22995 fi
22996 else
cristy8b350f62009-11-15 23:12:43 +000022997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022998$as_echo "no" >&6; }
22999 fi
23000fi
23001 if test "$have_umem" = 'yes'; then
23002 HasUMEM_TRUE=
23003 HasUMEM_FALSE='#'
23004else
23005 HasUMEM_TRUE='#'
23006 HasUMEM_FALSE=
23007fi
23008
23009
23010
23011#
23012# Add support for ccmalloc memory debugging library if requested
23013#
23014have_ccmalloc='no'
23015CCMALLOC_LIBS=''
23016if test "$enable_ccmalloc" = 'yes'; then
23017 # Extract the first word of "ccmalloc", so it can be a program name with args.
23018set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023020$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023021if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023022 $as_echo_n "(cached) " >&6
23023else
23024 case $CCMALLOCDelegate in
23025 [\\/]* | ?:[\\/]*)
23026 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23027 ;;
23028 *)
23029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23030for as_dir in $PATH
23031do
23032 IFS=$as_save_IFS
23033 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023034 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23036 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000023037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023038 break 2
23039 fi
23040done
cristy8b350f62009-11-15 23:12:43 +000023041 done
cristy3ed852e2009-09-05 21:47:34 +000023042IFS=$as_save_IFS
23043
23044 ;;
23045esac
23046fi
23047CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23048if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000023049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000023050$as_echo "$CCMALLOCDelegate" >&6; }
23051else
cristy8b350f62009-11-15 23:12:43 +000023052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023053$as_echo "no" >&6; }
23054fi
23055
23056
23057 if test -n "$CCMALLOCDelegate"; then
23058 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23059 OLIBS="$LIBS"
23060 # Assume that gcc is used with ccmalloc.
23061 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000023062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023063$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023064if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023065 $as_echo_n "(cached) " >&6
23066else
23067 ac_check_lib_save_LIBS=$LIBS
23068LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023070/* end confdefs.h. */
23071
23072/* Override any GCC internal prototype to avoid an error.
23073 Use char because int might match the return type of a GCC
23074 builtin and then its argument prototype would still apply. */
23075#ifdef __cplusplus
23076extern "C"
23077#endif
23078char ccmalloc_malloc ();
23079int
23080main ()
23081{
23082return ccmalloc_malloc ();
23083 ;
23084 return 0;
23085}
23086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023087if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023088 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
23089else
cristy8b350f62009-11-15 23:12:43 +000023090 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000023091fi
cristy8b350f62009-11-15 23:12:43 +000023092rm -f core conftest.err conftest.$ac_objext \
23093 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023094LIBS=$ac_check_lib_save_LIBS
23095fi
cristy8b350f62009-11-15 23:12:43 +000023096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023097$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023098if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023099 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
23100fi
23101
23102 if test -n "$CCMALLOC_LIBS"; then
23103 LIBS="$OLIBS"
23104 LIBS="$LIBS $CCMALLOC_LIBS"
23105 have_ccmalloc='yes'
23106 else
23107 LIBS="$OLIBS"
23108 fi
23109 fi
23110fi
23111
23112#
23113# Add support for efence memory debugging library if requested
23114#
23115if test "$enable_efence" = 'yes'; then
23116 EFENCE_LIBS='-lefence'
23117 LIBS="$EFENCE_LIBS $LIBS"
23118fi
23119
23120#
23121# Find math library
23122#
23123MATH_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023125$as_echo_n "checking for sqrt in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023126if test "${ac_cv_lib_m_sqrt+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023127 $as_echo_n "(cached) " >&6
23128else
23129 ac_check_lib_save_LIBS=$LIBS
23130LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023132/* end confdefs.h. */
23133
23134/* Override any GCC internal prototype to avoid an error.
23135 Use char because int might match the return type of a GCC
23136 builtin and then its argument prototype would still apply. */
23137#ifdef __cplusplus
23138extern "C"
23139#endif
23140char sqrt ();
23141int
23142main ()
23143{
23144return sqrt ();
23145 ;
23146 return 0;
23147}
23148_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023149if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023150 ac_cv_lib_m_sqrt=yes
23151else
cristy8b350f62009-11-15 23:12:43 +000023152 ac_cv_lib_m_sqrt=no
cristy3ed852e2009-09-05 21:47:34 +000023153fi
cristy8b350f62009-11-15 23:12:43 +000023154rm -f core conftest.err conftest.$ac_objext \
23155 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023156LIBS=$ac_check_lib_save_LIBS
23157fi
cristy8b350f62009-11-15 23:12:43 +000023158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
cristy3ed852e2009-09-05 21:47:34 +000023159$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023160if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023161 MATH_LIBS="-lm"
23162fi
23163
23164LIBS="$MATH_LIBS $LIBS"
23165
23166
23167
23168#
23169# Check for BZLIB
23170#
23171
23172
23173# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000023174if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023175 withval=$with_bzlib; with_bzlib=$withval
23176else
23177 with_bzlib='yes'
23178fi
23179
23180
23181if test "$with_bzlib" != 'yes'; then
23182 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
23183fi
23184
23185have_bzlib='no'
23186if test "$with_bzlib" != 'no'; then
23187 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000023189$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023191$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023193$as_echo "" >&6; }
23194 failed=0
23195 passed=0
23196 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000023197 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
23198if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023199 passed=`expr $passed + 1`
23200else
23201 failed=`expr $failed + 1`
23202fi
23203
23204
cristy8b350f62009-11-15 23:12:43 +000023205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023206$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023207if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023208 $as_echo_n "(cached) " >&6
23209else
23210 ac_check_lib_save_LIBS=$LIBS
23211LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023213/* end confdefs.h. */
23214
23215/* Override any GCC internal prototype to avoid an error.
23216 Use char because int might match the return type of a GCC
23217 builtin and then its argument prototype would still apply. */
23218#ifdef __cplusplus
23219extern "C"
23220#endif
23221char BZ2_bzDecompress ();
23222int
23223main ()
23224{
23225return BZ2_bzDecompress ();
23226 ;
23227 return 0;
23228}
23229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023230if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023231 ac_cv_lib_bz2_BZ2_bzDecompress=yes
23232else
cristy8b350f62009-11-15 23:12:43 +000023233 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000023234fi
cristy8b350f62009-11-15 23:12:43 +000023235rm -f core conftest.err conftest.$ac_objext \
23236 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023237LIBS=$ac_check_lib_save_LIBS
23238fi
cristy8b350f62009-11-15 23:12:43 +000023239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023240$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023241if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023242 found_libbz=`expr $found_libbz + 1`
23243fi
23244
23245 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000023246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023247$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023248if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023249 $as_echo_n "(cached) " >&6
23250else
23251 ac_check_lib_save_LIBS=$LIBS
23252LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023254/* end confdefs.h. */
23255
23256/* Override any GCC internal prototype to avoid an error.
23257 Use char because int might match the return type of a GCC
23258 builtin and then its argument prototype would still apply. */
23259#ifdef __cplusplus
23260extern "C"
23261#endif
23262char _imp__BZ2_decompress ();
23263int
23264main ()
23265{
23266return _imp__BZ2_decompress ();
23267 ;
23268 return 0;
23269}
23270_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023271if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023272 ac_cv_lib_bz2__imp__BZ2_decompress=yes
23273else
cristy8b350f62009-11-15 23:12:43 +000023274 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000023275fi
cristy8b350f62009-11-15 23:12:43 +000023276rm -f core conftest.err conftest.$ac_objext \
23277 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023278LIBS=$ac_check_lib_save_LIBS
23279fi
cristy8b350f62009-11-15 23:12:43 +000023280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023281$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023282if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023283 found_libbz=`expr $found_libbz + 1`
23284fi
23285
23286 fi
23287 if test $found_libbz -gt 0; then
23288 passed=`expr $passed + 1`
23289 else
23290 failed=`expr $failed + 1`
23291 fi
cristy8b350f62009-11-15 23:12:43 +000023292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023293$as_echo_n "checking if BZLIB package is complete... " >&6; }
23294 if test $passed -gt 0; then
23295 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023297$as_echo "no -- some components failed test" >&6; }
23298 have_bzlib='no (failed tests)'
23299 else
23300 BZLIB_LIBS='-lbz2'
23301 LIBS="$BZLIB_LIBS $LIBS"
23302
cristy8b350f62009-11-15 23:12:43 +000023303$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023304
cristy8b350f62009-11-15 23:12:43 +000023305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023306$as_echo "yes" >&6; }
23307 have_bzlib='yes'
23308 fi
23309 else
cristy8b350f62009-11-15 23:12:43 +000023310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023311$as_echo "no" >&6; }
23312 fi
23313fi
23314 if test "$have_bzlib" = 'yes'; then
23315 BZLIB_DELEGATE_TRUE=
23316 BZLIB_DELEGATE_FALSE='#'
23317else
23318 BZLIB_DELEGATE_TRUE='#'
23319 BZLIB_DELEGATE_FALSE=
23320fi
23321
23322
23323
23324#
23325# Find the X11 include and library directories.
23326#
23327IPC_LIBS=''
23328X11_LIBS=''
23329XEXT_LIBS=''
23330XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000023332$as_echo_n "checking for X... " >&6; }
23333
23334
23335# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000023336if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023337 withval=$with_x;
23338fi
23339
23340# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23341if test "x$with_x" = xno; then
23342 # The user explicitly disabled X.
23343 have_x=disabled
23344else
23345 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000023346 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
23347 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023348 $as_echo_n "(cached) " >&6
23349else
23350 # One or both of the vars are not set, and there is no cached value.
23351ac_x_includes=no ac_x_libraries=no
23352rm -f -r conftest.dir
23353if mkdir conftest.dir; then
23354 cd conftest.dir
23355 cat >Imakefile <<'_ACEOF'
23356incroot:
23357 @echo incroot='${INCROOT}'
23358usrlibdir:
23359 @echo usrlibdir='${USRLIBDIR}'
23360libdir:
23361 @echo libdir='${LIBDIR}'
23362_ACEOF
23363 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23364 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23365 for ac_var in incroot usrlibdir libdir; do
23366 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23367 done
23368 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23369 for ac_extension in a so sl dylib la dll; do
23370 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23371 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23372 ac_im_usrlibdir=$ac_im_libdir; break
23373 fi
23374 done
23375 # Screen out bogus values from the imake configuration. They are
23376 # bogus both because they are the default anyway, and because
23377 # using them would break gcc on systems where it needs fixed includes.
23378 case $ac_im_incroot in
23379 /usr/include) ac_x_includes= ;;
23380 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23381 esac
23382 case $ac_im_usrlibdir in
23383 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23384 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23385 esac
23386 fi
23387 cd ..
23388 rm -f -r conftest.dir
23389fi
23390
23391# Standard set of common directories for X headers.
23392# Check X11 before X11Rn because it is often a symlink to the current release.
23393ac_x_header_dirs='
23394/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000023395/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023396/usr/X11R6/include
23397/usr/X11R5/include
23398/usr/X11R4/include
23399
23400/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000023401/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023402/usr/include/X11R6
23403/usr/include/X11R5
23404/usr/include/X11R4
23405
23406/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000023407/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023408/usr/local/X11R6/include
23409/usr/local/X11R5/include
23410/usr/local/X11R4/include
23411
23412/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000023413/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023414/usr/local/include/X11R6
23415/usr/local/include/X11R5
23416/usr/local/include/X11R4
23417
23418/usr/X386/include
23419/usr/x386/include
23420/usr/XFree86/include/X11
23421
23422/usr/include
23423/usr/local/include
23424/usr/unsupported/include
23425/usr/athena/include
23426/usr/local/x11r5/include
23427/usr/lpp/Xamples/include
23428
23429/usr/openwin/include
23430/usr/openwin/share/include'
23431
23432if test "$ac_x_includes" = no; then
23433 # Guess where to find include files, by looking for Xlib.h.
23434 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000023435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023436/* end confdefs.h. */
23437#include <X11/Xlib.h>
23438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023439if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023440 # We can compile using X headers with no special include directory.
23441ac_x_includes=
23442else
cristyc7083c12009-10-14 03:16:55 +000023443 for ac_dir in $ac_x_header_dirs; do
23444 if test -r "$ac_dir/X11/Xlib.h"; then
23445 ac_x_includes=$ac_dir
23446 break
23447 fi
23448done
23449fi
cristyc7083c12009-10-14 03:16:55 +000023450rm -f conftest.err conftest.$ac_ext
23451fi # $ac_x_includes = no
23452
23453if test "$ac_x_libraries" = no; then
23454 # Check for the libraries.
23455 # See if we find them without any special options.
23456 # Don't add to $LIBS permanently.
23457 ac_save_LIBS=$LIBS
23458 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023460/* end confdefs.h. */
23461#include <X11/Xlib.h>
23462int
23463main ()
23464{
23465XrmInitialize ()
23466 ;
23467 return 0;
23468}
23469_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023470if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023471 LIBS=$ac_save_LIBS
23472# We can link X programs with no special library path.
23473ac_x_libraries=
23474else
cristy8b350f62009-11-15 23:12:43 +000023475 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000023476for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23477do
23478 # Don't even attempt the hair of trying to link an X program!
23479 for ac_extension in a so sl dylib la dll; do
23480 if test -r "$ac_dir/libX11.$ac_extension"; then
23481 ac_x_libraries=$ac_dir
23482 break 2
23483 fi
23484 done
23485done
23486fi
cristy8b350f62009-11-15 23:12:43 +000023487rm -f core conftest.err conftest.$ac_objext \
23488 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023489fi # $ac_x_libraries = no
23490
23491case $ac_x_includes,$ac_x_libraries in #(
23492 no,* | *,no | *\'*)
23493 # Didn't find X, or a directory has "'" in its name.
23494 ac_cv_have_x="have_x=no";; #(
23495 *)
23496 # Record where we found X for the cache.
23497 ac_cv_have_x="have_x=yes\
23498 ac_x_includes='$ac_x_includes'\
23499 ac_x_libraries='$ac_x_libraries'"
23500esac
23501fi
23502;; #(
23503 *) have_x=yes;;
23504 esac
23505 eval "$ac_cv_have_x"
23506fi # $with_x != no
23507
23508if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000023510$as_echo "$have_x" >&6; }
23511 no_x=yes
23512else
23513 # If each of the values was on the command line, it overrides each guess.
23514 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23515 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23516 # Update the cache value to reflect the command line values.
23517 ac_cv_have_x="have_x=yes\
23518 ac_x_includes='$x_includes'\
23519 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000023520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000023521$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23522fi
23523
cristy3ed852e2009-09-05 21:47:34 +000023524if test "$no_x" = yes; then
23525 # Not all programs may use this symbol, but it does not hurt to define it.
23526
cristy8b350f62009-11-15 23:12:43 +000023527$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023528
23529 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23530else
23531 if test -n "$x_includes"; then
23532 X_CFLAGS="$X_CFLAGS -I$x_includes"
23533 fi
23534
23535 # It would also be nice to do this for all -L options, not just this one.
23536 if test -n "$x_libraries"; then
23537 X_LIBS="$X_LIBS -L$x_libraries"
23538 # For Solaris; some versions of Sun CC require a space after -R and
23539 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000023540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000023541$as_echo_n "checking whether -R must be followed by a space... " >&6; }
23542 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23543 ac_xsave_c_werror_flag=$ac_c_werror_flag
23544 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000023545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023546/* end confdefs.h. */
23547
23548int
23549main ()
23550{
23551
23552 ;
23553 return 0;
23554}
23555_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023556if ac_fn_c_try_link "$LINENO"; then :
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023558$as_echo "no" >&6; }
23559 X_LIBS="$X_LIBS -R$x_libraries"
23560else
cristy8b350f62009-11-15 23:12:43 +000023561 LIBS="$ac_xsave_LIBS -R $x_libraries"
23562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023563/* end confdefs.h. */
23564
23565int
23566main ()
23567{
23568
23569 ;
23570 return 0;
23571}
23572_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023573if ac_fn_c_try_link "$LINENO"; then :
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023575$as_echo "yes" >&6; }
23576 X_LIBS="$X_LIBS -R $x_libraries"
23577else
cristy8b350f62009-11-15 23:12:43 +000023578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023579$as_echo "neither works" >&6; }
23580fi
cristy8b350f62009-11-15 23:12:43 +000023581rm -f core conftest.err conftest.$ac_objext \
23582 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023583fi
cristy8b350f62009-11-15 23:12:43 +000023584rm -f core conftest.err conftest.$ac_objext \
23585 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023586 ac_c_werror_flag=$ac_xsave_c_werror_flag
23587 LIBS=$ac_xsave_LIBS
23588 fi
23589
23590 # Check for system-dependent libraries X programs must link with.
23591 # Do this before checking for the system-independent R6 libraries
23592 # (-lICE), since we may need -lsocket or whatever for X linking.
23593
23594 if test "$ISC" = yes; then
23595 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23596 else
23597 # Martyn Johnson says this is needed for Ultrix, if the X
23598 # libraries were built with DECnet support. And Karl Berry says
23599 # the Alpha needs dnet_stub (dnet does not exist).
23600 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000023601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023602/* end confdefs.h. */
23603
23604/* Override any GCC internal prototype to avoid an error.
23605 Use char because int might match the return type of a GCC
23606 builtin and then its argument prototype would still apply. */
23607#ifdef __cplusplus
23608extern "C"
23609#endif
23610char XOpenDisplay ();
23611int
23612main ()
23613{
23614return XOpenDisplay ();
23615 ;
23616 return 0;
23617}
23618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023619if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023620
cristy8b350f62009-11-15 23:12:43 +000023621else
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023623$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023624if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023625 $as_echo_n "(cached) " >&6
23626else
23627 ac_check_lib_save_LIBS=$LIBS
23628LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023630/* end confdefs.h. */
23631
23632/* Override any GCC internal prototype to avoid an error.
23633 Use char because int might match the return type of a GCC
23634 builtin and then its argument prototype would still apply. */
23635#ifdef __cplusplus
23636extern "C"
23637#endif
23638char dnet_ntoa ();
23639int
23640main ()
23641{
23642return dnet_ntoa ();
23643 ;
23644 return 0;
23645}
23646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023647if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023648 ac_cv_lib_dnet_dnet_ntoa=yes
23649else
cristy8b350f62009-11-15 23:12:43 +000023650 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023651fi
cristy8b350f62009-11-15 23:12:43 +000023652rm -f core conftest.err conftest.$ac_objext \
23653 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023654LIBS=$ac_check_lib_save_LIBS
23655fi
cristy8b350f62009-11-15 23:12:43 +000023656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023657$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023658if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023659 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23660fi
23661
23662 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000023663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000023664$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023665if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023666 $as_echo_n "(cached) " >&6
23667else
23668 ac_check_lib_save_LIBS=$LIBS
23669LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023671/* end confdefs.h. */
23672
23673/* Override any GCC internal prototype to avoid an error.
23674 Use char because int might match the return type of a GCC
23675 builtin and then its argument prototype would still apply. */
23676#ifdef __cplusplus
23677extern "C"
23678#endif
23679char dnet_ntoa ();
23680int
23681main ()
23682{
23683return dnet_ntoa ();
23684 ;
23685 return 0;
23686}
23687_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023688if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023689 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23690else
cristy8b350f62009-11-15 23:12:43 +000023691 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023692fi
cristy8b350f62009-11-15 23:12:43 +000023693rm -f core conftest.err conftest.$ac_objext \
23694 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023695LIBS=$ac_check_lib_save_LIBS
23696fi
cristy8b350f62009-11-15 23:12:43 +000023697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023698$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023699if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023700 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23701fi
23702
23703 fi
23704fi
cristy8b350f62009-11-15 23:12:43 +000023705rm -f core conftest.err conftest.$ac_objext \
23706 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023707 LIBS="$ac_xsave_LIBS"
23708
23709 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23710 # to get the SysV transport functions.
23711 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23712 # needs -lnsl.
23713 # The nsl library prevents programs from opening the X display
23714 # on Irix 5.2, according to T.E. Dickey.
23715 # The functions gethostbyname, getservbyname, and inet_addr are
23716 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000023717 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23718if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023719
cristy3ed852e2009-09-05 21:47:34 +000023720fi
23721
cristy3ed852e2009-09-05 21:47:34 +000023722 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000023723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000023724$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023725if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023726 $as_echo_n "(cached) " >&6
23727else
23728 ac_check_lib_save_LIBS=$LIBS
23729LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023731/* end confdefs.h. */
23732
23733/* Override any GCC internal prototype to avoid an error.
23734 Use char because int might match the return type of a GCC
23735 builtin and then its argument prototype would still apply. */
23736#ifdef __cplusplus
23737extern "C"
23738#endif
23739char gethostbyname ();
23740int
23741main ()
23742{
23743return gethostbyname ();
23744 ;
23745 return 0;
23746}
23747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023748if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023749 ac_cv_lib_nsl_gethostbyname=yes
23750else
cristy8b350f62009-11-15 23:12:43 +000023751 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000023752fi
cristy8b350f62009-11-15 23:12:43 +000023753rm -f core conftest.err conftest.$ac_objext \
23754 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023755LIBS=$ac_check_lib_save_LIBS
23756fi
cristy8b350f62009-11-15 23:12:43 +000023757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000023758$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023759if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023760 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23761fi
23762
23763 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000023764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000023765$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023766if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023767 $as_echo_n "(cached) " >&6
23768else
23769 ac_check_lib_save_LIBS=$LIBS
23770LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023772/* end confdefs.h. */
23773
23774/* Override any GCC internal prototype to avoid an error.
23775 Use char because int might match the return type of a GCC
23776 builtin and then its argument prototype would still apply. */
23777#ifdef __cplusplus
23778extern "C"
23779#endif
23780char gethostbyname ();
23781int
23782main ()
23783{
23784return gethostbyname ();
23785 ;
23786 return 0;
23787}
23788_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023789if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023790 ac_cv_lib_bsd_gethostbyname=yes
23791else
cristy8b350f62009-11-15 23:12:43 +000023792 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000023793fi
cristy8b350f62009-11-15 23:12:43 +000023794rm -f core conftest.err conftest.$ac_objext \
23795 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023796LIBS=$ac_check_lib_save_LIBS
23797fi
cristy8b350f62009-11-15 23:12:43 +000023798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000023799$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023800if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023801 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23802fi
23803
23804 fi
23805 fi
23806
23807 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23808 # socket/setsockopt and other routines are undefined under SCO ODT
23809 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23810 # on later versions), says Simon Leinen: it contains gethostby*
23811 # variants that don't use the name server (or something). -lsocket
23812 # must be given before -lnsl if both are needed. We assume that
23813 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000023814 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
23815if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023816
cristy3ed852e2009-09-05 21:47:34 +000023817fi
23818
cristy3ed852e2009-09-05 21:47:34 +000023819 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000023820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000023821$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023822if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023823 $as_echo_n "(cached) " >&6
23824else
23825 ac_check_lib_save_LIBS=$LIBS
23826LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023828/* end confdefs.h. */
23829
23830/* Override any GCC internal prototype to avoid an error.
23831 Use char because int might match the return type of a GCC
23832 builtin and then its argument prototype would still apply. */
23833#ifdef __cplusplus
23834extern "C"
23835#endif
23836char connect ();
23837int
23838main ()
23839{
23840return connect ();
23841 ;
23842 return 0;
23843}
23844_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023845if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023846 ac_cv_lib_socket_connect=yes
23847else
cristy8b350f62009-11-15 23:12:43 +000023848 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000023849fi
cristy8b350f62009-11-15 23:12:43 +000023850rm -f core conftest.err conftest.$ac_objext \
23851 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023852LIBS=$ac_check_lib_save_LIBS
23853fi
cristy8b350f62009-11-15 23:12:43 +000023854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000023855$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023856if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023857 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23858fi
23859
23860 fi
23861
23862 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000023863 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
23864if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023865
cristy3ed852e2009-09-05 21:47:34 +000023866fi
23867
cristy3ed852e2009-09-05 21:47:34 +000023868 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000023869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000023870$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023871if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023872 $as_echo_n "(cached) " >&6
23873else
23874 ac_check_lib_save_LIBS=$LIBS
23875LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023877/* end confdefs.h. */
23878
23879/* Override any GCC internal prototype to avoid an error.
23880 Use char because int might match the return type of a GCC
23881 builtin and then its argument prototype would still apply. */
23882#ifdef __cplusplus
23883extern "C"
23884#endif
23885char remove ();
23886int
23887main ()
23888{
23889return remove ();
23890 ;
23891 return 0;
23892}
23893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023894if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023895 ac_cv_lib_posix_remove=yes
23896else
cristy8b350f62009-11-15 23:12:43 +000023897 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000023898fi
cristy8b350f62009-11-15 23:12:43 +000023899rm -f core conftest.err conftest.$ac_objext \
23900 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023901LIBS=$ac_check_lib_save_LIBS
23902fi
cristy8b350f62009-11-15 23:12:43 +000023903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000023904$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023905if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023906 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23907fi
23908
23909 fi
23910
23911 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000023912 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
23913if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023914
cristy3ed852e2009-09-05 21:47:34 +000023915fi
23916
cristy3ed852e2009-09-05 21:47:34 +000023917 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000023918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023919$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023920if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023921 $as_echo_n "(cached) " >&6
23922else
23923 ac_check_lib_save_LIBS=$LIBS
23924LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023926/* end confdefs.h. */
23927
23928/* Override any GCC internal prototype to avoid an error.
23929 Use char because int might match the return type of a GCC
23930 builtin and then its argument prototype would still apply. */
23931#ifdef __cplusplus
23932extern "C"
23933#endif
23934char shmat ();
23935int
23936main ()
23937{
23938return shmat ();
23939 ;
23940 return 0;
23941}
23942_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023943if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023944 ac_cv_lib_ipc_shmat=yes
23945else
cristy8b350f62009-11-15 23:12:43 +000023946 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000023947fi
cristy8b350f62009-11-15 23:12:43 +000023948rm -f core conftest.err conftest.$ac_objext \
23949 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023950LIBS=$ac_check_lib_save_LIBS
23951fi
cristy8b350f62009-11-15 23:12:43 +000023952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000023953$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023954if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023955 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23956fi
23957
23958 fi
23959 fi
23960
23961 # Check for libraries that X11R6 Xt/Xaw programs need.
23962 ac_save_LDFLAGS=$LDFLAGS
23963 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23964 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23965 # check for ICE first), but we must link in the order -lSM -lICE or
23966 # we get undefined symbols. So assume we have SM if we have ICE.
23967 # These have to be linked with before -lX11, unlike the other
23968 # libraries we check for below, so use a different variable.
23969 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000023970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000023971$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023972if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023973 $as_echo_n "(cached) " >&6
23974else
23975 ac_check_lib_save_LIBS=$LIBS
23976LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023978/* end confdefs.h. */
23979
23980/* Override any GCC internal prototype to avoid an error.
23981 Use char because int might match the return type of a GCC
23982 builtin and then its argument prototype would still apply. */
23983#ifdef __cplusplus
23984extern "C"
23985#endif
23986char IceConnectionNumber ();
23987int
23988main ()
23989{
23990return IceConnectionNumber ();
23991 ;
23992 return 0;
23993}
23994_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023995if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023996 ac_cv_lib_ICE_IceConnectionNumber=yes
23997else
cristy8b350f62009-11-15 23:12:43 +000023998 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000023999fi
cristy8b350f62009-11-15 23:12:43 +000024000rm -f core conftest.err conftest.$ac_objext \
24001 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024002LIBS=$ac_check_lib_save_LIBS
24003fi
cristy8b350f62009-11-15 23:12:43 +000024004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000024005$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024006if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024007 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24008fi
24009
24010 LDFLAGS=$ac_save_LDFLAGS
24011
24012fi
24013
24014if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024016$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000024018$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024020$as_echo "" >&6; }
24021 LDFLAGS="$LDFLAGS $X_LIBS"
24022 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24023 LIBS="$X11_LIBS $LIBS"
24024 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24025
24026
cristy8b350f62009-11-15 23:12:43 +000024027$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024028
24029 #
24030 # Check for X11 shared memory extension
24031 #
24032 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000024033 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24034if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024035 have_shmctl='yes'
24036fi
24037
24038 if test "$have_shmctl" != 'yes'; then
24039 PERSIST_LIBS=$LIBS
24040 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000024041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024042/* end confdefs.h. */
24043
24044/* Override any GCC internal prototype to avoid an error.
24045 Use char because int might match the return type of a GCC
24046 builtin and then its argument prototype would still apply. */
24047#ifdef __cplusplus
24048extern "C"
24049#endif
24050char shmctl ();
24051int
24052main ()
24053{
24054return shmctl ();
24055 ;
24056 return 0;
24057}
24058_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024059if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024060 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000024061fi
cristy8b350f62009-11-15 23:12:43 +000024062rm -f core conftest.err conftest.$ac_objext \
24063 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024064 LIBS=$PERSIST_LIBS
24065 fi
24066
24067 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024069$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024070if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024071 $as_echo_n "(cached) " >&6
24072else
24073 ac_check_lib_save_LIBS=$LIBS
24074LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024076/* end confdefs.h. */
24077
24078/* Override any GCC internal prototype to avoid an error.
24079 Use char because int might match the return type of a GCC
24080 builtin and then its argument prototype would still apply. */
24081#ifdef __cplusplus
24082extern "C"
24083#endif
24084char XShmAttach ();
24085int
24086main ()
24087{
24088return XShmAttach ();
24089 ;
24090 return 0;
24091}
24092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024093if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024094 ac_cv_lib_Xext_XShmAttach=yes
24095else
cristy8b350f62009-11-15 23:12:43 +000024096 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000024097fi
cristy8b350f62009-11-15 23:12:43 +000024098rm -f core conftest.err conftest.$ac_objext \
24099 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024100LIBS=$ac_check_lib_save_LIBS
24101fi
cristy8b350f62009-11-15 23:12:43 +000024102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000024103$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024104if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024105 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024106$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024107
24108fi
24109
24110 fi
24111
24112 #
24113 # Check for X11 shape extension
24114 #
cristy8b350f62009-11-15 23:12:43 +000024115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024116$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024117if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024118 $as_echo_n "(cached) " >&6
24119else
24120 ac_check_lib_save_LIBS=$LIBS
24121LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024123/* end confdefs.h. */
24124
24125/* Override any GCC internal prototype to avoid an error.
24126 Use char because int might match the return type of a GCC
24127 builtin and then its argument prototype would still apply. */
24128#ifdef __cplusplus
24129extern "C"
24130#endif
24131char XShapeCombineMask ();
24132int
24133main ()
24134{
24135return XShapeCombineMask ();
24136 ;
24137 return 0;
24138}
24139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024140if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024141 ac_cv_lib_Xext_XShapeCombineMask=yes
24142else
cristy8b350f62009-11-15 23:12:43 +000024143 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000024144fi
cristy8b350f62009-11-15 23:12:43 +000024145rm -f core conftest.err conftest.$ac_objext \
24146 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024147LIBS=$ac_check_lib_save_LIBS
24148fi
cristy8b350f62009-11-15 23:12:43 +000024149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000024150$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024151if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024152 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024153$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024154
24155fi
24156
cristy8b350f62009-11-15 23:12:43 +000024157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000024158$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024159if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024160 $as_echo_n "(cached) " >&6
24161else
24162 ac_check_lib_save_LIBS=$LIBS
24163LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024165/* end confdefs.h. */
24166
24167/* Override any GCC internal prototype to avoid an error.
24168 Use char because int might match the return type of a GCC
24169 builtin and then its argument prototype would still apply. */
24170#ifdef __cplusplus
24171extern "C"
24172#endif
24173char XtSetEventDispatcher ();
24174int
24175main ()
24176{
24177return XtSetEventDispatcher ();
24178 ;
24179 return 0;
24180}
24181_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024182if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024183 ac_cv_lib_Xt_XtSetEventDispatcher=yes
24184else
cristy8b350f62009-11-15 23:12:43 +000024185 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000024186fi
cristy8b350f62009-11-15 23:12:43 +000024187rm -f core conftest.err conftest.$ac_objext \
24188 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024189LIBS=$ac_check_lib_save_LIBS
24190fi
cristy8b350f62009-11-15 23:12:43 +000024191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000024192$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024193if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024194 XT_LIBS='-lXt'
24195fi
24196
24197 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
24198fi
24199if test "$no_x" != 'yes'; then
24200 have_x='yes'
24201else
24202 have_x='no'
24203fi
24204 if test "$have_x" = 'yes'; then
24205 X11_DELEGATE_TRUE=
24206 X11_DELEGATE_FALSE='#'
24207else
24208 X11_DELEGATE_TRUE='#'
24209 X11_DELEGATE_FALSE=
24210fi
24211
24212
24213
24214
24215
24216#
24217# Check for ZLIB
24218#
24219
24220# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000024221if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024222 withval=$with_zlib; with_zlib=$withval
24223else
24224 with_zlib='yes'
24225fi
24226
24227
24228if test "$with_zlib" != 'yes'; then
24229 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
24230fi
24231
24232have_zlib='no'
24233ZLIB_LIBS=''
24234if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024236$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024238$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024240$as_echo "" >&6; }
24241 ZLIB_LIBS=''
24242 failed=0
24243 passed=0
cristy8b350f62009-11-15 23:12:43 +000024244 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
24245if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024246 passed=`expr $passed + 1`
24247else
24248 failed=`expr $failed + 1`
24249fi
24250
24251
cristy8b350f62009-11-15 23:12:43 +000024252 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24253if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024254 passed=`expr $passed + 1`
24255else
24256 failed=`expr $failed + 1`
24257fi
24258
24259
cristy8b350f62009-11-15 23:12:43 +000024260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024261$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024262if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024263 $as_echo_n "(cached) " >&6
24264else
24265 ac_check_lib_save_LIBS=$LIBS
24266LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024268/* end confdefs.h. */
24269
24270/* Override any GCC internal prototype to avoid an error.
24271 Use char because int might match the return type of a GCC
24272 builtin and then its argument prototype would still apply. */
24273#ifdef __cplusplus
24274extern "C"
24275#endif
24276char compress ();
24277int
24278main ()
24279{
24280return compress ();
24281 ;
24282 return 0;
24283}
24284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024285if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024286 ac_cv_lib_z_compress=yes
24287else
cristy8b350f62009-11-15 23:12:43 +000024288 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000024289fi
cristy8b350f62009-11-15 23:12:43 +000024290rm -f core conftest.err conftest.$ac_objext \
24291 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024292LIBS=$ac_check_lib_save_LIBS
24293fi
cristy8b350f62009-11-15 23:12:43 +000024294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024295$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024296if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024297 passed=`expr $passed + 1`
24298else
24299 failed=`expr $failed + 1`
24300fi
24301
cristy8b350f62009-11-15 23:12:43 +000024302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024303$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024304if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024305 $as_echo_n "(cached) " >&6
24306else
24307 ac_check_lib_save_LIBS=$LIBS
24308LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024310/* end confdefs.h. */
24311
24312/* Override any GCC internal prototype to avoid an error.
24313 Use char because int might match the return type of a GCC
24314 builtin and then its argument prototype would still apply. */
24315#ifdef __cplusplus
24316extern "C"
24317#endif
24318char uncompress ();
24319int
24320main ()
24321{
24322return uncompress ();
24323 ;
24324 return 0;
24325}
24326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024327if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024328 ac_cv_lib_z_uncompress=yes
24329else
cristy8b350f62009-11-15 23:12:43 +000024330 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000024331fi
cristy8b350f62009-11-15 23:12:43 +000024332rm -f core conftest.err conftest.$ac_objext \
24333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024334LIBS=$ac_check_lib_save_LIBS
24335fi
cristy8b350f62009-11-15 23:12:43 +000024336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024337$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024338if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024339 passed=`expr $passed + 1`
24340else
24341 failed=`expr $failed + 1`
24342fi
24343
cristy8b350f62009-11-15 23:12:43 +000024344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024345$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024346if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024347 $as_echo_n "(cached) " >&6
24348else
24349 ac_check_lib_save_LIBS=$LIBS
24350LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024352/* end confdefs.h. */
24353
24354/* Override any GCC internal prototype to avoid an error.
24355 Use char because int might match the return type of a GCC
24356 builtin and then its argument prototype would still apply. */
24357#ifdef __cplusplus
24358extern "C"
24359#endif
24360char deflate ();
24361int
24362main ()
24363{
24364return deflate ();
24365 ;
24366 return 0;
24367}
24368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024369if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024370 ac_cv_lib_z_deflate=yes
24371else
cristy8b350f62009-11-15 23:12:43 +000024372 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000024373fi
cristy8b350f62009-11-15 23:12:43 +000024374rm -f core conftest.err conftest.$ac_objext \
24375 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024376LIBS=$ac_check_lib_save_LIBS
24377fi
cristy8b350f62009-11-15 23:12:43 +000024378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024379$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024380if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024381 passed=`expr $passed + 1`
24382else
24383 failed=`expr $failed + 1`
24384fi
24385
cristy8b350f62009-11-15 23:12:43 +000024386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024387$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024388if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024389 $as_echo_n "(cached) " >&6
24390else
24391 ac_check_lib_save_LIBS=$LIBS
24392LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024394/* end confdefs.h. */
24395
24396/* Override any GCC internal prototype to avoid an error.
24397 Use char because int might match the return type of a GCC
24398 builtin and then its argument prototype would still apply. */
24399#ifdef __cplusplus
24400extern "C"
24401#endif
24402char inflate ();
24403int
24404main ()
24405{
24406return inflate ();
24407 ;
24408 return 0;
24409}
24410_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024411if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024412 ac_cv_lib_z_inflate=yes
24413else
cristy8b350f62009-11-15 23:12:43 +000024414 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000024415fi
cristy8b350f62009-11-15 23:12:43 +000024416rm -f core conftest.err conftest.$ac_objext \
24417 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024418LIBS=$ac_check_lib_save_LIBS
24419fi
cristy8b350f62009-11-15 23:12:43 +000024420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024421$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024422if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024423 passed=`expr $passed + 1`
24424else
24425 failed=`expr $failed + 1`
24426fi
24427
cristy8b350f62009-11-15 23:12:43 +000024428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024429$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024430if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024431 $as_echo_n "(cached) " >&6
24432else
24433 ac_check_lib_save_LIBS=$LIBS
24434LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024436/* end confdefs.h. */
24437
24438/* Override any GCC internal prototype to avoid an error.
24439 Use char because int might match the return type of a GCC
24440 builtin and then its argument prototype would still apply. */
24441#ifdef __cplusplus
24442extern "C"
24443#endif
24444char gzseek ();
24445int
24446main ()
24447{
24448return gzseek ();
24449 ;
24450 return 0;
24451}
24452_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024453if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024454 ac_cv_lib_z_gzseek=yes
24455else
cristy8b350f62009-11-15 23:12:43 +000024456 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000024457fi
cristy8b350f62009-11-15 23:12:43 +000024458rm -f core conftest.err conftest.$ac_objext \
24459 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024460LIBS=$ac_check_lib_save_LIBS
24461fi
cristy8b350f62009-11-15 23:12:43 +000024462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000024463$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024464if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024465 passed=`expr $passed + 1`
24466else
24467 failed=`expr $failed + 1`
24468fi
24469
cristy8b350f62009-11-15 23:12:43 +000024470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024471$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024472if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024473 $as_echo_n "(cached) " >&6
24474else
24475 ac_check_lib_save_LIBS=$LIBS
24476LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024478/* end confdefs.h. */
24479
24480/* Override any GCC internal prototype to avoid an error.
24481 Use char because int might match the return type of a GCC
24482 builtin and then its argument prototype would still apply. */
24483#ifdef __cplusplus
24484extern "C"
24485#endif
24486char gztell ();
24487int
24488main ()
24489{
24490return gztell ();
24491 ;
24492 return 0;
24493}
24494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024495if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024496 ac_cv_lib_z_gztell=yes
24497else
cristy8b350f62009-11-15 23:12:43 +000024498 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000024499fi
cristy8b350f62009-11-15 23:12:43 +000024500rm -f core conftest.err conftest.$ac_objext \
24501 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024502LIBS=$ac_check_lib_save_LIBS
24503fi
cristy8b350f62009-11-15 23:12:43 +000024504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000024505$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024506if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024507 passed=`expr $passed + 1`
24508else
24509 failed=`expr $failed + 1`
24510fi
24511
cristy8b350f62009-11-15 23:12:43 +000024512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024513$as_echo_n "checking if ZLIB package is complete... " >&6; }
24514 if test $passed -gt 0; then
24515 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024517$as_echo "no -- some components failed test" >&6; }
24518 have_zlib='no (failed tests)'
24519 else
24520 ZLIB_LIBS='-lz'
24521 LIBS="$ZLIB_LIBS $LIBS"
24522
cristy8b350f62009-11-15 23:12:43 +000024523$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024524
cristy8b350f62009-11-15 23:12:43 +000024525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024526$as_echo "yes" >&6; }
24527 have_zlib='yes'
24528 fi
24529 else
cristy8b350f62009-11-15 23:12:43 +000024530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024531$as_echo "no" >&6; }
24532 fi
24533fi
24534 if test "$have_zlib" = 'yes'; then
24535 ZLIB_DELEGATE_TRUE=
24536 ZLIB_DELEGATE_FALSE='#'
24537else
24538 ZLIB_DELEGATE_TRUE='#'
24539 ZLIB_DELEGATE_FALSE=
24540fi
24541
24542
24543
24544#
24545# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
24546#
24547LIB_DL=''
24548if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024550$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024551if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024552 $as_echo_n "(cached) " >&6
24553else
24554 ac_check_lib_save_LIBS=$LIBS
24555LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024557/* end confdefs.h. */
24558
24559/* Override any GCC internal prototype to avoid an error.
24560 Use char because int might match the return type of a GCC
24561 builtin and then its argument prototype would still apply. */
24562#ifdef __cplusplus
24563extern "C"
24564#endif
24565char dlopen ();
24566int
24567main ()
24568{
24569return dlopen ();
24570 ;
24571 return 0;
24572}
24573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024574if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024575 ac_cv_lib_dl_dlopen=yes
24576else
cristy8b350f62009-11-15 23:12:43 +000024577 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000024578fi
cristy8b350f62009-11-15 23:12:43 +000024579rm -f core conftest.err conftest.$ac_objext \
24580 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024581LIBS=$ac_check_lib_save_LIBS
24582fi
cristy8b350f62009-11-15 23:12:43 +000024583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000024584$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024585if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024586 LIB_DL='-ldl'
24587fi
24588
24589 LIBS="$LIB_DL $LIBS"
24590fi
24591
24592
24593
24594#
24595# Check for Autotrace delegate library.
24596#
24597
24598# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000024599if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024600 withval=$with_autotrace; with_autotrace=$withval
24601else
24602 with_autotrace='no'
24603fi
24604
24605
24606if test "$with_autotrace" != 'yes'; then
24607 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
24608fi
24609
24610have_autotrace='no'
24611AUTOTRACE_CFLAGS=""
24612AUTOTRACE_LIBS=""
24613AUTOTRACE_PKG=""
24614if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000024615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024616$as_echo "-------------------------------------------------------------" >&6; }
24617
24618pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000024619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024620$as_echo_n "checking for AUTOTRACE... " >&6; }
24621
24622if test -n "$AUTOTRACE_CFLAGS"; then
24623 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
24624 elif test -n "$PKG_CONFIG"; then
24625 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024627 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24628 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24630 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024631 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
24632else
24633 pkg_failed=yes
24634fi
24635 else
24636 pkg_failed=untried
24637fi
24638if test -n "$AUTOTRACE_LIBS"; then
24639 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
24640 elif test -n "$PKG_CONFIG"; then
24641 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024642 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024643 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24644 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24646 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024647 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
24648else
24649 pkg_failed=yes
24650fi
24651 else
24652 pkg_failed=untried
24653fi
24654
24655
24656
24657if test $pkg_failed = yes; then
24658
24659if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24660 _pkg_short_errors_supported=yes
24661else
24662 _pkg_short_errors_supported=no
24663fi
24664 if test $_pkg_short_errors_supported = yes; then
24665 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
24666 else
24667 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
24668 fi
24669 # Put the nasty error message in config.log where it belongs
24670 echo "$AUTOTRACE_PKG_ERRORS" >&5
24671
cristy8b350f62009-11-15 23:12:43 +000024672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024673$as_echo "no" >&6; }
24674 have_autotrace=no
24675elif test $pkg_failed = untried; then
24676 have_autotrace=no
24677else
24678 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
24679 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000024680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024681$as_echo "yes" >&6; }
24682 have_autotrace=yes
24683fi
cristy8b350f62009-11-15 23:12:43 +000024684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024685$as_echo "" >&6; }
24686fi
24687
24688if test "$have_autotrace" = 'yes'; then
24689 failed=0
24690
cristy8b350f62009-11-15 23:12:43 +000024691$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024692
24693 if test "$with_modules" = 'no'; then
24694 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
24695 fi
24696fi
24697
24698 if test "$have_autotrace" = 'yes'; then
24699 AUTOTRACE_DELEGATE_TRUE=
24700 AUTOTRACE_DELEGATE_FALSE='#'
24701else
24702 AUTOTRACE_DELEGATE_TRUE='#'
24703 AUTOTRACE_DELEGATE_FALSE=
24704fi
24705
24706
24707
24708
24709
24710#
24711# Check for Display Postscript delegate library.
24712#
24713
24714# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000024715if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024716 withval=$with_dps; with_dps=$withval
24717else
24718 with_dps='yes'
24719fi
24720
24721
24722if test "$with_dps" != 'yes'; then
24723 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
24724fi
24725
24726have_dps='no'
24727DPS_LIBS=''
24728if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024730$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000024732$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024734$as_echo "" >&6; }
24735 failed=0
24736 passed=0
24737 PERSIST_CPPFLAGS="$CPPFLAGS"
24738 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000024739 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
24740if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024741 passed=`expr $passed + 1`
24742else
24743 failed=`expr $failed + 1`
24744fi
24745
24746
24747 # DPS issues:
24748 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
24749 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
24750 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
24751 # ImageMagick itself doesn't use -lXt.
24752 have_libdps='no'
24753 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000024754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000024755$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024756if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024757 $as_echo_n "(cached) " >&6
24758else
24759 ac_check_lib_save_LIBS=$LIBS
24760LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024762/* end confdefs.h. */
24763
24764/* Override any GCC internal prototype to avoid an error.
24765 Use char because int might match the return type of a GCC
24766 builtin and then its argument prototype would still apply. */
24767#ifdef __cplusplus
24768extern "C"
24769#endif
24770char DPSInitialize ();
24771int
24772main ()
24773{
24774return DPSInitialize ();
24775 ;
24776 return 0;
24777}
24778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024779if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024780 ac_cv_lib_dps_DPSInitialize=yes
24781else
cristy8b350f62009-11-15 23:12:43 +000024782 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000024783fi
cristy8b350f62009-11-15 23:12:43 +000024784rm -f core conftest.err conftest.$ac_objext \
24785 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024786LIBS=$ac_check_lib_save_LIBS
24787fi
cristy8b350f62009-11-15 23:12:43 +000024788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000024789$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024790if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024791 have_libdps='yes'
24792else
24793 have_libdps='no'
24794fi
24795
24796 if test "$have_libdps" != 'yes'; then
24797 # Unset cache variable so we can try again.
24798 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000024799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000024800$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024801if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024802 $as_echo_n "(cached) " >&6
24803else
24804 ac_check_lib_save_LIBS=$LIBS
24805LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024807/* end confdefs.h. */
24808
24809/* Override any GCC internal prototype to avoid an error.
24810 Use char because int might match the return type of a GCC
24811 builtin and then its argument prototype would still apply. */
24812#ifdef __cplusplus
24813extern "C"
24814#endif
24815char DPSInitialize ();
24816int
24817main ()
24818{
24819return DPSInitialize ();
24820 ;
24821 return 0;
24822}
24823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024824if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024825 ac_cv_lib_dps_DPSInitialize=yes
24826else
cristy8b350f62009-11-15 23:12:43 +000024827 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000024828fi
cristy8b350f62009-11-15 23:12:43 +000024829rm -f core conftest.err conftest.$ac_objext \
24830 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024831LIBS=$ac_check_lib_save_LIBS
24832fi
cristy8b350f62009-11-15 23:12:43 +000024833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000024834$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024835if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024836 have_libdps='yes'
24837else
24838 have_libdps='no'
24839fi
24840
24841 if test "$have_libdps" = 'yes'; then
24842 LIBDPS_XT='-lXt'
24843 fi
24844 fi
24845 if test "$have_libdps" = 'yes'; then
24846 passed=`expr $passed + 1`
24847 else
24848 failed=`expr $failed + 1`
24849 fi
cristy8b350f62009-11-15 23:12:43 +000024850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024851$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024852if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024853 $as_echo_n "(cached) " >&6
24854else
24855 ac_check_lib_save_LIBS=$LIBS
24856LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024858/* end confdefs.h. */
24859
24860/* Override any GCC internal prototype to avoid an error.
24861 Use char because int might match the return type of a GCC
24862 builtin and then its argument prototype would still apply. */
24863#ifdef __cplusplus
24864extern "C"
24865#endif
24866char XDPSPixelsPerPoint ();
24867int
24868main ()
24869{
24870return XDPSPixelsPerPoint ();
24871 ;
24872 return 0;
24873}
24874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024875if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024876 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
24877else
cristy8b350f62009-11-15 23:12:43 +000024878 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000024879fi
cristy8b350f62009-11-15 23:12:43 +000024880rm -f core conftest.err conftest.$ac_objext \
24881 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024882LIBS=$ac_check_lib_save_LIBS
24883fi
cristy8b350f62009-11-15 23:12:43 +000024884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000024885$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024886if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024887 passed=`expr $passed + 1`
24888else
24889 failed=`expr $failed + 1`
24890fi
24891
cristy8b350f62009-11-15 23:12:43 +000024892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024893$as_echo_n "checking if DPS package is complete... " >&6; }
24894 if test $passed -gt 0; then
24895 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024897$as_echo "no -- some components failed test" >&6; }
24898 have_dps='no (failed tests)'
24899 CPPFLAGS="$PERSIST_CPPFLAGS"
24900 else
24901 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
24902 LIBS="$DPS_LIBS $LIBS"
24903
cristy8b350f62009-11-15 23:12:43 +000024904$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024905
cristy8b350f62009-11-15 23:12:43 +000024906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024907$as_echo "yes" >&6; }
24908 have_dps='yes'
24909 fi
24910 else
cristy8b350f62009-11-15 23:12:43 +000024911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024912$as_echo "no" >&6; }
24913 CPPFLAGS=$PERSIST_CPPFLAGS
24914 fi
24915fi
24916 if test "$have_dps" = 'yes'; then
24917 DPS_DELEGATE_TRUE=
24918 DPS_DELEGATE_FALSE='#'
24919else
24920 DPS_DELEGATE_TRUE='#'
24921 DPS_DELEGATE_FALSE=
24922fi
24923
24924
24925
24926
24927#
24928# Check for DJVU delegate library.
24929#
24930
24931# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000024932if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024933 withval=$with_djvu; with_djvu=$withval
24934else
24935 with_djvu='yes'
24936fi
24937
24938
24939if test "$with_djvu" != 'yes'; then
24940 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
24941fi
24942
24943have_djvu='no'
24944DJVU_LIBS=''
24945if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024947$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000024949$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024951$as_echo "" >&6; }
24952 failed=0
24953 passed=0
cristy8b350f62009-11-15 23:12:43 +000024954 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
24955if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024956 passed=`expr $passed + 1`
24957else
24958 failed=`expr $failed + 1`
24959fi
24960
24961
cristy8b350f62009-11-15 23:12:43 +000024962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000024963$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024964if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024965 $as_echo_n "(cached) " >&6
24966else
24967 ac_check_lib_save_LIBS=$LIBS
24968LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024970/* end confdefs.h. */
24971
24972/* Override any GCC internal prototype to avoid an error.
24973 Use char because int might match the return type of a GCC
24974 builtin and then its argument prototype would still apply. */
24975#ifdef __cplusplus
24976extern "C"
24977#endif
24978char ddjvu_context_create ();
24979int
24980main ()
24981{
24982return ddjvu_context_create ();
24983 ;
24984 return 0;
24985}
24986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024987if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024988 ac_cv_lib_djvulibre_ddjvu_context_create=yes
24989else
cristy8b350f62009-11-15 23:12:43 +000024990 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000024991fi
cristy8b350f62009-11-15 23:12:43 +000024992rm -f core conftest.err conftest.$ac_objext \
24993 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024994LIBS=$ac_check_lib_save_LIBS
24995fi
cristy8b350f62009-11-15 23:12:43 +000024996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000024997$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024998if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024999 passed=`expr $passed + 1`
25000else
25001 failed=`expr $failed + 1`
25002fi
25003
cristy8b350f62009-11-15 23:12:43 +000025004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025005$as_echo_n "checking if DJVU package is complete... " >&6; }
25006 if test $passed -gt 0; then
25007 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025009$as_echo "no -- some components failed test" >&6; }
25010 have_djvu='no (failed tests)'
25011 else
25012 DJVU_LIBS='-ldjvulibre'
25013 LIBS="$DJVU_LIBS $LIBS"
25014
cristy8b350f62009-11-15 23:12:43 +000025015$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025016
cristy8b350f62009-11-15 23:12:43 +000025017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025018$as_echo "yes" >&6; }
25019 have_djvu='yes'
25020 fi
25021 else
cristy8b350f62009-11-15 23:12:43 +000025022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025023$as_echo "no" >&6; }
25024 fi
25025fi
25026 if test "$have_djvu" = 'yes'; then
25027 DJVU_DELEGATE_TRUE=
25028 DJVU_DELEGATE_FALSE='#'
25029else
25030 DJVU_DELEGATE_TRUE='#'
25031 DJVU_DELEGATE_FALSE=
25032fi
25033
25034
25035
25036
25037#
25038# Check for FFTW delegate library.
25039#
25040
25041# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000025042if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025043 withval=$with_fftw; with_fftw=$withval
25044else
25045 with_fftw='yes'
25046fi
25047
25048
25049if test "$with_fftw" != 'yes'; then
25050 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
25051fi
25052
25053have_fftw='no'
25054FFTW_LIBS=''
25055if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025057$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000025059$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025061$as_echo "" >&6; }
25062 failed=0
25063 passed=0
cristy8b350f62009-11-15 23:12:43 +000025064 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
25065if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025066 passed=`expr $passed + 1`
25067else
25068 failed=`expr $failed + 1`
25069fi
25070
25071
cristy8b350f62009-11-15 23:12:43 +000025072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000025073$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025074if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025075 $as_echo_n "(cached) " >&6
25076else
25077 ac_check_lib_save_LIBS=$LIBS
25078LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025080/* end confdefs.h. */
25081
25082/* Override any GCC internal prototype to avoid an error.
25083 Use char because int might match the return type of a GCC
25084 builtin and then its argument prototype would still apply. */
25085#ifdef __cplusplus
25086extern "C"
25087#endif
25088char fftw_execute ();
25089int
25090main ()
25091{
25092return fftw_execute ();
25093 ;
25094 return 0;
25095}
25096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025097if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025098 ac_cv_lib_fftw3_fftw_execute=yes
25099else
cristy8b350f62009-11-15 23:12:43 +000025100 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000025101fi
cristy8b350f62009-11-15 23:12:43 +000025102rm -f core conftest.err conftest.$ac_objext \
25103 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025104LIBS=$ac_check_lib_save_LIBS
25105fi
cristy8b350f62009-11-15 23:12:43 +000025106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000025107$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025108if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025109 passed=`expr $passed + 1`
25110else
25111 failed=`expr $failed + 1`
25112fi
25113
cristy8b350f62009-11-15 23:12:43 +000025114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025115$as_echo_n "checking if FFTW package is complete... " >&6; }
25116 if test $passed -gt 0; then
25117 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025119$as_echo "no -- some components failed test" >&6; }
25120 have_fftw='no (failed tests)'
25121 else
25122 FFTW_LIBS='-lfftw3'
25123 LIBS="$FFTW_LIBS $LIBS"
25124
cristy8b350f62009-11-15 23:12:43 +000025125$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025126
cristy8b350f62009-11-15 23:12:43 +000025127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025128$as_echo "yes" >&6; }
25129 have_fftw='yes'
25130 fi
25131 else
cristy8b350f62009-11-15 23:12:43 +000025132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025133$as_echo "no" >&6; }
25134 fi
25135fi
25136 if test "$have_fftw" = 'yes'; then
25137 FFTW_DELEGATE_TRUE=
25138 FFTW_DELEGATE_FALSE='#'
25139else
25140 FFTW_DELEGATE_TRUE='#'
25141 FFTW_DELEGATE_FALSE=
25142fi
25143
25144
25145
25146
25147#
25148# Check for FlashPIX delegate library.
25149#
25150
25151# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000025152if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025153 withval=$with_fpx; with_fpx=$withval
25154else
25155 with_fpx='yes'
25156fi
25157
25158
25159if test "$with_fpx" != 'yes'; then
25160 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
25161fi
25162
25163have_fpx='no'
25164FPX_LIBS=''
25165if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025167$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025169$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025171$as_echo "" >&6; }
25172 failed=0
25173 passed=0
25174 ac_ext=cpp
25175ac_cpp='$CXXCPP $CPPFLAGS'
25176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25179
25180
cristy8b350f62009-11-15 23:12:43 +000025181ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
25182if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025183 passed=`expr $passed + 1`
25184else
25185 failed=`expr $failed + 1`
25186fi
25187
25188
cristy8b350f62009-11-15 23:12:43 +000025189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000025190$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025191if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025192 $as_echo_n "(cached) " >&6
25193else
25194 ac_check_lib_save_LIBS=$LIBS
25195LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025197/* end confdefs.h. */
25198
25199/* Override any GCC internal prototype to avoid an error.
25200 Use char because int might match the return type of a GCC
25201 builtin and then its argument prototype would still apply. */
25202#ifdef __cplusplus
25203extern "C"
25204#endif
25205char FPX_OpenImageByFilename ();
25206int
25207main ()
25208{
25209return FPX_OpenImageByFilename ();
25210 ;
25211 return 0;
25212}
25213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025214if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025215 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
25216else
cristy8b350f62009-11-15 23:12:43 +000025217 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000025218fi
cristy8b350f62009-11-15 23:12:43 +000025219rm -f core conftest.err conftest.$ac_objext \
25220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025221LIBS=$ac_check_lib_save_LIBS
25222fi
cristy8b350f62009-11-15 23:12:43 +000025223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000025224$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025225if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025226 passed=`expr $passed + 1`
25227else
25228 failed=`expr $failed + 1`
25229fi
25230
25231 ac_ext=c
25232ac_cpp='$CPP $CPPFLAGS'
25233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25235ac_compiler_gnu=$ac_cv_c_compiler_gnu
25236
cristy8b350f62009-11-15 23:12:43 +000025237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025238$as_echo_n "checking if FlashPIX package is complete... " >&6; }
25239 if test $passed -gt 0; then
25240 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025242$as_echo "no -- some components failed test" >&6; }
25243 have_fpx='no (failed tests)'
25244 else
25245 FPX_LIBS='-lfpx'
25246
cristy8b350f62009-11-15 23:12:43 +000025247$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025248
cristy8b350f62009-11-15 23:12:43 +000025249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025250$as_echo "yes" >&6; }
25251 have_fpx='yes'
25252 PERLMAINCC="$CXX"
25253 fi
25254 else
cristy8b350f62009-11-15 23:12:43 +000025255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025256$as_echo "no" >&6; }
25257 fi
25258fi
25259 if test "$have_fpx" = 'yes'; then
25260 FPX_DELEGATE_TRUE=
25261 FPX_DELEGATE_FALSE='#'
25262else
25263 FPX_DELEGATE_TRUE='#'
25264 FPX_DELEGATE_FALSE=
25265fi
25266
25267
25268
25269
25270#
25271# Check for fontconfig delegate library.
25272#
25273
25274# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000025275if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025276 withval=$with_fontconfig; with_fontconfig=$withval
25277else
25278 with_fontconfig=$have_x
25279fi
25280
25281
25282if test "$with_fontconfig" != 'yes'; then
25283 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
25284fi
25285
25286have_fontconfig='no'
25287FONTCONFIG_CFLAGS=""
25288FONTCONFIG_LIBS=""
25289FONTCONFIG_PKG=""
25290if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025292$as_echo "-------------------------------------------------------------" >&6; }
25293
25294pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000025296$as_echo_n "checking for FONTCONFIG... " >&6; }
25297
25298if test -n "$FONTCONFIG_CFLAGS"; then
25299 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
25300 elif test -n "$PKG_CONFIG"; then
25301 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025302 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025303 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25304 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25306 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025307 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
25308else
25309 pkg_failed=yes
25310fi
25311 else
25312 pkg_failed=untried
25313fi
25314if test -n "$FONTCONFIG_LIBS"; then
25315 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
25316 elif test -n "$PKG_CONFIG"; then
25317 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025318 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025319 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25320 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25322 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025323 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
25324else
25325 pkg_failed=yes
25326fi
25327 else
25328 pkg_failed=untried
25329fi
25330
25331
25332
25333if test $pkg_failed = yes; then
25334
25335if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25336 _pkg_short_errors_supported=yes
25337else
25338 _pkg_short_errors_supported=no
25339fi
25340 if test $_pkg_short_errors_supported = yes; then
25341 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
25342 else
25343 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
25344 fi
25345 # Put the nasty error message in config.log where it belongs
25346 echo "$FONTCONFIG_PKG_ERRORS" >&5
25347
cristy8b350f62009-11-15 23:12:43 +000025348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025349$as_echo "no" >&6; }
25350 have_fontconfig=no
25351elif test $pkg_failed = untried; then
25352 have_fontconfig=no
25353else
25354 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
25355 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000025356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025357$as_echo "yes" >&6; }
25358 have_fontconfig=yes
25359fi
cristy8b350f62009-11-15 23:12:43 +000025360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025361$as_echo "" >&6; }
25362fi
25363
25364if test "$have_fontconfig" = 'yes'; then
25365
cristy8b350f62009-11-15 23:12:43 +000025366$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025367
25368 if test "$with_modules" = 'no'; then
25369 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
25370 fi
25371fi
25372
25373 if test "$have_fontconfig" = 'yes'; then
25374 FONTCONFIG_DELEGATE_TRUE=
25375 FONTCONFIG_DELEGATE_FALSE='#'
25376else
25377 FONTCONFIG_DELEGATE_TRUE='#'
25378 FONTCONFIG_DELEGATE_FALSE=
25379fi
25380
25381
25382
25383
25384
25385#
25386# Check for freetype delegate library.
25387#
25388
25389# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000025390if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025391 withval=$with_freetype; with_freetype=$withval
25392else
25393 with_freetype='yes'
25394fi
25395
25396
25397
25398if test "$with_freetype" != 'yes'; then
25399 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
25400fi
25401
25402have_freetype='no'
25403FREETYPE_LIBS=''
25404if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025406$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000025408$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025410$as_echo "" >&6; }
25411 failed=0
25412 passed=0
cristy66291112009-10-03 22:44:36 +000025413 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025414 PERSIST_CPPFLAGS="$CPPFLAGS"
25415 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
25416 :
25417 else
25418 freetype_config=''
25419 for ac_prog in freetype-config
25420do
25421 # Extract the first word of "$ac_prog", so it can be a program name with args.
25422set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025424$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025425if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025426 $as_echo_n "(cached) " >&6
25427else
25428 if test -n "$freetype_config"; then
25429 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
25430else
25431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25432for as_dir in $PATH
25433do
25434 IFS=$as_save_IFS
25435 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025436 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25438 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025440 break 2
25441 fi
25442done
cristy8b350f62009-11-15 23:12:43 +000025443 done
cristy3ed852e2009-09-05 21:47:34 +000025444IFS=$as_save_IFS
25445
25446fi
25447fi
25448freetype_config=$ac_cv_prog_freetype_config
25449if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000025450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000025451$as_echo "$freetype_config" >&6; }
25452else
cristy8b350f62009-11-15 23:12:43 +000025453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025454$as_echo "no" >&6; }
25455fi
25456
25457
25458 test -n "$freetype_config" && break
25459done
25460 if test -n "$freetype_config"; then
25461 freetype_cflags=`$freetype_config --cflags`
25462 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000025463 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000025464 CPPFLAGS="$freetype_cflags $CPPFLAGS"
25465 fi
25466 fi
25467
25468 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000025469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000025470$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025471if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025472 $as_echo_n "(cached) " >&6
25473else
25474 ac_check_lib_save_LIBS=$LIBS
25475LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025477/* end confdefs.h. */
25478
25479/* Override any GCC internal prototype to avoid an error.
25480 Use char because int might match the return type of a GCC
25481 builtin and then its argument prototype would still apply. */
25482#ifdef __cplusplus
25483extern "C"
25484#endif
25485char FT_Init_FreeType ();
25486int
25487main ()
25488{
25489return FT_Init_FreeType ();
25490 ;
25491 return 0;
25492}
25493_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025494if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025495 ac_cv_lib_freetype_FT_Init_FreeType=yes
25496else
cristy8b350f62009-11-15 23:12:43 +000025497 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000025498fi
cristy8b350f62009-11-15 23:12:43 +000025499rm -f core conftest.err conftest.$ac_objext \
25500 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025501LIBS=$ac_check_lib_save_LIBS
25502fi
cristy8b350f62009-11-15 23:12:43 +000025503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000025504$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025505if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025506 FREETYPE_LIBS='-lfreetype'
25507fi
25508
25509 if test "$FREETYPE_LIBS" != ''; then
25510 passed=`expr $passed + 1`
25511 else
25512 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000025513 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025514 fi
25515 fi
25516
cristy8b350f62009-11-15 23:12:43 +000025517 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
25518if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025519 FT2BUILD_H='#include <ft2build.h>'
25520else
25521 ft2build=''
25522fi
25523
25524
cristy8b350f62009-11-15 23:12:43 +000025525 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
25526"
25527if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025528 have_freetype_h='yes'
25529else
25530 have_freetype_h='no'
25531fi
25532
25533
25534 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
25535 passed=`expr $passed + 1`
25536 else
25537 failed=`expr $failed + 1`
25538 CPPFLAGS="$PERSIST_CPPFLAGS"
25539 fi
25540
cristy8b350f62009-11-15 23:12:43 +000025541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025542$as_echo_n "checking if FreeType package is complete... " >&6; }
25543 if test $passed -gt 0; then
25544 if test $failed -gt 0; then
25545 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025547$as_echo "no -- some components failed test" >&6; }
25548 have_freetype='no (failed tests)'
25549 else
25550 LIBS="$FREETYPE_LIBS $LIBS"
25551
cristy8b350f62009-11-15 23:12:43 +000025552$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025553
25554 if test "$ac_cv_header_ft2build_h" = 'yes'; then
25555
cristy8b350f62009-11-15 23:12:43 +000025556$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025557
25558 fi
cristy8b350f62009-11-15 23:12:43 +000025559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025560$as_echo "yes" >&6; }
25561 have_freetype='yes'
25562 fi
25563 else
cristy8b350f62009-11-15 23:12:43 +000025564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025565$as_echo "no" >&6; }
25566 fi
25567fi
25568 if test "$have_freetype" = 'yes'; then
25569 FREETYPE_DELEGATE_TRUE=
25570 FREETYPE_DELEGATE_FALSE='#'
25571else
25572 FREETYPE_DELEGATE_TRUE='#'
25573 FREETYPE_DELEGATE_FALSE=
25574fi
25575
25576
25577
25578
25579
25580#
25581# Check for Ghostscript library or framework.
25582#
25583# Test for iapi.h & test for gsapi_new_instance in -lgs
25584# or -framework Ghostscript
25585
25586
25587# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000025588if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025589 withval=$with_gslib; with_gslib=$withval
25590else
25591 with_gslib='no'
25592fi
25593
25594
cristyb7931f12009-09-25 10:22:21 +000025595gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000025596if test "$with_gslib" != 'yes'; then
25597 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
25598fi
25599
25600have_gslib='no'
25601GS_LIBS=''
25602if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025604$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000025606$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025608$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000025609 framework=0
cristy3ed852e2009-09-05 21:47:34 +000025610 failed=0
25611 passed=0
cristy8b350f62009-11-15 23:12:43 +000025612 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
25613if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025614 passed=`expr $passed + 1`
25615else
25616 failed=`expr $failed + 1`
25617fi
25618
25619
cristy8b350f62009-11-15 23:12:43 +000025620 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
25621if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025622 passed=`expr $passed + 1`
25623else
25624 failed=`expr $failed + 1`
25625fi
25626
25627
cristy8b350f62009-11-15 23:12:43 +000025628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000025629$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025630if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025631 $as_echo_n "(cached) " >&6
25632else
25633 ac_check_framework_save_LIBS=$LIBS
25634LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025636/* end confdefs.h. */
25637
25638/* Override any GCC internal prototype to avoid an error.
25639 Use char because int might match the return type of a GCC
25640 builtin and then its argument prototype would still apply. */
25641#ifdef __cplusplus
25642extern "C"
25643#endif
25644char gsapi_new_instance ();
25645int
25646main ()
25647{
25648return gsapi_new_instance ();
25649 ;
25650 return 0;
25651}
25652_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025653if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025654 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
25655else
cristy8b350f62009-11-15 23:12:43 +000025656 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025657fi
cristy8b350f62009-11-15 23:12:43 +000025658rm -f core conftest.err conftest.$ac_objext \
25659 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025660LIBS=$ac_check_framework_save_LIBS
25661fi
cristy8b350f62009-11-15 23:12:43 +000025662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025663$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025664if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025665 framework=`expr $framework + 1`
25666else
cristy8b350f62009-11-15 23:12:43 +000025667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000025668$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025669if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025670 $as_echo_n "(cached) " >&6
25671else
25672 ac_check_lib_save_LIBS=$LIBS
25673LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025675/* end confdefs.h. */
25676
25677/* Override any GCC internal prototype to avoid an error.
25678 Use char because int might match the return type of a GCC
25679 builtin and then its argument prototype would still apply. */
25680#ifdef __cplusplus
25681extern "C"
25682#endif
25683char gsapi_new_instance ();
25684int
25685main ()
25686{
25687return gsapi_new_instance ();
25688 ;
25689 return 0;
25690}
25691_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025692if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025693 ac_cv_lib_gs_gsapi_new_instance=yes
25694else
cristy8b350f62009-11-15 23:12:43 +000025695 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025696fi
cristy8b350f62009-11-15 23:12:43 +000025697rm -f core conftest.err conftest.$ac_objext \
25698 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025699LIBS=$ac_check_lib_save_LIBS
25700fi
cristy8b350f62009-11-15 23:12:43 +000025701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025702$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025703if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025704 passed=`expr $passed + 1`
25705else
25706 failed=`expr $failed + 1`
25707fi
25708
25709fi
cristy8b350f62009-11-15 23:12:43 +000025710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025711$as_echo_n "checking if Ghostscript package is complete... " >&6; }
25712 if test $passed -gt 0; then
25713 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025715$as_echo "no -- some components failed test" >&6; }
25716 have_gslib='no (failed tests)'
25717 else
25718 if test $framework -gt 0; then
25719 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000025720 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000025721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000025722$as_echo "yes, using framework." >&6; }
25723 else
cristy8b350f62009-11-15 23:12:43 +000025724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000025725$as_echo "yes, using library." >&6; }
25726 GS_LIBS='-lgs'
25727 fi
25728 LIBS="$GS_LIBS $LIBS"
25729
cristy8b350f62009-11-15 23:12:43 +000025730$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025731
25732 have_gslib='yes'
25733 fi
25734 else
cristy8b350f62009-11-15 23:12:43 +000025735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025736$as_echo "no" >&6; }
25737 fi
25738fi
25739 if test "$have_gslib" = 'yes'; then
25740 GS_DELEGATE_TRUE=
25741 GS_DELEGATE_FALSE='#'
25742else
25743 GS_DELEGATE_TRUE='#'
25744 GS_DELEGATE_FALSE=
25745fi
25746
25747
25748
25749# Set default font search path
25750
25751# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000025752if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025753 withval=$with_fontpath; with_fontpath=$withval
25754else
25755 with_fontpath=''
25756fi
25757
25758
25759if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
25760 with_fontpath=''
25761else
25762
25763cat >>confdefs.h <<_ACEOF
25764#define MAGICK_FONT_PATH "$with_fontpath"
25765_ACEOF
25766
25767fi
25768if test "$with_fontpath=" != ''; then
25769 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
25770fi
25771
25772# Set Ghostscript font directory
25773
25774# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000025775if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025776 withval=$with_gs_font_dir; with_gs_font_dir=$withval
25777else
25778 with_gs_font_dir='default'
25779fi
25780
25781
25782if test "$with_gs_font_dir" != 'default'; then
25783 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
25784fi
25785
25786
25787#
25788# Check for GVC delegate library.
25789#
25790
25791# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000025792if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025793 withval=$with_gvc; with_gvc=$withval
25794else
25795 with_gvc='yes'
25796fi
25797
25798
25799if test "$with_gvc" != 'yes'; then
25800 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
25801fi
25802
25803GVC_PKG=""
25804if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025806$as_echo "-------------------------------------------------------------" >&6; }
25807
25808pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000025810$as_echo_n "checking for GVC... " >&6; }
25811
25812if test -n "$GVC_CFLAGS"; then
25813 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
25814 elif test -n "$PKG_CONFIG"; then
25815 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025816 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025817 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
25818 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25820 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025821 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
25822else
25823 pkg_failed=yes
25824fi
25825 else
25826 pkg_failed=untried
25827fi
25828if test -n "$GVC_LIBS"; then
25829 pkg_cv_GVC_LIBS="$GVC_LIBS"
25830 elif test -n "$PKG_CONFIG"; then
25831 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025833 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
25834 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25836 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025837 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
25838else
25839 pkg_failed=yes
25840fi
25841 else
25842 pkg_failed=untried
25843fi
25844
25845
25846
25847if test $pkg_failed = yes; then
25848
25849if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25850 _pkg_short_errors_supported=yes
25851else
25852 _pkg_short_errors_supported=no
25853fi
25854 if test $_pkg_short_errors_supported = yes; then
25855 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
25856 else
25857 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
25858 fi
25859 # Put the nasty error message in config.log where it belongs
25860 echo "$GVC_PKG_ERRORS" >&5
25861
cristy8b350f62009-11-15 23:12:43 +000025862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025863$as_echo "no" >&6; }
25864 have_gvc=no
25865elif test $pkg_failed = untried; then
25866 have_gvc=no
25867else
25868 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
25869 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000025870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025871$as_echo "yes" >&6; }
25872 have_gvc=yes
25873fi
cristy8b350f62009-11-15 23:12:43 +000025874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025875$as_echo "" >&6; }
25876fi
25877
25878if test "$have_gvc" = 'yes'; then
25879
cristy8b350f62009-11-15 23:12:43 +000025880$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025881
25882 if test "$with_modules" = 'no'; then
25883 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
25884 fi
25885fi
25886
25887 if test "$have_gvc" = 'yes'; then
25888 GVC_DELEGATE_TRUE=
25889 GVC_DELEGATE_FALSE='#'
25890else
25891 GVC_DELEGATE_TRUE='#'
25892 GVC_DELEGATE_FALSE=
25893fi
25894
25895
25896
25897
25898
25899#
25900# Check for JBIG delegate library.
25901#
25902
25903
25904# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000025905if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025906 withval=$with_jbig; with_jbig=$withval
25907else
25908 with_jbig='yes'
25909fi
25910
25911
25912have_jbig='no'
25913JBIG_LIBS=''
25914if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025916$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000025918$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025920$as_echo "" >&6; }
25921 failed=0
25922 passed=0
cristy8b350f62009-11-15 23:12:43 +000025923 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
25924if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025925 passed=`expr $passed + 1`
25926else
25927 failed=`expr $failed + 1`
25928fi
25929
25930
cristy8b350f62009-11-15 23:12:43 +000025931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000025932$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025933if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025934 $as_echo_n "(cached) " >&6
25935else
25936 ac_check_lib_save_LIBS=$LIBS
25937LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025939/* end confdefs.h. */
25940
25941/* Override any GCC internal prototype to avoid an error.
25942 Use char because int might match the return type of a GCC
25943 builtin and then its argument prototype would still apply. */
25944#ifdef __cplusplus
25945extern "C"
25946#endif
25947char jbg_dec_init ();
25948int
25949main ()
25950{
25951return jbg_dec_init ();
25952 ;
25953 return 0;
25954}
25955_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025956if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025957 ac_cv_lib_jbig_jbg_dec_init=yes
25958else
cristy8b350f62009-11-15 23:12:43 +000025959 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000025960fi
cristy8b350f62009-11-15 23:12:43 +000025961rm -f core conftest.err conftest.$ac_objext \
25962 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025963LIBS=$ac_check_lib_save_LIBS
25964fi
cristy8b350f62009-11-15 23:12:43 +000025965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000025966$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025967if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025968 passed=`expr $passed + 1`
25969else
25970 failed=`expr $failed + 1`
25971fi
25972
cristy8b350f62009-11-15 23:12:43 +000025973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025974$as_echo_n "checking if JBIG package is complete... " >&6; }
25975 if test $passed -gt 0; then
25976 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025978$as_echo "no -- some components failed test" >&6; }
25979 have_jbig='no (failed tests)'
25980 else
25981 JBIG_LIBS='-ljbig'
25982 LIBS="$JBIG_LIBS $LIBS"
25983
cristy8b350f62009-11-15 23:12:43 +000025984$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025985
cristy8b350f62009-11-15 23:12:43 +000025986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025987$as_echo "yes" >&6; }
25988 have_jbig='yes'
25989 fi
25990 else
cristy8b350f62009-11-15 23:12:43 +000025991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025992$as_echo "no" >&6; }
25993 fi
25994fi
25995 if test "$have_jbig" = 'yes'; then
25996 JBIG_DELEGATE_TRUE=
25997 JBIG_DELEGATE_FALSE='#'
25998else
25999 JBIG_DELEGATE_TRUE='#'
26000 JBIG_DELEGATE_FALSE=
26001fi
26002
26003
26004
26005
26006#
26007# Check for JPEG delegate library.
26008#
26009
26010# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000026011if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026012 withval=$with_jpeg; with_jpeg=$withval
26013else
26014 with_jpeg='yes'
26015fi
26016
26017
26018if test "$with_jpeg" != 'yes'; then
26019 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26020fi
26021
26022have_jpeg='no'
26023JPEG_LIBS=''
26024if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026026$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026028$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026030$as_echo "" >&6; }
26031 failed=0
26032 passed=0
cristy8b350f62009-11-15 23:12:43 +000026033 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26034if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026035 passed=`expr $passed + 1`
26036else
26037 failed=`expr $failed + 1`
26038fi
26039
26040
cristy8b350f62009-11-15 23:12:43 +000026041 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26042if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026043 passed=`expr $passed + 1`
26044else
26045 failed=`expr $failed + 1`
26046fi
26047
26048
cristy8b350f62009-11-15 23:12:43 +000026049 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
26050if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026051 passed=`expr $passed + 1`
26052else
26053 failed=`expr $failed + 1`
26054fi
26055
26056
cristy8b350f62009-11-15 23:12:43 +000026057 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
26058if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026059 passed=`expr $passed + 1`
26060else
26061 failed=`expr $failed + 1`
26062fi
26063
26064
cristy8b350f62009-11-15 23:12:43 +000026065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000026066$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026067if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026068 $as_echo_n "(cached) " >&6
26069else
26070 ac_check_lib_save_LIBS=$LIBS
26071LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026073/* end confdefs.h. */
26074
26075/* Override any GCC internal prototype to avoid an error.
26076 Use char because int might match the return type of a GCC
26077 builtin and then its argument prototype would still apply. */
26078#ifdef __cplusplus
26079extern "C"
26080#endif
26081char jpeg_read_header ();
26082int
26083main ()
26084{
26085return jpeg_read_header ();
26086 ;
26087 return 0;
26088}
26089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026090if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026091 ac_cv_lib_jpeg_jpeg_read_header=yes
26092else
cristy8b350f62009-11-15 23:12:43 +000026093 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000026094fi
cristy8b350f62009-11-15 23:12:43 +000026095rm -f core conftest.err conftest.$ac_objext \
26096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026097LIBS=$ac_check_lib_save_LIBS
26098fi
cristy8b350f62009-11-15 23:12:43 +000026099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000026100$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026101if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026102 passed=`expr $passed + 1`
26103else
26104 failed=`expr $failed + 1`
26105fi
26106
26107
26108# Test for compatible JPEG library
26109if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000026111$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026112if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026113 $as_echo_n "(cached) " >&6
26114else
cristy8b350f62009-11-15 23:12:43 +000026115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026116/* end confdefs.h. */
26117#include <stdio.h>
26118#include <stdlib.h>
26119#include <jpeglib.h>
26120
26121int
26122main ()
26123{
26124
26125#if JPEG_LIB_VERSION < 62
26126#error IJG JPEG library must be version 6b or newer!
26127#endif
26128return 0;
26129
26130 ;
26131 return 0;
26132}
26133_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026134if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026135 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
26136else
cristy8b350f62009-11-15 23:12:43 +000026137 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000026138fi
cristy3ed852e2009-09-05 21:47:34 +000026139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26140fi
cristy8b350f62009-11-15 23:12:43 +000026141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000026142$as_echo "$ac_cv_jpeg_version_ok" >&6; }
26143fi
cristy8b350f62009-11-15 23:12:43 +000026144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026145$as_echo_n "checking if JPEG package is complete... " >&6; }
26146 if test $passed -gt 0; then
26147 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026149$as_echo "no -- some components failed test" >&6; }
26150 have_jpeg='no (failed tests)'
26151 else
26152 JPEG_LIBS='-ljpeg'
26153 LIBS="$JPEG_LIBS $LIBS"
26154
cristy8b350f62009-11-15 23:12:43 +000026155$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026156
cristy8b350f62009-11-15 23:12:43 +000026157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026158$as_echo "yes" >&6; }
26159 have_jpeg='yes'
26160 fi
26161 else
cristy8b350f62009-11-15 23:12:43 +000026162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026163$as_echo "no" >&6; }
26164 fi
26165fi
26166 if test "$have_jpeg" = 'yes'; then
26167 JPEG_DELEGATE_TRUE=
26168 JPEG_DELEGATE_FALSE='#'
26169else
26170 JPEG_DELEGATE_TRUE='#'
26171 JPEG_DELEGATE_FALSE=
26172fi
26173
26174
26175
26176
26177#
26178# Check for JPEG Version 2 delegate library.
26179#
26180
26181# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000026182if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026183 withval=$with_jp2; with_jp2=$withval
26184else
26185 with_jp2='yes'
26186fi
26187
26188
26189if test "$with_jp2" != 'yes'; then
26190 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
26191fi
26192
26193have_jp2='no'
26194JP2_LIBS=''
26195if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026197$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026199$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026201$as_echo "" >&6; }
26202 failed=0
26203 passed=0
cristy8b350f62009-11-15 23:12:43 +000026204 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
26205if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026206 passed=`expr $passed + 1`
26207else
26208 failed=`expr $failed + 1`
26209fi
26210
26211
cristy8b350f62009-11-15 23:12:43 +000026212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000026213$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026214if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026215 $as_echo_n "(cached) " >&6
26216else
26217 ac_check_lib_save_LIBS=$LIBS
26218LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026220/* end confdefs.h. */
26221
26222/* Override any GCC internal prototype to avoid an error.
26223 Use char because int might match the return type of a GCC
26224 builtin and then its argument prototype would still apply. */
26225#ifdef __cplusplus
26226extern "C"
26227#endif
26228char jas_stream_fopen ();
26229int
26230main ()
26231{
26232return jas_stream_fopen ();
26233 ;
26234 return 0;
26235}
26236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026237if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026238 ac_cv_lib_jasper_jas_stream_fopen=yes
26239else
cristy8b350f62009-11-15 23:12:43 +000026240 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000026241fi
cristy8b350f62009-11-15 23:12:43 +000026242rm -f core conftest.err conftest.$ac_objext \
26243 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026244LIBS=$ac_check_lib_save_LIBS
26245fi
cristy8b350f62009-11-15 23:12:43 +000026246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026247$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026248if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026249 passed=`expr $passed + 1`
26250else
26251 failed=`expr $failed + 1`
26252fi
26253
cristy8b350f62009-11-15 23:12:43 +000026254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026255$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
26256 if test $passed -gt 0; then
26257 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026259$as_echo "no -- some components failed test" >&6; }
26260 have_jp2='no (failed tests)'
26261 else
26262 JP2_LIBS='-ljasper'
26263 LIBS="$JP2_LIBS $LIBS"
26264
cristy8b350f62009-11-15 23:12:43 +000026265$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026266
cristy8b350f62009-11-15 23:12:43 +000026267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026268$as_echo "yes" >&6; }
26269 have_jp2='yes'
26270 fi
26271 else
cristy8b350f62009-11-15 23:12:43 +000026272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026273$as_echo "no" >&6; }
26274 fi
26275fi
26276 if test "$have_jp2" = 'yes'; then
26277 JP2_DELEGATE_TRUE=
26278 JP2_DELEGATE_FALSE='#'
26279else
26280 JP2_DELEGATE_TRUE='#'
26281 JP2_DELEGATE_FALSE=
26282fi
26283
26284
26285
26286
26287#
26288# Check for LCMS delegate library.
26289#
26290
26291# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000026292if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026293 withval=$with_lcms; with_lcms=$withval
26294else
26295 with_lcms='yes'
26296fi
26297
26298
26299if test "$with_lcms" != 'yes'; then
26300 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
26301fi
26302
26303have_lcms='no'
26304LCMS_LIBS=''
26305if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026307$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026309$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026311$as_echo "" >&6; }
26312 failed=0
26313 passed=0
26314 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000026315 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
26316if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026317 have_lcms_header='yes'
26318fi
26319
26320
26321 if test "$have_lcms_header" = 'yes'; then
26322 passed=`expr $passed + 1`
26323
cristy8b350f62009-11-15 23:12:43 +000026324$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026325
26326 else
cristy8b350f62009-11-15 23:12:43 +000026327 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
26328if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026329 have_lcms_header='yes'
26330fi
26331
26332
26333 if test "$have_lcms_header" = 'yes'; then
26334 passed=`expr $passed + 1`
26335
cristy8b350f62009-11-15 23:12:43 +000026336$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026337
26338 else
26339 failed=`expr $failed + 1`
26340 fi
26341 fi
cristy8b350f62009-11-15 23:12:43 +000026342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000026343$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026344if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026345 $as_echo_n "(cached) " >&6
26346else
26347 ac_check_lib_save_LIBS=$LIBS
26348LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026350/* end confdefs.h. */
26351
26352/* Override any GCC internal prototype to avoid an error.
26353 Use char because int might match the return type of a GCC
26354 builtin and then its argument prototype would still apply. */
26355#ifdef __cplusplus
26356extern "C"
26357#endif
26358char cmsOpenProfileFromMem ();
26359int
26360main ()
26361{
26362return cmsOpenProfileFromMem ();
26363 ;
26364 return 0;
26365}
26366_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026367if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026368 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
26369else
cristy8b350f62009-11-15 23:12:43 +000026370 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000026371fi
cristy8b350f62009-11-15 23:12:43 +000026372rm -f core conftest.err conftest.$ac_objext \
26373 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026374LIBS=$ac_check_lib_save_LIBS
26375fi
cristy8b350f62009-11-15 23:12:43 +000026376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026377$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026378if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026379 passed=`expr $passed + 1`
26380else
26381 failed=`expr $failed + 1`
26382fi
26383
cristy8b350f62009-11-15 23:12:43 +000026384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026385$as_echo_n "checking if LCMS package is complete... " >&6; }
26386 if test $passed -gt 0; then
26387 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026389$as_echo "no -- some components failed test" >&6; }
26390 have_lcms='no (failed tests)'
26391 else
26392 LCMS_LIBS='-llcms'
26393 LIBS="$LCMS_LIBS $LIBS"
26394
cristy8b350f62009-11-15 23:12:43 +000026395$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026396
cristy8b350f62009-11-15 23:12:43 +000026397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026398$as_echo "yes" >&6; }
26399 have_lcms='yes'
26400 fi
26401 else
cristy8b350f62009-11-15 23:12:43 +000026402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026403$as_echo "no" >&6; }
26404 fi
26405fi
26406 if test "$have_lcms" = 'yes'; then
26407 LCMS_DELEGATE_TRUE=
26408 LCMS_DELEGATE_FALSE='#'
26409else
26410 LCMS_DELEGATE_TRUE='#'
26411 LCMS_DELEGATE_FALSE=
26412fi
26413
26414
26415
26416
26417#
26418# Check for the LQR (Liquid Rescale) delegate library.
26419#
26420
26421# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000026422if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026423 withval=$with_lqr; with_lqr=$withval
26424else
26425 with_lqr='yes'
26426fi
26427
26428
26429if test "$with_lqr" != 'yes'; then
26430 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
26431fi
26432
26433have_lqr='no'
26434LQR_CFLAGS=""
26435LQR_LIBS=""
26436LQR_PKG=""
26437if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026439$as_echo "-------------------------------------------------------------" >&6; }
26440
26441pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026443$as_echo_n "checking for LQR... " >&6; }
26444
26445if test -n "$LQR_CFLAGS"; then
26446 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
26447 elif test -n "$PKG_CONFIG"; then
26448 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026450 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26451 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26453 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026454 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
26455else
26456 pkg_failed=yes
26457fi
26458 else
26459 pkg_failed=untried
26460fi
26461if test -n "$LQR_LIBS"; then
26462 pkg_cv_LQR_LIBS="$LQR_LIBS"
26463 elif test -n "$PKG_CONFIG"; then
26464 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026465 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026466 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26467 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26469 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026470 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
26471else
26472 pkg_failed=yes
26473fi
26474 else
26475 pkg_failed=untried
26476fi
26477
26478
26479
26480if test $pkg_failed = yes; then
26481
26482if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26483 _pkg_short_errors_supported=yes
26484else
26485 _pkg_short_errors_supported=no
26486fi
26487 if test $_pkg_short_errors_supported = yes; then
26488 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
26489 else
26490 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
26491 fi
26492 # Put the nasty error message in config.log where it belongs
26493 echo "$LQR_PKG_ERRORS" >&5
26494
cristy8b350f62009-11-15 23:12:43 +000026495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026496$as_echo "no" >&6; }
26497 have_lqr=no
26498elif test $pkg_failed = untried; then
26499 have_lqr=no
26500else
26501 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
26502 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026504$as_echo "yes" >&6; }
26505 have_lqr=yes
26506fi
cristy8b350f62009-11-15 23:12:43 +000026507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026508$as_echo "" >&6; }
26509fi
26510
26511if test "$have_lqr" = 'yes'; then
26512
cristy8b350f62009-11-15 23:12:43 +000026513$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026514
26515 CFLAGS="$LQR_CFLAGS $CFLAGS"
26516fi
26517
26518 if test "$have_lqr" = 'yes'; then
26519 LQR_DELEGATE_TRUE=
26520 LQR_DELEGATE_FALSE='#'
26521else
26522 LQR_DELEGATE_TRUE='#'
26523 LQR_DELEGATE_FALSE=
26524fi
26525
26526
26527
26528
26529
26530#
26531# Check for the OpenEXR delegate library.
26532#
26533
26534# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000026535if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026536 withval=$with_openexr; with_openexr=$withval
26537else
26538 with_openexr='yes'
26539fi
26540
26541
26542if test "$with_openexr" != 'yes'; then
26543 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
26544fi
26545
26546have_openexr='no'
26547OPENEXR_CFLAGS=""
26548OPENEXR_LIBS=""
26549OPENEXR_PKG=""
26550if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026552$as_echo "-------------------------------------------------------------" >&6; }
26553
26554pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026556$as_echo_n "checking for OPENEXR... " >&6; }
26557
26558if test -n "$OPENEXR_CFLAGS"; then
26559 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
26560 elif test -n "$PKG_CONFIG"; then
26561 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026563 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26564 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26566 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026567 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
26568else
26569 pkg_failed=yes
26570fi
26571 else
26572 pkg_failed=untried
26573fi
26574if test -n "$OPENEXR_LIBS"; then
26575 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
26576 elif test -n "$PKG_CONFIG"; then
26577 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026579 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26580 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26582 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026583 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
26584else
26585 pkg_failed=yes
26586fi
26587 else
26588 pkg_failed=untried
26589fi
26590
26591
26592
26593if test $pkg_failed = yes; then
26594
26595if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26596 _pkg_short_errors_supported=yes
26597else
26598 _pkg_short_errors_supported=no
26599fi
26600 if test $_pkg_short_errors_supported = yes; then
26601 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
26602 else
26603 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
26604 fi
26605 # Put the nasty error message in config.log where it belongs
26606 echo "$OPENEXR_PKG_ERRORS" >&5
26607
cristy8b350f62009-11-15 23:12:43 +000026608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026609$as_echo "no" >&6; }
26610 have_openexr=no
26611elif test $pkg_failed = untried; then
26612 have_openexr=no
26613else
26614 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
26615 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026617$as_echo "yes" >&6; }
26618 have_openexr=yes
26619fi
cristy8b350f62009-11-15 23:12:43 +000026620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026621$as_echo "" >&6; }
26622fi
26623
26624if test "$have_openexr" = 'yes'; then
26625
cristy8b350f62009-11-15 23:12:43 +000026626$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026627
26628 if test "$with_modules" = 'no'; then
26629 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
26630 fi
26631fi
26632
26633 if test "$have_openexr" = 'yes'; then
26634 OPENEXR_DELEGATE_TRUE=
26635 OPENEXR_DELEGATE_FALSE='#'
26636else
26637 OPENEXR_DELEGATE_TRUE='#'
26638 OPENEXR_DELEGATE_FALSE=
26639fi
26640
26641
26642
26643
26644
26645#
26646# Check for PNG delegate library.
26647#
26648
26649# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000026650if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026651 withval=$with_png; with_png=$withval
26652else
26653 with_png='yes'
26654fi
26655
26656
26657if test "$with_png" != 'yes'; then
26658 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
26659fi
26660
26661have_png='no'
26662PNG_LIBS=''
26663if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026665$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026667$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026669$as_echo "" >&6; }
26670 failed=0
26671 passed=0
cristy8b350f62009-11-15 23:12:43 +000026672 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
26673if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026674 passed=`expr $passed + 1`
26675else
26676 failed=`expr $failed + 1`
26677fi
26678
26679
cristy8b350f62009-11-15 23:12:43 +000026680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000026681$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026682if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026683 $as_echo_n "(cached) " >&6
26684else
26685 ac_check_lib_save_LIBS=$LIBS
26686LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026688/* end confdefs.h. */
26689
26690/* Override any GCC internal prototype to avoid an error.
26691 Use char because int might match the return type of a GCC
26692 builtin and then its argument prototype would still apply. */
26693#ifdef __cplusplus
26694extern "C"
26695#endif
26696char png_get_io_ptr ();
26697int
26698main ()
26699{
26700return png_get_io_ptr ();
26701 ;
26702 return 0;
26703}
26704_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026705if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026706 ac_cv_lib_png_png_get_io_ptr=yes
26707else
cristy8b350f62009-11-15 23:12:43 +000026708 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000026709fi
cristy8b350f62009-11-15 23:12:43 +000026710rm -f core conftest.err conftest.$ac_objext \
26711 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026712LIBS=$ac_check_lib_save_LIBS
26713fi
cristy8b350f62009-11-15 23:12:43 +000026714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000026715$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026716if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026717 passed=`expr $passed + 1`
26718else
26719 failed=`expr $failed + 1`
26720fi
26721
cristy8b350f62009-11-15 23:12:43 +000026722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026723$as_echo_n "checking if PNG package is complete... " >&6; }
26724 if test $passed -gt 0; then
26725 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026727$as_echo "no -- some components failed test" >&6; }
26728 have_png='no (failed tests)'
26729 else
26730 PNG_LIBS='-lpng'
26731 LIBS="$PNG_LIBS $LIBS"
26732
cristy8b350f62009-11-15 23:12:43 +000026733$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026734
cristy8b350f62009-11-15 23:12:43 +000026735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026736$as_echo "yes" >&6; }
26737 have_png='yes'
26738 fi
26739 else
cristy8b350f62009-11-15 23:12:43 +000026740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026741$as_echo "no" >&6; }
26742 fi
26743fi
26744 if test "$have_png" = 'yes'; then
26745 PNG_DELEGATE_TRUE=
26746 PNG_DELEGATE_FALSE='#'
26747else
26748 PNG_DELEGATE_TRUE='#'
26749 PNG_DELEGATE_FALSE=
26750fi
26751
26752
26753
26754
26755#
26756# Check for RSVG delegate library.
26757#
26758
26759# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000026760if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026761 withval=$with_rsvg; with_rsvg=$withval
26762else
26763 with_rsvg=$have_x
26764fi
26765
26766
26767if test "$with_rsvg" != 'yes'; then
26768 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
26769fi
26770
26771have_rsvg='no'
26772have_cairo='no'
26773RSVG_CFLAGS=""
26774RSVG_LIBS=""
26775RSVG_PKG=""
26776if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026778$as_echo "-------------------------------------------------------------" >&6; }
26779
26780pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026782$as_echo_n "checking for RSVG... " >&6; }
26783
26784if test -n "$RSVG_CFLAGS"; then
26785 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
26786 elif test -n "$PKG_CONFIG"; then
26787 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026788 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026789 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
26790 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26792 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026793 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
26794else
26795 pkg_failed=yes
26796fi
26797 else
26798 pkg_failed=untried
26799fi
26800if test -n "$RSVG_LIBS"; then
26801 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
26802 elif test -n "$PKG_CONFIG"; then
26803 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026804 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026805 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
26806 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26808 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026809 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
26810else
26811 pkg_failed=yes
26812fi
26813 else
26814 pkg_failed=untried
26815fi
26816
26817
26818
26819if test $pkg_failed = yes; then
26820
26821if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26822 _pkg_short_errors_supported=yes
26823else
26824 _pkg_short_errors_supported=no
26825fi
26826 if test $_pkg_short_errors_supported = yes; then
26827 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
26828 else
26829 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
26830 fi
26831 # Put the nasty error message in config.log where it belongs
26832 echo "$RSVG_PKG_ERRORS" >&5
26833
cristy8b350f62009-11-15 23:12:43 +000026834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026835$as_echo "no" >&6; }
26836 have_rsvg=no
26837elif test $pkg_failed = untried; then
26838 have_rsvg=no
26839else
26840 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
26841 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026843$as_echo "yes" >&6; }
26844 have_rsvg=yes
26845fi
cristy8b350f62009-11-15 23:12:43 +000026846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026847$as_echo "" >&6; }
26848
26849pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026851$as_echo_n "checking for CAIRO_SVG... " >&6; }
26852
26853if test -n "$CAIRO_SVG_CFLAGS"; then
26854 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
26855 elif test -n "$PKG_CONFIG"; then
26856 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026858 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
26859 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26861 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026862 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
26863else
26864 pkg_failed=yes
26865fi
26866 else
26867 pkg_failed=untried
26868fi
26869if test -n "$CAIRO_SVG_LIBS"; then
26870 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
26871 elif test -n "$PKG_CONFIG"; then
26872 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026873 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026874 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
26875 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26877 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026878 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
26879else
26880 pkg_failed=yes
26881fi
26882 else
26883 pkg_failed=untried
26884fi
26885
26886
26887
26888if test $pkg_failed = yes; then
26889
26890if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26891 _pkg_short_errors_supported=yes
26892else
26893 _pkg_short_errors_supported=no
26894fi
26895 if test $_pkg_short_errors_supported = yes; then
26896 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
26897 else
26898 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
26899 fi
26900 # Put the nasty error message in config.log where it belongs
26901 echo "$CAIRO_SVG_PKG_ERRORS" >&5
26902
cristy8b350f62009-11-15 23:12:43 +000026903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026904$as_echo "no" >&6; }
26905 have_cairo=no
26906elif test $pkg_failed = untried; then
26907 have_cairo=no
26908else
26909 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
26910 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026912$as_echo "yes" >&6; }
26913 have_cairo=yes
26914fi
cristy8b350f62009-11-15 23:12:43 +000026915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026916$as_echo "" >&6; }
26917fi
26918
26919if test "$have_rsvg" = 'yes'; then
26920
cristy8b350f62009-11-15 23:12:43 +000026921$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026922
26923 if test "$with_modules" = 'no'; then
26924 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
26925 fi
26926fi
26927
26928if test "$have_cairo" = 'yes'; then
26929
cristy8b350f62009-11-15 23:12:43 +000026930$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026931
26932 if test "$with_modules" = 'no'; then
26933 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
26934 fi
26935fi
26936
26937 if test "$have_rsvg" = 'yes'; then
26938 RSVG_DELEGATE_TRUE=
26939 RSVG_DELEGATE_FALSE='#'
26940else
26941 RSVG_DELEGATE_TRUE='#'
26942 RSVG_DELEGATE_FALSE=
26943fi
26944
26945 if test "$have_cairo" = 'yes'; then
26946 CAIRO_DELEGATE_TRUE=
26947 CAIRO_DELEGATE_FALSE='#'
26948else
26949 CAIRO_DELEGATE_TRUE='#'
26950 CAIRO_DELEGATE_FALSE=
26951fi
26952
26953
26954
26955
26956
26957#
26958# Check for TIFF delegate library.
26959#
26960
26961# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000026962if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026963 withval=$with_tiff; with_tiff=$withval
26964else
26965 with_tiff='yes'
26966fi
26967
26968
26969if test "$with_tiff" != 'yes'; then
26970 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
26971fi
26972
26973have_tiff='no'
26974TIFF_LIBS=''
26975if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026977$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000026979$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026981$as_echo "" >&6; }
26982 failed=0
26983 passed=0
cristy8b350f62009-11-15 23:12:43 +000026984 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
26985if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026986 passed=`expr $passed + 1`
26987else
26988 failed=`expr $failed + 1`
26989fi
26990
26991
cristy8b350f62009-11-15 23:12:43 +000026992 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
26993if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026994 passed=`expr $passed + 1`
26995else
26996 failed=`expr $failed + 1`
26997fi
26998
26999
cristy8b350f62009-11-15 23:12:43 +000027000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027001$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027002if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027003 $as_echo_n "(cached) " >&6
27004else
27005 ac_check_lib_save_LIBS=$LIBS
27006LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027008/* end confdefs.h. */
27009
27010/* Override any GCC internal prototype to avoid an error.
27011 Use char because int might match the return type of a GCC
27012 builtin and then its argument prototype would still apply. */
27013#ifdef __cplusplus
27014extern "C"
27015#endif
27016char TIFFOpen ();
27017int
27018main ()
27019{
27020return TIFFOpen ();
27021 ;
27022 return 0;
27023}
27024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027025if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027026 ac_cv_lib_tiff_TIFFOpen=yes
27027else
cristy8b350f62009-11-15 23:12:43 +000027028 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027029fi
cristy8b350f62009-11-15 23:12:43 +000027030rm -f core conftest.err conftest.$ac_objext \
27031 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027032LIBS=$ac_check_lib_save_LIBS
27033fi
cristy8b350f62009-11-15 23:12:43 +000027034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027035$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027036if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027037 passed=`expr $passed + 1`
27038else
27039 failed=`expr $failed + 1`
27040fi
27041
cristy8b350f62009-11-15 23:12:43 +000027042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027043$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027044if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027045 $as_echo_n "(cached) " >&6
27046else
27047 ac_check_lib_save_LIBS=$LIBS
27048LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027050/* end confdefs.h. */
27051
27052/* Override any GCC internal prototype to avoid an error.
27053 Use char because int might match the return type of a GCC
27054 builtin and then its argument prototype would still apply. */
27055#ifdef __cplusplus
27056extern "C"
27057#endif
27058char TIFFClientOpen ();
27059int
27060main ()
27061{
27062return TIFFClientOpen ();
27063 ;
27064 return 0;
27065}
27066_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027067if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027068 ac_cv_lib_tiff_TIFFClientOpen=yes
27069else
cristy8b350f62009-11-15 23:12:43 +000027070 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027071fi
cristy8b350f62009-11-15 23:12:43 +000027072rm -f core conftest.err conftest.$ac_objext \
27073 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027074LIBS=$ac_check_lib_save_LIBS
27075fi
cristy8b350f62009-11-15 23:12:43 +000027076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027077$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027078if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027079 passed=`expr $passed + 1`
27080else
27081 failed=`expr $failed + 1`
27082fi
27083
cristy8b350f62009-11-15 23:12:43 +000027084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027085$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027086if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027087 $as_echo_n "(cached) " >&6
27088else
27089 ac_check_lib_save_LIBS=$LIBS
27090LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027092/* end confdefs.h. */
27093
27094/* Override any GCC internal prototype to avoid an error.
27095 Use char because int might match the return type of a GCC
27096 builtin and then its argument prototype would still apply. */
27097#ifdef __cplusplus
27098extern "C"
27099#endif
27100char TIFFIsByteSwapped ();
27101int
27102main ()
27103{
27104return TIFFIsByteSwapped ();
27105 ;
27106 return 0;
27107}
27108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027109if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027110 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
27111else
cristy8b350f62009-11-15 23:12:43 +000027112 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000027113fi
cristy8b350f62009-11-15 23:12:43 +000027114rm -f core conftest.err conftest.$ac_objext \
27115 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027116LIBS=$ac_check_lib_save_LIBS
27117fi
cristy8b350f62009-11-15 23:12:43 +000027118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000027119$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027120if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027121 passed=`expr $passed + 1`
27122else
27123 failed=`expr $failed + 1`
27124fi
27125
cristy8b350f62009-11-15 23:12:43 +000027126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027127$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027128if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027129 $as_echo_n "(cached) " >&6
27130else
27131 ac_check_lib_save_LIBS=$LIBS
27132LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027134/* end confdefs.h. */
27135
27136/* Override any GCC internal prototype to avoid an error.
27137 Use char because int might match the return type of a GCC
27138 builtin and then its argument prototype would still apply. */
27139#ifdef __cplusplus
27140extern "C"
27141#endif
27142char TIFFReadRGBATile ();
27143int
27144main ()
27145{
27146return TIFFReadRGBATile ();
27147 ;
27148 return 0;
27149}
27150_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027151if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027152 ac_cv_lib_tiff_TIFFReadRGBATile=yes
27153else
cristy8b350f62009-11-15 23:12:43 +000027154 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000027155fi
cristy8b350f62009-11-15 23:12:43 +000027156rm -f core conftest.err conftest.$ac_objext \
27157 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027158LIBS=$ac_check_lib_save_LIBS
27159fi
cristy8b350f62009-11-15 23:12:43 +000027160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000027161$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027162if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027163 passed=`expr $passed + 1`
27164else
27165 failed=`expr $failed + 1`
27166fi
27167
cristy8b350f62009-11-15 23:12:43 +000027168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027169$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027170if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027171 $as_echo_n "(cached) " >&6
27172else
27173 ac_check_lib_save_LIBS=$LIBS
27174LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027176/* end confdefs.h. */
27177
27178/* Override any GCC internal prototype to avoid an error.
27179 Use char because int might match the return type of a GCC
27180 builtin and then its argument prototype would still apply. */
27181#ifdef __cplusplus
27182extern "C"
27183#endif
27184char TIFFReadRGBAStrip ();
27185int
27186main ()
27187{
27188return TIFFReadRGBAStrip ();
27189 ;
27190 return 0;
27191}
27192_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027193if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027194 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
27195else
cristy8b350f62009-11-15 23:12:43 +000027196 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000027197fi
cristy8b350f62009-11-15 23:12:43 +000027198rm -f core conftest.err conftest.$ac_objext \
27199 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027200LIBS=$ac_check_lib_save_LIBS
27201fi
cristy8b350f62009-11-15 23:12:43 +000027202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000027203$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027204if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027205 passed=`expr $passed + 1`
27206else
27207 failed=`expr $failed + 1`
27208fi
27209
cristy8b350f62009-11-15 23:12:43 +000027210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027211$as_echo_n "checking if TIFF package is complete... " >&6; }
27212 if test $passed -gt 0; then
27213 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027215$as_echo "no -- some components failed test" >&6; }
27216 have_tiff='no (failed tests)'
27217 else
27218 TIFF_LIBS='-ltiff'
27219 LIBS="$TIFF_LIBS $LIBS"
27220
cristy8b350f62009-11-15 23:12:43 +000027221$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027222
cristy8b350f62009-11-15 23:12:43 +000027223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027224$as_echo "yes" >&6; }
27225 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000027226 for ac_header in tiffconf.h
27227do :
27228 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
27229if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027230 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027231#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000027232_ACEOF
27233
27234fi
27235
27236done
27237
cristy8b350f62009-11-15 23:12:43 +000027238 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000027239 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
27240 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000027241do :
27242 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27243ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27244eval as_val=\$$as_ac_var
27245 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027246 cat >>confdefs.h <<_ACEOF
27247#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27248_ACEOF
27249
27250fi
27251done
27252
27253 fi
27254 else
cristy8b350f62009-11-15 23:12:43 +000027255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027256$as_echo "no" >&6; }
27257 fi
27258fi
27259 if test "$have_tiff" = 'yes'; then
27260 TIFF_DELEGATE_TRUE=
27261 TIFF_DELEGATE_FALSE='#'
27262else
27263 TIFF_DELEGATE_TRUE='#'
27264 TIFF_DELEGATE_FALSE=
27265fi
27266
27267
27268
27269
27270#
27271# Set Windows font directory.
27272#
27273
27274# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027275if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027276 withval=$with_windows_font_dir; with_windows_font_dir=$withval
27277else
27278 with_windows_font_dir=''
27279fi
27280
27281if test "$with_windows_font_dir" != '' ; then
27282 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
27283fi
27284
27285
27286#
27287# Check for WMF delegate library.
27288#
27289
27290# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000027291if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027292 withval=$with_wmf; with_wmf=$withval
27293else
27294 with_wmf=$with_modules
27295fi
27296
27297
27298if test "$with_wmf" != 'yes'; then
27299 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
27300fi
27301
27302have_wmf='no'
27303WMF_LIBS=''
27304WMF_LIBS_DEPS=''
27305OLIBS="$LIBS"
27306if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027308$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027310$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027312$as_echo "" >&6; }
27313 have_libwmf='no'
27314 have_libwmflite='no'
27315 have_libwmf_ipa_h='no'
27316
cristy8b350f62009-11-15 23:12:43 +000027317 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
27318"
27319if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027320 have_libwmf_ipa_h='yes'
27321fi
27322
27323
27324 if test "$have_libwmf_ipa_h" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
cristy3ed852e2009-09-05 21:47:34 +000027326$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027327if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027328 $as_echo_n "(cached) " >&6
27329else
27330 ac_check_lib_save_LIBS=$LIBS
27331LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027333/* end confdefs.h. */
27334
27335/* Override any GCC internal prototype to avoid an error.
27336 Use char because int might match the return type of a GCC
27337 builtin and then its argument prototype would still apply. */
27338#ifdef __cplusplus
27339extern "C"
27340#endif
27341char wmf_lite_create ();
27342int
27343main ()
27344{
27345return wmf_lite_create ();
27346 ;
27347 return 0;
27348}
27349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027351 ac_cv_lib_wmflite_wmf_lite_create=yes
27352else
cristy8b350f62009-11-15 23:12:43 +000027353 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000027354fi
cristy8b350f62009-11-15 23:12:43 +000027355rm -f core conftest.err conftest.$ac_objext \
27356 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027357LIBS=$ac_check_lib_save_LIBS
27358fi
cristy8b350f62009-11-15 23:12:43 +000027359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027360$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027361if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027362 have_libwmflite='yes'
27363fi
27364
27365 if test "$have_libwmflite" = 'yes'; then
27366
cristy8b350f62009-11-15 23:12:43 +000027367$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027368
27369 WMF_LIBS='-lwmflite'
27370 LIBS="$WMF_LIBS $LIBS"
27371 have_wmf='yes'
27372 else
27373 WMF_LIBS_DEPS=''
27374 WMF_CONFIG_LIBS=`libwmf-config --libs`
27375 for lib in xml2 expat freetype jpeg png z; do
27376 testlib="-l${lib}"
27377 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
27378 done
cristy8b350f62009-11-15 23:12:43 +000027379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
cristy3ed852e2009-09-05 21:47:34 +000027380$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027381if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027382 $as_echo_n "(cached) " >&6
27383else
27384 ac_check_lib_save_LIBS=$LIBS
27385LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027387/* end confdefs.h. */
27388
27389/* Override any GCC internal prototype to avoid an error.
27390 Use char because int might match the return type of a GCC
27391 builtin and then its argument prototype would still apply. */
27392#ifdef __cplusplus
27393extern "C"
27394#endif
27395char wmf_api_create ();
27396int
27397main ()
27398{
27399return wmf_api_create ();
27400 ;
27401 return 0;
27402}
27403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027404if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027405 ac_cv_lib_wmf_wmf_api_create=yes
27406else
cristy8b350f62009-11-15 23:12:43 +000027407 ac_cv_lib_wmf_wmf_api_create=no
cristy3ed852e2009-09-05 21:47:34 +000027408fi
cristy8b350f62009-11-15 23:12:43 +000027409rm -f core conftest.err conftest.$ac_objext \
27410 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027411LIBS=$ac_check_lib_save_LIBS
27412fi
cristy8b350f62009-11-15 23:12:43 +000027413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027414$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027415if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027416 have_libwmf='yes'
27417fi
27418
27419 if test "$have_libwmf" = 'yes'; then
27420
cristy8b350f62009-11-15 23:12:43 +000027421$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027422
27423 WMF_LIBS='-lwmf'
27424 LIBS="$WMF_LIBS $LIBS"
27425 have_wmf='yes'
27426 else
cristy8b350f62009-11-15 23:12:43 +000027427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027428$as_echo "no -- some components failed test" >&6; }
27429 have_wmf='no (failed tests)'
27430 have_wmflite='no (failed tests)'
27431 LIBS="$OLIBS"
27432 WMF_LIBS=''
27433 fi
27434 fi
27435 fi
cristy8b350f62009-11-15 23:12:43 +000027436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027437$as_echo_n "checking if WMF package is complete... " >&6; }
27438 if test "$have_wmf" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027440$as_echo "yes" >&6; }
27441 else
cristy8b350f62009-11-15 23:12:43 +000027442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027443$as_echo "no" >&6; }
27444 fi
27445fi
27446 if test "$have_wmf" = 'yes'; then
27447 WMF_DELEGATE_TRUE=
27448 WMF_DELEGATE_FALSE='#'
27449else
27450 WMF_DELEGATE_TRUE='#'
27451 WMF_DELEGATE_FALSE=
27452fi
27453
27454
27455
27456
27457
27458#
27459# Check for XML delegate library.
27460#
27461
27462# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000027463if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027464 withval=$with_xml; with_xml=$withval
27465else
27466 with_xml=$have_x
27467fi
27468
27469
27470if test "$with_xml" != 'yes' ; then
27471 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
27472fi
27473
27474have_xml='no'
27475XML_LIBS=''
27476if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027478$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000027480$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027482$as_echo "" >&6; }
27483 PERSIST_LDFLAGS=$LDFLAGS
27484 PERSIST_CPPFLAGS=$CPPFLAGS
27485 xml2_config=''
27486 for ac_prog in xml2-config
27487do
27488 # Extract the first word of "$ac_prog", so it can be a program name with args.
27489set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027491$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027492if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027493 $as_echo_n "(cached) " >&6
27494else
27495 if test -n "$xml2_config"; then
27496 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
27497else
27498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27499for as_dir in $PATH
27500do
27501 IFS=$as_save_IFS
27502 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27505 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027507 break 2
27508 fi
27509done
cristy8b350f62009-11-15 23:12:43 +000027510 done
cristy3ed852e2009-09-05 21:47:34 +000027511IFS=$as_save_IFS
27512
27513fi
27514fi
27515xml2_config=$ac_cv_prog_xml2_config
27516if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000027517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027518$as_echo "$xml2_config" >&6; }
27519else
cristy8b350f62009-11-15 23:12:43 +000027520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027521$as_echo "no" >&6; }
27522fi
27523
27524
27525 test -n "$xml2_config" && break
27526done
27527 if test -n "$xml2_config"; then
27528 # Debian installs libxml headers under /usr/include/libxml2/libxml with
27529 # the shared library installed under /usr/lib, whereas the package
27530 # installs itself under $prefix/libxml and $prefix/lib.
27531 xml2_prefix=`xml2-config --prefix`
27532 if test -d "${xml2_prefix}/include/libxml2"; then
27533 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
27534 fi
27535 if test "${xml2_prefix}" != '/usr'; then
27536 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
27537 fi
27538 fi
27539 failed=0
27540 passed=0
cristy8b350f62009-11-15 23:12:43 +000027541 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
27542if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027543 passed=`expr $passed + 1`
27544else
27545 failed=`expr $failed + 1`
27546fi
27547
27548
cristy8b350f62009-11-15 23:12:43 +000027549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027550$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027551if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027552 $as_echo_n "(cached) " >&6
27553else
27554 ac_check_lib_save_LIBS=$LIBS
27555LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027557/* end confdefs.h. */
27558
27559/* Override any GCC internal prototype to avoid an error.
27560 Use char because int might match the return type of a GCC
27561 builtin and then its argument prototype would still apply. */
27562#ifdef __cplusplus
27563extern "C"
27564#endif
27565char xmlParseExternalEntity ();
27566int
27567main ()
27568{
27569return xmlParseExternalEntity ();
27570 ;
27571 return 0;
27572}
27573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027574if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027575 ac_cv_lib_xml2_xmlParseExternalEntity=yes
27576else
cristy8b350f62009-11-15 23:12:43 +000027577 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000027578fi
cristy8b350f62009-11-15 23:12:43 +000027579rm -f core conftest.err conftest.$ac_objext \
27580 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027581LIBS=$ac_check_lib_save_LIBS
27582fi
cristy8b350f62009-11-15 23:12:43 +000027583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000027584$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027585if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027586 passed=`expr $passed + 1`
27587else
27588 failed=`expr $failed + 1`
27589fi
27590
cristy8b350f62009-11-15 23:12:43 +000027591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027592$as_echo_n "checking if XML package is complete... " >&6; }
27593 if test $passed -gt 0; then
27594 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027596$as_echo "no -- some components failed test" >&6; }
27597 have_xml='no (failed tests)'
27598 LDFLAGS="$PERSIST_LDFLAGS"
27599 CPPFLAGS="$PERSIST_CPPFLAGS"
27600 else
27601 XML_LIBS='-lxml2'
27602 LIBS="$XML_LIBS $LIBS"
27603
cristy8b350f62009-11-15 23:12:43 +000027604$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027605
cristy8b350f62009-11-15 23:12:43 +000027606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027607$as_echo "yes" >&6; }
27608 have_xml='yes'
27609 fi
27610 else
cristy8b350f62009-11-15 23:12:43 +000027611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027612$as_echo "no" >&6; }
27613 fi
27614fi
27615 if test "$have_xml" = 'yes'; then
27616 XML_DELEGATE_TRUE=
27617 XML_DELEGATE_FALSE='#'
27618else
27619 XML_DELEGATE_TRUE='#'
27620 XML_DELEGATE_FALSE=
27621fi
27622
27623
27624
27625
27626# Substitute compiler name to build/link PerlMagick
27627#
27628
27629
27630#
27631# Configure install Paths
27632#
27633
27634# Subdirectory under lib to place ImageMagick lib files
27635LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27636
27637cat >>confdefs.h <<_ACEOF
27638#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
27639_ACEOF
27640
27641
27642# Path to ImageMagick bin directory
27643EXECUTABLE_PATH="${BIN_DIR}"
27644DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
27645case "${build_os}" in
27646 mingw* )
27647 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
27648 ;;
27649esac
27650
27651cat >>confdefs.h <<_ACEOF
27652#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
27653_ACEOF
27654
27655
27656
27657# Path to ImageMagick lib
27658LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
27659DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
27660case "${build_os}" in
27661 mingw* )
27662 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
27663 ;;
27664esac
27665
27666cat >>confdefs.h <<_ACEOF
27667#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
27668_ACEOF
27669
27670
27671
27672# Subdirectory under lib to place ImageMagick configuration files
27673CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27674
27675cat >>confdefs.h <<_ACEOF
27676#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
27677_ACEOF
27678
27679CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27680DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27681case "${build_os}" in
27682 mingw* )
27683 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
27684 ;;
27685esac
27686
27687cat >>confdefs.h <<_ACEOF
27688#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
27689_ACEOF
27690
27691
27692
27693#
27694# Subdirectory under lib to place ImageMagick coder module files
27695CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
27696
27697cat >>confdefs.h <<_ACEOF
27698#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
27699_ACEOF
27700
27701CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
27702DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
27703case "${build_os}" in
27704 mingw* )
27705 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
27706 ;;
27707esac
27708
27709cat >>confdefs.h <<_ACEOF
27710#define CODER_PATH "$DEFINE_CODER_PATH"
27711_ACEOF
27712
27713
27714
27715#
27716# Subdirectory under lib to place ImageMagick filter module files
27717FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
27718
27719cat >>confdefs.h <<_ACEOF
27720#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
27721_ACEOF
27722
27723FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
27724DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
27725case "${build_os}" in
27726 mingw* )
27727 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
27728 ;;
27729esac
27730
27731cat >>confdefs.h <<_ACEOF
27732#define FILTER_PATH "$DEFINE_FILTER_PATH"
27733_ACEOF
27734
27735
27736
27737#
27738# Path to ImageMagick documentation files
27739DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27740DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
27741DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
27742case "${build_os}" in
27743 mingw* )
27744 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
27745 ;;
27746esac
27747
27748cat >>confdefs.h <<_ACEOF
27749#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
27750_ACEOF
27751
27752
27753
27754#
27755# Path to ImageMagick share files
27756SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27757SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
27758DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
27759case "${build_os}" in
27760 mingw* )
27761 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
27762 ;;
27763esac
27764
27765cat >>confdefs.h <<_ACEOF
27766#define SHARE_PATH "$DEFINE_SHARE_PATH"
27767_ACEOF
27768
27769
27770
27771# Subdirectory under share to place ImageMagick configuration files
27772SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27773
27774cat >>confdefs.h <<_ACEOF
27775#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
27776_ACEOF
27777
27778SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
27779DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
27780case "${build_os}" in
27781 mingw* )
27782 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
27783 ;;
27784esac
27785
27786cat >>confdefs.h <<_ACEOF
27787#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
27788_ACEOF
27789
27790
27791
27792#
27793# program_transform_name is formed for use in a Makefile, so create a
27794# modified version for use in a shell script.
27795configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
27796
27797# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000027798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027799$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027801$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027803$as_echo "" >&6; }
27804AutotraceDecodeDelegateDefault='autotrace'
27805AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000027806BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000027807BZIPDelegateDefault='bzip2'
27808BrowseDelegateDefault='xdg-open'
27809CGMDecodeDelegateDefault='ralcgm'
27810CatDelegateDefault='cat'
27811DNGDecodeDelegateDefault='ufraw-batch'
27812GVCDecodeDelegateDefault='dot'
27813DVIDecodeDelegateDefault='dvips'
27814EchoDelegateDefault='echo'
27815EditorDelegateDefault='xterm'
27816FIGDecodeDelegateDefault='fig2dev'
27817ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
27818DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
27819MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
27820GnuplotDecodeDelegateDefault='gnuplot'
27821HDRDecodeDelegateDefault='ra_pfm'
27822HPGLDecodeDelegateDefault='hp2xx'
27823HTMLDecodeDelegateDefault='html2ps'
27824ILBMDecodeDelegateDefault='ilbmtoppm'
27825ILBMEncodeDelegateDefault='ppmtoilbm'
27826LPDelegateDefault='lp'
27827LPRDelegateDefault='lpr'
27828LZWDecodeDelegateDefault='uncompress'
27829LZWEncodeDelegateDefault='compress'
27830LaunchDelegateDefault='gimp'
27831MANDelegateDefault='groff'
27832MPEGDecodeDelegateDefault='ffmpeg'
27833MPEGEncodeDelegateDefault='ffmpeg'
27834MVDelegateDefault='mv'
27835PCLDelegateDefault='pcl6'
27836PGPDecodeDelegateDefault='pgpv'
27837POVDelegateDefault='povray'
27838if test "$native_win32_build" = 'yes'; then
27839 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000027840elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000027841 PSDelegateDefault='gsc'
27842else
27843 PSDelegateDefault='gs'
27844fi
27845RLEEncodeDelegateDefault='rawtorle'
27846RMDelegateDefault='rm'
27847SCANDecodeDelegateDefault='scanimage'
27848TXTDelegateDefault='enscript'
27849WMFDecodeDelegateDefault='wmf2eps'
27850WWWDecodeDelegateDefault='curl'
27851XPSDelegateDefault='gxps'
27852ZipDelegateDefault='gzip'
27853
27854# Search for delegates
27855# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
27856set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027858$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027859if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027860 $as_echo_n "(cached) " >&6
27861else
27862 case $AutotraceDecodeDelegate in
27863 [\\/]* | ?:[\\/]*)
27864 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
27865 ;;
27866 *)
27867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27868for as_dir in $PATH
27869do
27870 IFS=$as_save_IFS
27871 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027872 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27874 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027876 break 2
27877 fi
27878done
cristy8b350f62009-11-15 23:12:43 +000027879 done
cristy3ed852e2009-09-05 21:47:34 +000027880IFS=$as_save_IFS
27881
27882 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
27883 ;;
27884esac
27885fi
27886AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
27887if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027889$as_echo "$AutotraceDecodeDelegate" >&6; }
27890else
cristy8b350f62009-11-15 23:12:43 +000027891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027892$as_echo "no" >&6; }
27893fi
27894
27895
27896# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
27897set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027899$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027900if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027901 $as_echo_n "(cached) " >&6
27902else
27903 case $AVIDecodeDelegate in
27904 [\\/]* | ?:[\\/]*)
27905 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
27906 ;;
27907 *)
27908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27909for as_dir in $PATH
27910do
27911 IFS=$as_save_IFS
27912 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027913 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27915 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027917 break 2
27918 fi
27919done
cristy8b350f62009-11-15 23:12:43 +000027920 done
cristy3ed852e2009-09-05 21:47:34 +000027921IFS=$as_save_IFS
27922
27923 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
27924 ;;
27925esac
27926fi
27927AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
27928if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027930$as_echo "$AVIDecodeDelegate" >&6; }
27931else
cristy8b350f62009-11-15 23:12:43 +000027932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027933$as_echo "no" >&6; }
27934fi
27935
27936
27937# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
27938set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027940$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027941if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027942 $as_echo_n "(cached) " >&6
27943else
27944 case $BlenderDecodeDelegate in
27945 [\\/]* | ?:[\\/]*)
27946 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
27947 ;;
27948 *)
27949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27950for as_dir in $PATH
27951do
27952 IFS=$as_save_IFS
27953 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027954 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27956 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027958 break 2
27959 fi
27960done
cristy8b350f62009-11-15 23:12:43 +000027961 done
cristy3ed852e2009-09-05 21:47:34 +000027962IFS=$as_save_IFS
27963
27964 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
27965 ;;
27966esac
27967fi
27968BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
27969if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027971$as_echo "$BlenderDecodeDelegate" >&6; }
27972else
cristy8b350f62009-11-15 23:12:43 +000027973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027974$as_echo "no" >&6; }
27975fi
27976
27977
27978# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
27979set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027981$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027982if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027983 $as_echo_n "(cached) " >&6
27984else
27985 case $BZIPDelegate in
27986 [\\/]* | ?:[\\/]*)
27987 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
27988 ;;
27989 *)
27990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27991for as_dir in $PATH
27992do
27993 IFS=$as_save_IFS
27994 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027995 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27997 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027999 break 2
28000 fi
28001done
cristy8b350f62009-11-15 23:12:43 +000028002 done
cristy3ed852e2009-09-05 21:47:34 +000028003IFS=$as_save_IFS
28004
28005 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28006 ;;
28007esac
28008fi
28009BZIPDelegate=$ac_cv_path_BZIPDelegate
28010if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028012$as_echo "$BZIPDelegate" >&6; }
28013else
cristy8b350f62009-11-15 23:12:43 +000028014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028015$as_echo "no" >&6; }
28016fi
28017
28018
28019# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28020set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028022$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028023if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028024 $as_echo_n "(cached) " >&6
28025else
28026 case $BrowseDelegate in
28027 [\\/]* | ?:[\\/]*)
28028 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28029 ;;
28030 *)
28031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28032for as_dir in $PATH
28033do
28034 IFS=$as_save_IFS
28035 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028036 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28038 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028040 break 2
28041 fi
28042done
cristy8b350f62009-11-15 23:12:43 +000028043 done
cristy3ed852e2009-09-05 21:47:34 +000028044IFS=$as_save_IFS
28045
28046 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28047 ;;
28048esac
28049fi
28050BrowseDelegate=$ac_cv_path_BrowseDelegate
28051if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028053$as_echo "$BrowseDelegate" >&6; }
28054else
cristy8b350f62009-11-15 23:12:43 +000028055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028056$as_echo "no" >&6; }
28057fi
28058
28059
28060# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
28061set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028063$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028064if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028065 $as_echo_n "(cached) " >&6
28066else
28067 case $CGMDecodeDelegate in
28068 [\\/]* | ?:[\\/]*)
28069 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
28070 ;;
28071 *)
28072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28073for as_dir in $PATH
28074do
28075 IFS=$as_save_IFS
28076 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028077 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28079 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028081 break 2
28082 fi
28083done
cristy8b350f62009-11-15 23:12:43 +000028084 done
cristy3ed852e2009-09-05 21:47:34 +000028085IFS=$as_save_IFS
28086
28087 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
28088 ;;
28089esac
28090fi
28091CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
28092if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028094$as_echo "$CGMDecodeDelegate" >&6; }
28095else
cristy8b350f62009-11-15 23:12:43 +000028096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028097$as_echo "no" >&6; }
28098fi
28099
28100
28101# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
28102set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028104$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028105if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028106 $as_echo_n "(cached) " >&6
28107else
28108 case $CatDelegate in
28109 [\\/]* | ?:[\\/]*)
28110 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
28111 ;;
28112 *)
28113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28114for as_dir in $PATH
28115do
28116 IFS=$as_save_IFS
28117 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028118 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28120 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028122 break 2
28123 fi
28124done
cristy8b350f62009-11-15 23:12:43 +000028125 done
cristy3ed852e2009-09-05 21:47:34 +000028126IFS=$as_save_IFS
28127
28128 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
28129 ;;
28130esac
28131fi
28132CatDelegate=$ac_cv_path_CatDelegate
28133if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028135$as_echo "$CatDelegate" >&6; }
28136else
cristy8b350f62009-11-15 23:12:43 +000028137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028138$as_echo "no" >&6; }
28139fi
28140
28141
28142# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
28143set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028145$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028146if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028147 $as_echo_n "(cached) " >&6
28148else
28149 case $DNGDecodeDelegate in
28150 [\\/]* | ?:[\\/]*)
28151 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
28152 ;;
28153 *)
28154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28155for as_dir in $PATH
28156do
28157 IFS=$as_save_IFS
28158 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028159 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28161 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028163 break 2
28164 fi
28165done
cristy8b350f62009-11-15 23:12:43 +000028166 done
cristy3ed852e2009-09-05 21:47:34 +000028167IFS=$as_save_IFS
28168
28169 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
28170 ;;
28171esac
28172fi
28173DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
28174if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028176$as_echo "$DNGDecodeDelegate" >&6; }
28177else
cristy8b350f62009-11-15 23:12:43 +000028178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028179$as_echo "no" >&6; }
28180fi
28181
28182
28183# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
28184set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028186$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028187if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028188 $as_echo_n "(cached) " >&6
28189else
28190 case $GVCDecodeDelegate in
28191 [\\/]* | ?:[\\/]*)
28192 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
28193 ;;
28194 *)
28195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28196for as_dir in $PATH
28197do
28198 IFS=$as_save_IFS
28199 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028200 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28202 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028204 break 2
28205 fi
28206done
cristy8b350f62009-11-15 23:12:43 +000028207 done
cristy3ed852e2009-09-05 21:47:34 +000028208IFS=$as_save_IFS
28209
28210 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
28211 ;;
28212esac
28213fi
28214GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
28215if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028217$as_echo "$GVCDecodeDelegate" >&6; }
28218else
cristy8b350f62009-11-15 23:12:43 +000028219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028220$as_echo "no" >&6; }
28221fi
28222
28223
28224# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
28225set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028227$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028228if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028229 $as_echo_n "(cached) " >&6
28230else
28231 case $DVIDecodeDelegate in
28232 [\\/]* | ?:[\\/]*)
28233 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
28234 ;;
28235 *)
28236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28237for as_dir in $PATH
28238do
28239 IFS=$as_save_IFS
28240 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028241 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28243 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028245 break 2
28246 fi
28247done
cristy8b350f62009-11-15 23:12:43 +000028248 done
cristy3ed852e2009-09-05 21:47:34 +000028249IFS=$as_save_IFS
28250
28251 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
28252 ;;
28253esac
28254fi
28255DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
28256if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028258$as_echo "$DVIDecodeDelegate" >&6; }
28259else
cristy8b350f62009-11-15 23:12:43 +000028260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028261$as_echo "no" >&6; }
28262fi
28263
28264
28265# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
28266set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028268$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028269if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028270 $as_echo_n "(cached) " >&6
28271else
28272 case $EchoDelegate in
28273 [\\/]* | ?:[\\/]*)
28274 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
28275 ;;
28276 *)
28277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28278for as_dir in $PATH
28279do
28280 IFS=$as_save_IFS
28281 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028282 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28284 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028286 break 2
28287 fi
28288done
cristy8b350f62009-11-15 23:12:43 +000028289 done
cristy3ed852e2009-09-05 21:47:34 +000028290IFS=$as_save_IFS
28291
28292 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
28293 ;;
28294esac
28295fi
28296EchoDelegate=$ac_cv_path_EchoDelegate
28297if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028299$as_echo "$EchoDelegate" >&6; }
28300else
cristy8b350f62009-11-15 23:12:43 +000028301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028302$as_echo "no" >&6; }
28303fi
28304
28305
28306# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
28307set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028309$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028310if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028311 $as_echo_n "(cached) " >&6
28312else
28313 case $EditorDelegate in
28314 [\\/]* | ?:[\\/]*)
28315 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
28316 ;;
28317 *)
28318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28319for as_dir in $PATH
28320do
28321 IFS=$as_save_IFS
28322 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28325 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028327 break 2
28328 fi
28329done
cristy8b350f62009-11-15 23:12:43 +000028330 done
cristy3ed852e2009-09-05 21:47:34 +000028331IFS=$as_save_IFS
28332
28333 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
28334 ;;
28335esac
28336fi
28337EditorDelegate=$ac_cv_path_EditorDelegate
28338if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028340$as_echo "$EditorDelegate" >&6; }
28341else
cristy8b350f62009-11-15 23:12:43 +000028342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028343$as_echo "no" >&6; }
28344fi
28345
28346
28347# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
28348set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028350$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028351if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028352 $as_echo_n "(cached) " >&6
28353else
28354 case $FIGDecodeDelegate in
28355 [\\/]* | ?:[\\/]*)
28356 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
28357 ;;
28358 *)
28359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28360for as_dir in $PATH
28361do
28362 IFS=$as_save_IFS
28363 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028364 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28366 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028368 break 2
28369 fi
28370done
cristy8b350f62009-11-15 23:12:43 +000028371 done
cristy3ed852e2009-09-05 21:47:34 +000028372IFS=$as_save_IFS
28373
28374 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
28375 ;;
28376esac
28377fi
28378FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
28379if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028381$as_echo "$FIGDecodeDelegate" >&6; }
28382else
cristy8b350f62009-11-15 23:12:43 +000028383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028384$as_echo "no" >&6; }
28385fi
28386
28387
28388# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
28389set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028391$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028392if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028393 $as_echo_n "(cached) " >&6
28394else
28395 case $ConvertDelegate in
28396 [\\/]* | ?:[\\/]*)
28397 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
28398 ;;
28399 *)
28400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28401for as_dir in $PATH
28402do
28403 IFS=$as_save_IFS
28404 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28407 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028409 break 2
28410 fi
28411done
cristy8b350f62009-11-15 23:12:43 +000028412 done
cristy3ed852e2009-09-05 21:47:34 +000028413IFS=$as_save_IFS
28414
28415 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
28416 ;;
28417esac
28418fi
28419ConvertDelegate=$ac_cv_path_ConvertDelegate
28420if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028422$as_echo "$ConvertDelegate" >&6; }
28423else
cristy8b350f62009-11-15 23:12:43 +000028424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028425$as_echo "no" >&6; }
28426fi
28427
28428
28429# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
28430set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028432$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028433if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028434 $as_echo_n "(cached) " >&6
28435else
28436 case $DisplayDelegate in
28437 [\\/]* | ?:[\\/]*)
28438 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
28439 ;;
28440 *)
28441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28442for as_dir in $PATH
28443do
28444 IFS=$as_save_IFS
28445 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28448 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028450 break 2
28451 fi
28452done
cristy8b350f62009-11-15 23:12:43 +000028453 done
cristy3ed852e2009-09-05 21:47:34 +000028454IFS=$as_save_IFS
28455
28456 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
28457 ;;
28458esac
28459fi
28460DisplayDelegate=$ac_cv_path_DisplayDelegate
28461if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028463$as_echo "$DisplayDelegate" >&6; }
28464else
cristy8b350f62009-11-15 23:12:43 +000028465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028466$as_echo "no" >&6; }
28467fi
28468
28469
28470# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
28471set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028473$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028474if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028475 $as_echo_n "(cached) " >&6
28476else
28477 case $MogrifyDelegate in
28478 [\\/]* | ?:[\\/]*)
28479 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
28480 ;;
28481 *)
28482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28483for as_dir in $PATH
28484do
28485 IFS=$as_save_IFS
28486 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028487 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28489 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028491 break 2
28492 fi
28493done
cristy8b350f62009-11-15 23:12:43 +000028494 done
cristy3ed852e2009-09-05 21:47:34 +000028495IFS=$as_save_IFS
28496
28497 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
28498 ;;
28499esac
28500fi
28501MogrifyDelegate=$ac_cv_path_MogrifyDelegate
28502if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028504$as_echo "$MogrifyDelegate" >&6; }
28505else
cristy8b350f62009-11-15 23:12:43 +000028506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028507$as_echo "no" >&6; }
28508fi
28509
28510
28511# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
28512set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028514$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028515if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028516 $as_echo_n "(cached) " >&6
28517else
28518 case $GnuplotDecodeDelegate in
28519 [\\/]* | ?:[\\/]*)
28520 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
28521 ;;
28522 *)
28523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28524for as_dir in $PATH
28525do
28526 IFS=$as_save_IFS
28527 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028528 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28530 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028532 break 2
28533 fi
28534done
cristy8b350f62009-11-15 23:12:43 +000028535 done
cristy3ed852e2009-09-05 21:47:34 +000028536IFS=$as_save_IFS
28537
28538 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
28539 ;;
28540esac
28541fi
28542GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
28543if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028545$as_echo "$GnuplotDecodeDelegate" >&6; }
28546else
cristy8b350f62009-11-15 23:12:43 +000028547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028548$as_echo "no" >&6; }
28549fi
28550
28551
28552# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
28553set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028555$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028556if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028557 $as_echo_n "(cached) " >&6
28558else
28559 case $HDRDecodeDelegate in
28560 [\\/]* | ?:[\\/]*)
28561 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
28562 ;;
28563 *)
28564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28565for as_dir in $PATH
28566do
28567 IFS=$as_save_IFS
28568 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028569 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28571 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028573 break 2
28574 fi
28575done
cristy8b350f62009-11-15 23:12:43 +000028576 done
cristy3ed852e2009-09-05 21:47:34 +000028577IFS=$as_save_IFS
28578
28579 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
28580 ;;
28581esac
28582fi
28583HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
28584if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028586$as_echo "$HDRDecodeDelegate" >&6; }
28587else
cristy8b350f62009-11-15 23:12:43 +000028588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028589$as_echo "no" >&6; }
28590fi
28591
28592
28593# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
28594set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028596$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028597if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028598 $as_echo_n "(cached) " >&6
28599else
28600 case $HPGLDecodeDelegate in
28601 [\\/]* | ?:[\\/]*)
28602 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
28603 ;;
28604 *)
28605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28606for as_dir in $PATH
28607do
28608 IFS=$as_save_IFS
28609 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028610 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28612 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028614 break 2
28615 fi
28616done
cristy8b350f62009-11-15 23:12:43 +000028617 done
cristy3ed852e2009-09-05 21:47:34 +000028618IFS=$as_save_IFS
28619
28620 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
28621 ;;
28622esac
28623fi
28624HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
28625if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028627$as_echo "$HPGLDecodeDelegate" >&6; }
28628else
cristy8b350f62009-11-15 23:12:43 +000028629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028630$as_echo "no" >&6; }
28631fi
28632
28633
28634# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
28635set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028637$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028638if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028639 $as_echo_n "(cached) " >&6
28640else
28641 case $HTMLDecodeDelegate in
28642 [\\/]* | ?:[\\/]*)
28643 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
28644 ;;
28645 *)
28646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28647for as_dir in $PATH
28648do
28649 IFS=$as_save_IFS
28650 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28653 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028655 break 2
28656 fi
28657done
cristy8b350f62009-11-15 23:12:43 +000028658 done
cristy3ed852e2009-09-05 21:47:34 +000028659IFS=$as_save_IFS
28660
28661 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
28662 ;;
28663esac
28664fi
28665HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
28666if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028668$as_echo "$HTMLDecodeDelegate" >&6; }
28669else
cristy8b350f62009-11-15 23:12:43 +000028670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028671$as_echo "no" >&6; }
28672fi
28673
28674
28675# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
28676set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028678$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028679if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028680 $as_echo_n "(cached) " >&6
28681else
28682 case $ILBMDecodeDelegate in
28683 [\\/]* | ?:[\\/]*)
28684 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
28685 ;;
28686 *)
28687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28688for as_dir in $PATH
28689do
28690 IFS=$as_save_IFS
28691 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028692 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28694 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028696 break 2
28697 fi
28698done
cristy8b350f62009-11-15 23:12:43 +000028699 done
cristy3ed852e2009-09-05 21:47:34 +000028700IFS=$as_save_IFS
28701
28702 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
28703 ;;
28704esac
28705fi
28706ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
28707if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028709$as_echo "$ILBMDecodeDelegate" >&6; }
28710else
cristy8b350f62009-11-15 23:12:43 +000028711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028712$as_echo "no" >&6; }
28713fi
28714
28715
28716# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
28717set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028719$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028720if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028721 $as_echo_n "(cached) " >&6
28722else
28723 case $ILBMEncodeDelegate in
28724 [\\/]* | ?:[\\/]*)
28725 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
28726 ;;
28727 *)
28728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28729for as_dir in $PATH
28730do
28731 IFS=$as_save_IFS
28732 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028733 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28735 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028737 break 2
28738 fi
28739done
cristy8b350f62009-11-15 23:12:43 +000028740 done
cristy3ed852e2009-09-05 21:47:34 +000028741IFS=$as_save_IFS
28742
28743 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
28744 ;;
28745esac
28746fi
28747ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
28748if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028750$as_echo "$ILBMEncodeDelegate" >&6; }
28751else
cristy8b350f62009-11-15 23:12:43 +000028752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028753$as_echo "no" >&6; }
28754fi
28755
28756
28757# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
28758set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028760$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028761if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028762 $as_echo_n "(cached) " >&6
28763else
28764 case $LPDelegate in
28765 [\\/]* | ?:[\\/]*)
28766 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
28767 ;;
28768 *)
28769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28770for as_dir in $PATH
28771do
28772 IFS=$as_save_IFS
28773 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028774 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28776 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028778 break 2
28779 fi
28780done
cristy8b350f62009-11-15 23:12:43 +000028781 done
cristy3ed852e2009-09-05 21:47:34 +000028782IFS=$as_save_IFS
28783
28784 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
28785 ;;
28786esac
28787fi
28788LPDelegate=$ac_cv_path_LPDelegate
28789if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028791$as_echo "$LPDelegate" >&6; }
28792else
cristy8b350f62009-11-15 23:12:43 +000028793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028794$as_echo "no" >&6; }
28795fi
28796
28797
28798# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
28799set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028801$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028802if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028803 $as_echo_n "(cached) " >&6
28804else
28805 case $LPRDelegate in
28806 [\\/]* | ?:[\\/]*)
28807 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
28808 ;;
28809 *)
28810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28811for as_dir in $PATH
28812do
28813 IFS=$as_save_IFS
28814 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028815 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28817 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028819 break 2
28820 fi
28821done
cristy8b350f62009-11-15 23:12:43 +000028822 done
cristy3ed852e2009-09-05 21:47:34 +000028823IFS=$as_save_IFS
28824
28825 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
28826 ;;
28827esac
28828fi
28829LPRDelegate=$ac_cv_path_LPRDelegate
28830if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028832$as_echo "$LPRDelegate" >&6; }
28833else
cristy8b350f62009-11-15 23:12:43 +000028834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028835$as_echo "no" >&6; }
28836fi
28837
28838
28839# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
28840set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028842$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028843if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028844 $as_echo_n "(cached) " >&6
28845else
28846 case $LZWDecodeDelegate in
28847 [\\/]* | ?:[\\/]*)
28848 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
28849 ;;
28850 *)
28851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28852for as_dir in $PATH
28853do
28854 IFS=$as_save_IFS
28855 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028856 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28858 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028860 break 2
28861 fi
28862done
cristy8b350f62009-11-15 23:12:43 +000028863 done
cristy3ed852e2009-09-05 21:47:34 +000028864IFS=$as_save_IFS
28865
28866 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
28867 ;;
28868esac
28869fi
28870LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
28871if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028873$as_echo "$LZWDecodeDelegate" >&6; }
28874else
cristy8b350f62009-11-15 23:12:43 +000028875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028876$as_echo "no" >&6; }
28877fi
28878
28879
28880# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
28881set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028883$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028884if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028885 $as_echo_n "(cached) " >&6
28886else
28887 case $LZWEncodeDelegate in
28888 [\\/]* | ?:[\\/]*)
28889 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
28890 ;;
28891 *)
28892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28893for as_dir in $PATH
28894do
28895 IFS=$as_save_IFS
28896 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28899 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028901 break 2
28902 fi
28903done
cristy8b350f62009-11-15 23:12:43 +000028904 done
cristy3ed852e2009-09-05 21:47:34 +000028905IFS=$as_save_IFS
28906
28907 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
28908 ;;
28909esac
28910fi
28911LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
28912if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028914$as_echo "$LZWEncodeDelegate" >&6; }
28915else
cristy8b350f62009-11-15 23:12:43 +000028916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028917$as_echo "no" >&6; }
28918fi
28919
28920
28921# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
28922set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028924$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028925if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028926 $as_echo_n "(cached) " >&6
28927else
28928 case $LaunchDelegate in
28929 [\\/]* | ?:[\\/]*)
28930 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
28931 ;;
28932 *)
28933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28934for as_dir in $PATH
28935do
28936 IFS=$as_save_IFS
28937 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028938 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28940 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028942 break 2
28943 fi
28944done
cristy8b350f62009-11-15 23:12:43 +000028945 done
cristy3ed852e2009-09-05 21:47:34 +000028946IFS=$as_save_IFS
28947
28948 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
28949 ;;
28950esac
28951fi
28952LaunchDelegate=$ac_cv_path_LaunchDelegate
28953if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028955$as_echo "$LaunchDelegate" >&6; }
28956else
cristy8b350f62009-11-15 23:12:43 +000028957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028958$as_echo "no" >&6; }
28959fi
28960
28961
28962# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
28963set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028965$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028966if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028967 $as_echo_n "(cached) " >&6
28968else
28969 case $MANDelegate in
28970 [\\/]* | ?:[\\/]*)
28971 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
28972 ;;
28973 *)
28974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28975for as_dir in $PATH
28976do
28977 IFS=$as_save_IFS
28978 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028979 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28981 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028983 break 2
28984 fi
28985done
cristy8b350f62009-11-15 23:12:43 +000028986 done
cristy3ed852e2009-09-05 21:47:34 +000028987IFS=$as_save_IFS
28988
28989 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
28990 ;;
28991esac
28992fi
28993MANDelegate=$ac_cv_path_MANDelegate
28994if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028996$as_echo "$MANDelegate" >&6; }
28997else
cristy8b350f62009-11-15 23:12:43 +000028998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028999$as_echo "no" >&6; }
29000fi
29001
29002
29003# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29004set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029006$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029007if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029008 $as_echo_n "(cached) " >&6
29009else
29010 case $MPEGDecodeDelegate in
29011 [\\/]* | ?:[\\/]*)
29012 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29013 ;;
29014 *)
29015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29016for as_dir in $PATH
29017do
29018 IFS=$as_save_IFS
29019 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29022 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029024 break 2
29025 fi
29026done
cristy8b350f62009-11-15 23:12:43 +000029027 done
cristy3ed852e2009-09-05 21:47:34 +000029028IFS=$as_save_IFS
29029
29030 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29031 ;;
29032esac
29033fi
29034MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29035if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029037$as_echo "$MPEGDecodeDelegate" >&6; }
29038else
cristy8b350f62009-11-15 23:12:43 +000029039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029040$as_echo "no" >&6; }
29041fi
29042
29043
29044# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29045set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029047$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029048if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029049 $as_echo_n "(cached) " >&6
29050else
29051 case $MPEGEncodeDelegate in
29052 [\\/]* | ?:[\\/]*)
29053 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
29054 ;;
29055 *)
29056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29057for as_dir in $PATH
29058do
29059 IFS=$as_save_IFS
29060 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029061 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29063 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029065 break 2
29066 fi
29067done
cristy8b350f62009-11-15 23:12:43 +000029068 done
cristy3ed852e2009-09-05 21:47:34 +000029069IFS=$as_save_IFS
29070
29071 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
29072 ;;
29073esac
29074fi
29075MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
29076if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029078$as_echo "$MPEGEncodeDelegate" >&6; }
29079else
cristy8b350f62009-11-15 23:12:43 +000029080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029081$as_echo "no" >&6; }
29082fi
29083
29084
29085# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
29086set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029088$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029089if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029090 $as_echo_n "(cached) " >&6
29091else
29092 case $MVDelegate in
29093 [\\/]* | ?:[\\/]*)
29094 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
29095 ;;
29096 *)
29097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29098for as_dir in $PATH
29099do
29100 IFS=$as_save_IFS
29101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029102 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29104 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029106 break 2
29107 fi
29108done
cristy8b350f62009-11-15 23:12:43 +000029109 done
cristy3ed852e2009-09-05 21:47:34 +000029110IFS=$as_save_IFS
29111
29112 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
29113 ;;
29114esac
29115fi
29116MVDelegate=$ac_cv_path_MVDelegate
29117if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029119$as_echo "$MVDelegate" >&6; }
29120else
cristy8b350f62009-11-15 23:12:43 +000029121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029122$as_echo "no" >&6; }
29123fi
29124
29125
29126# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
29127set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029129$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029130if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029131 $as_echo_n "(cached) " >&6
29132else
29133 case $PCLDelegate in
29134 [\\/]* | ?:[\\/]*)
29135 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
29136 ;;
29137 *)
29138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29139for as_dir in $PATH
29140do
29141 IFS=$as_save_IFS
29142 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029143 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29145 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029147 break 2
29148 fi
29149done
cristy8b350f62009-11-15 23:12:43 +000029150 done
cristy3ed852e2009-09-05 21:47:34 +000029151IFS=$as_save_IFS
29152
29153 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
29154 ;;
29155esac
29156fi
29157PCLDelegate=$ac_cv_path_PCLDelegate
29158if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029160$as_echo "$PCLDelegate" >&6; }
29161else
cristy8b350f62009-11-15 23:12:43 +000029162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029163$as_echo "no" >&6; }
29164fi
29165
29166
29167# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
29168set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029170$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029171if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029172 $as_echo_n "(cached) " >&6
29173else
29174 case $PGPDecodeDelegate in
29175 [\\/]* | ?:[\\/]*)
29176 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
29177 ;;
29178 *)
29179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29180for as_dir in $PATH
29181do
29182 IFS=$as_save_IFS
29183 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029184 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29186 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029188 break 2
29189 fi
29190done
cristy8b350f62009-11-15 23:12:43 +000029191 done
cristy3ed852e2009-09-05 21:47:34 +000029192IFS=$as_save_IFS
29193
29194 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
29195 ;;
29196esac
29197fi
29198PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
29199if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029201$as_echo "$PGPDecodeDelegate" >&6; }
29202else
cristy8b350f62009-11-15 23:12:43 +000029203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029204$as_echo "no" >&6; }
29205fi
29206
29207
29208# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
29209set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029211$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029212if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029213 $as_echo_n "(cached) " >&6
29214else
29215 case $POVDelegate in
29216 [\\/]* | ?:[\\/]*)
29217 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
29218 ;;
29219 *)
29220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29221for as_dir in $PATH
29222do
29223 IFS=$as_save_IFS
29224 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29227 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029229 break 2
29230 fi
29231done
cristy8b350f62009-11-15 23:12:43 +000029232 done
cristy3ed852e2009-09-05 21:47:34 +000029233IFS=$as_save_IFS
29234
29235 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
29236 ;;
29237esac
29238fi
29239POVDelegate=$ac_cv_path_POVDelegate
29240if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029242$as_echo "$POVDelegate" >&6; }
29243else
cristy8b350f62009-11-15 23:12:43 +000029244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029245$as_echo "no" >&6; }
29246fi
29247
29248
29249for ac_prog in gsx gsc "$PSDelegateDefault"
29250do
29251 # Extract the first word of "$ac_prog", so it can be a program name with args.
29252set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029254$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029255if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029256 $as_echo_n "(cached) " >&6
29257else
29258 case $PSDelegate in
29259 [\\/]* | ?:[\\/]*)
29260 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
29261 ;;
29262 *)
29263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29264for as_dir in $PATH
29265do
29266 IFS=$as_save_IFS
29267 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029268 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29270 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029272 break 2
29273 fi
29274done
cristy8b350f62009-11-15 23:12:43 +000029275 done
cristy3ed852e2009-09-05 21:47:34 +000029276IFS=$as_save_IFS
29277
29278 ;;
29279esac
29280fi
29281PSDelegate=$ac_cv_path_PSDelegate
29282if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029284$as_echo "$PSDelegate" >&6; }
29285else
cristy8b350f62009-11-15 23:12:43 +000029286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029287$as_echo "no" >&6; }
29288fi
29289
29290
29291 test -n "$PSDelegate" && break
29292done
29293test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
29294
29295# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
29296set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029298$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029299if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029300 $as_echo_n "(cached) " >&6
29301else
29302 case $RLEEncodeDelegate in
29303 [\\/]* | ?:[\\/]*)
29304 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
29305 ;;
29306 *)
29307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29308for as_dir in $PATH
29309do
29310 IFS=$as_save_IFS
29311 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029312 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29314 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029316 break 2
29317 fi
29318done
cristy8b350f62009-11-15 23:12:43 +000029319 done
cristy3ed852e2009-09-05 21:47:34 +000029320IFS=$as_save_IFS
29321
29322 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
29323 ;;
29324esac
29325fi
29326RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
29327if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029329$as_echo "$RLEEncodeDelegate" >&6; }
29330else
cristy8b350f62009-11-15 23:12:43 +000029331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029332$as_echo "no" >&6; }
29333fi
29334
29335
29336# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
29337set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029339$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029340if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029341 $as_echo_n "(cached) " >&6
29342else
29343 case $RMDelegate in
29344 [\\/]* | ?:[\\/]*)
29345 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
29346 ;;
29347 *)
29348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29349for as_dir in $PATH
29350do
29351 IFS=$as_save_IFS
29352 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029353 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29355 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029357 break 2
29358 fi
29359done
cristy8b350f62009-11-15 23:12:43 +000029360 done
cristy3ed852e2009-09-05 21:47:34 +000029361IFS=$as_save_IFS
29362
29363 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
29364 ;;
29365esac
29366fi
29367RMDelegate=$ac_cv_path_RMDelegate
29368if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029370$as_echo "$RMDelegate" >&6; }
29371else
cristy8b350f62009-11-15 23:12:43 +000029372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029373$as_echo "no" >&6; }
29374fi
29375
29376
29377# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
29378set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029380$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029381if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029382 $as_echo_n "(cached) " >&6
29383else
29384 case $SCANDecodeDelegate in
29385 [\\/]* | ?:[\\/]*)
29386 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
29387 ;;
29388 *)
29389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29390for as_dir in $PATH
29391do
29392 IFS=$as_save_IFS
29393 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029394 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29396 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029398 break 2
29399 fi
29400done
cristy8b350f62009-11-15 23:12:43 +000029401 done
cristy3ed852e2009-09-05 21:47:34 +000029402IFS=$as_save_IFS
29403
29404 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
29405 ;;
29406esac
29407fi
29408SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
29409if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029411$as_echo "$SCANDecodeDelegate" >&6; }
29412else
cristy8b350f62009-11-15 23:12:43 +000029413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029414$as_echo "no" >&6; }
29415fi
29416
29417
29418# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
29419set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029421$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029422if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029423 $as_echo_n "(cached) " >&6
29424else
29425 case $TXTDelegate in
29426 [\\/]* | ?:[\\/]*)
29427 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
29428 ;;
29429 *)
29430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29431for as_dir in $PATH
29432do
29433 IFS=$as_save_IFS
29434 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029435 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29437 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029439 break 2
29440 fi
29441done
cristy8b350f62009-11-15 23:12:43 +000029442 done
cristy3ed852e2009-09-05 21:47:34 +000029443IFS=$as_save_IFS
29444
29445 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
29446 ;;
29447esac
29448fi
29449TXTDelegate=$ac_cv_path_TXTDelegate
29450if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029452$as_echo "$TXTDelegate" >&6; }
29453else
cristy8b350f62009-11-15 23:12:43 +000029454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029455$as_echo "no" >&6; }
29456fi
29457
29458
29459# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
29460set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029462$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029463if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029464 $as_echo_n "(cached) " >&6
29465else
29466 case $WMFDecodeDelegate in
29467 [\\/]* | ?:[\\/]*)
29468 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
29469 ;;
29470 *)
29471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29472for as_dir in $PATH
29473do
29474 IFS=$as_save_IFS
29475 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029476 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29478 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029480 break 2
29481 fi
29482done
cristy8b350f62009-11-15 23:12:43 +000029483 done
cristy3ed852e2009-09-05 21:47:34 +000029484IFS=$as_save_IFS
29485
29486 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
29487 ;;
29488esac
29489fi
29490WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
29491if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029493$as_echo "$WMFDecodeDelegate" >&6; }
29494else
cristy8b350f62009-11-15 23:12:43 +000029495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029496$as_echo "no" >&6; }
29497fi
29498
29499
29500# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
29501set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029503$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029504if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029505 $as_echo_n "(cached) " >&6
29506else
29507 case $WWWDecodeDelegate in
29508 [\\/]* | ?:[\\/]*)
29509 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
29510 ;;
29511 *)
29512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29513for as_dir in $PATH
29514do
29515 IFS=$as_save_IFS
29516 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029517 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29519 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029521 break 2
29522 fi
29523done
cristy8b350f62009-11-15 23:12:43 +000029524 done
cristy3ed852e2009-09-05 21:47:34 +000029525IFS=$as_save_IFS
29526
29527 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
29528 ;;
29529esac
29530fi
29531WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
29532if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029534$as_echo "$WWWDecodeDelegate" >&6; }
29535else
cristy8b350f62009-11-15 23:12:43 +000029536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029537$as_echo "no" >&6; }
29538fi
29539
29540
29541# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
29542set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029544$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029545if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029546 $as_echo_n "(cached) " >&6
29547else
29548 case $XPSDelegate in
29549 [\\/]* | ?:[\\/]*)
29550 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
29551 ;;
29552 *)
29553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29554for as_dir in $PATH
29555do
29556 IFS=$as_save_IFS
29557 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029558 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29560 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029562 break 2
29563 fi
29564done
cristy8b350f62009-11-15 23:12:43 +000029565 done
cristy3ed852e2009-09-05 21:47:34 +000029566IFS=$as_save_IFS
29567
29568 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
29569 ;;
29570esac
29571fi
29572XPSDelegate=$ac_cv_path_XPSDelegate
29573if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029575$as_echo "$XPSDelegate" >&6; }
29576else
cristy8b350f62009-11-15 23:12:43 +000029577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029578$as_echo "no" >&6; }
29579fi
29580
29581
29582# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
29583set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029585$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029586if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029587 $as_echo_n "(cached) " >&6
29588else
29589 case $ZipDelegate in
29590 [\\/]* | ?:[\\/]*)
29591 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
29592 ;;
29593 *)
29594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29595for as_dir in $PATH
29596do
29597 IFS=$as_save_IFS
29598 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029599 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29601 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029603 break 2
29604 fi
29605done
cristy8b350f62009-11-15 23:12:43 +000029606 done
cristy3ed852e2009-09-05 21:47:34 +000029607IFS=$as_save_IFS
29608
29609 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
29610 ;;
29611esac
29612fi
29613ZipDelegate=$ac_cv_path_ZipDelegate
29614if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029616$as_echo "$ZipDelegate" >&6; }
29617else
cristy8b350f62009-11-15 23:12:43 +000029618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029619$as_echo "no" >&6; }
29620fi
29621
29622
29623
29624# Prefer lpr to lp; lp needs options tacked on.
29625if test "$LPRDelegate" != no; then
29626 PrintDelegate="$LPRDelegate"
29627else
29628 PrintDelegate="$LPDelegate -c -s"
29629fi
29630
29631
29632# Installed ImageMagick utiltity paths
29633ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
29634DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
29635MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
29636
29637# Set delegate booleans
29638have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
29639have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
29640have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
29641have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
29642have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
29643have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
29644have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
29645have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
29646have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
29647have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
29648have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
29649
29650#
29651# Test for font directories
29652#
29653type_include_files=''
29654
29655# Windows
29656windows_font_dir=''
29657if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
29658 windows_font_dir="${with_windows_font_dir}/"
29659fi
29660if test -n "$windows_font_dir"; then
29661 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
29662 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
29663 fi
29664 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
29665 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
29666 fi
29667 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
29668 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
29669 fi
29670fi
29671if test -n "$windows_font_dir"; then
29672 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
29673fi
29674
29675
29676# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000029677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000029678$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
29679ghostscript_font_dir=''
29680if test "${with_gs_font_dir}" != 'default'; then
29681 ghostscript_font_dir="${with_gs_font_dir}/"
29682else
29683 if test "${native_win32_build}" = 'yes'; then
29684 # Native Windows Build
29685 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
29686 if test -f "${font_dir}a010013l.pfb"; then
29687 ghostscript_font_dir="$font_dir"
29688 break 1
29689 fi
29690 done
29691 if test "${PSDelegate}" != 'gswin32c'; then
29692 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
29693 fi
29694 else
29695 # Linux / Mac OS X / Unix Build
29696 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
29697 if test -f "${font_dir}a010013l.pfb"; then
29698 ghostscript_font_dir="${font_dir}"
29699 break 1
29700 fi
29701 done
29702 if test "${ghostscript_font_dir}x" = 'x'; then
29703 if test "$PSDelegate" != 'gs'; then
29704 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
29705 fi
29706 fi
29707 fi
29708fi
29709if test "${ghostscript_font_dir}x" != 'x'; then
29710 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000029711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000029712$as_echo "$ghostscript_font_dir" >&6; }
29713else
cristy8b350f62009-11-15 23:12:43 +000029714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000029715$as_echo "not found!" >&6; };
29716fi
29717
29718case "${build_os}" in
29719 mingw* )
29720 PSDelegate=`$WinPathScript "$PSDelegate" 1`
29721 ;;
29722esac
29723
29724
29725
29726#
29727# Handle case where user doesn't want frozen paths
29728#
29729if test "$with_frozenpaths" != 'yes'; then
29730 # Re-set delegate definitions to default (no paths)
29731 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
29732 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
29733 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
29734 BZIPDelegate="$BZIPDelegateDefault"
29735 BrowseDelegate="$BrowseDelegateDefault"
29736 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
29737 CatDelegate="$CatDelegateDefault"
29738 ConvertDelegate="$ConvertDelegateDefault"
29739 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
29740 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
29741 EchoDelegate="$EchoDelegateDefault"
29742 EditorDelegate="$EditorDelegateDefault"
29743 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
29744 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
29745 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
29746 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
29747 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
29748 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
29749 LPDelegate="$LPDelegateDefault"
29750 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
29751 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
29752 LaunchDelegate="$LaunchDelegateDefault"
29753 MANDelegate="$MANDelegateDefault"
29754 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
29755 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
29756 MVDelegate="$MVDelegateDefault"
29757 MogrifyDelegate="$MogrifyDelegateDefault"
29758 PCLDelegate="$PCLDelegateDefault"
29759 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
29760 POVDelegate="$POVDelegateDefault"
29761 PSDelegate="$PSDelegateDefault"
29762 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
29763 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
29764 RMDelegate="$RMDelegateDefault"
29765 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
29766 ShowImageDelegate="$ShowImageDelegateDefault"
29767 TXTDelegate="$TXTDelegateDefault"
29768 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
29769 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
29770 XPSDelegate="$XPSDelegateDefault"
29771 ZipDelegate="$ZipDelegateDefault"
29772fi
29773
29774# Delegate substitutions
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812
29813
29814
29815
29816
29817#
29818# RPM support.
29819#
29820RPM=''
29821for ac_prog in gnutar gtar tar
29822do
29823 # Extract the first word of "$ac_prog", so it can be a program name with args.
29824set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029826$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029827if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029828 $as_echo_n "(cached) " >&6
29829else
29830 if test -n "$TAR"; then
29831 ac_cv_prog_TAR="$TAR" # Let the user override the test.
29832else
29833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29834for as_dir in $PATH
29835do
29836 IFS=$as_save_IFS
29837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29840 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029842 break 2
29843 fi
29844done
cristy8b350f62009-11-15 23:12:43 +000029845 done
cristy3ed852e2009-09-05 21:47:34 +000029846IFS=$as_save_IFS
29847
29848fi
29849fi
29850TAR=$ac_cv_prog_TAR
29851if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000029852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000029853$as_echo "$TAR" >&6; }
29854else
cristy8b350f62009-11-15 23:12:43 +000029855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029856$as_echo "no" >&6; }
29857fi
29858
29859
29860 test -n "$TAR" && break
29861done
29862
29863for ac_prog in perl
29864do
29865 # Extract the first word of "$ac_prog", so it can be a program name with args.
29866set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029868$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029869if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029870 $as_echo_n "(cached) " >&6
29871else
29872 if test -n "$PERL"; then
29873 ac_cv_prog_PERL="$PERL" # Let the user override the test.
29874else
29875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29876for as_dir in $PATH
29877do
29878 IFS=$as_save_IFS
29879 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29882 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029884 break 2
29885 fi
29886done
cristy8b350f62009-11-15 23:12:43 +000029887 done
cristy3ed852e2009-09-05 21:47:34 +000029888IFS=$as_save_IFS
29889
29890fi
29891fi
29892PERL=$ac_cv_prog_PERL
29893if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000029894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000029895$as_echo "$PERL" >&6; }
29896else
cristy8b350f62009-11-15 23:12:43 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029898$as_echo "no" >&6; }
29899fi
29900
29901
29902 test -n "$PERL" && break
29903done
29904
29905for ac_prog in rpmbuild rpm
29906do
29907 # Extract the first word of "$ac_prog", so it can be a program name with args.
29908set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029910$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029911if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029912 $as_echo_n "(cached) " >&6
29913else
29914 if test -n "$RPM"; then
29915 ac_cv_prog_RPM="$RPM" # Let the user override the test.
29916else
29917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29918for as_dir in $PATH
29919do
29920 IFS=$as_save_IFS
29921 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029922 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29924 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029926 break 2
29927 fi
29928done
cristy8b350f62009-11-15 23:12:43 +000029929 done
cristy3ed852e2009-09-05 21:47:34 +000029930IFS=$as_save_IFS
29931
29932fi
29933fi
29934RPM=$ac_cv_prog_RPM
29935if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000029936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000029937$as_echo "$RPM" >&6; }
29938else
cristy8b350f62009-11-15 23:12:43 +000029939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029940$as_echo "no" >&6; }
29941fi
29942
29943
29944 test -n "$RPM" && break
29945done
29946
29947
29948ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
29949
29950
29951AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
29952
29953
29954AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
29955
29956
29957AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
29958
29959
29960 if test "x$RPM" != "x" ; then
29961 RPM_DELEGATE_TRUE=
29962 RPM_DELEGATE_FALSE='#'
29963else
29964 RPM_DELEGATE_TRUE='#'
29965 RPM_DELEGATE_FALSE=
29966fi
29967
29968
29969#
29970# 7ZIP support (http://p7zip.sourceforge.net/)
29971#
29972P7ZIP=''
29973for ac_prog in 7za
29974do
29975 # Extract the first word of "$ac_prog", so it can be a program name with args.
29976set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029978$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029979if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029980 $as_echo_n "(cached) " >&6
29981else
29982 if test -n "$P7ZIP"; then
29983 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
29984else
29985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29986for as_dir in $PATH
29987do
29988 IFS=$as_save_IFS
29989 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29992 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029994 break 2
29995 fi
29996done
cristy8b350f62009-11-15 23:12:43 +000029997 done
cristy3ed852e2009-09-05 21:47:34 +000029998IFS=$as_save_IFS
29999
30000fi
30001fi
30002P7ZIP=$ac_cv_prog_P7ZIP
30003if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030005$as_echo "$P7ZIP" >&6; }
30006else
cristy8b350f62009-11-15 23:12:43 +000030007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030008$as_echo "no" >&6; }
30009fi
30010
30011
30012 test -n "$P7ZIP" && break
30013done
30014
30015
30016 if test "x$P7ZIP" != "x" ; then
30017 P7ZIP_DELEGATE_TRUE=
30018 P7ZIP_DELEGATE_FALSE='#'
30019else
30020 P7ZIP_DELEGATE_TRUE='#'
30021 P7ZIP_DELEGATE_FALSE=
30022fi
30023
30024
30025#
30026# ZIP support (http://www.info-zip.org/Zip.html)
30027#
30028ZIP=''
30029for ac_prog in zip
30030do
30031 # Extract the first word of "$ac_prog", so it can be a program name with args.
30032set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030034$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030035if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030036 $as_echo_n "(cached) " >&6
30037else
30038 if test -n "$ZIP"; then
30039 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
30040else
30041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30042for as_dir in $PATH
30043do
30044 IFS=$as_save_IFS
30045 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030046 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30048 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030050 break 2
30051 fi
30052done
cristy8b350f62009-11-15 23:12:43 +000030053 done
cristy3ed852e2009-09-05 21:47:34 +000030054IFS=$as_save_IFS
30055
30056fi
30057fi
30058ZIP=$ac_cv_prog_ZIP
30059if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030061$as_echo "$ZIP" >&6; }
30062else
cristy8b350f62009-11-15 23:12:43 +000030063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030064$as_echo "no" >&6; }
30065fi
30066
30067
30068 test -n "$ZIP" && break
30069done
30070
30071
30072 if test "x$ZIP" != "x" ; then
30073 ZIP_DELEGATE_TRUE=
30074 ZIP_DELEGATE_FALSE='#'
30075else
30076 ZIP_DELEGATE_TRUE='#'
30077 ZIP_DELEGATE_FALSE=
30078fi
30079
30080
30081#
30082# GhostPCL related configuration.
30083#
30084PCLColorDevice=ppmraw
30085PCLCMYKDevice=bmpsep8
30086PCLMonoDevice=pbmraw
30087if test -z "$PCLVersion"; then
30088 PCLVersion='unknown'
30089fi
30090if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030092$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030094$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030096$as_echo "" >&6; }
30097 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000030098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030099$as_echo_n "checking for pcl color device... " >&6; }
30100 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30101 :
30102 else
30103 PCLColorDevice=ppmraw
30104 fi
cristy8b350f62009-11-15 23:12:43 +000030105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030106$as_echo "$PCLColorDevice" >&6; }
30107
30108 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030110$as_echo_n "checking for pcl CMYK device... " >&6; }
30111 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30112 :
30113 else
30114 PCLCMYKDevice=$PCLColorDevice
30115 fi
cristy8b350f62009-11-15 23:12:43 +000030116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030117$as_echo "$PCLCMYKDevice" >&6; }
30118
30119 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030121$as_echo_n "checking for pcl mono device... " >&6; }
30122 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30123 :
30124 else
30125 PCLMonoDevice=$PCLColorDevice
30126 fi
cristy8b350f62009-11-15 23:12:43 +000030127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030128$as_echo "$PCLMonoDevice" >&6; }
30129fi
30130
30131
30132
30133
30134
30135
30136#
30137# GhostXPS related configuration.
30138#
30139XPSColorDevice=ppmraw
30140XPSCMYKDevice=bmpsep8
30141XPSMonoDevice=pbmraw
30142if test -z "$XPSVersion"; then
30143 XPSVersion='unknown'
30144fi
30145if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030147$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000030149$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030151$as_echo "" >&6; }
30152 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030154$as_echo_n "checking for xps color device... " >&6; }
30155 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30156 :
30157 else
30158 XPSColorDevice=ppmraw
30159 fi
cristy8b350f62009-11-15 23:12:43 +000030160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030161$as_echo "$XPSColorDevice" >&6; }
30162
30163 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030165$as_echo_n "checking for xps CMYK device... " >&6; }
30166 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30167 :
30168 else
30169 XPSCMYKDevice=$XPSColorDevice
30170 fi
cristy8b350f62009-11-15 23:12:43 +000030171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030172$as_echo "$XPSCMYKDevice" >&6; }
30173
30174 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030176$as_echo_n "checking for xps mono device... " >&6; }
30177 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30178 :
30179 else
30180 XPSMonoDevice=$XPSColorDevice
30181 fi
cristy8b350f62009-11-15 23:12:43 +000030182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030183$as_echo "$XPSMonoDevice" >&6; }
30184fi
30185
30186
30187
30188
30189
30190
30191#
30192# Ghostscript related configuration.
30193#
30194if test "$have_png" = 'yes'; then
30195 GSAlphaDevice=pngalpha
30196else
30197 GSAlphaDevice=pnmraw
30198fi
30199GSColorDevice=pnmraw
30200GSCMYKDevice=pam
30201GSMonoDevice=pbmraw
30202GSPDFDevice=pdfwrite
30203GSPSDevice=pswrite
30204GSEPSDevice=epswrite
30205GSVersion='unknown'
30206if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030208$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000030210$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030212$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000030214$as_echo_n "checking for Ghostscript version... " >&6; }
30215 if GSVersion=`$PSDelegate --version`; then
30216 :
30217 else
30218 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
30219 fi
cristy8b350f62009-11-15 23:12:43 +000030220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000030221$as_echo "$GSVersion" >&6; }
30222
30223 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000030224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030225$as_echo_n "checking for gs alpha device... " >&6; }
30226 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30227 :
30228 else
30229 GSAlphaDevice=pnmraw
30230 fi
cristy8b350f62009-11-15 23:12:43 +000030231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030232$as_echo "$GSAlphaDevice" >&6; }
30233
30234 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030236$as_echo_n "checking for gs color device... " >&6; }
30237 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30238 :
30239 else
30240 GSColorDevice=pnmraw
30241 fi
cristy8b350f62009-11-15 23:12:43 +000030242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030243$as_echo "$GSColorDevice" >&6; }
30244
30245 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030247$as_echo_n "checking for gs CMYK device... " >&6; }
30248 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30249 :
30250 else
30251 GSCMYKDevice=bmpsep8
30252 fi
cristy8b350f62009-11-15 23:12:43 +000030253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030254$as_echo "$GSCMYKDevice" >&6; }
30255
30256 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030258$as_echo_n "checking for gs mono device... " >&6; }
30259 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30260 :
30261 else
30262 GSMonoDevice=$GSColorDevice
30263 fi
cristy8b350f62009-11-15 23:12:43 +000030264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030265$as_echo "$GSMonoDevice" >&6; }
30266
30267 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000030268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030269$as_echo_n "checking for gs PDF writing device... " >&6; }
30270 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30271 :
30272 else
30273 GSPDFDevice=nodevice
30274 fi
cristy8b350f62009-11-15 23:12:43 +000030275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030276$as_echo "$GSPDFDevice" >&6; }
30277
30278 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000030279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030280$as_echo_n "checking for gs PS writing device... " >&6; }
30281 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30282 :
30283 else
30284 GSPSDevice=nodevice
30285 fi
cristy8b350f62009-11-15 23:12:43 +000030286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030287$as_echo "$GSPSDevice" >&6; }
30288
30289 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000030290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030291$as_echo_n "checking for gs EPS writing device... " >&6; }
30292 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30293 :
30294 else
30295 GSEPSDevice=nodevice
30296 fi
cristy8b350f62009-11-15 23:12:43 +000030297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030298$as_echo "$GSEPSDevice" >&6; }
30299fi
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309
30310#
30311# PerlMagick-related configuration
30312#
30313
30314# Look for PERL if PerlMagick requested
30315# If name/path of desired PERL interpreter is specified, look for that one first
30316have_perl='no'
30317if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030319$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030321$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030323$as_echo "" >&6; }
30324 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030326$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030327if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030328 $as_echo_n "(cached) " >&6
30329else
30330 ac_cv_path_PERL="$with_perl"
30331fi
cristy8b350f62009-11-15 23:12:43 +000030332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030333$as_echo "$ac_cv_path_PERL" >&6; };
30334 PERL=$ac_cv_path_PERL
30335 have_perl="$ac_cv_path_PERL"
30336 else
30337 for ac_prog in perl perl5
30338do
30339 # Extract the first word of "$ac_prog", so it can be a program name with args.
30340set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030342$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030343if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030344 $as_echo_n "(cached) " >&6
30345else
30346 case $PERL in
30347 [\\/]* | ?:[\\/]*)
30348 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30349 ;;
30350 *)
30351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30352for as_dir in $PATH
30353do
30354 IFS=$as_save_IFS
30355 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30358 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030360 break 2
30361 fi
30362done
cristy8b350f62009-11-15 23:12:43 +000030363 done
cristy3ed852e2009-09-05 21:47:34 +000030364IFS=$as_save_IFS
30365
30366 ;;
30367esac
30368fi
30369PERL=$ac_cv_path_PERL
30370if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030372$as_echo "$PERL" >&6; }
30373else
cristy8b350f62009-11-15 23:12:43 +000030374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030375$as_echo "no" >&6; }
30376fi
30377
30378
30379 test -n "$PERL" && break
30380done
30381 if test "$ac_cv_path_PERL"; then
30382 have_perl="$ac_cv_path_PERL"
30383 fi
30384 fi
30385fi
30386
30387with_perl_static='no'
30388with_perl_dynamic='no'
30389if test "$have_perl" != 'no'; then
30390 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
30391 with_perl_static='yes'
30392 fi
30393 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
30394 with_perl_dynamic='yes'
30395 fi
30396 # Is PERL's MakeMaker new enough to support DESTDIR?
30397 # Make sure we have perl
30398if test -z "$PERL"; then
30399# Extract the first word of "perl", so it can be a program name with args.
30400set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030402$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030403if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030404 $as_echo_n "(cached) " >&6
30405else
30406 if test -n "$PERL"; then
30407 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30408else
30409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30410for as_dir in $PATH
30411do
30412 IFS=$as_save_IFS
30413 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030414 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30416 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000030417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030418 break 2
30419 fi
30420done
cristy8b350f62009-11-15 23:12:43 +000030421 done
cristy3ed852e2009-09-05 21:47:34 +000030422IFS=$as_save_IFS
30423
30424fi
30425fi
30426PERL=$ac_cv_prog_PERL
30427if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030429$as_echo "$PERL" >&6; }
30430else
cristy8b350f62009-11-15 23:12:43 +000030431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030432$as_echo "no" >&6; }
30433fi
30434
30435
30436fi
30437
30438# Check if version of Perl is sufficient
30439ac_perl_version="5.8.1"
30440
30441if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000030442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
cristy3ed852e2009-09-05 21:47:34 +000030443$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
30444 # NB: It would be nice to log the error if there is one, but we cannot rely
30445 # on autoconf internals
30446 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
30447 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000030448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030449$as_echo "no" >&6; };
30450 PERL_SUPPORTS_DESTDIR='no'
30451 else
cristy8b350f62009-11-15 23:12:43 +000030452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030453$as_echo "ok" >&6; };
30454 PERL_SUPPORTS_DESTDIR='yes'
30455 fi
30456else
cristy8b350f62009-11-15 23:12:43 +000030457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030458$as_echo "$as_me: WARNING: could not find perl" >&2;}
30459fi
30460
30461fi
30462 if test "$have_perl" != 'no'; then
30463 WITH_PERL_TRUE=
30464 WITH_PERL_FALSE='#'
30465else
30466 WITH_PERL_TRUE='#'
30467 WITH_PERL_FALSE=
30468fi
30469
30470 if test $with_perl_static = 'yes'; then
30471 WITH_PERL_STATIC_TRUE=
30472 WITH_PERL_STATIC_FALSE='#'
30473else
30474 WITH_PERL_STATIC_TRUE='#'
30475 WITH_PERL_STATIC_FALSE=
30476fi
30477
30478 if test $with_perl_dynamic = 'yes'; then
30479 WITH_PERL_DYNAMIC_TRUE=
30480 WITH_PERL_DYNAMIC_FALSE='#'
30481else
30482 WITH_PERL_DYNAMIC_TRUE='#'
30483 WITH_PERL_DYNAMIC_FALSE=
30484fi
30485
30486
30487
30488# Determine path to pick up MagickCore library from for use with building PerlMagick
30489MAGICKCORE_PATH="${LIB_DIR}"
30490if test $with_perl_static = 'yes'; then
30491 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
30492 libtool_objdir=$objdir
30493
30494 # Linker search path to library, followed by -lMagickCore
30495 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
30496fi
30497
30498
30499# Create a simple string containing format names for all delegate libraries
30500DELEGATES=''
30501if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
30502if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
30503if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
30504if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
30505if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
30506if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
30507if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
30508if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
30509if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
30510if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
30511if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
30512if test "$have_jpeg" = 'yes'; then
30513 DELEGATES="$DELEGATES jpeg";
30514 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
30515fi
30516if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
30517if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
30518if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
30519if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
30520if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
30521if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
30522if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
30523if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
30524if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
30525if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
30526if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
30527if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
30528
30529
30530
30531#
30532# Handle special compiler flags
30533#
30534
30535# Add '-p' if prof source profiling support enabled
30536if test "$enable_prof" = 'yes'; then
30537 CFLAGS="-p $CFLAGS"
30538 CXXFLAGS="-p $CXXFLAGS"
30539 LDFLAGS="-p $LDFLAGS"
30540fi
30541
30542# Add '-pg' if gprof source profiling support enabled
30543if test "$enable_gprof" = 'yes'; then
30544 CFLAGS="-pg $CFLAGS"
30545 CXXFLAGS="-pg $CXXFLAGS"
30546 LDFLAGS="-pg $LDFLAGS"
30547fi
30548
30549# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
30550# This is a gcc-specific feature
30551if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030553$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030554if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030555 $as_echo_n "(cached) " >&6
30556else
30557 ac_check_lib_save_LIBS=$LIBS
30558LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030560/* end confdefs.h. */
30561
30562/* Override any GCC internal prototype to avoid an error.
30563 Use char because int might match the return type of a GCC
30564 builtin and then its argument prototype would still apply. */
30565#ifdef __cplusplus
30566extern "C"
30567#endif
30568char _gcov_init ();
30569int
30570main ()
30571{
30572return _gcov_init ();
30573 ;
30574 return 0;
30575}
30576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030577if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030578 ac_cv_lib_gcov__gcov_init=yes
30579else
cristy8b350f62009-11-15 23:12:43 +000030580 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030581fi
cristy8b350f62009-11-15 23:12:43 +000030582rm -f core conftest.err conftest.$ac_objext \
30583 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030584LIBS=$ac_check_lib_save_LIBS
30585fi
cristy8b350f62009-11-15 23:12:43 +000030586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030587$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030588if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030589 cat >>confdefs.h <<_ACEOF
30590#define HAVE_LIBGCOV 1
30591_ACEOF
30592
30593 LIBS="-lgcov $LIBS"
30594
30595fi
30596
cristy8b350f62009-11-15 23:12:43 +000030597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030598$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030599if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030600 $as_echo_n "(cached) " >&6
30601else
30602 ac_check_lib_save_LIBS=$LIBS
30603LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030605/* end confdefs.h. */
30606
30607/* Override any GCC internal prototype to avoid an error.
30608 Use char because int might match the return type of a GCC
30609 builtin and then its argument prototype would still apply. */
30610#ifdef __cplusplus
30611extern "C"
30612#endif
30613char __gcov_init ();
30614int
30615main ()
30616{
30617return __gcov_init ();
30618 ;
30619 return 0;
30620}
30621_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030622if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030623 ac_cv_lib_gcov___gcov_init=yes
30624else
cristy8b350f62009-11-15 23:12:43 +000030625 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030626fi
cristy8b350f62009-11-15 23:12:43 +000030627rm -f core conftest.err conftest.$ac_objext \
30628 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030629LIBS=$ac_check_lib_save_LIBS
30630fi
cristy8b350f62009-11-15 23:12:43 +000030631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030632$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030633if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030634 cat >>confdefs.h <<_ACEOF
30635#define HAVE_LIBGCOV 1
30636_ACEOF
30637
30638 LIBS="-lgcov $LIBS"
30639
30640fi
30641
30642 case "$target_os" in
30643 darwin*)
30644 OSX_GCOV_LDFLAG="-Wl,-single_module"
30645 ;;
30646 *)
30647 OSX_GCOV_LDFLAG=""
30648 ;;
30649 esac
30650
30651 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
30652 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
30653 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
30654fi
30655
30656#
30657# Build library dependency list for libMagickCore
30658#
30659
30660MAGICK_LIBLTDL='' # Libltdl for build
30661MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
30662MAGICK_LTDLDEPS='' # extra libltdl dependencies
30663if test "$with_ltdl" != 'no'
30664then
30665 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
30666 MAGICK_API_LIBLTDL='-lltdl'
30667 fi
30668 MAGICK_LIBLTDL=${LIBLTDL}
30669 MAGICK_LTDLDEPS=${LTDLDEPS}
30670fi
30671
30672
30673
30674if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000030675 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 $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 +000030676else
cristy2e8b51d2009-10-17 18:26:15 +000030677 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030678fi
30679
30680
30681#
30682# Remove extraneous spaces from output variables (asthetic)
30683#
30684X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
30685X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
30686X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
30687X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
30688
30689CC=`echo $CC | sed -e 's/ */ /g'`
30690CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
30691CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
30692CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
30693DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
30694DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
30695LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
30696TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30697MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
30698#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30699
30700# Pass only user-provided LIBS as "global" libraries
30701LIBS=$USER_LIBS
30702
30703#AC_SUBST(CPPFLAGS)
30704
30705#AC_SUBST(LDFLAGS)
30706#AC_SUBST(X_PRE_LIBS)
30707#AC_SUBST(X_LIBS)
30708#AC_SUBST(X_EXTRA_LIBS)
30709
30710MAGICK_CFLAGS=$CFLAGS
30711MAGICK_CXXFLAGS="$CXXFLAGS"
30712MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
30713MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
30714MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
30715MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
30716
30717
30718
30719
30720
30721
30722
30723
30724# Set configured scripts to executable.
30725ac_config_commands="$ac_config_commands default"
30726
30727ac_config_commands="$ac_config_commands MagickCore-config.in"
30728
30729ac_config_commands="$ac_config_commands Magick-config.in"
30730
30731ac_config_commands="$ac_config_commands MagickWand-config.in"
30732
30733ac_config_commands="$ac_config_commands Wand-config.in"
30734
30735ac_config_commands="$ac_config_commands Magick++-config.in"
30736
30737ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
30738
30739
cristy8b350f62009-11-15 23:12:43 +000030740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030741$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000030743$as_echo "Update ImageMagick configuration" >&6; }
30744cat >confcache <<\_ACEOF
30745# This file is a shell script that caches the results of configure
30746# tests run on this system so they can be shared between configure
30747# scripts and configure runs, see configure's option --config-cache.
30748# It is not useful on other systems. If it contains results you don't
30749# want to keep, you may remove or edit it.
30750#
30751# config.status only pays attention to the cache file if you give it
30752# the --recheck option to rerun configure.
30753#
30754# `ac_cv_env_foo' variables (set or unset) will be overridden when
30755# loading this file, other *unset* `ac_cv_foo' will be assigned the
30756# following values.
30757
30758_ACEOF
30759
30760# The following way of writing the cache mishandles newlines in values,
30761# but we know of no workaround that is simple, portable, and efficient.
30762# So, we kill variables containing newlines.
30763# Ultrix sh set writes to stderr and can't be redirected directly,
30764# and sets the high bit in the cache file unless we assign to the vars.
30765(
30766 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30767 eval ac_val=\$$ac_var
30768 case $ac_val in #(
30769 *${as_nl}*)
30770 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000030771 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000030772$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30773 esac
30774 case $ac_var in #(
30775 _ | IFS | as_nl) ;; #(
30776 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000030777 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000030778 esac ;;
30779 esac
30780 done
30781
30782 (set) 2>&1 |
30783 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30784 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000030785 # `set' does not quote correctly, so add quotes: double-quote
30786 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000030787 sed -n \
30788 "s/'/'\\\\''/g;
30789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30790 ;; #(
30791 *)
30792 # `set' quotes correctly as required by POSIX, so do not add quotes.
30793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30794 ;;
30795 esac |
30796 sort
30797) |
30798 sed '
30799 /^ac_cv_env_/b end
30800 t clear
30801 :clear
30802 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30803 t end
30804 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30805 :end' >>confcache
30806if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30807 if test -w "$cache_file"; then
30808 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000030809 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000030810$as_echo "$as_me: updating cache $cache_file" >&6;}
30811 cat confcache >$cache_file
30812 else
cristy8b350f62009-11-15 23:12:43 +000030813 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000030814$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30815 fi
30816fi
30817rm -f confcache
30818
30819test "x$prefix" = xNONE && prefix=$ac_default_prefix
30820# Let make expand exec_prefix.
30821test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30822
30823DEFS=-DHAVE_CONFIG_H
30824
30825ac_libobjs=
30826ac_ltlibobjs=
30827for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30828 # 1. Remove the extension, and $U if already installed.
30829 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30830 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30831 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30832 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000030833 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30834 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000030835done
30836LIBOBJS=$ac_libobjs
30837
30838LTLIBOBJS=$ac_ltlibobjs
30839
30840
30841 if test -n "$EXEEXT"; then
30842 am__EXEEXT_TRUE=
30843 am__EXEEXT_FALSE='#'
30844else
30845 am__EXEEXT_TRUE='#'
30846 am__EXEEXT_FALSE=
30847fi
30848
30849if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030850 as_fn_error "conditional \"AMDEP\" was never defined.
30851Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030852fi
30853if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030854 as_fn_error "conditional \"am__fastdepCC\" was never defined.
30855Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030856fi
30857if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030858 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
30859Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030860fi
30861if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030862 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
30863Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030864fi
30865if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030866 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
30867Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030868fi
30869if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030870 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
30871Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030872fi
30873if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030874 as_fn_error "conditional \"USING_CL\" was never defined.
30875Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030876fi
cristy3ed852e2009-09-05 21:47:34 +000030877if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030878 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
30879Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030880fi
30881if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030882 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
30883Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030884fi
30885LT_CONFIG_H=config/config.h
30886
30887 _ltdl_libobjs=
30888 _ltdl_ltlibobjs=
30889 if test -n "$_LT_LIBOBJS"; then
30890 # Remove the extension.
30891 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
30892 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
30893 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
30894 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
30895 done
30896 fi
30897 ltdl_LIBOBJS=$_ltdl_libobjs
30898
30899 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
30900
30901
30902if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030903 as_fn_error "conditional \"WITH_MODULES\" was never defined.
30904Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030905fi
30906if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030907 as_fn_error "conditional \"WITH_LTDL\" was never defined.
30908Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030909fi
30910if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030911 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
30912Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030913fi
30914
30915if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030916 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
30917Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030918fi
30919if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030920 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
30921Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030922fi
30923if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030924 as_fn_error "conditional \"HasUMEM\" was never defined.
30925Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030926fi
30927if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030928 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
30929Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030930fi
30931if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030932 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
30933Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030934fi
30935if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030936 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
30937Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030938fi
30939if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030940 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
30941Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030942fi
30943if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030944 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
30945Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030946fi
30947if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030948 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
30949Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030950fi
30951if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030952 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
30953Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030954fi
30955if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030956 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
30957Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030958fi
30959if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030960 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
30961Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030962fi
30963if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030964 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
30965Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030966fi
30967if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030968 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
30969Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030970fi
30971if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030972 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
30973Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030974fi
30975if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030976 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
30977Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030978fi
30979if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030980 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
30981Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030982fi
30983if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030984 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
30985Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030986fi
30987if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030988 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
30989Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030990fi
30991if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030992 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
30993Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030994fi
30995if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000030996 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
30997Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000030998fi
30999if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031000 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
31001Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031002fi
31003if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031004 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
31005Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031006fi
31007if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031008 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
31009Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031010fi
31011if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031012 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
31013Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031014fi
31015if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031016 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
31017Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031018fi
31019if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031020 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
31021Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031022fi
31023if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031024 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
31025Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031026fi
31027if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031028 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
31029Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031030fi
31031if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031032 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
31033Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031034fi
31035if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031036 as_fn_error "conditional \"WITH_PERL\" was never defined.
31037Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031038fi
31039if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031040 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
31041Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031042fi
31043if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031044 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
31045Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031046fi
31047
31048: ${CONFIG_STATUS=./config.status}
31049ac_write_fail=0
31050ac_clean_files_save=$ac_clean_files
31051ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000031052{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031053$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031054as_write_fail=0
31055cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031056#! $SHELL
31057# Generated by $as_me.
31058# Run this file to recreate the current configuration.
31059# Compiler output produced by configure, useful for debugging
31060# configure, is in config.log if it exists.
31061
31062debug=false
31063ac_cs_recheck=false
31064ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000031065
cristy8b350f62009-11-15 23:12:43 +000031066SHELL=\${CONFIG_SHELL-$SHELL}
31067export SHELL
31068_ASEOF
31069cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31070## -------------------- ##
31071## M4sh Initialization. ##
31072## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000031073
31074# Be more Bourne compatible
31075DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000031076if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000031077 emulate sh
31078 NULLCMD=:
31079 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31080 # is contrary to our usage. Disable this feature.
31081 alias -g '${1+"$@"}'='"$@"'
31082 setopt NO_GLOB_SUBST
31083else
cristy8b350f62009-11-15 23:12:43 +000031084 case `(set -o) 2>/dev/null` in #(
31085 *posix*) :
31086 set -o posix ;; #(
31087 *) :
31088 ;;
cristy3ed852e2009-09-05 21:47:34 +000031089esac
cristy3ed852e2009-09-05 21:47:34 +000031090fi
31091
31092
cristy3ed852e2009-09-05 21:47:34 +000031093as_nl='
31094'
31095export as_nl
31096# Printing a long string crashes Solaris 7 /usr/bin/printf.
31097as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31098as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31099as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000031100# Prefer a ksh shell builtin over an external printf program on Solaris,
31101# but without wasting forks for bash or zsh.
31102if test -z "$BASH_VERSION$ZSH_VERSION" \
31103 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31104 as_echo='print -r --'
31105 as_echo_n='print -rn --'
31106elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000031107 as_echo='printf %s\n'
31108 as_echo_n='printf %s'
31109else
31110 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31111 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31112 as_echo_n='/usr/ucb/echo -n'
31113 else
31114 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31115 as_echo_n_body='eval
31116 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000031117 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000031118 *"$as_nl"*)
31119 expr "X$arg" : "X\\(.*\\)$as_nl";
31120 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31121 esac;
31122 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31123 '
31124 export as_echo_n_body
31125 as_echo_n='sh -c $as_echo_n_body as_echo'
31126 fi
31127 export as_echo_body
31128 as_echo='sh -c $as_echo_body as_echo'
31129fi
31130
31131# The user is always right.
31132if test "${PATH_SEPARATOR+set}" != set; then
31133 PATH_SEPARATOR=:
31134 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31135 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31136 PATH_SEPARATOR=';'
31137 }
31138fi
31139
cristy3ed852e2009-09-05 21:47:34 +000031140
31141# IFS
31142# We need space, tab and new line, in precisely that order. Quoting is
31143# there to prevent editors from complaining about space-tab.
31144# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31145# splitting by setting IFS to empty value.)
31146IFS=" "" $as_nl"
31147
31148# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000031149case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000031150 *[\\/]* ) as_myself=$0 ;;
31151 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31152for as_dir in $PATH
31153do
31154 IFS=$as_save_IFS
31155 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031156 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31157 done
cristy3ed852e2009-09-05 21:47:34 +000031158IFS=$as_save_IFS
31159
31160 ;;
31161esac
31162# We did not find ourselves, most probably we were run as `sh COMMAND'
31163# in which case we are not to be found in the path.
31164if test "x$as_myself" = x; then
31165 as_myself=$0
31166fi
31167if test ! -f "$as_myself"; then
31168 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000031169 exit 1
cristy3ed852e2009-09-05 21:47:34 +000031170fi
31171
cristy8b350f62009-11-15 23:12:43 +000031172# Unset variables that we do not need and which cause bugs (e.g. in
31173# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31174# suppresses any "Segmentation fault" message there. '((' could
31175# trigger a bug in pdksh 5.2.14.
31176for as_var in BASH_ENV ENV MAIL MAILPATH
31177do eval test x\${$as_var+set} = xset \
31178 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000031179done
31180PS1='$ '
31181PS2='> '
31182PS4='+ '
31183
31184# NLS nuisances.
31185LC_ALL=C
31186export LC_ALL
31187LANGUAGE=C
31188export LANGUAGE
31189
cristy8b350f62009-11-15 23:12:43 +000031190# CDPATH.
31191(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31192
31193
31194# as_fn_error ERROR [LINENO LOG_FD]
31195# ---------------------------------
31196# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31197# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31198# script with status $?, using 1 if that was 0.
31199as_fn_error ()
31200{
31201 as_status=$?; test $as_status -eq 0 && as_status=1
31202 if test "$3"; then
31203 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31204 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
31205 fi
31206 $as_echo "$as_me: error: $1" >&2
31207 as_fn_exit $as_status
31208} # as_fn_error
31209
31210
31211# as_fn_set_status STATUS
31212# -----------------------
31213# Set $? to STATUS, without forking.
31214as_fn_set_status ()
31215{
31216 return $1
31217} # as_fn_set_status
31218
31219# as_fn_exit STATUS
31220# -----------------
31221# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31222as_fn_exit ()
31223{
31224 set +e
31225 as_fn_set_status $1
31226 exit $1
31227} # as_fn_exit
31228
31229# as_fn_unset VAR
31230# ---------------
31231# Portably unset VAR.
31232as_fn_unset ()
31233{
31234 { eval $1=; unset $1;}
31235}
31236as_unset=as_fn_unset
31237# as_fn_append VAR VALUE
31238# ----------------------
31239# Append the text in VALUE to the end of the definition contained in VAR. Take
31240# advantage of any shell optimizations that allow amortized linear growth over
31241# repeated appends, instead of the typical quadratic growth present in naive
31242# implementations.
31243if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31244 eval 'as_fn_append ()
31245 {
31246 eval $1+=\$2
31247 }'
31248else
31249 as_fn_append ()
31250 {
31251 eval $1=\$$1\$2
31252 }
31253fi # as_fn_append
31254
31255# as_fn_arith ARG...
31256# ------------------
31257# Perform arithmetic evaluation on the ARGs, and store the result in the
31258# global $as_val. Take advantage of shells that can avoid forks. The arguments
31259# must be portable across $(()) and expr.
31260if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31261 eval 'as_fn_arith ()
31262 {
31263 as_val=$(( $* ))
31264 }'
31265else
31266 as_fn_arith ()
31267 {
31268 as_val=`expr "$@" || test $? -eq 1`
31269 }
31270fi # as_fn_arith
31271
31272
cristy3ed852e2009-09-05 21:47:34 +000031273if expr a : '\(a\)' >/dev/null 2>&1 &&
31274 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31275 as_expr=expr
31276else
31277 as_expr=false
31278fi
31279
31280if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31281 as_basename=basename
31282else
31283 as_basename=false
31284fi
31285
cristy8b350f62009-11-15 23:12:43 +000031286if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31287 as_dirname=dirname
31288else
31289 as_dirname=false
31290fi
cristy3ed852e2009-09-05 21:47:34 +000031291
cristy3ed852e2009-09-05 21:47:34 +000031292as_me=`$as_basename -- "$0" ||
31293$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31294 X"$0" : 'X\(//\)$' \| \
31295 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31296$as_echo X/"$0" |
31297 sed '/^.*\/\([^/][^/]*\)\/*$/{
31298 s//\1/
31299 q
31300 }
31301 /^X\/\(\/\/\)$/{
31302 s//\1/
31303 q
31304 }
31305 /^X\/\(\/\).*/{
31306 s//\1/
31307 q
31308 }
31309 s/.*/./; q'`
31310
cristy8b350f62009-11-15 23:12:43 +000031311# Avoid depending upon Character Ranges.
31312as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31313as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31314as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31315as_cr_digits='0123456789'
31316as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000031317
31318ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000031319case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000031320-n*)
cristy8b350f62009-11-15 23:12:43 +000031321 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000031322 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000031323 xy) ECHO_C='\c';;
31324 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31325 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000031326 esac;;
31327*)
31328 ECHO_N='-n';;
31329esac
cristy3ed852e2009-09-05 21:47:34 +000031330
31331rm -f conf$$ conf$$.exe conf$$.file
31332if test -d conf$$.dir; then
31333 rm -f conf$$.dir/conf$$.file
31334else
31335 rm -f conf$$.dir
31336 mkdir conf$$.dir 2>/dev/null
31337fi
31338if (echo >conf$$.file) 2>/dev/null; then
31339 if ln -s conf$$.file conf$$ 2>/dev/null; then
31340 as_ln_s='ln -s'
31341 # ... but there are two gotchas:
31342 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31343 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31344 # In both cases, we have to default to `cp -p'.
31345 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31346 as_ln_s='cp -p'
31347 elif ln conf$$.file conf$$ 2>/dev/null; then
31348 as_ln_s=ln
31349 else
31350 as_ln_s='cp -p'
31351 fi
31352else
31353 as_ln_s='cp -p'
31354fi
31355rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31356rmdir conf$$.dir 2>/dev/null
31357
cristy8b350f62009-11-15 23:12:43 +000031358
31359# as_fn_mkdir_p
31360# -------------
31361# Create "$as_dir" as a directory, including parents if necessary.
31362as_fn_mkdir_p ()
31363{
31364
31365 case $as_dir in #(
31366 -*) as_dir=./$as_dir;;
31367 esac
31368 test -d "$as_dir" || eval $as_mkdir_p || {
31369 as_dirs=
31370 while :; do
31371 case $as_dir in #(
31372 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31373 *) as_qdir=$as_dir;;
31374 esac
31375 as_dirs="'$as_qdir' $as_dirs"
31376 as_dir=`$as_dirname -- "$as_dir" ||
31377$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31378 X"$as_dir" : 'X\(//\)[^/]' \| \
31379 X"$as_dir" : 'X\(//\)$' \| \
31380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31381$as_echo X"$as_dir" |
31382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31383 s//\1/
31384 q
31385 }
31386 /^X\(\/\/\)[^/].*/{
31387 s//\1/
31388 q
31389 }
31390 /^X\(\/\/\)$/{
31391 s//\1/
31392 q
31393 }
31394 /^X\(\/\).*/{
31395 s//\1/
31396 q
31397 }
31398 s/.*/./; q'`
31399 test -d "$as_dir" && break
31400 done
31401 test -z "$as_dirs" || eval "mkdir $as_dirs"
31402 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
31403
31404
31405} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000031406if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000031407 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000031408else
31409 test -d ./-p && rmdir ./-p
31410 as_mkdir_p=false
31411fi
31412
31413if test -x / >/dev/null 2>&1; then
31414 as_test_x='test -x'
31415else
31416 if ls -dL / >/dev/null 2>&1; then
31417 as_ls_L_option=L
31418 else
31419 as_ls_L_option=
31420 fi
31421 as_test_x='
31422 eval sh -c '\''
31423 if test -d "$1"; then
31424 test -d "$1/.";
31425 else
cristy8b350f62009-11-15 23:12:43 +000031426 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000031427 -*)set "./$1";;
31428 esac;
cristy8b350f62009-11-15 23:12:43 +000031429 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000031430 ???[sx]*):;;*)false;;esac;fi
31431 '\'' sh
31432 '
31433fi
31434as_executable_p=$as_test_x
31435
31436# Sed expression to map a string onto a valid CPP name.
31437as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31438
31439# Sed expression to map a string onto a valid variable name.
31440as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31441
31442
31443exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000031444## ----------------------------------- ##
31445## Main body of $CONFIG_STATUS script. ##
31446## ----------------------------------- ##
31447_ASEOF
31448test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031449
cristy8b350f62009-11-15 23:12:43 +000031450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31451# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000031452# report actual input values of CONFIG_FILES etc. instead of their
31453# values after options handling.
31454ac_log="
cristyd934d102009-10-10 12:55:13 +000031455This file was extended by ImageMagick $as_me 6.5.7, which was
cristy8b350f62009-11-15 23:12:43 +000031456generated by GNU Autoconf 2.64. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000031457
31458 CONFIG_FILES = $CONFIG_FILES
31459 CONFIG_HEADERS = $CONFIG_HEADERS
31460 CONFIG_LINKS = $CONFIG_LINKS
31461 CONFIG_COMMANDS = $CONFIG_COMMANDS
31462 $ $0 $@
31463
31464on `(hostname || uname -n) 2>/dev/null | sed 1q`
31465"
31466
31467_ACEOF
31468
31469case $ac_config_files in *"
31470"*) set x $ac_config_files; shift; ac_config_files=$*;;
31471esac
31472
31473case $ac_config_headers in *"
31474"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31475esac
31476
31477
31478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31479# Files that config.status was made for.
31480config_files="$ac_config_files"
31481config_headers="$ac_config_headers"
31482config_commands="$ac_config_commands"
31483
31484_ACEOF
31485
31486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31487ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000031488\`$as_me' instantiates files and other configuration actions
31489from templates according to the current configuration. Unless the files
31490and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000031491
cristy8b350f62009-11-15 23:12:43 +000031492Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000031493
31494 -h, --help print this help, then exit
31495 -V, --version print version number and configuration settings, then exit
31496 -q, --quiet, --silent
31497 do not print progress messages
31498 -d, --debug don't remove temporary files
31499 --recheck update $as_me by reconfiguring in the same conditions
31500 --file=FILE[:TEMPLATE]
31501 instantiate the configuration file FILE
31502 --header=FILE[:TEMPLATE]
31503 instantiate the configuration header FILE
31504
31505Configuration files:
31506$config_files
31507
31508Configuration headers:
31509$config_headers
31510
31511Configuration commands:
31512$config_commands
31513
cristy8b350f62009-11-15 23:12:43 +000031514Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000031515
31516_ACEOF
31517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31518ac_cs_version="\\
cristyd934d102009-10-10 12:55:13 +000031519ImageMagick config.status 6.5.7
cristy8b350f62009-11-15 23:12:43 +000031520configured by $0, generated by GNU Autoconf 2.64,
cristy3ed852e2009-09-05 21:47:34 +000031521 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31522
cristy8b350f62009-11-15 23:12:43 +000031523Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000031524This config.status script is free software; the Free Software Foundation
31525gives unlimited permission to copy, distribute and modify it."
31526
31527ac_pwd='$ac_pwd'
31528srcdir='$srcdir'
31529INSTALL='$INSTALL'
31530MKDIR_P='$MKDIR_P'
31531AWK='$AWK'
31532test -n "\$AWK" || AWK=awk
31533_ACEOF
31534
31535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31536# The default lists apply if the user does not specify any file.
31537ac_need_defaults=:
31538while test $# != 0
31539do
31540 case $1 in
31541 --*=*)
31542 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31543 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31544 ac_shift=:
31545 ;;
31546 *)
31547 ac_option=$1
31548 ac_optarg=$2
31549 ac_shift=shift
31550 ;;
31551 esac
31552
31553 case $ac_option in
31554 # Handling of the options.
31555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31556 ac_cs_recheck=: ;;
31557 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31558 $as_echo "$ac_cs_version"; exit ;;
31559 --debug | --debu | --deb | --de | --d | -d )
31560 debug=: ;;
31561 --file | --fil | --fi | --f )
31562 $ac_shift
31563 case $ac_optarg in
31564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31565 esac
cristy8b350f62009-11-15 23:12:43 +000031566 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031567 ac_need_defaults=false;;
31568 --header | --heade | --head | --hea )
31569 $ac_shift
31570 case $ac_optarg in
31571 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31572 esac
cristy8b350f62009-11-15 23:12:43 +000031573 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031574 ac_need_defaults=false;;
31575 --he | --h)
31576 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000031577 as_fn_error "ambiguous option: \`$1'
31578Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000031579 --help | --hel | -h )
31580 $as_echo "$ac_cs_usage"; exit ;;
31581 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31582 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31583 ac_cs_silent=: ;;
31584
31585 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000031586 -*) as_fn_error "unrecognized option: \`$1'
31587Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000031588
cristy8b350f62009-11-15 23:12:43 +000031589 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000031590 ac_need_defaults=false ;;
31591
31592 esac
31593 shift
31594done
31595
31596ac_configure_extra_args=
31597
31598if $ac_cs_silent; then
31599 exec 6>/dev/null
31600 ac_configure_extra_args="$ac_configure_extra_args --silent"
31601fi
31602
31603_ACEOF
31604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31605if \$ac_cs_recheck; then
31606 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31607 shift
31608 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31609 CONFIG_SHELL='$SHELL'
31610 export CONFIG_SHELL
31611 exec "\$@"
31612fi
31613
31614_ACEOF
31615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31616exec 5>>config.log
31617{
31618 echo
31619 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31620## Running $as_me. ##
31621_ASBOX
31622 $as_echo "$ac_log"
31623} >&5
31624
31625_ACEOF
31626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31627#
31628# INIT-COMMANDS
31629#
31630PACKAGE="$PACKAGE"
31631AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31632
31633
31634# The HP-UX ksh and POSIX shell print the target directory to stdout
31635# if CDPATH is set.
31636(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31637
31638sed_quote_subst='$sed_quote_subst'
31639double_quote_subst='$double_quote_subst'
31640delay_variable_subst='$delay_variable_subst'
cristy932c9122009-11-19 13:57:03 +000031641SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31642Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31643GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31644EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31645FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31646SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31647ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31648LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31649macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31650macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31651AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
31652DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31653OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31654enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31655enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31656pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31657enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31658host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31659host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31660host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31661build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31662build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31663build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31664NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31665LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31666max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31667ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31668exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31669lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31670lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31671lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31672reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31673reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31674deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31675file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31676AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31677AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31678STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31679RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31680old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31681old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31682old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31683lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31684CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31685CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31686compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31687GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31688lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31689lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31690lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31691lt_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"`'
31692objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31693MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31694lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31695lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31696lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31697lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31698lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31699need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31700DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31701NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31702LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31703OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31704OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31705libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31706shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31707extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31708archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31709enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31710export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31711whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31712compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31713old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31714old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31715archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31716archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31717module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31718module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31719with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31720allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31721no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31722hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31723hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31724hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31725hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31726hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31727hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31728hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31729hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31730inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31731link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31732fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
31733always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31734export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31735exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31736include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31737prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31738file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31739variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31740need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31741need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31742version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31743runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31744shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31745shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31746libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31747library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31748soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31749install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31750postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31751postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31752finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31753finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31754hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31755sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31756sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31757hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31758enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31759enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31760enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31761old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31762striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31763compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31764predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31765postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31766predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31767postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31768compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31769LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31770reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31771reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31772old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31773compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31774GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31775lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31776lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31777lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31778lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31779lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31780archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31781enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31782export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31783whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31784compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31785old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31786old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31787archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31788archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31789module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31790module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31791with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31792allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31793no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31794hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31795hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31796hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31797hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31798hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31799hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31800hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31801hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31802inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31803link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31804fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
31805always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31806export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31807exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31808include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31809prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31810file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31811hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31812compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31813predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31814postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31815predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31816postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31817compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000031818
31819LTCC='$LTCC'
31820LTCFLAGS='$LTCFLAGS'
31821compiler='$compiler_DEFAULT'
31822
cristy932c9122009-11-19 13:57:03 +000031823# A function that is used when there is no print builtin or printf.
31824func_fallback_echo ()
31825{
31826 eval 'cat <<_LTECHO_EOF
31827\$1
31828_LTECHO_EOF'
31829}
31830
cristy3ed852e2009-09-05 21:47:34 +000031831# Quote evaled strings.
31832for var in SED \
31833GREP \
31834EGREP \
31835FGREP \
cristy932c9122009-11-19 13:57:03 +000031836SHELL \
31837ECHO \
cristy3ed852e2009-09-05 21:47:34 +000031838LD \
cristy932c9122009-11-19 13:57:03 +000031839AS \
31840DLLTOOL \
31841OBJDUMP \
cristy3ed852e2009-09-05 21:47:34 +000031842NM \
31843LN_S \
31844lt_SP2NL \
31845lt_NL2SP \
31846reload_flag \
31847deplibs_check_method \
31848file_magic_cmd \
31849AR \
31850AR_FLAGS \
31851STRIP \
31852RANLIB \
31853CC \
31854CFLAGS \
31855compiler \
31856lt_cv_sys_global_symbol_pipe \
31857lt_cv_sys_global_symbol_to_cdecl \
31858lt_cv_sys_global_symbol_to_c_name_address \
31859lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy3ed852e2009-09-05 21:47:34 +000031860lt_prog_compiler_no_builtin_flag \
31861lt_prog_compiler_wl \
31862lt_prog_compiler_pic \
31863lt_prog_compiler_static \
31864lt_cv_prog_compiler_c_o \
31865need_locks \
31866DSYMUTIL \
31867NMEDIT \
31868LIPO \
31869OTOOL \
31870OTOOL64 \
31871shrext_cmds \
31872export_dynamic_flag_spec \
31873whole_archive_flag_spec \
31874compiler_needs_object \
31875with_gnu_ld \
31876allow_undefined_flag \
31877no_undefined_flag \
31878hardcode_libdir_flag_spec \
31879hardcode_libdir_flag_spec_ld \
31880hardcode_libdir_separator \
31881fix_srcfile_path \
31882exclude_expsyms \
31883include_expsyms \
31884file_list_spec \
31885variables_saved_for_relink \
31886libname_spec \
31887library_names_spec \
31888soname_spec \
cristy932c9122009-11-19 13:57:03 +000031889install_override_mode \
cristy3ed852e2009-09-05 21:47:34 +000031890finish_eval \
31891old_striplib \
31892striplib \
31893compiler_lib_search_dirs \
31894predep_objects \
31895postdep_objects \
31896predeps \
31897postdeps \
31898compiler_lib_search_path \
31899LD_CXX \
cristy932c9122009-11-19 13:57:03 +000031900reload_flag_CXX \
cristy3ed852e2009-09-05 21:47:34 +000031901compiler_CXX \
31902lt_prog_compiler_no_builtin_flag_CXX \
31903lt_prog_compiler_wl_CXX \
31904lt_prog_compiler_pic_CXX \
31905lt_prog_compiler_static_CXX \
31906lt_cv_prog_compiler_c_o_CXX \
31907export_dynamic_flag_spec_CXX \
31908whole_archive_flag_spec_CXX \
31909compiler_needs_object_CXX \
31910with_gnu_ld_CXX \
31911allow_undefined_flag_CXX \
31912no_undefined_flag_CXX \
31913hardcode_libdir_flag_spec_CXX \
31914hardcode_libdir_flag_spec_ld_CXX \
31915hardcode_libdir_separator_CXX \
31916fix_srcfile_path_CXX \
31917exclude_expsyms_CXX \
31918include_expsyms_CXX \
31919file_list_spec_CXX \
31920compiler_lib_search_dirs_CXX \
31921predep_objects_CXX \
31922postdep_objects_CXX \
31923predeps_CXX \
31924postdeps_CXX \
31925compiler_lib_search_path_CXX; do
cristy932c9122009-11-19 13:57:03 +000031926 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000031927 *[\\\\\\\`\\"\\\$]*)
cristy932c9122009-11-19 13:57:03 +000031928 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000031929 ;;
31930 *)
31931 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31932 ;;
31933 esac
31934done
31935
31936# Double-quote double-evaled strings.
31937for var in reload_cmds \
31938old_postinstall_cmds \
31939old_postuninstall_cmds \
31940old_archive_cmds \
31941extract_expsyms_cmds \
31942old_archive_from_new_cmds \
31943old_archive_from_expsyms_cmds \
31944archive_cmds \
31945archive_expsym_cmds \
31946module_cmds \
31947module_expsym_cmds \
31948export_symbols_cmds \
31949prelink_cmds \
31950postinstall_cmds \
31951postuninstall_cmds \
31952finish_cmds \
31953sys_lib_search_path_spec \
31954sys_lib_dlsearch_path_spec \
cristy932c9122009-11-19 13:57:03 +000031955reload_cmds_CXX \
cristy3ed852e2009-09-05 21:47:34 +000031956old_archive_cmds_CXX \
31957old_archive_from_new_cmds_CXX \
31958old_archive_from_expsyms_cmds_CXX \
31959archive_cmds_CXX \
31960archive_expsym_cmds_CXX \
31961module_cmds_CXX \
31962module_expsym_cmds_CXX \
31963export_symbols_cmds_CXX \
31964prelink_cmds_CXX; do
cristy932c9122009-11-19 13:57:03 +000031965 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000031966 *[\\\\\\\`\\"\\\$]*)
cristy932c9122009-11-19 13:57:03 +000031967 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000031968 ;;
31969 *)
31970 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31971 ;;
31972 esac
31973done
31974
cristy3ed852e2009-09-05 21:47:34 +000031975ac_aux_dir='$ac_aux_dir'
31976xsi_shell='$xsi_shell'
31977lt_shell_append='$lt_shell_append'
31978
31979# See if we are running on zsh, and set the options which allow our
31980# commands through without removal of \ escapes INIT.
31981if test -n "\${ZSH_VERSION+set}" ; then
31982 setopt NO_GLOB_SUBST
31983fi
31984
31985
31986 PACKAGE='$PACKAGE'
31987 VERSION='$VERSION'
31988 TIMESTAMP='$TIMESTAMP'
31989 RM='$RM'
31990 ofile='$ofile'
31991
31992
31993
31994
31995
31996
31997_ACEOF
31998
31999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32000
32001# Handling of arguments.
32002for ac_config_target in $ac_config_targets
32003do
32004 case $ac_config_target in
32005 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32006 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32007 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32008 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32009 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32010 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32011 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
32012 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32013 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
32014 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
32015 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
32016 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
32017 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
32018 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
32019 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
32020 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
32021 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
32022 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
32023 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
32024 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32025 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
32026 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
32027 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
32028 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
32029 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
32030 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
32031 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
32032 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
32033 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
32034 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
32035 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
32036 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
32037 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
32038 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
32039 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
32040 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
32041 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
32042 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
32043 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
32044 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
32045 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32046 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32047 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32048 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
32049 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
32050 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
32051 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
32052 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
32053 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
32054
cristy8b350f62009-11-15 23:12:43 +000032055 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032056 esac
32057done
32058
32059
32060# If the user did not use the arguments to specify the items to instantiate,
32061# then the envvar interface is used. Set only those that are not.
32062# We use the long form for the default assignment because of an extremely
32063# bizarre bug on SunOS 4.1.3.
32064if $ac_need_defaults; then
32065 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32066 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32067 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32068fi
32069
32070# Have a temporary directory for convenience. Make it in the build tree
32071# simply because there is no reason against having it here, and in addition,
32072# creating and moving files from /tmp can sometimes cause problems.
32073# Hook for its removal unless debugging.
32074# Note that there is a small window in which the directory will not be cleaned:
32075# after its creation but before its name has been assigned to `$tmp'.
32076$debug ||
32077{
32078 tmp=
32079 trap 'exit_status=$?
32080 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32081' 0
cristy8b350f62009-11-15 23:12:43 +000032082 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000032083}
32084# Create a (secure) tmp directory for tmp files.
32085
32086{
32087 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32088 test -n "$tmp" && test -d "$tmp"
32089} ||
32090{
32091 tmp=./conf$$-$RANDOM
32092 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000032093} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032094
32095# Set up the scripts for CONFIG_FILES section.
32096# No need to generate them if there are no CONFIG_FILES.
32097# This happens for instance with `./config.status config.h'.
32098if test -n "$CONFIG_FILES"; then
32099
32100
cristy8b350f62009-11-15 23:12:43 +000032101ac_cr=`echo X | tr X '\015'`
32102# On cygwin, bash can eat \r inside `` if the user requested igncr.
32103# But we know of no other shell where ac_cr would be empty at this
32104# point, so we can use a bashism as a fallback.
32105if test "x$ac_cr" = x; then
32106 eval ac_cr=\$\'\\r\'
32107fi
cristy3ed852e2009-09-05 21:47:34 +000032108ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32109if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000032110 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000032111else
32112 ac_cs_awk_cr=$ac_cr
32113fi
32114
32115echo 'BEGIN {' >"$tmp/subs1.awk" &&
32116_ACEOF
32117
32118
32119{
32120 echo "cat >conf$$subs.awk <<_ACEOF" &&
32121 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32122 echo "_ACEOF"
32123} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032124 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032125ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32126ac_delim='%!_!# '
32127for ac_last_try in false false false false false :; do
32128 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032129 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032130
32131 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32132 if test $ac_delim_n = $ac_delim_num; then
32133 break
32134 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032135 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032136 else
32137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32138 fi
32139done
32140rm -f conf$$subs.sh
32141
32142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32143cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32144_ACEOF
32145sed -n '
32146h
32147s/^/S["/; s/!.*/"]=/
32148p
32149g
32150s/^[^!]*!//
32151:repl
32152t repl
32153s/'"$ac_delim"'$//
32154t delim
32155:nl
32156h
32157s/\(.\{148\}\).*/\1/
32158t more1
32159s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32160p
32161n
32162b repl
32163:more1
32164s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32165p
32166g
32167s/.\{148\}//
32168t nl
32169:delim
32170h
32171s/\(.\{148\}\).*/\1/
32172t more2
32173s/["\\]/\\&/g; s/^/"/; s/$/"/
32174p
32175b
32176:more2
32177s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32178p
32179g
32180s/.\{148\}//
32181t delim
32182' <conf$$subs.awk | sed '
32183/^[^""]/{
32184 N
32185 s/\n//
32186}
32187' >>$CONFIG_STATUS || ac_write_fail=1
32188rm -f conf$$subs.awk
32189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32190_ACAWK
32191cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32192 for (key in S) S_is_set[key] = 1
32193 FS = ""
32194
32195}
32196{
32197 line = $ 0
32198 nfields = split(line, field, "@")
32199 substed = 0
32200 len = length(field[1])
32201 for (i = 2; i < nfields; i++) {
32202 key = field[i]
32203 keylen = length(key)
32204 if (S_is_set[key]) {
32205 value = S[key]
32206 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32207 len += length(value) + length(field[++i])
32208 substed = 1
32209 } else
32210 len += 1 + keylen
32211 }
32212
32213 print line
32214}
32215
32216_ACAWK
32217_ACEOF
32218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32219if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32220 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32221else
32222 cat
32223fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000032224 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032225_ACEOF
32226
32227# VPATH may cause trouble with some makes, so we remove $(srcdir),
32228# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32229# trailing colons and then remove the whole line if VPATH becomes empty
32230# (actually we leave an empty line to preserve line numbers).
32231if test "x$srcdir" = x.; then
32232 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32233s/:*\$(srcdir):*/:/
32234s/:*\${srcdir}:*/:/
32235s/:*@srcdir@:*/:/
32236s/^\([^=]*=[ ]*\):*/\1/
32237s/:*$//
32238s/^[^=]*=[ ]*$//
32239}'
32240fi
32241
32242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32243fi # test -n "$CONFIG_FILES"
32244
32245# Set up the scripts for CONFIG_HEADERS section.
32246# No need to generate them if there are no CONFIG_HEADERS.
32247# This happens for instance with `./config.status Makefile'.
32248if test -n "$CONFIG_HEADERS"; then
32249cat >"$tmp/defines.awk" <<\_ACAWK ||
32250BEGIN {
32251_ACEOF
32252
32253# Transform confdefs.h into an awk script `defines.awk', embedded as
32254# here-document in config.status, that substitutes the proper values into
32255# config.h.in to produce config.h.
32256
32257# Create a delimiter string that does not exist in confdefs.h, to ease
32258# handling of long lines.
32259ac_delim='%!_!# '
32260for ac_last_try in false false :; do
32261 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32262 if test -z "$ac_t"; then
32263 break
32264 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032265 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032266 else
32267 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32268 fi
32269done
32270
32271# For the awk script, D is an array of macro values keyed by name,
32272# likewise P contains macro parameters if any. Preserve backslash
32273# newline sequences.
32274
32275ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32276sed -n '
32277s/.\{148\}/&'"$ac_delim"'/g
32278t rset
32279:rset
32280s/^[ ]*#[ ]*define[ ][ ]*/ /
32281t def
32282d
32283:def
32284s/\\$//
32285t bsnl
32286s/["\\]/\\&/g
32287s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32288D["\1"]=" \3"/p
32289s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32290d
32291:bsnl
32292s/["\\]/\\&/g
32293s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32294D["\1"]=" \3\\\\\\n"\\/p
32295t cont
32296s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32297t cont
32298d
32299:cont
32300n
32301s/.\{148\}/&'"$ac_delim"'/g
32302t clear
32303:clear
32304s/\\$//
32305t bsnlc
32306s/["\\]/\\&/g; s/^/"/; s/$/"/p
32307d
32308:bsnlc
32309s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32310b cont
32311' <confdefs.h | sed '
32312s/'"$ac_delim"'/"\\\
32313"/g' >>$CONFIG_STATUS || ac_write_fail=1
32314
32315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32316 for (key in D) D_is_set[key] = 1
32317 FS = ""
32318}
32319/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32320 line = \$ 0
32321 split(line, arg, " ")
32322 if (arg[1] == "#") {
32323 defundef = arg[2]
32324 mac1 = arg[3]
32325 } else {
32326 defundef = substr(arg[1], 2)
32327 mac1 = arg[2]
32328 }
32329 split(mac1, mac2, "(") #)
32330 macro = mac2[1]
32331 prefix = substr(line, 1, index(line, defundef) - 1)
32332 if (D_is_set[macro]) {
32333 # Preserve the white space surrounding the "#".
32334 print prefix "define", macro P[macro] D[macro]
32335 next
32336 } else {
32337 # Replace #undef with comments. This is necessary, for example,
32338 # in the case of _POSIX_SOURCE, which is predefined and required
32339 # on some systems where configure will not decide to define it.
32340 if (defundef == "undef") {
32341 print "/*", prefix defundef, macro, "*/"
32342 next
32343 }
32344 }
32345}
32346{ print }
32347_ACAWK
32348_ACEOF
32349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000032350 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032351fi # test -n "$CONFIG_HEADERS"
32352
32353
32354eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32355shift
32356for ac_tag
32357do
32358 case $ac_tag in
32359 :[FHLC]) ac_mode=$ac_tag; continue;;
32360 esac
32361 case $ac_mode$ac_tag in
32362 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000032363 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032364 :[FH]-) ac_tag=-:-;;
32365 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32366 esac
32367 ac_save_IFS=$IFS
32368 IFS=:
32369 set x $ac_tag
32370 IFS=$ac_save_IFS
32371 shift
32372 ac_file=$1
32373 shift
32374
32375 case $ac_mode in
32376 :L) ac_source=$1;;
32377 :[FH])
32378 ac_file_inputs=
32379 for ac_f
32380 do
32381 case $ac_f in
32382 -) ac_f="$tmp/stdin";;
32383 *) # Look for the file first in the build tree, then in the source tree
32384 # (if the path is not absolute). The absolute path cannot be DOS-style,
32385 # because $ac_f cannot contain `:'.
32386 test -f "$ac_f" ||
32387 case $ac_f in
32388 [\\/$]*) false;;
32389 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32390 esac ||
cristy8b350f62009-11-15 23:12:43 +000032391 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032392 esac
32393 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000032394 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000032395 done
32396
32397 # Let's still pretend it is `configure' which instantiates (i.e., don't
32398 # use $as_me), people would be surprised to read:
32399 # /* config.h. Generated by config.status. */
32400 configure_input='Generated from '`
32401 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32402 `' by configure.'
32403 if test x"$ac_file" != x-; then
32404 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000032405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032406$as_echo "$as_me: creating $ac_file" >&6;}
32407 fi
32408 # Neutralize special characters interpreted by sed in replacement strings.
32409 case $configure_input in #(
32410 *\&* | *\|* | *\\* )
32411 ac_sed_conf_input=`$as_echo "$configure_input" |
32412 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32413 *) ac_sed_conf_input=$configure_input;;
32414 esac
32415
32416 case $ac_tag in
32417 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000032418 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000032419 esac
32420 ;;
32421 esac
32422
32423 ac_dir=`$as_dirname -- "$ac_file" ||
32424$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32425 X"$ac_file" : 'X\(//\)[^/]' \| \
32426 X"$ac_file" : 'X\(//\)$' \| \
32427 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32428$as_echo X"$ac_file" |
32429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32430 s//\1/
32431 q
32432 }
32433 /^X\(\/\/\)[^/].*/{
32434 s//\1/
32435 q
32436 }
32437 /^X\(\/\/\)$/{
32438 s//\1/
32439 q
32440 }
32441 /^X\(\/\).*/{
32442 s//\1/
32443 q
32444 }
32445 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032446 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032447 ac_builddir=.
32448
32449case "$ac_dir" in
32450.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32451*)
32452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32453 # A ".." for each directory in $ac_dir_suffix.
32454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32455 case $ac_top_builddir_sub in
32456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32458 esac ;;
32459esac
32460ac_abs_top_builddir=$ac_pwd
32461ac_abs_builddir=$ac_pwd$ac_dir_suffix
32462# for backward compatibility:
32463ac_top_builddir=$ac_top_build_prefix
32464
32465case $srcdir in
32466 .) # We are building in place.
32467 ac_srcdir=.
32468 ac_top_srcdir=$ac_top_builddir_sub
32469 ac_abs_top_srcdir=$ac_pwd ;;
32470 [\\/]* | ?:[\\/]* ) # Absolute name.
32471 ac_srcdir=$srcdir$ac_dir_suffix;
32472 ac_top_srcdir=$srcdir
32473 ac_abs_top_srcdir=$srcdir ;;
32474 *) # Relative name.
32475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32476 ac_top_srcdir=$ac_top_build_prefix$srcdir
32477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32478esac
32479ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32480
32481
32482 case $ac_mode in
32483 :F)
32484 #
32485 # CONFIG_FILE
32486 #
32487
32488 case $INSTALL in
32489 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32490 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32491 esac
32492 ac_MKDIR_P=$MKDIR_P
32493 case $MKDIR_P in
32494 [\\/$]* | ?:[\\/]* ) ;;
32495 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32496 esac
32497_ACEOF
32498
32499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32500# If the template does not know about datarootdir, expand it.
32501# FIXME: This hack should be removed a few years after 2.60.
32502ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000032503ac_sed_dataroot='
32504/datarootdir/ {
32505 p
32506 q
32507}
32508/@datadir@/p
32509/@docdir@/p
32510/@infodir@/p
32511/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000032512/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000032513case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32514*datarootdir*) ac_datarootdir_seen=yes;;
32515*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000032516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000032517$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32518_ACEOF
32519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32520 ac_datarootdir_hack='
32521 s&@datadir@&$datadir&g
32522 s&@docdir@&$docdir&g
32523 s&@infodir@&$infodir&g
32524 s&@localedir@&$localedir&g
32525 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000032526 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000032527esac
32528_ACEOF
32529
32530# Neutralize VPATH when `$srcdir' = `.'.
32531# Shell code in configure.ac might set extrasub.
32532# FIXME: do we really want to maintain this feature?
32533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32534ac_sed_extra="$ac_vpsub
32535$extrasub
32536_ACEOF
32537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32538:t
32539/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32540s|@configure_input@|$ac_sed_conf_input|;t t
32541s&@top_builddir@&$ac_top_builddir_sub&;t t
32542s&@top_build_prefix@&$ac_top_build_prefix&;t t
32543s&@srcdir@&$ac_srcdir&;t t
32544s&@abs_srcdir@&$ac_abs_srcdir&;t t
32545s&@top_srcdir@&$ac_top_srcdir&;t t
32546s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32547s&@builddir@&$ac_builddir&;t t
32548s&@abs_builddir@&$ac_abs_builddir&;t t
32549s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32550s&@INSTALL@&$ac_INSTALL&;t t
32551s&@MKDIR_P@&$ac_MKDIR_P&;t t
32552$ac_datarootdir_hack
32553"
32554eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000032555 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032556
32557test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32558 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000032560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000032561which seems to be undefined. Please make sure it is defined." >&5
32562$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32563which seems to be undefined. Please make sure it is defined." >&2;}
32564
32565 rm -f "$tmp/stdin"
32566 case $ac_file in
32567 -) cat "$tmp/out" && rm -f "$tmp/out";;
32568 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32569 esac \
cristy8b350f62009-11-15 23:12:43 +000032570 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032571 ;;
32572 :H)
32573 #
32574 # CONFIG_HEADER
32575 #
32576 if test x"$ac_file" != x-; then
32577 {
32578 $as_echo "/* $configure_input */" \
32579 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32580 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000032581 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032582 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000032583 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032584$as_echo "$as_me: $ac_file is unchanged" >&6;}
32585 else
32586 rm -f "$ac_file"
32587 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000032588 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032589 fi
32590 else
32591 $as_echo "/* $configure_input */" \
32592 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000032593 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032594 fi
32595# Compute "$ac_file"'s index in $config_headers.
32596_am_arg="$ac_file"
32597_am_stamp_count=1
32598for _am_header in $config_headers :; do
32599 case $_am_header in
32600 $_am_arg | $_am_arg:* )
32601 break ;;
32602 * )
32603 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32604 esac
32605done
32606echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32607$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32608 X"$_am_arg" : 'X\(//\)[^/]' \| \
32609 X"$_am_arg" : 'X\(//\)$' \| \
32610 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32611$as_echo X"$_am_arg" |
32612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32613 s//\1/
32614 q
32615 }
32616 /^X\(\/\/\)[^/].*/{
32617 s//\1/
32618 q
32619 }
32620 /^X\(\/\/\)$/{
32621 s//\1/
32622 q
32623 }
32624 /^X\(\/\).*/{
32625 s//\1/
32626 q
32627 }
32628 s/.*/./; q'`/stamp-h$_am_stamp_count
32629 ;;
32630
cristy8b350f62009-11-15 23:12:43 +000032631 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000032632$as_echo "$as_me: executing $ac_file commands" >&6;}
32633 ;;
32634 esac
32635
32636
32637 case $ac_file$ac_mode in
32638 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
32639ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
32640ac_prefix_conf_PKG=`echo MagickCore`
32641ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
32642ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
32643ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
32644if test ".$ac_prefix_conf_INP" = "."; then
32645 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
32646 case "$ac_file" in
32647 *.h) ac_prefix_conf_INP=$ac_file ;;
32648 *)
32649 esac
32650 test ".$ac_prefix_conf_INP" != "." && break
32651 done
32652fi
32653if test ".$ac_prefix_conf_INP" = "."; then
32654 case "$ac_prefix_conf_OUT" in
32655 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
32656 ;;
32657 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
32658 ;;
32659 *) ac_prefix_conf_INP=config.h
32660 ;;
32661 esac
32662fi
32663if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000032664 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032665else
32666 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
32667 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
32668 fi fi
cristy8b350f62009-11-15 23:12:43 +000032669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
cristy3ed852e2009-09-05 21:47:34 +000032670$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
32671 if test -f $ac_prefix_conf_INP ; then
32672 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
32673 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
32674 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
32675 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
32676 echo "#endif/" >>conftest.prefix
32677 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
32678 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
32679 echo "#endif/" >> conftest.prefix
32680 # now executing _script on _DEF input to create _OUT output file
32681 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
32682 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
32683 echo ' ' >>$tmp/pconfig.h
32684 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
32685
32686 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
32687 echo ' ' >>$tmp/pconfig.h
32688 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
32689 echo "#endif" >>$tmp/pconfig.h
32690 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032692$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
32693 else
32694 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
32695$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32696 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
32697 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
32698 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
32699$as_echo X"$ac_prefix_conf_OUT" |
32700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32701 s//\1/
32702 q
32703 }
32704 /^X\(\/\/\)[^/].*/{
32705 s//\1/
32706 q
32707 }
32708 /^X\(\/\/\)$/{
32709 s//\1/
32710 q
32711 }
32712 /^X\(\/\).*/{
32713 s//\1/
32714 q
32715 }
32716 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032717 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032718 rm -f "$ac_prefix_conf_OUT"
32719 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
32720 fi
32721 cp conftest.prefix _configs.sed
32722 else
cristy8b350f62009-11-15 23:12:43 +000032723 as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032724 fi
32725 rm -f conftest.*
32726fi
32727 ;;
32728 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32729 # Autoconf 2.62 quotes --file arguments for eval, but not when files
32730 # are listed without --file. Let's play safe and only enable the eval
32731 # if we detect the quoting.
32732 case $CONFIG_FILES in
32733 *\'*) eval set x "$CONFIG_FILES" ;;
32734 *) set x $CONFIG_FILES ;;
32735 esac
32736 shift
32737 for mf
32738 do
32739 # Strip MF so we end up with the name of the file.
32740 mf=`echo "$mf" | sed -e 's/:.*$//'`
32741 # Check whether this is an Automake generated Makefile or not.
32742 # We used to match only the files named `Makefile.in', but
32743 # some people rename them; so instead we look at the file content.
32744 # Grep'ing the first line is not enough: some people post-process
32745 # each Makefile.in and add a new line on top of each file to say so.
32746 # Grep'ing the whole file is not good either: AIX grep has a line
32747 # limit of 2048, but all sed's we know have understand at least 4000.
32748 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32749 dirpart=`$as_dirname -- "$mf" ||
32750$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32751 X"$mf" : 'X\(//\)[^/]' \| \
32752 X"$mf" : 'X\(//\)$' \| \
32753 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32754$as_echo X"$mf" |
32755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32756 s//\1/
32757 q
32758 }
32759 /^X\(\/\/\)[^/].*/{
32760 s//\1/
32761 q
32762 }
32763 /^X\(\/\/\)$/{
32764 s//\1/
32765 q
32766 }
32767 /^X\(\/\).*/{
32768 s//\1/
32769 q
32770 }
32771 s/.*/./; q'`
32772 else
32773 continue
32774 fi
32775 # Extract the definition of DEPDIR, am__include, and am__quote
32776 # from the Makefile without running `make'.
32777 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32778 test -z "$DEPDIR" && continue
32779 am__include=`sed -n 's/^am__include = //p' < "$mf"`
32780 test -z "am__include" && continue
32781 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32782 # When using ansi2knr, U may be empty or an underscore; expand it
32783 U=`sed -n 's/^U = //p' < "$mf"`
32784 # Find all dependency output files, they are included files with
32785 # $(DEPDIR) in their names. We invoke sed twice because it is the
32786 # simplest approach to changing $(DEPDIR) to its actual value in the
32787 # expansion.
32788 for file in `sed -n "
32789 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32790 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32791 # Make sure the directory exists.
32792 test -f "$dirpart/$file" && continue
32793 fdir=`$as_dirname -- "$file" ||
32794$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32795 X"$file" : 'X\(//\)[^/]' \| \
32796 X"$file" : 'X\(//\)$' \| \
32797 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32798$as_echo X"$file" |
32799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32800 s//\1/
32801 q
32802 }
32803 /^X\(\/\/\)[^/].*/{
32804 s//\1/
32805 q
32806 }
32807 /^X\(\/\/\)$/{
32808 s//\1/
32809 q
32810 }
32811 /^X\(\/\).*/{
32812 s//\1/
32813 q
32814 }
32815 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032816 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032817 # echo "creating $dirpart/$file"
32818 echo '# dummy' > "$dirpart/$file"
32819 done
32820 done
32821}
32822 ;;
32823 "libtool":C)
32824
32825 # See if we are running on zsh, and set the options which allow our
32826 # commands through without removal of \ escapes.
32827 if test -n "${ZSH_VERSION+set}" ; then
32828 setopt NO_GLOB_SUBST
32829 fi
32830
32831 cfgfile="${ofile}T"
32832 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32833 $RM "$cfgfile"
32834
32835 cat <<_LT_EOF >> "$cfgfile"
32836#! $SHELL
32837
32838# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32839# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32840# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32841# NOTE: Changes made to this file will be lost: look at ltmain.sh.
32842#
32843# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy932c9122009-11-19 13:57:03 +000032844# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000032845# Written by Gordon Matzigkeit, 1996
32846#
32847# This file is part of GNU Libtool.
32848#
32849# GNU Libtool is free software; you can redistribute it and/or
32850# modify it under the terms of the GNU General Public License as
32851# published by the Free Software Foundation; either version 2 of
32852# the License, or (at your option) any later version.
32853#
32854# As a special exception to the GNU General Public License,
32855# if you distribute this file as part of a program or library that
32856# is built using GNU Libtool, you may include this file under the
32857# same distribution terms that you use for the rest of that program.
32858#
32859# GNU Libtool is distributed in the hope that it will be useful,
32860# but WITHOUT ANY WARRANTY; without even the implied warranty of
32861# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32862# GNU General Public License for more details.
32863#
32864# You should have received a copy of the GNU General Public License
32865# along with GNU Libtool; see the file COPYING. If not, a copy
32866# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32867# obtained by writing to the Free Software Foundation, Inc.,
32868# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32869
32870
32871# The names of the tagged configurations supported by this script.
32872available_tags="CXX "
32873
32874# ### BEGIN LIBTOOL CONFIG
32875
32876# A sed program that does not truncate output.
32877SED=$lt_SED
32878
32879# Sed that helps us avoid accidentally triggering echo(1) options like -n.
32880Xsed="\$SED -e 1s/^X//"
32881
32882# A grep program that handles long lines.
32883GREP=$lt_GREP
32884
32885# An ERE matcher.
32886EGREP=$lt_EGREP
32887
32888# A literal string matcher.
32889FGREP=$lt_FGREP
32890
cristy932c9122009-11-19 13:57:03 +000032891# Shell to use when invoking shell scripts.
32892SHELL=$lt_SHELL
32893
32894# An echo program that protects backslashes.
32895ECHO=$lt_ECHO
32896
cristy3ed852e2009-09-05 21:47:34 +000032897# Which release of libtool.m4 was used?
32898macro_version=$macro_version
32899macro_revision=$macro_revision
32900
32901# Assembler program.
cristy932c9122009-11-19 13:57:03 +000032902AS=$lt_AS
cristy3ed852e2009-09-05 21:47:34 +000032903
32904# DLL creation program.
cristy932c9122009-11-19 13:57:03 +000032905DLLTOOL=$lt_DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000032906
32907# Object dumper program.
cristy932c9122009-11-19 13:57:03 +000032908OBJDUMP=$lt_OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000032909
32910# Whether or not to build shared libraries.
32911build_libtool_libs=$enable_shared
32912
32913# Whether or not to build static libraries.
32914build_old_libs=$enable_static
32915
32916# What type of objects to build.
32917pic_mode=$pic_mode
32918
32919# Whether or not to optimize for fast installation.
32920fast_install=$enable_fast_install
32921
32922# The host system.
32923host_alias=$host_alias
32924host=$host
32925host_os=$host_os
32926
32927# The build system.
32928build_alias=$build_alias
32929build=$build
32930build_os=$build_os
32931
32932# A BSD- or MS-compatible name lister.
32933NM=$lt_NM
32934
32935# Whether we need soft or hard links.
32936LN_S=$lt_LN_S
32937
32938# What is the maximum length of a command?
32939max_cmd_len=$max_cmd_len
32940
32941# Object file suffix (normally "o").
32942objext=$ac_objext
32943
32944# Executable file suffix (normally "").
32945exeext=$exeext
32946
32947# whether the shell understands "unset".
32948lt_unset=$lt_unset
32949
32950# turn spaces into newlines.
32951SP2NL=$lt_lt_SP2NL
32952
32953# turn newlines into spaces.
32954NL2SP=$lt_lt_NL2SP
32955
cristy3ed852e2009-09-05 21:47:34 +000032956# Method to check whether dependent libraries are shared objects.
32957deplibs_check_method=$lt_deplibs_check_method
32958
32959# Command to use when deplibs_check_method == "file_magic".
32960file_magic_cmd=$lt_file_magic_cmd
32961
32962# The archiver.
32963AR=$lt_AR
32964AR_FLAGS=$lt_AR_FLAGS
32965
32966# A symbol stripping program.
32967STRIP=$lt_STRIP
32968
32969# Commands used to install an old-style archive.
32970RANLIB=$lt_RANLIB
32971old_postinstall_cmds=$lt_old_postinstall_cmds
32972old_postuninstall_cmds=$lt_old_postuninstall_cmds
32973
cristy932c9122009-11-19 13:57:03 +000032974# Whether to use a lock for old archive extraction.
32975lock_old_archive_extraction=$lock_old_archive_extraction
32976
cristy3ed852e2009-09-05 21:47:34 +000032977# A C compiler.
32978LTCC=$lt_CC
32979
32980# LTCC compiler flags.
32981LTCFLAGS=$lt_CFLAGS
32982
32983# Take the output of nm and produce a listing of raw symbols and C names.
32984global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32985
32986# Transform the output of nm in a proper C declaration.
32987global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32988
32989# Transform the output of nm in a C name address pair.
32990global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32991
32992# Transform the output of nm in a C name address pair when lib prefix is needed.
32993global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32994
32995# The name of the directory that contains temporary libtool files.
32996objdir=$objdir
32997
cristy3ed852e2009-09-05 21:47:34 +000032998# Used to examine libraries when file_magic_cmd begins with "file".
32999MAGIC_CMD=$MAGIC_CMD
33000
33001# Must we lock files when doing compilation?
33002need_locks=$lt_need_locks
33003
33004# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33005DSYMUTIL=$lt_DSYMUTIL
33006
33007# Tool to change global to local symbols on Mac OS X.
33008NMEDIT=$lt_NMEDIT
33009
33010# Tool to manipulate fat objects and archives on Mac OS X.
33011LIPO=$lt_LIPO
33012
33013# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33014OTOOL=$lt_OTOOL
33015
33016# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33017OTOOL64=$lt_OTOOL64
33018
33019# Old archive suffix (normally "a").
33020libext=$libext
33021
33022# Shared library suffix (normally ".so").
33023shrext_cmds=$lt_shrext_cmds
33024
33025# The commands to extract the exported symbol list from a shared archive.
33026extract_expsyms_cmds=$lt_extract_expsyms_cmds
33027
33028# Variables whose values should be saved in libtool wrapper scripts and
33029# restored at link time.
33030variables_saved_for_relink=$lt_variables_saved_for_relink
33031
33032# Do we need the "lib" prefix for modules?
33033need_lib_prefix=$need_lib_prefix
33034
33035# Do we need a version for libraries?
33036need_version=$need_version
33037
33038# Library versioning type.
33039version_type=$version_type
33040
33041# Shared library runtime path variable.
33042runpath_var=$runpath_var
33043
33044# Shared library path variable.
33045shlibpath_var=$shlibpath_var
33046
33047# Is shlibpath searched before the hard-coded library search path?
33048shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33049
33050# Format of library name prefix.
33051libname_spec=$lt_libname_spec
33052
33053# List of archive names. First name is the real one, the rest are links.
33054# The last name is the one that the linker finds with -lNAME
33055library_names_spec=$lt_library_names_spec
33056
33057# The coded name of the library, if different from the real name.
33058soname_spec=$lt_soname_spec
33059
cristy932c9122009-11-19 13:57:03 +000033060# Permission mode override for installation of shared libraries.
33061install_override_mode=$lt_install_override_mode
33062
cristy3ed852e2009-09-05 21:47:34 +000033063# Command to use after installation of a shared archive.
33064postinstall_cmds=$lt_postinstall_cmds
33065
33066# Command to use after uninstallation of a shared archive.
33067postuninstall_cmds=$lt_postuninstall_cmds
33068
33069# Commands used to finish a libtool library installation in a directory.
33070finish_cmds=$lt_finish_cmds
33071
33072# As "finish_cmds", except a single script fragment to be evaled but
33073# not shown.
33074finish_eval=$lt_finish_eval
33075
33076# Whether we should hardcode library paths into libraries.
33077hardcode_into_libs=$hardcode_into_libs
33078
33079# Compile-time system search path for libraries.
33080sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33081
33082# Run-time system search path for libraries.
33083sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33084
33085# Whether dlopen is supported.
33086dlopen_support=$enable_dlopen
33087
33088# Whether dlopen of programs is supported.
33089dlopen_self=$enable_dlopen_self
33090
33091# Whether dlopen of statically linked programs is supported.
33092dlopen_self_static=$enable_dlopen_self_static
33093
33094# Commands to strip libraries.
33095old_striplib=$lt_old_striplib
33096striplib=$lt_striplib
33097
33098
33099# The linker used to build libraries.
33100LD=$lt_LD
33101
cristy932c9122009-11-19 13:57:03 +000033102# How to create reloadable object files.
33103reload_flag=$lt_reload_flag
33104reload_cmds=$lt_reload_cmds
33105
cristy3ed852e2009-09-05 21:47:34 +000033106# Commands used to build an old-style archive.
33107old_archive_cmds=$lt_old_archive_cmds
33108
33109# A language specific compiler.
33110CC=$lt_compiler
33111
33112# Is the compiler the GNU compiler?
33113with_gcc=$GCC
33114
33115# Compiler flag to turn off builtin functions.
33116no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33117
33118# How to pass a linker flag through the compiler.
33119wl=$lt_lt_prog_compiler_wl
33120
33121# Additional compiler flags for building library objects.
33122pic_flag=$lt_lt_prog_compiler_pic
33123
33124# Compiler flag to prevent dynamic linking.
33125link_static_flag=$lt_lt_prog_compiler_static
33126
33127# Does compiler simultaneously support -c and -o options?
33128compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33129
33130# Whether or not to add -lc for building shared libraries.
33131build_libtool_need_lc=$archive_cmds_need_lc
33132
33133# Whether or not to disallow shared libs when runtime libs are static.
33134allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33135
33136# Compiler flag to allow reflexive dlopens.
33137export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33138
33139# Compiler flag to generate shared objects directly from archives.
33140whole_archive_flag_spec=$lt_whole_archive_flag_spec
33141
33142# Whether the compiler copes with passing no objects directly.
33143compiler_needs_object=$lt_compiler_needs_object
33144
33145# Create an old-style archive from a shared archive.
33146old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33147
33148# Create a temporary old-style archive to link instead of a shared archive.
33149old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33150
33151# Commands used to build a shared archive.
33152archive_cmds=$lt_archive_cmds
33153archive_expsym_cmds=$lt_archive_expsym_cmds
33154
33155# Commands used to build a loadable module if different from building
33156# a shared archive.
33157module_cmds=$lt_module_cmds
33158module_expsym_cmds=$lt_module_expsym_cmds
33159
33160# Whether we are building with GNU ld or not.
33161with_gnu_ld=$lt_with_gnu_ld
33162
33163# Flag that allows shared libraries with undefined symbols to be built.
33164allow_undefined_flag=$lt_allow_undefined_flag
33165
33166# Flag that enforces no undefined symbols.
33167no_undefined_flag=$lt_no_undefined_flag
33168
33169# Flag to hardcode \$libdir into a binary during linking.
33170# This must work even if \$libdir does not exist
33171hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33172
33173# If ld is used when linking, flag to hardcode \$libdir into a binary
33174# during linking. This must work even if \$libdir does not exist.
33175hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33176
33177# Whether we need a single "-rpath" flag with a separated argument.
33178hardcode_libdir_separator=$lt_hardcode_libdir_separator
33179
33180# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33181# DIR into the resulting binary.
33182hardcode_direct=$hardcode_direct
33183
33184# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33185# DIR into the resulting binary and the resulting library dependency is
33186# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33187# library is relocated.
33188hardcode_direct_absolute=$hardcode_direct_absolute
33189
33190# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33191# into the resulting binary.
33192hardcode_minus_L=$hardcode_minus_L
33193
33194# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33195# into the resulting binary.
33196hardcode_shlibpath_var=$hardcode_shlibpath_var
33197
33198# Set to "yes" if building a shared library automatically hardcodes DIR
33199# into the library and all subsequent libraries and executables linked
33200# against it.
33201hardcode_automatic=$hardcode_automatic
33202
33203# Set to yes if linker adds runtime paths of dependent libraries
33204# to runtime path list.
33205inherit_rpath=$inherit_rpath
33206
33207# Whether libtool must link a program against all its dependency libraries.
33208link_all_deplibs=$link_all_deplibs
33209
33210# Fix the shell variable \$srcfile for the compiler.
33211fix_srcfile_path=$lt_fix_srcfile_path
33212
33213# Set to "yes" if exported symbols are required.
33214always_export_symbols=$always_export_symbols
33215
33216# The commands to list exported symbols.
33217export_symbols_cmds=$lt_export_symbols_cmds
33218
33219# Symbols that should not be listed in the preloaded symbols.
33220exclude_expsyms=$lt_exclude_expsyms
33221
33222# Symbols that must always be exported.
33223include_expsyms=$lt_include_expsyms
33224
33225# Commands necessary for linking programs (against libraries) with templates.
33226prelink_cmds=$lt_prelink_cmds
33227
33228# Specify filename containing input files.
33229file_list_spec=$lt_file_list_spec
33230
33231# How to hardcode a shared library path into an executable.
33232hardcode_action=$hardcode_action
33233
33234# The directories searched by this compiler when creating a shared library.
33235compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33236
33237# Dependencies to place before and after the objects being linked to
33238# create a shared library.
33239predep_objects=$lt_predep_objects
33240postdep_objects=$lt_postdep_objects
33241predeps=$lt_predeps
33242postdeps=$lt_postdeps
33243
33244# The library search path used internally by the compiler when linking
33245# a shared library.
33246compiler_lib_search_path=$lt_compiler_lib_search_path
33247
33248# ### END LIBTOOL CONFIG
33249
33250_LT_EOF
33251
33252 case $host_os in
33253 aix3*)
33254 cat <<\_LT_EOF >> "$cfgfile"
33255# AIX sometimes has problems with the GCC collect2 program. For some
33256# reason, if we set the COLLECT_NAMES environment variable, the problems
33257# vanish in a puff of smoke.
33258if test "X${COLLECT_NAMES+set}" != Xset; then
33259 COLLECT_NAMES=
33260 export COLLECT_NAMES
33261fi
33262_LT_EOF
33263 ;;
33264 esac
33265
33266
33267ltmain="$ac_aux_dir/ltmain.sh"
33268
33269
33270 # We use sed instead of cat because bash on DJGPP gets confused if
33271 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33272 # text mode, it properly converts lines to CR/LF. This bash problem
33273 # is reportedly fixed, but why not run on old versions too?
33274 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33275 || (rm -f "$cfgfile"; exit 1)
33276
33277 case $xsi_shell in
33278 yes)
33279 cat << \_LT_EOF >> "$cfgfile"
33280
33281# func_dirname file append nondir_replacement
33282# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33283# otherwise set result to NONDIR_REPLACEMENT.
33284func_dirname ()
33285{
33286 case ${1} in
33287 */*) func_dirname_result="${1%/*}${2}" ;;
33288 * ) func_dirname_result="${3}" ;;
33289 esac
33290}
33291
33292# func_basename file
33293func_basename ()
33294{
33295 func_basename_result="${1##*/}"
33296}
33297
33298# func_dirname_and_basename file append nondir_replacement
33299# perform func_basename and func_dirname in a single function
33300# call:
33301# dirname: Compute the dirname of FILE. If nonempty,
33302# add APPEND to the result, otherwise set result
33303# to NONDIR_REPLACEMENT.
33304# value returned in "$func_dirname_result"
33305# basename: Compute filename of FILE.
33306# value retuned in "$func_basename_result"
33307# Implementation must be kept synchronized with func_dirname
33308# and func_basename. For efficiency, we do not delegate to
33309# those functions but instead duplicate the functionality here.
33310func_dirname_and_basename ()
33311{
33312 case ${1} in
33313 */*) func_dirname_result="${1%/*}${2}" ;;
33314 * ) func_dirname_result="${3}" ;;
33315 esac
33316 func_basename_result="${1##*/}"
33317}
33318
33319# func_stripname prefix suffix name
33320# strip PREFIX and SUFFIX off of NAME.
33321# PREFIX and SUFFIX must not contain globbing or regex special
33322# characters, hashes, percent signs, but SUFFIX may contain a leading
33323# dot (in which case that matches only a dot).
33324func_stripname ()
33325{
33326 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33327 # positional parameters, so assign one to ordinary parameter first.
33328 func_stripname_result=${3}
33329 func_stripname_result=${func_stripname_result#"${1}"}
33330 func_stripname_result=${func_stripname_result%"${2}"}
33331}
33332
33333# func_opt_split
33334func_opt_split ()
33335{
33336 func_opt_split_opt=${1%%=*}
33337 func_opt_split_arg=${1#*=}
33338}
33339
33340# func_lo2o object
33341func_lo2o ()
33342{
33343 case ${1} in
33344 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33345 *) func_lo2o_result=${1} ;;
33346 esac
33347}
33348
33349# func_xform libobj-or-source
33350func_xform ()
33351{
33352 func_xform_result=${1%.*}.lo
33353}
33354
33355# func_arith arithmetic-term...
33356func_arith ()
33357{
33358 func_arith_result=$(( $* ))
33359}
33360
33361# func_len string
33362# STRING may not start with a hyphen.
33363func_len ()
33364{
33365 func_len_result=${#1}
33366}
33367
33368_LT_EOF
33369 ;;
33370 *) # Bourne compatible functions.
33371 cat << \_LT_EOF >> "$cfgfile"
33372
33373# func_dirname file append nondir_replacement
33374# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33375# otherwise set result to NONDIR_REPLACEMENT.
33376func_dirname ()
33377{
33378 # Extract subdirectory from the argument.
cristy932c9122009-11-19 13:57:03 +000033379 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000033380 if test "X$func_dirname_result" = "X${1}"; then
33381 func_dirname_result="${3}"
33382 else
33383 func_dirname_result="$func_dirname_result${2}"
33384 fi
33385}
33386
33387# func_basename file
33388func_basename ()
33389{
cristy932c9122009-11-19 13:57:03 +000033390 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000033391}
33392
33393
33394# func_stripname prefix suffix name
33395# strip PREFIX and SUFFIX off of NAME.
33396# PREFIX and SUFFIX must not contain globbing or regex special
33397# characters, hashes, percent signs, but SUFFIX may contain a leading
33398# dot (in which case that matches only a dot).
33399# func_strip_suffix prefix name
33400func_stripname ()
33401{
33402 case ${2} in
cristy932c9122009-11-19 13:57:03 +000033403 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
33404 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000033405 esac
33406}
33407
33408# sed scripts:
33409my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33410my_sed_long_arg='1s/^-[^=]*=//'
33411
33412# func_opt_split
33413func_opt_split ()
33414{
cristy932c9122009-11-19 13:57:03 +000033415 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
33416 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000033417}
33418
33419# func_lo2o object
33420func_lo2o ()
33421{
cristy932c9122009-11-19 13:57:03 +000033422 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000033423}
33424
33425# func_xform libobj-or-source
33426func_xform ()
33427{
cristy932c9122009-11-19 13:57:03 +000033428 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000033429}
33430
33431# func_arith arithmetic-term...
33432func_arith ()
33433{
33434 func_arith_result=`expr "$@"`
33435}
33436
33437# func_len string
33438# STRING may not start with a hyphen.
33439func_len ()
33440{
33441 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33442}
33443
33444_LT_EOF
33445esac
33446
33447case $lt_shell_append in
33448 yes)
33449 cat << \_LT_EOF >> "$cfgfile"
33450
33451# func_append var value
33452# Append VALUE to the end of shell variable VAR.
33453func_append ()
33454{
33455 eval "$1+=\$2"
33456}
33457_LT_EOF
33458 ;;
33459 *)
33460 cat << \_LT_EOF >> "$cfgfile"
33461
33462# func_append var value
33463# Append VALUE to the end of shell variable VAR.
33464func_append ()
33465{
33466 eval "$1=\$$1\$2"
33467}
33468
33469_LT_EOF
33470 ;;
33471 esac
33472
33473
33474 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33475 || (rm -f "$cfgfile"; exit 1)
33476
33477 mv -f "$cfgfile" "$ofile" ||
33478 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33479 chmod +x "$ofile"
33480
33481
33482 cat <<_LT_EOF >> "$ofile"
33483
33484# ### BEGIN LIBTOOL TAG CONFIG: CXX
33485
33486# The linker used to build libraries.
33487LD=$lt_LD_CXX
33488
cristy932c9122009-11-19 13:57:03 +000033489# How to create reloadable object files.
33490reload_flag=$lt_reload_flag_CXX
33491reload_cmds=$lt_reload_cmds_CXX
33492
cristy3ed852e2009-09-05 21:47:34 +000033493# Commands used to build an old-style archive.
33494old_archive_cmds=$lt_old_archive_cmds_CXX
33495
33496# A language specific compiler.
33497CC=$lt_compiler_CXX
33498
33499# Is the compiler the GNU compiler?
33500with_gcc=$GCC_CXX
33501
33502# Compiler flag to turn off builtin functions.
33503no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33504
33505# How to pass a linker flag through the compiler.
33506wl=$lt_lt_prog_compiler_wl_CXX
33507
33508# Additional compiler flags for building library objects.
33509pic_flag=$lt_lt_prog_compiler_pic_CXX
33510
33511# Compiler flag to prevent dynamic linking.
33512link_static_flag=$lt_lt_prog_compiler_static_CXX
33513
33514# Does compiler simultaneously support -c and -o options?
33515compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33516
33517# Whether or not to add -lc for building shared libraries.
33518build_libtool_need_lc=$archive_cmds_need_lc_CXX
33519
33520# Whether or not to disallow shared libs when runtime libs are static.
33521allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33522
33523# Compiler flag to allow reflexive dlopens.
33524export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33525
33526# Compiler flag to generate shared objects directly from archives.
33527whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33528
33529# Whether the compiler copes with passing no objects directly.
33530compiler_needs_object=$lt_compiler_needs_object_CXX
33531
33532# Create an old-style archive from a shared archive.
33533old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33534
33535# Create a temporary old-style archive to link instead of a shared archive.
33536old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33537
33538# Commands used to build a shared archive.
33539archive_cmds=$lt_archive_cmds_CXX
33540archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33541
33542# Commands used to build a loadable module if different from building
33543# a shared archive.
33544module_cmds=$lt_module_cmds_CXX
33545module_expsym_cmds=$lt_module_expsym_cmds_CXX
33546
33547# Whether we are building with GNU ld or not.
33548with_gnu_ld=$lt_with_gnu_ld_CXX
33549
33550# Flag that allows shared libraries with undefined symbols to be built.
33551allow_undefined_flag=$lt_allow_undefined_flag_CXX
33552
33553# Flag that enforces no undefined symbols.
33554no_undefined_flag=$lt_no_undefined_flag_CXX
33555
33556# Flag to hardcode \$libdir into a binary during linking.
33557# This must work even if \$libdir does not exist
33558hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33559
33560# If ld is used when linking, flag to hardcode \$libdir into a binary
33561# during linking. This must work even if \$libdir does not exist.
33562hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33563
33564# Whether we need a single "-rpath" flag with a separated argument.
33565hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33566
33567# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33568# DIR into the resulting binary.
33569hardcode_direct=$hardcode_direct_CXX
33570
33571# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33572# DIR into the resulting binary and the resulting library dependency is
33573# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33574# library is relocated.
33575hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33576
33577# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33578# into the resulting binary.
33579hardcode_minus_L=$hardcode_minus_L_CXX
33580
33581# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33582# into the resulting binary.
33583hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33584
33585# Set to "yes" if building a shared library automatically hardcodes DIR
33586# into the library and all subsequent libraries and executables linked
33587# against it.
33588hardcode_automatic=$hardcode_automatic_CXX
33589
33590# Set to yes if linker adds runtime paths of dependent libraries
33591# to runtime path list.
33592inherit_rpath=$inherit_rpath_CXX
33593
33594# Whether libtool must link a program against all its dependency libraries.
33595link_all_deplibs=$link_all_deplibs_CXX
33596
33597# Fix the shell variable \$srcfile for the compiler.
33598fix_srcfile_path=$lt_fix_srcfile_path_CXX
33599
33600# Set to "yes" if exported symbols are required.
33601always_export_symbols=$always_export_symbols_CXX
33602
33603# The commands to list exported symbols.
33604export_symbols_cmds=$lt_export_symbols_cmds_CXX
33605
33606# Symbols that should not be listed in the preloaded symbols.
33607exclude_expsyms=$lt_exclude_expsyms_CXX
33608
33609# Symbols that must always be exported.
33610include_expsyms=$lt_include_expsyms_CXX
33611
33612# Commands necessary for linking programs (against libraries) with templates.
33613prelink_cmds=$lt_prelink_cmds_CXX
33614
33615# Specify filename containing input files.
33616file_list_spec=$lt_file_list_spec_CXX
33617
33618# How to hardcode a shared library path into an executable.
33619hardcode_action=$hardcode_action_CXX
33620
33621# The directories searched by this compiler when creating a shared library.
33622compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33623
33624# Dependencies to place before and after the objects being linked to
33625# create a shared library.
33626predep_objects=$lt_predep_objects_CXX
33627postdep_objects=$lt_postdep_objects_CXX
33628predeps=$lt_predeps_CXX
33629postdeps=$lt_postdeps_CXX
33630
33631# The library search path used internally by the compiler when linking
33632# a shared library.
33633compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33634
33635# ### END LIBTOOL TAG CONFIG: CXX
33636_LT_EOF
33637
33638 ;;
33639 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
33640 "Magick-config.in":C) chmod +x magick/Magick-config ;;
33641 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
33642 "Wand-config.in":C) chmod +x wand/Wand-config ;;
33643 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
33644 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
33645
33646 esac
33647done # for ac_tag
33648
33649
cristy8b350f62009-11-15 23:12:43 +000033650as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000033651_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000033652ac_clean_files=$ac_clean_files_save
33653
33654test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000033655 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033656
33657
33658# configure is writing to config.log, and then calls config.status.
33659# config.status does its own redirection, appending to config.log.
33660# Unfortunately, on DOS this fails, as config.log is still kept open
33661# by configure, so config.status won't be able to write to it; its
33662# output is simply discarded. So we exec the FD to /dev/null,
33663# effectively closing config.log, so it can be properly (re)opened and
33664# appended to by config.status. When coming back to configure, we
33665# need to make the FD available again.
33666if test "$no_create" != yes; then
33667 ac_cs_success=:
33668 ac_config_status_args=
33669 test "$silent" = yes &&
33670 ac_config_status_args="$ac_config_status_args --quiet"
33671 exec 5>/dev/null
33672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33673 exec 5>>config.log
33674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33675 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000033676 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000033677fi
33678if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000033679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000033680$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33681fi
33682
33683
33684rm -f magick-version
33685
33686result_ghostscript_font_dir='none'
33687if test "${ghostscript_font_dir}x" != 'x'; then
33688 result_ghostscript_font_dir=$ghostscript_font_dir
33689fi
33690
33691result_windows_font_dir='none'
33692if test "${windows_font_dir}x" != 'x'; then
33693 result_windows_font_dir=${windows_font_dir}
33694fi
33695
cristy8b350f62009-11-15 23:12:43 +000033696{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000033697ImageMagick is configured as follows. Please verify that this configuration
33698matches your expectations.
33699
33700Host system type: $host
33701Build system type: $build
33702
33703 Option Value
33704-------------------------------------------------------------------------------
33705Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33706Static libraries --enable-static=$enable_static $libtool_build_static_libs
33707Module support --with-modules=$with_modules $with_modules
33708GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33709Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33710High Dynamic Range Imagery
33711 --enable-hdri=$enable_hdri $enable_hdri
33712
33713Delegate Configuration:
33714BZLIB --with-bzlib=$with_bzlib $have_bzlib
33715Autotrace --with-autotrace=$with_autotrace $have_autotrace
33716DJVU --with-djvu=$with_djvu $have_djvu
33717DPS --with-dps=$with_dps $have_dps
33718FFTW --with-fftw=$with_fftw $have_fftw
33719FlashPIX --with-fpx=$with_fpx $have_fpx
33720FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33721FreeType --with-freetype=$with_freetype $have_freetype
33722GhostPCL None $PCLDelegate ($PCLVersion)
33723GhostXPS None $XPSDelegate ($XPSVersion)
33724Ghostscript None $PSDelegate ($GSVersion)
33725Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33726Ghostscript lib --with-gslib=$with_gslib $have_gslib
33727Graphviz --with-gvc=$with_gvc $have_gvc
33728JBIG --with-jbig=$with_jbig $have_jbig
33729JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33730JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33731LCMS --with-lcms=$with_lcms $have_lcms
33732LQR --with-lqr=$with_lqr $have_lqr
33733Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33734OpenEXR --with-openexr=$with_openexr $have_openexr
33735PERL --with-perl=$with_perl $have_perl
33736PNG --with-png=$with_png $have_png
33737RSVG --with-rsvg=$with_rsvg $have_rsvg
33738TIFF --with-tiff=$with_tiff $have_tiff
33739Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33740WMF --with-wmf=$with_wmf $have_wmf
33741X11 --with-x=$with_x $have_x
33742XML --with-xml=$with_xml $have_xml
33743ZLIB --with-zlib=$with_zlib $have_zlib
33744
33745X11 Configuration:
33746 X_CFLAGS = $X_CFLAGS
33747 X_PRE_LIBS = $X_PRE_LIBS
33748 X_LIBS = $X_LIBS
33749 X_EXTRA_LIBS = $X_EXTRA_LIBS
33750
33751Options used to compile and link:
33752 PREFIX = $PREFIX_DIR
33753 EXEC-PREFIX = $EXEC_PREFIX_DIR
33754 VERSION = $PACKAGE_VERSION
33755 CC = $CC
33756 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000033757 CPPFLAGS = $MAGICK_CPPFLAGS
33758 PCFLAGS = $MAGICK_PCFLAGS
33759 DEFS = $DEFS
33760 LDFLAGS = $LDFLAGS
33761 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
33762 LIBS = $MAGICK_LIBS
33763 CXX = $CXX
33764 CXXFLAGS = $CXXFLAGS
33765" >&5
33766$as_echo "
33767ImageMagick is configured as follows. Please verify that this configuration
33768matches your expectations.
33769
33770Host system type: $host
33771Build system type: $build
33772
33773 Option Value
33774-------------------------------------------------------------------------------
33775Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33776Static libraries --enable-static=$enable_static $libtool_build_static_libs
33777Module support --with-modules=$with_modules $with_modules
33778GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33779Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33780High Dynamic Range Imagery
33781 --enable-hdri=$enable_hdri $enable_hdri
33782
33783Delegate Configuration:
33784BZLIB --with-bzlib=$with_bzlib $have_bzlib
33785Autotrace --with-autotrace=$with_autotrace $have_autotrace
33786DJVU --with-djvu=$with_djvu $have_djvu
33787DPS --with-dps=$with_dps $have_dps
33788FFTW --with-fftw=$with_fftw $have_fftw
33789FlashPIX --with-fpx=$with_fpx $have_fpx
33790FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33791FreeType --with-freetype=$with_freetype $have_freetype
33792GhostPCL None $PCLDelegate ($PCLVersion)
33793GhostXPS None $XPSDelegate ($XPSVersion)
33794Ghostscript None $PSDelegate ($GSVersion)
33795Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33796Ghostscript lib --with-gslib=$with_gslib $have_gslib
33797Graphviz --with-gvc=$with_gvc $have_gvc
33798JBIG --with-jbig=$with_jbig $have_jbig
33799JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33800JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33801LCMS --with-lcms=$with_lcms $have_lcms
33802LQR --with-lqr=$with_lqr $have_lqr
33803Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33804OpenEXR --with-openexr=$with_openexr $have_openexr
33805PERL --with-perl=$with_perl $have_perl
33806PNG --with-png=$with_png $have_png
33807RSVG --with-rsvg=$with_rsvg $have_rsvg
33808TIFF --with-tiff=$with_tiff $have_tiff
33809Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33810WMF --with-wmf=$with_wmf $have_wmf
33811X11 --with-x=$with_x $have_x
33812XML --with-xml=$with_xml $have_xml
33813ZLIB --with-zlib=$with_zlib $have_zlib
33814
33815X11 Configuration:
33816 X_CFLAGS = $X_CFLAGS
33817 X_PRE_LIBS = $X_PRE_LIBS
33818 X_LIBS = $X_LIBS
33819 X_EXTRA_LIBS = $X_EXTRA_LIBS
33820
33821Options used to compile and link:
33822 PREFIX = $PREFIX_DIR
33823 EXEC-PREFIX = $EXEC_PREFIX_DIR
33824 VERSION = $PACKAGE_VERSION
33825 CC = $CC
33826 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000033827 CPPFLAGS = $MAGICK_CPPFLAGS
33828 PCFLAGS = $MAGICK_PCFLAGS
33829 DEFS = $DEFS
33830 LDFLAGS = $LDFLAGS
33831 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
33832 LIBS = $MAGICK_LIBS
33833 CXX = $CXX
33834 CXXFLAGS = $CXXFLAGS
33835" >&6; }