blob: 8d1abb8caad381e04a520304929f97670b8ced7a [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyfbb4a972010-06-30 17:42:22 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.6.3.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristycd4c5312009-11-22 01:19:08 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy232a9ab2010-06-26 01:02:54 +0000176test \$(( 1 + 1 )) = 2 || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187else
188 as_have_required=no
189fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
201 /*)
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
210fi
211fi
212 done;;
213 esac
214 as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: http://www.imagemagick.org about your system, including
243$0: any error possibly output before this message. Then
244$0: install a modern shell, or manually run the script
245$0: under such a shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
370# as_fn_error ERROR [LINENO LOG_FD]
371# ---------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with status $?, using 1 if that was 0.
375as_fn_error ()
376{
377 as_status=$?; test $as_status -eq 0 && as_status=1
378 if test "$3"; then
379 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
381 fi
382 $as_echo "$as_me: error: $1" >&2
383 as_fn_exit $as_status
384} # as_fn_error
385
cristy3ed852e2009-09-05 21:47:34 +0000386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
cristy8b350f62009-11-15 23:12:43 +0000399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
cristy3ed852e2009-09-05 21:47:34 +0000404
cristy3ed852e2009-09-05 21:47:34 +0000405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
cristy8b350f62009-11-15 23:12:43 +0000424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000430
431
cristy8b350f62009-11-15 23:12:43 +0000432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000453 { $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 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
cristy3ed852e2009-09-05 21:47:34 +0000463ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000464case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000465-n*)
cristy8b350f62009-11-15 23:12:43 +0000466 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000471 esac;;
472*)
473 ECHO_N='-n';;
474esac
cristy3ed852e2009-09-05 21:47:34 +0000475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497else
498 as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000504 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
cristy8b350f62009-11-15 23:12:43 +0000523 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000524 -*)set "./$1";;
525 esac;
cristy8b350f62009-11-15 23:12:43 +0000526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
cristy3ed852e2009-09-05 21:47:34 +0000539SHELL=${CONFIG_SHELL-/bin/sh}
540
cristy3ed852e2009-09-05 21:47:34 +0000541lt_ltdl_dir='ltdl'
542
543lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
544
cristy232a9ab2010-06-26 01:02:54 +0000545
cristycd4c5312009-11-22 01:19:08 +0000546test -n "$DJDIR" || exec 7<&0 </dev/null
547exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000548
549# Name of the host.
550# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
551# so uname gets run too.
552ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553
554#
555# Initializations.
556#
557ac_default_prefix=/usr/local
558ac_clean_files=
559ac_config_libobj_dir=.
560LIBOBJS=
561cross_compiling=no
562subdirs=
563MFLAGS=
564MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000565
566# Identity of this package.
567PACKAGE_NAME='ImageMagick'
568PACKAGE_TARNAME='ImageMagick'
cristyfbb4a972010-06-30 17:42:22 +0000569PACKAGE_VERSION='6.6.3'
570PACKAGE_STRING='ImageMagick 6.6.3'
cristy3ed852e2009-09-05 21:47:34 +0000571PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000572PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000573
574ac_unique_file="magick/MagickCore.h"
575ac_config_libobj_dir=ltdl
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590# include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595# include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
cristycd4c5312009-11-22 01:19:08 +0000612ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000613ac_subst_vars='ltdl_LTLIBOBJS
614ltdl_LIBOBJS
615am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
618MAGICK_LIBS
619MAGICK_LDFLAGS
620MAGICK_PCFLAGS
621MAGICK_CPPFLAGS
622MAGICK_CXXFLAGS
623MAGICK_CFLAGS
624MAGICK_DEP_LIBS
625MAGICK_LTDLDEPS
626MAGICK_LIBLTDL
627OSX_GCOV_LDFLAG
628DELEGATES
629MAGICKCORE_PATH
630PERL_SUPPORTS_DESTDIR
631WITH_PERL_DYNAMIC_FALSE
632WITH_PERL_DYNAMIC_TRUE
633WITH_PERL_STATIC_FALSE
634WITH_PERL_STATIC_TRUE
635WITH_PERL_FALSE
636WITH_PERL_TRUE
cristy964cb7f2010-04-25 23:18:00 +0000637PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000638GSVersion
639GSPSDevice
640GSPDFDevice
641GSMonoDevice
642GSEPSDevice
643GSColorDevice
644GSCMYKDevice
645GSAlphaDevice
646XPSVersion
647XPSCMYKDevice
648XPSColorDevice
649XPSMonoDevice
650PCLVersion
651PCLCMYKDevice
652PCLColorDevice
653PCLMonoDevice
654ZIP_DELEGATE_FALSE
655ZIP_DELEGATE_TRUE
656ZIP
657P7ZIP_DELEGATE_FALSE
658P7ZIP_DELEGATE_TRUE
659P7ZIP
660RPM_DELEGATE_FALSE
661RPM_DELEGATE_TRUE
662RPM
663PERL
664TAR
665ShowImageDelegate
666type_include_files
667ghostscript_font_dir
668windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000669dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000670PrintDelegate
671ZipDelegate
672XPSDelegate
673WWWDecodeDelegate
674WMFDecodeDelegate
675TXTDelegate
676SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000677RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000678RMDelegate
679RLEEncodeDelegate
680PSDelegate
681POVDelegate
682PGPDecodeDelegate
683PCLDelegate
684MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000685MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000686MPEGEncodeDelegate
687MPEGDecodeDelegate
688MANDelegate
689LaunchDelegate
690LZWEncodeDelegate
691LZWDecodeDelegate
692LPRDelegate
693LPDelegate
694ILBMEncodeDelegate
695ILBMDecodeDelegate
696HTMLDecodeDelegate
697HPGLDecodeDelegate
698HDRDecodeDelegate
699GnuplotDecodeDelegate
700MogrifyDelegate
701DisplayDelegate
702ConvertDelegate
703FIGDecodeDelegate
704EditorDelegate
705EchoDelegate
706DVIDecodeDelegate
707GVCDecodeDelegate
708DNGDecodeDelegate
709CatDelegate
710CGMDecodeDelegate
711BrowseDelegate
712BZIPDelegate
713BlenderDecodeDelegate
714AVIDecodeDelegate
715AutotraceDecodeDelegate
716SHARE_CONFIGURE_PATH
717SHARE_PATH
718DOCUMENTATION_PATH
719FILTER_PATH
720CODER_PATH
721CONFIGURE_PATH
722LIBRARY_PATH
723EXECUTABLE_PATH
724PERLMAINCC
725XML_LIBS
726XML_DELEGATE_FALSE
727XML_DELEGATE_TRUE
728xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000729WMF_LIBS
730WMF_DELEGATE_FALSE
731WMF_DELEGATE_TRUE
732TIFF_LIBS
733TIFF_DELEGATE_FALSE
734TIFF_DELEGATE_TRUE
735CAIRO_DELEGATE_FALSE
736CAIRO_DELEGATE_TRUE
737RSVG_DELEGATE_FALSE
738RSVG_DELEGATE_TRUE
739CAIRO_SVG_LIBS
740CAIRO_SVG_CFLAGS
741RSVG_LIBS
742RSVG_CFLAGS
743PNG_LIBS
744PNG_DELEGATE_FALSE
745PNG_DELEGATE_TRUE
746OPENEXR_DELEGATE_FALSE
747OPENEXR_DELEGATE_TRUE
748OPENEXR_LIBS
749OPENEXR_CFLAGS
750LQR_DELEGATE_FALSE
751LQR_DELEGATE_TRUE
752LQR_LIBS
753LQR_CFLAGS
754LCMS_LIBS
755LCMS_DELEGATE_FALSE
756LCMS_DELEGATE_TRUE
757JP2_LIBS
758JP2_DELEGATE_FALSE
759JP2_DELEGATE_TRUE
760JPEG_LIBS
761JPEG_DELEGATE_FALSE
762JPEG_DELEGATE_TRUE
763JBIG_LIBS
764JBIG_DELEGATE_FALSE
765JBIG_DELEGATE_TRUE
766GVC_DELEGATE_FALSE
767GVC_DELEGATE_TRUE
768GVC_LIBS
769GVC_CFLAGS
770GS_LIBS
771GS_DELEGATE_FALSE
772GS_DELEGATE_TRUE
773FREETYPE_LIBS
774FREETYPE_DELEGATE_FALSE
775FREETYPE_DELEGATE_TRUE
776freetype_config
777FONTCONFIG_DELEGATE_FALSE
778FONTCONFIG_DELEGATE_TRUE
779FONTCONFIG_LIBS
780FONTCONFIG_CFLAGS
781FPX_LIBS
782FPX_DELEGATE_FALSE
783FPX_DELEGATE_TRUE
784FFTW_LIBS
785FFTW_DELEGATE_FALSE
786FFTW_DELEGATE_TRUE
787DJVU_LIBS
788DJVU_DELEGATE_FALSE
789DJVU_DELEGATE_TRUE
790DPS_LIBS
791DPS_DELEGATE_FALSE
792DPS_DELEGATE_TRUE
793AUTOTRACE_DELEGATE_FALSE
794AUTOTRACE_DELEGATE_TRUE
795AUTOTRACE_LIBS
796AUTOTRACE_CFLAGS
797LIB_DL
798ZLIB_LIBS
799ZLIB_DELEGATE_FALSE
800ZLIB_DELEGATE_TRUE
801XEXT_LIBS
802X11_LIBS
803X11_DELEGATE_FALSE
804X11_DELEGATE_TRUE
805X_EXTRA_LIBS
806X_LIBS
807X_PRE_LIBS
808X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000809XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000810BZLIB_LIBS
811BZLIB_DELEGATE_FALSE
812BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000813CCMALLOCDelegate
814UMEM_LIBS
815HasUMEM_FALSE
816HasUMEM_TRUE
817THREAD_LIBS
818GOMP_LIBS
819WITH_MAGICK_PLUS_PLUS_FALSE
820WITH_MAGICK_PLUS_PLUS_TRUE
821OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000822MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000823POW_LIB
824LIBOBJS
825UINTPTR_T
826UINTMAX_T
827UINT64_T
828INT64_T
829UINT32_T
830INT32_T
831UINT16_T
832INT16_T
833UINT8_T
834INT8_T
835LIBRARY_EXTRA_CPPFLAGS
836MODULE_EXTRA_CPPFLAGS
837LIBSTDCLDFLAGS
838PERL_MAKE_OPTIONS
839QUANTUM_DEPTH
840MAINT
841MAINTAINER_MODE_FALSE
842MAINTAINER_MODE_TRUE
843MAGICK_HDRI
844DLLDFLAGS
845WITH_LTDL_FALSE
846WITH_LTDL_TRUE
847WITH_MODULES_FALSE
848WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000849WITH_SHARED_LIBS_FALSE
850WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000851LTDLOPEN
852LT_CONFIG_H
853CONVENIENCE_LTDL_FALSE
854CONVENIENCE_LTDL_TRUE
855INSTALL_LTDL_FALSE
856INSTALL_LTDL_TRUE
857ARGZ_H
858sys_symbol_underscore
859LIBADD_DL
860LT_DLPREOPEN
861LIBADD_DLD_LINK
862LIBADD_SHL_LOAD
863LIBADD_DLOPEN
864LT_DLLOADERS
865INCLTDL
866LTDLINCL
867LTDLDEPS
868LIBLTDL
869LIBTOOL_DEPS
870CXXCPP
871OTOOL64
872OTOOL
873LIPO
874NMEDIT
875DSYMUTIL
cristy4dc44432009-12-30 23:30:06 +0000876RANLIB
cristy3ed852e2009-09-05 21:47:34 +0000877AR
878NM
879ac_ct_DUMPBIN
880DUMPBIN
881LIBTOOL
882OBJDUMP
883DLLTOOL
884AS
885LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +0000886CL_LIBS
887CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000888OPENMP_CFLAGS
889PTHREAD_CFLAGS
890PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000891PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +0000892ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000893WinPathScript
894USING_CL_FALSE
895USING_CL_TRUE
896CYGWIN_BUILD_FALSE
897CYGWIN_BUILD_TRUE
898WIN32_NATIVE_BUILD_FALSE
899WIN32_NATIVE_BUILD_TRUE
900WINGDI32_DELEGATE_FALSE
901WINGDI32_DELEGATE_TRUE
902GDI32_LIBS
903PKG_CONFIG
904LN_S
cristy3ed852e2009-09-05 21:47:34 +0000905LD
906FGREP
cristy3ed852e2009-09-05 21:47:34 +0000907SED
cristy95646052009-11-28 23:05:30 +0000908am__fastdepCXX_FALSE
909am__fastdepCXX_TRUE
910CXXDEPMODE
911ac_ct_CXX
912CXXFLAGS
913CXX
cristya0b81c32010-01-22 02:54:33 +0000914EGREP
915GREP
916CPP
cristy3ed852e2009-09-05 21:47:34 +0000917am__fastdepCC_FALSE
918am__fastdepCC_TRUE
919CCDEPMODE
920AMDEPBACKSLASH
921AMDEP_FALSE
922AMDEP_TRUE
923am__quote
924am__include
925DEPDIR
926OBJEXT
927EXEEXT
928ac_ct_CC
929CPPFLAGS
930LDFLAGS
931CFLAGS
932CC
933DIRSEP
934MAGICK_FILTER_MODULE_PATH
935MAGICK_CONFIGURE_BUILD_PATH
936MAGICK_CONFIGURE_SRC_PATH
937MAGICK_CODER_MODULE_PATH
938MAN_DIR
939INFO_DIR
940PERSISTINCLUDE_DIR
941INCLUDE_DIR
942LIB_DIR
943LOCALSTATE_DIR
944SHAREDSTATE_DIR
945SYSCONF_DIR
946DATA_DIR
947LIBEXEC_DIR
948SBIN_DIR
949BIN_DIR
950EXEC_PREFIX_DIR
951PREFIX_DIR
952CONFIG_STATUS_DEPENDENCIES
953MAGICK_LIB_VERSION_NUMBER
954MAGICK_LIB_VERSION_TEXT
955MAGICK_LIB_VERSION
956AM_BACKSLASH
957AM_DEFAULT_VERBOSITY
958am__untar
959am__tar
960AMTAR
961am__leading_dot
962SET_MAKE
963AWK
964mkdir_p
965MKDIR_P
966INSTALL_STRIP_PROGRAM
967STRIP
968install_sh
969MAKEINFO
970AUTOHEADER
971AUTOMAKE
972AUTOCONF
973ACLOCAL
974VERSION
975PACKAGE
976CYGPATH_W
977am__isrc
978INSTALL_DATA
979INSTALL_SCRIPT
980INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000981PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000982PACKAGE_RELEASE_DATE
983PACKAGE_LIB_VERSION_NUMBER
984PACKAGE_LIB_VERSION
985PACKAGE_CHANGE_DATE
986PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +0000987MAGICK_LIBRARY_VERSION_INFO
988MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +0000989MAGICK_LIBRARY_AGE
990MAGICK_LIBRARY_REVISION
991MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +0000992MAGICK_TARGET_OS
993MAGICK_TARGET_VENDOR
994MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +0000995target_os
996target_vendor
997target_cpu
998target
999host_os
1000host_vendor
1001host_cpu
1002host
1003build_os
1004build_vendor
1005build_cpu
1006build
1007CONFIGURE_ARGS
1008DISTCHECK_CONFIG_FLAGS
1009target_alias
1010host_alias
1011build_alias
1012LIBS
1013ECHO_T
1014ECHO_N
1015ECHO_C
1016DEFS
1017mandir
1018localedir
1019libdir
1020psdir
1021pdfdir
1022dvidir
1023htmldir
1024infodir
1025docdir
1026oldincludedir
1027includedir
1028localstatedir
1029sharedstatedir
1030sysconfdir
1031datadir
1032datarootdir
1033libexecdir
1034sbindir
1035bindir
1036program_transform_name
1037prefix
1038exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001039PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001040PACKAGE_BUGREPORT
1041PACKAGE_STRING
1042PACKAGE_VERSION
1043PACKAGE_TARNAME
1044PACKAGE_NAME
1045PATH_SEPARATOR
1046SHELL'
1047ac_subst_files=''
1048ac_user_opts='
1049enable_option_checking
1050enable_silent_rules
1051enable_dependency_tracking
1052with_gnu_ld
cristy3ed852e2009-09-05 21:47:34 +00001053with_dmalloc
1054enable_bounds_checking
1055enable_osx_universal_binary
1056with_threads
1057enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001058enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001059enable_largefile
1060enable_shared
1061enable_static
1062with_pic
1063enable_fast_install
1064enable_libtool_lock
1065with_included_ltdl
1066with_ltdl_include
1067with_ltdl_lib
1068enable_ltdl_install
1069with_modules
1070enable_delegate_build
1071enable_deprecated
1072enable_installed
1073enable_cipher
1074enable_embeddable
1075enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001076enable_assert
1077enable_maintainer_mode
1078enable_ccmalloc
1079enable_efence
1080enable_prof
1081enable_gprof
1082enable_gcov
1083with_method_prefix
1084with_quantum_depth
1085with_cache
1086with_frozenpaths
1087with_magick_plus_plus
1088with_perl
1089with_perl_options
1090with_umem
1091with_libstdc
1092with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001093with_x
cristy3ed852e2009-09-05 21:47:34 +00001094with_zlib
1095with_autotrace
1096with_dps
1097with_djvu
cristy430a7312010-01-21 20:44:04 +00001098with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001099with_fftw
1100with_fpx
1101with_fontconfig
1102with_freetype
1103with_gslib
1104with_fontpath
1105with_gs_font_dir
1106with_gvc
1107with_jbig
1108with_jpeg
1109with_jp2
1110with_lcms
cristy71203402010-06-18 13:12:03 +00001111with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001112with_lqr
1113with_openexr
1114with_png
1115with_rsvg
1116with_tiff
1117with_windows_font_dir
1118with_wmf
1119with_xml
1120'
1121 ac_precious_vars='build_alias
1122host_alias
1123target_alias
1124CC
1125CFLAGS
1126LDFLAGS
1127LIBS
1128CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001129CPP
cristy3ed852e2009-09-05 21:47:34 +00001130CXX
1131CXXFLAGS
1132CCC
1133PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001134CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001135XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001136AUTOTRACE_CFLAGS
1137AUTOTRACE_LIBS
1138FONTCONFIG_CFLAGS
1139FONTCONFIG_LIBS
1140GVC_CFLAGS
1141GVC_LIBS
1142LQR_CFLAGS
1143LQR_LIBS
1144OPENEXR_CFLAGS
1145OPENEXR_LIBS
1146RSVG_CFLAGS
1147RSVG_LIBS
1148CAIRO_SVG_CFLAGS
1149CAIRO_SVG_LIBS'
1150
1151
1152# Initialize some variables set by options.
1153ac_init_help=
1154ac_init_version=false
1155ac_unrecognized_opts=
1156ac_unrecognized_sep=
1157# The variables have the same names as the options, with
1158# dashes changed to underlines.
1159cache_file=/dev/null
1160exec_prefix=NONE
1161no_create=
1162no_recursion=
1163prefix=NONE
1164program_prefix=NONE
1165program_suffix=NONE
1166program_transform_name=s,x,x,
1167silent=
1168site=
1169srcdir=
1170verbose=
1171x_includes=NONE
1172x_libraries=NONE
1173
1174# Installation directory options.
1175# These are left unexpanded so users can "make install exec_prefix=/foo"
1176# and all the variables that are supposed to be based on exec_prefix
1177# by default will actually change.
1178# Use braces instead of parens because sh, perl, etc. also accept them.
1179# (The list follows the same order as the GNU Coding Standards.)
1180bindir='${exec_prefix}/bin'
1181sbindir='${exec_prefix}/sbin'
1182libexecdir='${exec_prefix}/libexec'
1183datarootdir='${prefix}/share'
1184datadir='${datarootdir}'
1185sysconfdir='${prefix}/etc'
1186sharedstatedir='${prefix}/com'
1187localstatedir='${prefix}/var'
1188includedir='${prefix}/include'
1189oldincludedir='/usr/include'
1190docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1191infodir='${datarootdir}/info'
1192htmldir='${docdir}'
1193dvidir='${docdir}'
1194pdfdir='${docdir}'
1195psdir='${docdir}'
1196libdir='${exec_prefix}/lib'
1197localedir='${datarootdir}/locale'
1198mandir='${datarootdir}/man'
1199
1200ac_prev=
1201ac_dashdash=
1202for ac_option
1203do
1204 # If the previous option needs an argument, assign it.
1205 if test -n "$ac_prev"; then
1206 eval $ac_prev=\$ac_option
1207 ac_prev=
1208 continue
1209 fi
1210
1211 case $ac_option in
1212 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1213 *) ac_optarg=yes ;;
1214 esac
1215
1216 # Accept the important Cygnus configure options, so we can diagnose typos.
1217
1218 case $ac_dashdash$ac_option in
1219 --)
1220 ac_dashdash=yes ;;
1221
1222 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1223 ac_prev=bindir ;;
1224 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1225 bindir=$ac_optarg ;;
1226
1227 -build | --build | --buil | --bui | --bu)
1228 ac_prev=build_alias ;;
1229 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1230 build_alias=$ac_optarg ;;
1231
1232 -cache-file | --cache-file | --cache-fil | --cache-fi \
1233 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1234 ac_prev=cache_file ;;
1235 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1236 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1237 cache_file=$ac_optarg ;;
1238
1239 --config-cache | -C)
1240 cache_file=config.cache ;;
1241
1242 -datadir | --datadir | --datadi | --datad)
1243 ac_prev=datadir ;;
1244 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1245 datadir=$ac_optarg ;;
1246
1247 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1248 | --dataroo | --dataro | --datar)
1249 ac_prev=datarootdir ;;
1250 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1251 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1252 datarootdir=$ac_optarg ;;
1253
1254 -disable-* | --disable-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001258 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263"enable_$ac_useropt"
1264"*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval enable_$ac_useropt=no ;;
1269
1270 -docdir | --docdir | --docdi | --doc | --do)
1271 ac_prev=docdir ;;
1272 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1273 docdir=$ac_optarg ;;
1274
1275 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1276 ac_prev=dvidir ;;
1277 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1278 dvidir=$ac_optarg ;;
1279
1280 -enable-* | --enable-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001284 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289"enable_$ac_useropt"
1290"*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval enable_$ac_useropt=\$ac_optarg ;;
1295
1296 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1297 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1298 | --exec | --exe | --ex)
1299 ac_prev=exec_prefix ;;
1300 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1301 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1302 | --exec=* | --exe=* | --ex=*)
1303 exec_prefix=$ac_optarg ;;
1304
1305 -gas | --gas | --ga | --g)
1306 # Obsolete; use --with-gas.
1307 with_gas=yes ;;
1308
1309 -help | --help | --hel | --he | -h)
1310 ac_init_help=long ;;
1311 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1312 ac_init_help=recursive ;;
1313 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1314 ac_init_help=short ;;
1315
1316 -host | --host | --hos | --ho)
1317 ac_prev=host_alias ;;
1318 -host=* | --host=* | --hos=* | --ho=*)
1319 host_alias=$ac_optarg ;;
1320
1321 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1322 ac_prev=htmldir ;;
1323 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1324 | --ht=*)
1325 htmldir=$ac_optarg ;;
1326
1327 -includedir | --includedir | --includedi | --included | --include \
1328 | --includ | --inclu | --incl | --inc)
1329 ac_prev=includedir ;;
1330 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1331 | --includ=* | --inclu=* | --incl=* | --inc=*)
1332 includedir=$ac_optarg ;;
1333
1334 -infodir | --infodir | --infodi | --infod | --info | --inf)
1335 ac_prev=infodir ;;
1336 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1337 infodir=$ac_optarg ;;
1338
1339 -libdir | --libdir | --libdi | --libd)
1340 ac_prev=libdir ;;
1341 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1342 libdir=$ac_optarg ;;
1343
1344 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1345 | --libexe | --libex | --libe)
1346 ac_prev=libexecdir ;;
1347 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1348 | --libexe=* | --libex=* | --libe=*)
1349 libexecdir=$ac_optarg ;;
1350
1351 -localedir | --localedir | --localedi | --localed | --locale)
1352 ac_prev=localedir ;;
1353 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1354 localedir=$ac_optarg ;;
1355
1356 -localstatedir | --localstatedir | --localstatedi | --localstated \
1357 | --localstate | --localstat | --localsta | --localst | --locals)
1358 ac_prev=localstatedir ;;
1359 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1360 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1361 localstatedir=$ac_optarg ;;
1362
1363 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1364 ac_prev=mandir ;;
1365 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1366 mandir=$ac_optarg ;;
1367
1368 -nfp | --nfp | --nf)
1369 # Obsolete; use --without-fp.
1370 with_fp=no ;;
1371
1372 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1373 | --no-cr | --no-c | -n)
1374 no_create=yes ;;
1375
1376 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1377 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1378 no_recursion=yes ;;
1379
1380 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1381 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1382 | --oldin | --oldi | --old | --ol | --o)
1383 ac_prev=oldincludedir ;;
1384 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1385 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1386 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1387 oldincludedir=$ac_optarg ;;
1388
1389 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1390 ac_prev=prefix ;;
1391 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1392 prefix=$ac_optarg ;;
1393
1394 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1395 | --program-pre | --program-pr | --program-p)
1396 ac_prev=program_prefix ;;
1397 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1398 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1399 program_prefix=$ac_optarg ;;
1400
1401 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1402 | --program-suf | --program-su | --program-s)
1403 ac_prev=program_suffix ;;
1404 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1405 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1406 program_suffix=$ac_optarg ;;
1407
1408 -program-transform-name | --program-transform-name \
1409 | --program-transform-nam | --program-transform-na \
1410 | --program-transform-n | --program-transform- \
1411 | --program-transform | --program-transfor \
1412 | --program-transfo | --program-transf \
1413 | --program-trans | --program-tran \
1414 | --progr-tra | --program-tr | --program-t)
1415 ac_prev=program_transform_name ;;
1416 -program-transform-name=* | --program-transform-name=* \
1417 | --program-transform-nam=* | --program-transform-na=* \
1418 | --program-transform-n=* | --program-transform-=* \
1419 | --program-transform=* | --program-transfor=* \
1420 | --program-transfo=* | --program-transf=* \
1421 | --program-trans=* | --program-tran=* \
1422 | --progr-tra=* | --program-tr=* | --program-t=*)
1423 program_transform_name=$ac_optarg ;;
1424
1425 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1426 ac_prev=pdfdir ;;
1427 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1428 pdfdir=$ac_optarg ;;
1429
1430 -psdir | --psdir | --psdi | --psd | --ps)
1431 ac_prev=psdir ;;
1432 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1433 psdir=$ac_optarg ;;
1434
1435 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1436 | -silent | --silent | --silen | --sile | --sil)
1437 silent=yes ;;
1438
1439 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1440 ac_prev=sbindir ;;
1441 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1442 | --sbi=* | --sb=*)
1443 sbindir=$ac_optarg ;;
1444
1445 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1446 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1447 | --sharedst | --shareds | --shared | --share | --shar \
1448 | --sha | --sh)
1449 ac_prev=sharedstatedir ;;
1450 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1451 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1452 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1453 | --sha=* | --sh=*)
1454 sharedstatedir=$ac_optarg ;;
1455
1456 -site | --site | --sit)
1457 ac_prev=site ;;
1458 -site=* | --site=* | --sit=*)
1459 site=$ac_optarg ;;
1460
1461 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1462 ac_prev=srcdir ;;
1463 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1464 srcdir=$ac_optarg ;;
1465
1466 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1467 | --syscon | --sysco | --sysc | --sys | --sy)
1468 ac_prev=sysconfdir ;;
1469 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1470 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1471 sysconfdir=$ac_optarg ;;
1472
1473 -target | --target | --targe | --targ | --tar | --ta | --t)
1474 ac_prev=target_alias ;;
1475 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1476 target_alias=$ac_optarg ;;
1477
1478 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1479 verbose=yes ;;
1480
1481 -version | --version | --versio | --versi | --vers | -V)
1482 ac_init_version=: ;;
1483
1484 -with-* | --with-*)
1485 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1486 # Reject names that are not valid shell variable names.
1487 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001488 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001489 ac_useropt_orig=$ac_useropt
1490 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1491 case $ac_user_opts in
1492 *"
1493"with_$ac_useropt"
1494"*) ;;
1495 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1496 ac_unrecognized_sep=', ';;
1497 esac
1498 eval with_$ac_useropt=\$ac_optarg ;;
1499
1500 -without-* | --without-*)
1501 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1502 # Reject names that are not valid shell variable names.
1503 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001504 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001505 ac_useropt_orig=$ac_useropt
1506 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1507 case $ac_user_opts in
1508 *"
1509"with_$ac_useropt"
1510"*) ;;
1511 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1512 ac_unrecognized_sep=', ';;
1513 esac
1514 eval with_$ac_useropt=no ;;
1515
1516 --x)
1517 # Obsolete; use --with-x.
1518 with_x=yes ;;
1519
1520 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1521 | --x-incl | --x-inc | --x-in | --x-i)
1522 ac_prev=x_includes ;;
1523 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1524 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1525 x_includes=$ac_optarg ;;
1526
1527 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1528 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1529 ac_prev=x_libraries ;;
1530 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1531 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1532 x_libraries=$ac_optarg ;;
1533
cristy8b350f62009-11-15 23:12:43 +00001534 -*) as_fn_error "unrecognized option: \`$ac_option'
1535Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001536 ;;
1537
1538 *=*)
1539 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1540 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001541 case $ac_envvar in #(
1542 '' | [0-9]* | *[!_$as_cr_alnum]* )
1543 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1544 esac
cristy3ed852e2009-09-05 21:47:34 +00001545 eval $ac_envvar=\$ac_optarg
1546 export $ac_envvar ;;
1547
1548 *)
1549 # FIXME: should be removed in autoconf 3.0.
1550 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1551 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1552 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1553 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1554 ;;
1555
1556 esac
1557done
1558
1559if test -n "$ac_prev"; then
1560 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001561 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001562fi
1563
1564if test -n "$ac_unrecognized_opts"; then
1565 case $enable_option_checking in
1566 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001567 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001568 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1569 esac
1570fi
1571
1572# Check all directory arguments for consistency.
1573for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1574 datadir sysconfdir sharedstatedir localstatedir includedir \
1575 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1576 libdir localedir mandir
1577do
1578 eval ac_val=\$$ac_var
1579 # Remove trailing slashes.
1580 case $ac_val in
1581 */ )
1582 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1583 eval $ac_var=\$ac_val;;
1584 esac
1585 # Be sure to have absolute directory names.
1586 case $ac_val in
1587 [\\/$]* | ?:[\\/]* ) continue;;
1588 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1589 esac
cristy8b350f62009-11-15 23:12:43 +00001590 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001591done
1592
1593# There might be people who depend on the old broken behavior: `$host'
1594# used to hold the argument of --host etc.
1595# FIXME: To remove some day.
1596build=$build_alias
1597host=$host_alias
1598target=$target_alias
1599
1600# FIXME: To remove some day.
1601if test "x$host_alias" != x; then
1602 if test "x$build_alias" = x; then
1603 cross_compiling=maybe
1604 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1605 If a cross compiler is detected then cross compile mode will be used." >&2
1606 elif test "x$build_alias" != "x$host_alias"; then
1607 cross_compiling=yes
1608 fi
1609fi
1610
1611ac_tool_prefix=
1612test -n "$host_alias" && ac_tool_prefix=$host_alias-
1613
1614test "$silent" = yes && exec 6>/dev/null
1615
1616
1617ac_pwd=`pwd` && test -n "$ac_pwd" &&
1618ac_ls_di=`ls -di .` &&
1619ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001620 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001621test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001622 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001623
1624
1625# Find the source files, if location was not specified.
1626if test -z "$srcdir"; then
1627 ac_srcdir_defaulted=yes
1628 # Try the directory containing this script, then the parent directory.
1629 ac_confdir=`$as_dirname -- "$as_myself" ||
1630$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1631 X"$as_myself" : 'X\(//\)[^/]' \| \
1632 X"$as_myself" : 'X\(//\)$' \| \
1633 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1634$as_echo X"$as_myself" |
1635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1636 s//\1/
1637 q
1638 }
1639 /^X\(\/\/\)[^/].*/{
1640 s//\1/
1641 q
1642 }
1643 /^X\(\/\/\)$/{
1644 s//\1/
1645 q
1646 }
1647 /^X\(\/\).*/{
1648 s//\1/
1649 q
1650 }
1651 s/.*/./; q'`
1652 srcdir=$ac_confdir
1653 if test ! -r "$srcdir/$ac_unique_file"; then
1654 srcdir=..
1655 fi
1656else
1657 ac_srcdir_defaulted=no
1658fi
1659if test ! -r "$srcdir/$ac_unique_file"; then
1660 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001661 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001662fi
1663ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1664ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001665 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001666 pwd)`
1667# When building in place, set srcdir=.
1668if test "$ac_abs_confdir" = "$ac_pwd"; then
1669 srcdir=.
1670fi
1671# Remove unnecessary trailing slashes from srcdir.
1672# Double slashes in file names in object file debugging info
1673# mess up M-x gdb in Emacs.
1674case $srcdir in
1675*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1676esac
1677for ac_var in $ac_precious_vars; do
1678 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1679 eval ac_env_${ac_var}_value=\$${ac_var}
1680 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1681 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1682done
1683
1684#
1685# Report the --help message.
1686#
1687if test "$ac_init_help" = "long"; then
1688 # Omit some internal or obsolete options to make the list less imposing.
1689 # This message is too long to be a string in the A/UX 3.1 sh.
1690 cat <<_ACEOF
cristyfbb4a972010-06-30 17:42:22 +00001691\`configure' configures ImageMagick 6.6.3 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001692
1693Usage: $0 [OPTION]... [VAR=VALUE]...
1694
1695To assign environment variables (e.g., CC, CFLAGS...), specify them as
1696VAR=VALUE. See below for descriptions of some of the useful variables.
1697
1698Defaults for the options are specified in brackets.
1699
1700Configuration:
1701 -h, --help display this help and exit
1702 --help=short display options specific to this package
1703 --help=recursive display the short help of all the included packages
1704 -V, --version display version information and exit
1705 -q, --quiet, --silent do not print \`checking...' messages
1706 --cache-file=FILE cache test results in FILE [disabled]
1707 -C, --config-cache alias for \`--cache-file=config.cache'
1708 -n, --no-create do not create output files
1709 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1710
1711Installation directories:
1712 --prefix=PREFIX install architecture-independent files in PREFIX
1713 [$ac_default_prefix]
1714 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1715 [PREFIX]
1716
1717By default, \`make install' will install all the files in
1718\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1719an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1720for instance \`--prefix=\$HOME'.
1721
1722For better control, use the options below.
1723
1724Fine tuning of the installation directories:
1725 --bindir=DIR user executables [EPREFIX/bin]
1726 --sbindir=DIR system admin executables [EPREFIX/sbin]
1727 --libexecdir=DIR program executables [EPREFIX/libexec]
1728 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1729 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1730 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1731 --libdir=DIR object code libraries [EPREFIX/lib]
1732 --includedir=DIR C header files [PREFIX/include]
1733 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1734 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1735 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1736 --infodir=DIR info documentation [DATAROOTDIR/info]
1737 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1738 --mandir=DIR man documentation [DATAROOTDIR/man]
1739 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1740 --htmldir=DIR html documentation [DOCDIR]
1741 --dvidir=DIR dvi documentation [DOCDIR]
1742 --pdfdir=DIR pdf documentation [DOCDIR]
1743 --psdir=DIR ps documentation [DOCDIR]
1744_ACEOF
1745
1746 cat <<\_ACEOF
1747
1748Program names:
1749 --program-prefix=PREFIX prepend PREFIX to installed program names
1750 --program-suffix=SUFFIX append SUFFIX to installed program names
1751 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1752
1753X features:
1754 --x-includes=DIR X include files are in DIR
1755 --x-libraries=DIR X library files are in DIR
1756
1757System types:
1758 --build=BUILD configure for building on BUILD [guessed]
1759 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1760 --target=TARGET configure for building compilers for TARGET [HOST]
1761_ACEOF
1762fi
1763
1764if test -n "$ac_init_help"; then
1765 case $ac_init_help in
cristyfbb4a972010-06-30 17:42:22 +00001766 short | recursive ) echo "Configuration of ImageMagick 6.6.3:";;
cristy3ed852e2009-09-05 21:47:34 +00001767 esac
1768 cat <<\_ACEOF
1769
1770Optional Features:
1771 --disable-option-checking ignore unrecognized --enable/--with options
1772 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1773 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1774 --enable-silent-rules less verbose build output (undo: `make V=1')
1775 --disable-silent-rules verbose build output (undo: `make V=0')
1776 --disable-dependency-tracking speeds up one-time build
1777 --enable-dependency-tracking do not reject slow dependency extractors
1778 --bounds-checking enable run-time bounds-checking
1779 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001780 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001781 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001782 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001783 --disable-largefile omit support for large files
1784 --enable-shared[=PKGS] build shared libraries [default=yes]
1785 --enable-static[=PKGS] build static libraries [default=yes]
1786 --enable-fast-install[=PKGS]
1787 optimize for fast installation [default=yes]
1788 --disable-libtool-lock avoid locking (might break parallel builds)
1789 --enable-ltdl-install install libltdl
1790 --enable-delegate-build look for delegate libraries in build directory
1791 --disable-deprecated exclude deprecated methods in MagickCore and
1792 MagickWand API's
1793 --disable-installed Formally install ImageMagick under PREFIX
1794 --disable-cipher disable enciphering and deciphering image pixels
1795 --enable-embeddable enable self-contained, embeddable,
1796 zero-configuration ImageMagick
1797 --enable-hdri accurately represent the wide range of intensity
1798 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001799 --disable-assert disable assert() statements in build
1800 --enable-maintainer-mode enable make rules and dependencies not useful
1801 (and sometimes confusing) to the casual installer
1802 --enable-ccmalloc enable 'ccmalloc' memory debug support
1803 --enable-efence enable 'efence' memory debug support
1804 --enable-prof enable 'prof' profiling support
1805 --enable-gprof enable 'gprof' profiling support
1806 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001807 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001808
1809Optional Packages:
1810 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1811 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1812 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy3ed852e2009-09-05 21:47:34 +00001813 --with-dmalloc use dmalloc, as in
1814 http://www.dmalloc.com/dmalloc.tar.gz
1815 --without-threads disable threads support
1816 --with-pic try to use only PIC/non-PIC objects [default=use
1817 both]
1818 --with-included-ltdl use the GNU ltdl sources included here
1819 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1820 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1821 --with-modules enable building dynamically loadable modules
1822 --with-method-prefix=PREFIX
1823 prefix MagickCore API methods
1824 --with-quantum-depth=DEPTH
1825 number of bits in a pixel quantum (default 16)
1826 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1827 memory)
1828 --with-frozenpaths freeze delegate paths
1829 --without-magick-plus-plus
1830 disable build/install of Magick++
1831 --with-perl enable build/install of PerlMagick
1832 --with-perl-options=OPTIONS
1833 options to pass on command-line when generating
1834 PerlMagick's build file
1835 --with-umem enable umem memory allocation library support
1836 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1837 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001838 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001839 --without-zlib disable ZLIB support
1840 --with-autotrace enable autotrace support
1841 --without-dps disable Display Postscript support
1842 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001843 --with-dejavu-font-dir=DIR
1844 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001845 --without-fftw disable FFTW support
1846 --without-fpx disable FlashPIX support
1847 --without-fontconfig disable fontconfig support
1848 --without-freetype disable Freetype support
1849 --without-gslib enable Ghostscript library support
1850 --with-fontpath=DIR prepend to default font search path
1851 --with-gs-font-dir=DIR Ghostscript font directory
1852 --without-gvc disable GVC support
1853 --without-jbig disable JBIG support
1854 --without-jpeg disable JPEG support
1855 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001856 --without-lcms disable lcms (v1.1X) support
1857 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001858 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001859 --without-openexr disable OpenEXR support
1860 --without-png disable PNG support
1861 --without-rsvg disable RSVG support
1862 --without-tiff disable TIFF support
1863 --with-windows-font-dir=DIR
1864 directory containing MS-Windows fonts
1865 --without-wmf disable WMF support
1866 --without-xml disable XML support
1867
1868Some influential environment variables:
1869 CC C compiler command
1870 CFLAGS C compiler flags
1871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1872 nonstandard directory <lib dir>
1873 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001874 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001875 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001876 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001877 CXX C++ compiler command
1878 CXXFLAGS C++ compiler flags
1879 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00001880 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00001881 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00001882 AUTOTRACE_CFLAGS
1883 C compiler flags for AUTOTRACE, overriding pkg-config
1884 AUTOTRACE_LIBS
1885 linker flags for AUTOTRACE, overriding pkg-config
1886 FONTCONFIG_CFLAGS
1887 C compiler flags for FONTCONFIG, overriding pkg-config
1888 FONTCONFIG_LIBS
1889 linker flags for FONTCONFIG, overriding pkg-config
1890 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1891 GVC_LIBS linker flags for GVC, overriding pkg-config
1892 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1893 LQR_LIBS linker flags for LQR, overriding pkg-config
1894 OPENEXR_CFLAGS
1895 C compiler flags for OPENEXR, overriding pkg-config
1896 OPENEXR_LIBS
1897 linker flags for OPENEXR, overriding pkg-config
1898 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1899 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1900 CAIRO_SVG_CFLAGS
1901 C compiler flags for CAIRO_SVG, overriding pkg-config
1902 CAIRO_SVG_LIBS
1903 linker flags for CAIRO_SVG, overriding pkg-config
1904
1905Use these variables to override the choices made by `configure' or to help
1906it to find libraries and programs with nonstandard names/locations.
1907
1908Report bugs to <http://www.imagemagick.org>.
1909_ACEOF
1910ac_status=$?
1911fi
1912
1913if test "$ac_init_help" = "recursive"; then
1914 # If there are subdirs, report their specific --help.
1915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1916 test -d "$ac_dir" ||
1917 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1918 continue
1919 ac_builddir=.
1920
1921case "$ac_dir" in
1922.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1923*)
1924 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1925 # A ".." for each directory in $ac_dir_suffix.
1926 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1927 case $ac_top_builddir_sub in
1928 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1929 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1930 esac ;;
1931esac
1932ac_abs_top_builddir=$ac_pwd
1933ac_abs_builddir=$ac_pwd$ac_dir_suffix
1934# for backward compatibility:
1935ac_top_builddir=$ac_top_build_prefix
1936
1937case $srcdir in
1938 .) # We are building in place.
1939 ac_srcdir=.
1940 ac_top_srcdir=$ac_top_builddir_sub
1941 ac_abs_top_srcdir=$ac_pwd ;;
1942 [\\/]* | ?:[\\/]* ) # Absolute name.
1943 ac_srcdir=$srcdir$ac_dir_suffix;
1944 ac_top_srcdir=$srcdir
1945 ac_abs_top_srcdir=$srcdir ;;
1946 *) # Relative name.
1947 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1948 ac_top_srcdir=$ac_top_build_prefix$srcdir
1949 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1950esac
1951ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1952
1953 cd "$ac_dir" || { ac_status=$?; continue; }
1954 # Check for guested configure.
1955 if test -f "$ac_srcdir/configure.gnu"; then
1956 echo &&
1957 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1958 elif test -f "$ac_srcdir/configure"; then
1959 echo &&
1960 $SHELL "$ac_srcdir/configure" --help=recursive
1961 else
1962 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1963 fi || ac_status=$?
1964 cd "$ac_pwd" || { ac_status=$?; break; }
1965 done
1966fi
1967
1968test -n "$ac_init_help" && exit $ac_status
1969if $ac_init_version; then
1970 cat <<\_ACEOF
cristyfbb4a972010-06-30 17:42:22 +00001971ImageMagick configure 6.6.3
cristycd4c5312009-11-22 01:19:08 +00001972generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00001973
cristy8b350f62009-11-15 23:12:43 +00001974Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001975This configure script is free software; the Free Software Foundation
1976gives unlimited permission to copy, distribute and modify it.
1977_ACEOF
1978 exit
1979fi
cristy8b350f62009-11-15 23:12:43 +00001980
1981## ------------------------ ##
1982## Autoconf initialization. ##
1983## ------------------------ ##
1984
1985# ac_fn_c_try_compile LINENO
1986# --------------------------
1987# Try to compile conftest.$ac_ext, and return whether this succeeded.
1988ac_fn_c_try_compile ()
1989{
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 rm -f conftest.$ac_objext
1992 if { { ac_try="$ac_compile"
1993case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996esac
1997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998$as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_compile") 2>conftest.err
2000 ac_status=$?
2001 if test -s conftest.err; then
2002 grep -v '^ *+' conftest.err >conftest.er1
2003 cat conftest.er1 >&5
2004 mv -f conftest.er1 conftest.err
2005 fi
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && {
2008 test -z "$ac_c_werror_flag" ||
2009 test ! -s conftest.err
2010 } && test -s conftest.$ac_objext; then :
2011 ac_retval=0
2012else
2013 $as_echo "$as_me: failed program was:" >&5
2014sed 's/^/| /' conftest.$ac_ext >&5
2015
2016 ac_retval=1
2017fi
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002019 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002020
2021} # ac_fn_c_try_compile
2022
cristy95646052009-11-28 23:05:30 +00002023# ac_fn_c_try_cpp LINENO
2024# ----------------------
2025# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2026ac_fn_c_try_cpp ()
2027{
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 if { { ac_try="$ac_cpp conftest.$ac_ext"
2030case "(($ac_try" in
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2033esac
2034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035$as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2037 ac_status=$?
2038 if test -s conftest.err; then
2039 grep -v '^ *+' conftest.err >conftest.er1
2040 cat conftest.er1 >&5
2041 mv -f conftest.er1 conftest.err
2042 fi
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; } >/dev/null && {
2045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2046 test ! -s conftest.err
2047 }; then :
2048 ac_retval=0
2049else
2050 $as_echo "$as_me: failed program was:" >&5
2051sed 's/^/| /' conftest.$ac_ext >&5
2052
2053 ac_retval=1
2054fi
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056 as_fn_set_status $ac_retval
2057
2058} # ac_fn_c_try_cpp
2059
cristy8b350f62009-11-15 23:12:43 +00002060# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2061# -------------------------------------------------------
2062# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2063# the include files in INCLUDES and setting the cache variable VAR
2064# accordingly.
2065ac_fn_c_check_header_mongrel ()
2066{
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070$as_echo_n "checking for $2... " >&6; }
2071if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2072 $as_echo_n "(cached) " >&6
2073fi
2074eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076$as_echo "$ac_res" >&6; }
2077else
2078 # Is the header compilable?
2079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2080$as_echo_n "checking $2 usability... " >&6; }
2081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h. */
2083$4
2084#include <$2>
2085_ACEOF
2086if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_header_compiler=yes
2088else
2089 ac_header_compiler=no
2090fi
2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2093$as_echo "$ac_header_compiler" >&6; }
2094
2095# Is the header present?
2096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2097$as_echo_n "checking $2 presence... " >&6; }
2098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099/* end confdefs.h. */
2100#include <$2>
2101_ACEOF
2102if ac_fn_c_try_cpp "$LINENO"; then :
2103 ac_header_preproc=yes
2104else
2105 ac_header_preproc=no
2106fi
2107rm -f conftest.err conftest.$ac_ext
2108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2109$as_echo "$ac_header_preproc" >&6; }
2110
2111# So? What about this header?
2112case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2113 yes:no: )
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2115$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2117$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2118 ;;
2119 no:yes:* )
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2121$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2123$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2125$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2127$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2129$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2130( cat <<\_ASBOX
2131## ----------------------------------------- ##
2132## Report this to http://www.imagemagick.org ##
2133## ----------------------------------------- ##
2134_ASBOX
2135 ) | sed "s/^/$as_me: WARNING: /" >&2
2136 ;;
2137esac
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139$as_echo_n "checking for $2... " >&6; }
2140if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2141 $as_echo_n "(cached) " >&6
2142else
2143 eval "$3=\$ac_header_compiler"
2144fi
2145eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147$as_echo "$ac_res" >&6; }
2148fi
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150
2151} # ac_fn_c_check_header_mongrel
2152
2153# ac_fn_c_try_run LINENO
2154# ----------------------
2155# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2156# that executables *can* be run.
2157ac_fn_c_try_run ()
2158{
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if { { ac_try="$ac_link"
2161case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164esac
2165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166$as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_link") 2>&5
2168 ac_status=$?
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2171 { { case "(($ac_try" in
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2174esac
2175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176$as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_try") 2>&5
2178 ac_status=$?
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; }; }; then :
2181 ac_retval=0
2182else
2183 $as_echo "$as_me: program exited with status $ac_status" >&5
2184 $as_echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 ac_retval=$ac_status
2188fi
2189 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2190 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002191 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002192
2193} # ac_fn_c_try_run
2194
2195# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2196# -------------------------------------------------------
2197# Tests whether HEADER exists and can be compiled using the include files in
2198# INCLUDES, setting the cache variable VAR accordingly.
2199ac_fn_c_check_header_compile ()
2200{
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203$as_echo_n "checking for $2... " >&6; }
2204if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2205 $as_echo_n "(cached) " >&6
2206else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h. */
2209$4
2210#include <$2>
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 eval "$3=yes"
2214else
2215 eval "$3=no"
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218fi
2219eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221$as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223
2224} # ac_fn_c_check_header_compile
2225
cristya0b81c32010-01-22 02:54:33 +00002226# ac_fn_cxx_try_compile LINENO
2227# ----------------------------
2228# Try to compile conftest.$ac_ext, and return whether this succeeded.
2229ac_fn_cxx_try_compile ()
2230{
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 rm -f conftest.$ac_objext
2233 if { { ac_try="$ac_compile"
2234case "(($ac_try" in
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2237esac
2238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239$as_echo "$ac_try_echo"; } >&5
2240 (eval "$ac_compile") 2>conftest.err
2241 ac_status=$?
2242 if test -s conftest.err; then
2243 grep -v '^ *+' conftest.err >conftest.er1
2244 cat conftest.er1 >&5
2245 mv -f conftest.er1 conftest.err
2246 fi
2247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248 test $ac_status = 0; } && {
2249 test -z "$ac_cxx_werror_flag" ||
2250 test ! -s conftest.err
2251 } && test -s conftest.$ac_objext; then :
2252 ac_retval=0
2253else
2254 $as_echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257 ac_retval=1
2258fi
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2260 as_fn_set_status $ac_retval
2261
2262} # ac_fn_cxx_try_compile
2263
cristy8b350f62009-11-15 23:12:43 +00002264# ac_fn_c_try_link LINENO
2265# -----------------------
2266# Try to link conftest.$ac_ext, and return whether this succeeded.
2267ac_fn_c_try_link ()
2268{
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 rm -f conftest.$ac_objext conftest$ac_exeext
2271 if { { ac_try="$ac_link"
2272case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2275esac
2276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2277$as_echo "$ac_try_echo"; } >&5
2278 (eval "$ac_link") 2>conftest.err
2279 ac_status=$?
2280 if test -s conftest.err; then
2281 grep -v '^ *+' conftest.err >conftest.er1
2282 cat conftest.er1 >&5
2283 mv -f conftest.er1 conftest.err
2284 fi
2285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2286 test $ac_status = 0; } && {
2287 test -z "$ac_c_werror_flag" ||
2288 test ! -s conftest.err
2289 } && test -s conftest$ac_exeext && {
2290 test "$cross_compiling" = yes ||
2291 $as_test_x conftest$ac_exeext
2292 }; then :
2293 ac_retval=0
2294else
2295 $as_echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 ac_retval=1
2299fi
2300 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2301 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2302 # interfere with the next link command; also delete a directory that is
2303 # left behind by Apple's compiler. We do this before executing the actions.
2304 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002306 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002307
2308} # ac_fn_c_try_link
2309
2310# ac_fn_c_check_func LINENO FUNC VAR
2311# ----------------------------------
2312# Tests whether FUNC exists, setting the cache variable VAR accordingly
2313ac_fn_c_check_func ()
2314{
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317$as_echo_n "checking for $2... " >&6; }
2318if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2319 $as_echo_n "(cached) " >&6
2320else
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h. */
2323/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2325#define $2 innocuous_$2
2326
2327/* System header to define __stub macros and hopefully few prototypes,
2328 which can conflict with char $2 (); below.
2329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2330 <limits.h> exists even on freestanding compilers. */
2331
2332#ifdef __STDC__
2333# include <limits.h>
2334#else
2335# include <assert.h>
2336#endif
2337
2338#undef $2
2339
2340/* Override any GCC internal prototype to avoid an error.
2341 Use char because int might match the return type of a GCC
2342 builtin and then its argument prototype would still apply. */
2343#ifdef __cplusplus
2344extern "C"
2345#endif
2346char $2 ();
2347/* The GNU C library defines this for functions which it implements
2348 to always fail with ENOSYS. Some functions are actually named
2349 something starting with __ and the normal name is an alias. */
2350#if defined __stub_$2 || defined __stub___$2
2351choke me
2352#endif
2353
2354int
2355main ()
2356{
2357return $2 ();
2358 ;
2359 return 0;
2360}
2361_ACEOF
2362if ac_fn_c_try_link "$LINENO"; then :
2363 eval "$3=yes"
2364else
2365 eval "$3=no"
2366fi
2367rm -f core conftest.err conftest.$ac_objext \
2368 conftest$ac_exeext conftest.$ac_ext
2369fi
2370eval ac_res=\$$3
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372$as_echo "$ac_res" >&6; }
2373 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2374
2375} # ac_fn_c_check_func
2376
2377# ac_fn_cxx_try_cpp LINENO
2378# ------------------------
2379# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2380ac_fn_cxx_try_cpp ()
2381{
2382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383 if { { ac_try="$ac_cpp conftest.$ac_ext"
2384case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387esac
2388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2389$as_echo "$ac_try_echo"; } >&5
2390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2391 ac_status=$?
2392 if test -s conftest.err; then
2393 grep -v '^ *+' conftest.err >conftest.er1
2394 cat conftest.er1 >&5
2395 mv -f conftest.er1 conftest.err
2396 fi
2397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398 test $ac_status = 0; } >/dev/null && {
2399 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2400 test ! -s conftest.err
2401 }; then :
2402 ac_retval=0
2403else
2404 $as_echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_retval=1
2408fi
2409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002410 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002411
2412} # ac_fn_cxx_try_cpp
2413
2414# ac_fn_cxx_try_link LINENO
2415# -------------------------
2416# Try to link conftest.$ac_ext, and return whether this succeeded.
2417ac_fn_cxx_try_link ()
2418{
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 rm -f conftest.$ac_objext conftest$ac_exeext
2421 if { { ac_try="$ac_link"
2422case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2425esac
2426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427$as_echo "$ac_try_echo"; } >&5
2428 (eval "$ac_link") 2>conftest.err
2429 ac_status=$?
2430 if test -s conftest.err; then
2431 grep -v '^ *+' conftest.err >conftest.er1
2432 cat conftest.er1 >&5
2433 mv -f conftest.er1 conftest.err
2434 fi
2435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2436 test $ac_status = 0; } && {
2437 test -z "$ac_cxx_werror_flag" ||
2438 test ! -s conftest.err
2439 } && test -s conftest$ac_exeext && {
2440 test "$cross_compiling" = yes ||
2441 $as_test_x conftest$ac_exeext
2442 }; then :
2443 ac_retval=0
2444else
2445 $as_echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 ac_retval=1
2449fi
2450 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2451 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2452 # interfere with the next link command; also delete a directory that is
2453 # left behind by Apple's compiler. We do this before executing the actions.
2454 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002456 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002457
2458} # ac_fn_cxx_try_link
2459
2460# ac_fn_c_check_decl LINENO SYMBOL VAR
2461# ------------------------------------
2462# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2463ac_fn_c_check_decl ()
2464{
2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2467$as_echo_n "checking whether $2 is declared... " >&6; }
2468if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2469 $as_echo_n "(cached) " >&6
2470else
2471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472/* end confdefs.h. */
2473$4
2474int
2475main ()
2476{
2477#ifndef $2
2478 (void) $2;
2479#endif
2480
2481 ;
2482 return 0;
2483}
2484_ACEOF
2485if ac_fn_c_try_compile "$LINENO"; then :
2486 eval "$3=yes"
2487else
2488 eval "$3=no"
2489fi
2490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491fi
2492eval ac_res=\$$3
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2494$as_echo "$ac_res" >&6; }
2495 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2496
2497} # ac_fn_c_check_decl
2498
2499# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2500# -------------------------------------------
2501# Tests whether TYPE exists after having included INCLUDES, setting cache
2502# variable VAR accordingly.
2503ac_fn_c_check_type ()
2504{
2505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2507$as_echo_n "checking for $2... " >&6; }
2508if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2509 $as_echo_n "(cached) " >&6
2510else
2511 eval "$3=no"
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513/* end confdefs.h. */
2514$4
2515int
2516main ()
2517{
2518if (sizeof ($2))
2519 return 0;
2520 ;
2521 return 0;
2522}
2523_ACEOF
2524if ac_fn_c_try_compile "$LINENO"; then :
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526/* end confdefs.h. */
2527$4
2528int
2529main ()
2530{
2531if (sizeof (($2)))
2532 return 0;
2533 ;
2534 return 0;
2535}
2536_ACEOF
2537if ac_fn_c_try_compile "$LINENO"; then :
2538
2539else
2540 eval "$3=yes"
2541fi
2542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543fi
2544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545fi
2546eval ac_res=\$$3
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2548$as_echo "$ac_res" >&6; }
2549 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2550
2551} # ac_fn_c_check_type
2552
cristy92703d82010-04-26 00:18:18 +00002553# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2554# ----------------------------------------------------
2555# Tries to find if the field MEMBER exists in type AGGR, after including
2556# INCLUDES, setting cache variable VAR accordingly.
2557ac_fn_c_check_member ()
2558{
2559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2561$as_echo_n "checking for $2.$3... " >&6; }
2562if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2563 $as_echo_n "(cached) " >&6
2564else
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566/* end confdefs.h. */
2567$5
2568int
2569main ()
2570{
2571static $2 ac_aggr;
2572if (ac_aggr.$3)
2573return 0;
2574 ;
2575 return 0;
2576}
2577_ACEOF
2578if ac_fn_c_try_compile "$LINENO"; then :
2579 eval "$4=yes"
2580else
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582/* end confdefs.h. */
2583$5
2584int
2585main ()
2586{
2587static $2 ac_aggr;
2588if (sizeof ac_aggr.$3)
2589return 0;
2590 ;
2591 return 0;
2592}
2593_ACEOF
2594if ac_fn_c_try_compile "$LINENO"; then :
2595 eval "$4=yes"
2596else
2597 eval "$4=no"
2598fi
2599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600fi
2601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602fi
2603eval ac_res=\$$4
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605$as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2607
2608} # ac_fn_c_check_member
2609
cristy8b350f62009-11-15 23:12:43 +00002610# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2611# --------------------------------------------
2612# Tries to find the compile-time value of EXPR in a program that includes
2613# INCLUDES, setting VAR accordingly. Returns whether the value could be
2614# computed
2615ac_fn_c_compute_int ()
2616{
2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618 if test "$cross_compiling" = yes; then
2619 # Depending upon the size, compute the lo and hi bounds.
2620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621/* end confdefs.h. */
2622$4
2623int
2624main ()
2625{
2626static int test_array [1 - 2 * !(($2) >= 0)];
2627test_array [0] = 0
2628
2629 ;
2630 return 0;
2631}
2632_ACEOF
2633if ac_fn_c_try_compile "$LINENO"; then :
2634 ac_lo=0 ac_mid=0
2635 while :; do
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637/* end confdefs.h. */
2638$4
2639int
2640main ()
2641{
2642static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2643test_array [0] = 0
2644
2645 ;
2646 return 0;
2647}
2648_ACEOF
2649if ac_fn_c_try_compile "$LINENO"; then :
2650 ac_hi=$ac_mid; break
2651else
2652 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2653 if test $ac_lo -le $ac_mid; then
2654 ac_lo= ac_hi=
2655 break
2656 fi
2657 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2658fi
2659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660 done
2661else
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663/* end confdefs.h. */
2664$4
2665int
2666main ()
2667{
2668static int test_array [1 - 2 * !(($2) < 0)];
2669test_array [0] = 0
2670
2671 ;
2672 return 0;
2673}
2674_ACEOF
2675if ac_fn_c_try_compile "$LINENO"; then :
2676 ac_hi=-1 ac_mid=-1
2677 while :; do
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679/* end confdefs.h. */
2680$4
2681int
2682main ()
2683{
2684static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2685test_array [0] = 0
2686
2687 ;
2688 return 0;
2689}
2690_ACEOF
2691if ac_fn_c_try_compile "$LINENO"; then :
2692 ac_lo=$ac_mid; break
2693else
2694 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2695 if test $ac_mid -le $ac_hi; then
2696 ac_lo= ac_hi=
2697 break
2698 fi
2699 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2700fi
2701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 done
2703else
2704 ac_lo= ac_hi=
2705fi
2706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707fi
2708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709# Binary search between lo and hi bounds.
2710while test "x$ac_lo" != "x$ac_hi"; do
2711 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713/* end confdefs.h. */
2714$4
2715int
2716main ()
2717{
2718static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2719test_array [0] = 0
2720
2721 ;
2722 return 0;
2723}
2724_ACEOF
2725if ac_fn_c_try_compile "$LINENO"; then :
2726 ac_hi=$ac_mid
2727else
2728 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2729fi
2730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731done
2732case $ac_lo in #((
2733?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2734'') ac_retval=1 ;;
2735esac
2736 else
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738/* end confdefs.h. */
2739$4
2740static long int longval () { return $2; }
2741static unsigned long int ulongval () { return $2; }
2742#include <stdio.h>
2743#include <stdlib.h>
2744int
2745main ()
2746{
2747
2748 FILE *f = fopen ("conftest.val", "w");
2749 if (! f)
2750 return 1;
2751 if (($2) < 0)
2752 {
2753 long int i = longval ();
2754 if (i != ($2))
2755 return 1;
2756 fprintf (f, "%ld", i);
2757 }
2758 else
2759 {
2760 unsigned long int i = ulongval ();
2761 if (i != ($2))
2762 return 1;
2763 fprintf (f, "%lu", i);
2764 }
2765 /* Do not output a trailing newline, as this causes \r\n confusion
2766 on some platforms. */
2767 return ferror (f) || fclose (f) != 0;
2768
2769 ;
2770 return 0;
2771}
2772_ACEOF
2773if ac_fn_c_try_run "$LINENO"; then :
2774 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2775else
2776 ac_retval=1
2777fi
2778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2779 conftest.$ac_objext conftest.beam conftest.$ac_ext
2780rm -f conftest.val
2781
2782 fi
2783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002784 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002785
2786} # ac_fn_c_compute_int
2787
2788# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2789# ---------------------------------------------------------
2790# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2791# the include files in INCLUDES and setting the cache variable VAR
2792# accordingly.
2793ac_fn_cxx_check_header_mongrel ()
2794{
2795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2796 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2798$as_echo_n "checking for $2... " >&6; }
2799if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2800 $as_echo_n "(cached) " >&6
2801fi
2802eval ac_res=\$$3
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2804$as_echo "$ac_res" >&6; }
2805else
2806 # Is the header compilable?
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2808$as_echo_n "checking $2 usability... " >&6; }
2809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2810/* end confdefs.h. */
2811$4
2812#include <$2>
2813_ACEOF
2814if ac_fn_cxx_try_compile "$LINENO"; then :
2815 ac_header_compiler=yes
2816else
2817 ac_header_compiler=no
2818fi
2819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2821$as_echo "$ac_header_compiler" >&6; }
2822
2823# Is the header present?
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2825$as_echo_n "checking $2 presence... " >&6; }
2826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827/* end confdefs.h. */
2828#include <$2>
2829_ACEOF
2830if ac_fn_cxx_try_cpp "$LINENO"; then :
2831 ac_header_preproc=yes
2832else
2833 ac_header_preproc=no
2834fi
2835rm -f conftest.err conftest.$ac_ext
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2837$as_echo "$ac_header_preproc" >&6; }
2838
2839# So? What about this header?
2840case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2841 yes:no: )
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2843$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2845$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2846 ;;
2847 no:yes:* )
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2849$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2851$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2853$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2855$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2858( cat <<\_ASBOX
2859## ----------------------------------------- ##
2860## Report this to http://www.imagemagick.org ##
2861## ----------------------------------------- ##
2862_ASBOX
2863 ) | sed "s/^/$as_me: WARNING: /" >&2
2864 ;;
2865esac
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2867$as_echo_n "checking for $2... " >&6; }
2868if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2869 $as_echo_n "(cached) " >&6
2870else
2871 eval "$3=\$ac_header_compiler"
2872fi
2873eval ac_res=\$$3
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2875$as_echo "$ac_res" >&6; }
2876fi
2877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2878
2879} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002880cat >config.log <<_ACEOF
2881This file contains any messages produced by compilers while
2882running configure, to aid debugging if configure makes a mistake.
2883
cristyfbb4a972010-06-30 17:42:22 +00002884It was created by ImageMagick $as_me 6.6.3, which was
cristycd4c5312009-11-22 01:19:08 +00002885generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002886
2887 $ $0 $@
2888
2889_ACEOF
2890exec 5>>config.log
2891{
2892cat <<_ASUNAME
2893## --------- ##
2894## Platform. ##
2895## --------- ##
2896
2897hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2898uname -m = `(uname -m) 2>/dev/null || echo unknown`
2899uname -r = `(uname -r) 2>/dev/null || echo unknown`
2900uname -s = `(uname -s) 2>/dev/null || echo unknown`
2901uname -v = `(uname -v) 2>/dev/null || echo unknown`
2902
2903/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2904/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2905
2906/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2907/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2908/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2909/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2910/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2911/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2912/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2913
2914_ASUNAME
2915
2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917for as_dir in $PATH
2918do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002921 $as_echo "PATH: $as_dir"
2922 done
cristy3ed852e2009-09-05 21:47:34 +00002923IFS=$as_save_IFS
2924
2925} >&5
2926
2927cat >&5 <<_ACEOF
2928
2929
2930## ----------- ##
2931## Core tests. ##
2932## ----------- ##
2933
2934_ACEOF
2935
2936
2937# Keep a trace of the command line.
2938# Strip out --no-create and --no-recursion so they do not pile up.
2939# Strip out --silent because we don't want to record it for future runs.
2940# Also quote any args containing shell meta-characters.
2941# Make two passes to allow for proper duplicate-argument suppression.
2942ac_configure_args=
2943ac_configure_args0=
2944ac_configure_args1=
2945ac_must_keep_next=false
2946for ac_pass in 1 2
2947do
2948 for ac_arg
2949 do
2950 case $ac_arg in
2951 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2953 | -silent | --silent | --silen | --sile | --sil)
2954 continue ;;
2955 *\'*)
2956 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2957 esac
2958 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002959 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002960 2)
cristy8b350f62009-11-15 23:12:43 +00002961 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002962 if test $ac_must_keep_next = true; then
2963 ac_must_keep_next=false # Got value, back to normal.
2964 else
2965 case $ac_arg in
2966 *=* | --config-cache | -C | -disable-* | --disable-* \
2967 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2968 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2969 | -with-* | --with-* | -without-* | --without-* | --x)
2970 case "$ac_configure_args0 " in
2971 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2972 esac
2973 ;;
2974 -* ) ac_must_keep_next=true ;;
2975 esac
2976 fi
cristy8b350f62009-11-15 23:12:43 +00002977 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002978 ;;
2979 esac
2980 done
2981done
cristy8b350f62009-11-15 23:12:43 +00002982{ ac_configure_args0=; unset ac_configure_args0;}
2983{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00002984
2985# When interrupted or exit'd, cleanup temporary files, and complete
2986# config.log. We remove comments because anyway the quotes in there
2987# would cause problems or look ugly.
2988# WARNING: Use '\'' to represent an apostrophe within the trap.
2989# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2990trap 'exit_status=$?
2991 # Save into config.log some information that might help in debugging.
2992 {
2993 echo
2994
2995 cat <<\_ASBOX
2996## ---------------- ##
2997## Cache variables. ##
2998## ---------------- ##
2999_ASBOX
3000 echo
3001 # The following way of writing the cache mishandles newlines in values,
3002(
3003 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3004 eval ac_val=\$$ac_var
3005 case $ac_val in #(
3006 *${as_nl}*)
3007 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003008 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003009$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3010 esac
3011 case $ac_var in #(
3012 _ | IFS | as_nl) ;; #(
3013 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003014 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003015 esac ;;
3016 esac
3017 done
3018 (set) 2>&1 |
3019 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3020 *${as_nl}ac_space=\ *)
3021 sed -n \
3022 "s/'\''/'\''\\\\'\'''\''/g;
3023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3024 ;; #(
3025 *)
3026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3027 ;;
3028 esac |
3029 sort
3030)
3031 echo
3032
3033 cat <<\_ASBOX
3034## ----------------- ##
3035## Output variables. ##
3036## ----------------- ##
3037_ASBOX
3038 echo
3039 for ac_var in $ac_subst_vars
3040 do
3041 eval ac_val=\$$ac_var
3042 case $ac_val in
3043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3044 esac
3045 $as_echo "$ac_var='\''$ac_val'\''"
3046 done | sort
3047 echo
3048
3049 if test -n "$ac_subst_files"; then
3050 cat <<\_ASBOX
3051## ------------------- ##
3052## File substitutions. ##
3053## ------------------- ##
3054_ASBOX
3055 echo
3056 for ac_var in $ac_subst_files
3057 do
3058 eval ac_val=\$$ac_var
3059 case $ac_val in
3060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3061 esac
3062 $as_echo "$ac_var='\''$ac_val'\''"
3063 done | sort
3064 echo
3065 fi
3066
3067 if test -s confdefs.h; then
3068 cat <<\_ASBOX
3069## ----------- ##
3070## confdefs.h. ##
3071## ----------- ##
3072_ASBOX
3073 echo
3074 cat confdefs.h
3075 echo
3076 fi
3077 test "$ac_signal" != 0 &&
3078 $as_echo "$as_me: caught signal $ac_signal"
3079 $as_echo "$as_me: exit $exit_status"
3080 } >&5
3081 rm -f core *.core core.conftest.* &&
3082 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3083 exit $exit_status
3084' 0
3085for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003086 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003087done
3088ac_signal=0
3089
3090# confdefs.h avoids OS command line length limits that DEFS can exceed.
3091rm -f -r conftest* confdefs.h
3092
cristy8b350f62009-11-15 23:12:43 +00003093$as_echo "/* confdefs.h */" > confdefs.h
3094
cristy3ed852e2009-09-05 21:47:34 +00003095# Predefined preprocessor variables.
3096
3097cat >>confdefs.h <<_ACEOF
3098#define PACKAGE_NAME "$PACKAGE_NAME"
3099_ACEOF
3100
cristy3ed852e2009-09-05 21:47:34 +00003101cat >>confdefs.h <<_ACEOF
3102#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3103_ACEOF
3104
cristy3ed852e2009-09-05 21:47:34 +00003105cat >>confdefs.h <<_ACEOF
3106#define PACKAGE_VERSION "$PACKAGE_VERSION"
3107_ACEOF
3108
cristy3ed852e2009-09-05 21:47:34 +00003109cat >>confdefs.h <<_ACEOF
3110#define PACKAGE_STRING "$PACKAGE_STRING"
3111_ACEOF
3112
cristy3ed852e2009-09-05 21:47:34 +00003113cat >>confdefs.h <<_ACEOF
3114#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3115_ACEOF
3116
cristy8b350f62009-11-15 23:12:43 +00003117cat >>confdefs.h <<_ACEOF
3118#define PACKAGE_URL "$PACKAGE_URL"
3119_ACEOF
3120
cristy3ed852e2009-09-05 21:47:34 +00003121
3122# Let the site file select an alternate cache file if it wants to.
3123# Prefer an explicitly selected file to automatically selected ones.
3124ac_site_file1=NONE
3125ac_site_file2=NONE
3126if test -n "$CONFIG_SITE"; then
3127 ac_site_file1=$CONFIG_SITE
3128elif test "x$prefix" != xNONE; then
3129 ac_site_file1=$prefix/share/config.site
3130 ac_site_file2=$prefix/etc/config.site
3131else
3132 ac_site_file1=$ac_default_prefix/share/config.site
3133 ac_site_file2=$ac_default_prefix/etc/config.site
3134fi
3135for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3136do
3137 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003138 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003140$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3141 sed 's/^/| /' "$ac_site_file" >&5
3142 . "$ac_site_file"
3143 fi
3144done
3145
3146if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003147 # Some versions of bash will fail to source /dev/null (special files
3148 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3149 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003151$as_echo "$as_me: loading cache $cache_file" >&6;}
3152 case $cache_file in
3153 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3154 *) . "./$cache_file";;
3155 esac
3156 fi
3157else
cristy8b350f62009-11-15 23:12:43 +00003158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003159$as_echo "$as_me: creating cache $cache_file" >&6;}
3160 >$cache_file
3161fi
3162
cristycd4c5312009-11-22 01:19:08 +00003163as_fn_append ac_header_list " stdlib.h"
3164as_fn_append ac_header_list " unistd.h"
3165as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003166# Check that the precious variables saved in the cache have kept the same
3167# value.
3168ac_cache_corrupted=false
3169for ac_var in $ac_precious_vars; do
3170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3171 eval ac_new_set=\$ac_env_${ac_var}_set
3172 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3173 eval ac_new_val=\$ac_env_${ac_var}_value
3174 case $ac_old_set,$ac_new_set in
3175 set,)
cristy8b350f62009-11-15 23:12:43 +00003176 { $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 +00003177$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3178 ac_cache_corrupted=: ;;
3179 ,set)
cristy8b350f62009-11-15 23:12:43 +00003180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003181$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3182 ac_cache_corrupted=: ;;
3183 ,);;
3184 *)
3185 if test "x$ac_old_val" != "x$ac_new_val"; then
3186 # differences in whitespace do not lead to failure.
3187 ac_old_val_w=`echo x $ac_old_val`
3188 ac_new_val_w=`echo x $ac_new_val`
3189 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003191$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3192 ac_cache_corrupted=:
3193 else
cristy8b350f62009-11-15 23:12:43 +00003194 { $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 +00003195$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3196 eval $ac_var=\$ac_old_val
3197 fi
cristy8b350f62009-11-15 23:12:43 +00003198 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003199$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003200 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003201$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3202 fi;;
3203 esac
3204 # Pass precious variables to config.status.
3205 if test "$ac_new_set" = set; then
3206 case $ac_new_val in
3207 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3208 *) ac_arg=$ac_var=$ac_new_val ;;
3209 esac
3210 case " $ac_configure_args " in
3211 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003212 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003213 esac
3214 fi
3215done
3216if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003220$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003221 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003222fi
cristy8b350f62009-11-15 23:12:43 +00003223## -------------------- ##
3224## Main body of script. ##
3225## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003226
3227ac_ext=c
3228ac_cpp='$CPP $CPPFLAGS'
3229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232
3233
3234
3235ac_aux_dir=
3236for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003237 for ac_t in install-sh install.sh shtool; do
3238 if test -f "$ac_dir/$ac_t"; then
3239 ac_aux_dir=$ac_dir
3240 ac_install_sh="$ac_aux_dir/$ac_t -c"
3241 break 2
3242 fi
3243 done
cristy3ed852e2009-09-05 21:47:34 +00003244done
3245if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003246 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003247fi
3248
3249# These three variables are undocumented and unsupported,
3250# and are intended to be withdrawn in a future Autoconf release.
3251# They can cause serious problems if a builder's source tree is in a directory
3252# whose full name contains unusual characters.
3253ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3254ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3255ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3256
3257
3258
3259
3260ac_config_headers="$ac_config_headers config/config.h"
3261
3262ac_config_commands="$ac_config_commands magick/magick-config.h"
3263
cristy430a7312010-01-21 20:44:04 +00003264ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003265
3266
3267#
3268# Save initial user-tunable values
3269#
3270USER_LIBS=$LIBS
3271for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3272 eval isset=\${$var+set}
3273 if test "$isset" = 'set'; then
3274 eval val=$`echo $var`
3275 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3276 fi
3277done
3278
3279
3280CONFIGURE_ARGS="$0 ${ac_configure_args}"
3281
3282
3283# Source file containing package/library versioning information.
3284. ${srcdir}/version.sh
3285
cristy15a88782010-01-31 23:24:49 +00003286echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003287# Make sure we can run config.sub.
3288$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003289 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003290
cristy8b350f62009-11-15 23:12:43 +00003291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003292$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003293if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003294 $as_echo_n "(cached) " >&6
3295else
3296 ac_build_alias=$build_alias
3297test "x$ac_build_alias" = x &&
3298 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3299test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003300 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003301ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003302 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003303
3304fi
cristy8b350f62009-11-15 23:12:43 +00003305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003306$as_echo "$ac_cv_build" >&6; }
3307case $ac_cv_build in
3308*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003309*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003310esac
3311build=$ac_cv_build
3312ac_save_IFS=$IFS; IFS='-'
3313set x $ac_cv_build
3314shift
3315build_cpu=$1
3316build_vendor=$2
3317shift; shift
3318# Remember, the first character of IFS is used to create $*,
3319# except with old shells:
3320build_os=$*
3321IFS=$ac_save_IFS
3322case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3323
3324
cristy8b350f62009-11-15 23:12:43 +00003325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003326$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003327if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003328 $as_echo_n "(cached) " >&6
3329else
3330 if test "x$host_alias" = x; then
3331 ac_cv_host=$ac_cv_build
3332else
3333 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003334 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003335fi
3336
3337fi
cristy8b350f62009-11-15 23:12:43 +00003338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003339$as_echo "$ac_cv_host" >&6; }
3340case $ac_cv_host in
3341*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003342*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003343esac
3344host=$ac_cv_host
3345ac_save_IFS=$IFS; IFS='-'
3346set x $ac_cv_host
3347shift
3348host_cpu=$1
3349host_vendor=$2
3350shift; shift
3351# Remember, the first character of IFS is used to create $*,
3352# except with old shells:
3353host_os=$*
3354IFS=$ac_save_IFS
3355case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3356
3357
cristy8b350f62009-11-15 23:12:43 +00003358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003359$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003360if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003361 $as_echo_n "(cached) " >&6
3362else
3363 if test "x$target_alias" = x; then
3364 ac_cv_target=$ac_cv_host
3365else
3366 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003367 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003368fi
3369
3370fi
cristy8b350f62009-11-15 23:12:43 +00003371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003372$as_echo "$ac_cv_target" >&6; }
3373case $ac_cv_target in
3374*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003375*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003376esac
3377target=$ac_cv_target
3378ac_save_IFS=$IFS; IFS='-'
3379set x $ac_cv_target
3380shift
3381target_cpu=$1
3382target_vendor=$2
3383shift; shift
3384# Remember, the first character of IFS is used to create $*,
3385# except with old shells:
3386target_os=$*
3387IFS=$ac_save_IFS
3388case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3389
3390
3391# The aliases save the names the user supplied, while $host etc.
3392# will get canonicalized.
3393test -n "$target_alias" &&
3394 test "$program_prefix$program_suffix$program_transform_name" = \
3395 NONENONEs,x,x, &&
3396 program_prefix=${target_alias}-
3397
cristy837d6dc2010-02-27 01:16:57 +00003398
3399
3400
3401
cristy3225a072010-04-17 01:47:28 +00003402MAGICK_TARGET_CPU=$target_cpu
3403
3404
3405MAGICK_TARGET_VENDOR=$target_vendor
3406
3407
3408MAGICK_TARGET_OS=$target_os
3409
3410
cristy3ed852e2009-09-05 21:47:34 +00003411# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003412MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3413
3414MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3415
cristy3ed852e2009-09-05 21:47:34 +00003416
3417
3418# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003420$as_echo_n "checking whether build environment is sane... " >&6; }
3421# Just in case
3422sleep 1
3423echo timestamp > conftest.file
3424# Reject unsafe characters in $srcdir or the absolute working directory
3425# name. Accept space and tab only in the latter.
3426am_lf='
3427'
3428case `pwd` in
3429 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003430 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003431esac
3432case $srcdir in
3433 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003434 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003435esac
3436
3437# Do `set' in a subshell so we don't clobber the current shell's
3438# arguments. Must try -L first in case configure is actually a
3439# symlink; some systems play weird games with the mod time of symlinks
3440# (eg FreeBSD returns the mod time of the symlink's containing
3441# directory).
3442if (
3443 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3444 if test "$*" = "X"; then
3445 # -L didn't work.
3446 set X `ls -t "$srcdir/configure" conftest.file`
3447 fi
3448 rm -f conftest.file
3449 if test "$*" != "X $srcdir/configure conftest.file" \
3450 && test "$*" != "X conftest.file $srcdir/configure"; then
3451
3452 # If neither matched, then we have a broken ls. This can happen
3453 # if, for instance, CONFIG_SHELL is bash and it inherits a
3454 # broken ls alias from the environment. This has actually
3455 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003456 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3457alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003458 fi
3459
3460 test "$2" = conftest.file
3461 )
3462then
3463 # Ok.
3464 :
3465else
cristy8b350f62009-11-15 23:12:43 +00003466 as_fn_error "newly created file is older than distributed files!
3467Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003468fi
cristy8b350f62009-11-15 23:12:43 +00003469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003470$as_echo "yes" >&6; }
3471
3472am__api_version='1.11'
3473
3474# Find a good install program. We prefer a C program (faster),
3475# so one script is as good as another. But avoid the broken or
3476# incompatible versions:
3477# SysV /etc/install, /usr/sbin/install
3478# SunOS /usr/etc/install
3479# IRIX /sbin/install
3480# AIX /bin/install
3481# AmigaOS /C/install, which installs bootblocks on floppy discs
3482# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3483# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3484# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3485# OS/2's system install, which has a completely different semantic
3486# ./install, which can be erroneously created by make from ./install.sh.
3487# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003489$as_echo_n "checking for a BSD-compatible install... " >&6; }
3490if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003491if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003492 $as_echo_n "(cached) " >&6
3493else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495for as_dir in $PATH
3496do
3497 IFS=$as_save_IFS
3498 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003499 # Account for people who put trailing slashes in PATH elements.
3500case $as_dir/ in #((
3501 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003502 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003503 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003504 /usr/ucb/* ) ;;
3505 *)
3506 # OSF1 and SCO ODT 3.0 have their own names for install.
3507 # Don't use installbsd from OSF since it installs stuff as root
3508 # by default.
3509 for ac_prog in ginstall scoinst install; do
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3512 if test $ac_prog = install &&
3513 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3514 # AIX install. It has an incompatible calling convention.
3515 :
3516 elif test $ac_prog = install &&
3517 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3518 # program-specific install script used by HP pwplus--don't use.
3519 :
3520 else
3521 rm -rf conftest.one conftest.two conftest.dir
3522 echo one > conftest.one
3523 echo two > conftest.two
3524 mkdir conftest.dir
3525 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3526 test -s conftest.one && test -s conftest.two &&
3527 test -s conftest.dir/conftest.one &&
3528 test -s conftest.dir/conftest.two
3529 then
3530 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3531 break 3
3532 fi
3533 fi
3534 fi
3535 done
3536 done
3537 ;;
3538esac
3539
cristy8b350f62009-11-15 23:12:43 +00003540 done
cristy3ed852e2009-09-05 21:47:34 +00003541IFS=$as_save_IFS
3542
3543rm -rf conftest.one conftest.two conftest.dir
3544
3545fi
3546 if test "${ac_cv_path_install+set}" = set; then
3547 INSTALL=$ac_cv_path_install
3548 else
3549 # As a last resort, use the slow shell script. Don't cache a
3550 # value for INSTALL within a source directory, because that will
3551 # break other packages using the cache if that directory is
3552 # removed, or if the value is a relative name.
3553 INSTALL=$ac_install_sh
3554 fi
3555fi
cristy8b350f62009-11-15 23:12:43 +00003556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003557$as_echo "$INSTALL" >&6; }
3558
3559# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3560# It thinks the first close brace ends the variable substitution.
3561test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3562
3563test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3564
3565test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3566
3567test "$program_prefix" != NONE &&
3568 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3569# Use a double $ so make ignores it.
3570test "$program_suffix" != NONE &&
3571 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3572# Double any \ or $.
3573# By default was `s,x,x', remove it if useless.
3574ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3575program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3576
3577# expand $ac_aux_dir to an absolute path
3578am_aux_dir=`cd $ac_aux_dir && pwd`
3579
3580if test x"${MISSING+set}" != xset; then
3581 case $am_aux_dir in
3582 *\ * | *\ *)
3583 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3584 *)
3585 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3586 esac
3587fi
3588# Use eval to expand $SHELL
3589if eval "$MISSING --run true"; then
3590 am_missing_run="$MISSING --run "
3591else
3592 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003594$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3595fi
3596
3597if test x"${install_sh}" != xset; then
3598 case $am_aux_dir in
3599 *\ * | *\ *)
3600 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3601 *)
3602 install_sh="\${SHELL} $am_aux_dir/install-sh"
3603 esac
3604fi
3605
3606# Installed binaries are usually stripped using `strip' when the user
3607# run `make install-strip'. However `strip' might not be the right
3608# tool to use in cross-compilation environments, therefore Automake
3609# will honor the `STRIP' environment variable to overrule this program.
3610if test "$cross_compiling" != no; then
3611 if test -n "$ac_tool_prefix"; then
3612 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3613set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003615$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003616if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003617 $as_echo_n "(cached) " >&6
3618else
3619 if test -n "$STRIP"; then
3620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3621else
3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623for as_dir in $PATH
3624do
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003627 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003631 break 2
3632 fi
3633done
cristy8b350f62009-11-15 23:12:43 +00003634 done
cristy3ed852e2009-09-05 21:47:34 +00003635IFS=$as_save_IFS
3636
3637fi
3638fi
3639STRIP=$ac_cv_prog_STRIP
3640if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003642$as_echo "$STRIP" >&6; }
3643else
cristy8b350f62009-11-15 23:12:43 +00003644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003645$as_echo "no" >&6; }
3646fi
3647
3648
3649fi
3650if test -z "$ac_cv_prog_STRIP"; then
3651 ac_ct_STRIP=$STRIP
3652 # Extract the first word of "strip", so it can be a program name with args.
3653set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003655$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003656if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003657 $as_echo_n "(cached) " >&6
3658else
3659 if test -n "$ac_ct_STRIP"; then
3660 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3661else
3662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH
3664do
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003667 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003671 break 2
3672 fi
3673done
cristy8b350f62009-11-15 23:12:43 +00003674 done
cristy3ed852e2009-09-05 21:47:34 +00003675IFS=$as_save_IFS
3676
3677fi
3678fi
3679ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3680if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003682$as_echo "$ac_ct_STRIP" >&6; }
3683else
cristy8b350f62009-11-15 23:12:43 +00003684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003685$as_echo "no" >&6; }
3686fi
3687
3688 if test "x$ac_ct_STRIP" = x; then
3689 STRIP=":"
3690 else
3691 case $cross_compiling:$ac_tool_warned in
3692yes:)
cristy8b350f62009-11-15 23:12:43 +00003693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3695ac_tool_warned=yes ;;
3696esac
3697 STRIP=$ac_ct_STRIP
3698 fi
3699else
3700 STRIP="$ac_cv_prog_STRIP"
3701fi
3702
3703fi
3704INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3705
cristy8b350f62009-11-15 23:12:43 +00003706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003707$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3708if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003709 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003710 $as_echo_n "(cached) " >&6
3711else
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3714do
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003717 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3720 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3721 'mkdir (GNU coreutils) '* | \
3722 'mkdir (coreutils) '* | \
3723 'mkdir (fileutils) '4.1*)
3724 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3725 break 3;;
3726 esac
3727 done
3728 done
cristy8b350f62009-11-15 23:12:43 +00003729 done
cristy3ed852e2009-09-05 21:47:34 +00003730IFS=$as_save_IFS
3731
3732fi
3733
cristycd4c5312009-11-22 01:19:08 +00003734 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003735 if test "${ac_cv_path_mkdir+set}" = set; then
3736 MKDIR_P="$ac_cv_path_mkdir -p"
3737 else
3738 # As a last resort, use the slow shell script. Don't cache a
3739 # value for MKDIR_P within a source directory, because that will
3740 # break other packages using the cache if that directory is
3741 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003742 MKDIR_P="$ac_install_sh -d"
3743 fi
3744fi
cristy8b350f62009-11-15 23:12:43 +00003745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003746$as_echo "$MKDIR_P" >&6; }
3747
3748mkdir_p="$MKDIR_P"
3749case $mkdir_p in
3750 [\\/$]* | ?:[\\/]*) ;;
3751 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3752esac
3753
3754for ac_prog in gawk mawk nawk awk
3755do
3756 # Extract the first word of "$ac_prog", so it can be a program name with args.
3757set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003759$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003760if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003761 $as_echo_n "(cached) " >&6
3762else
3763 if test -n "$AWK"; then
3764 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3765else
3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH
3768do
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003771 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3773 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003775 break 2
3776 fi
3777done
cristy8b350f62009-11-15 23:12:43 +00003778 done
cristy3ed852e2009-09-05 21:47:34 +00003779IFS=$as_save_IFS
3780
3781fi
3782fi
3783AWK=$ac_cv_prog_AWK
3784if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003786$as_echo "$AWK" >&6; }
3787else
cristy8b350f62009-11-15 23:12:43 +00003788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003789$as_echo "no" >&6; }
3790fi
3791
3792
3793 test -n "$AWK" && break
3794done
3795
cristy8b350f62009-11-15 23:12:43 +00003796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003797$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3798set x ${MAKE-make}
3799ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003800if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003801 $as_echo_n "(cached) " >&6
3802else
3803 cat >conftest.make <<\_ACEOF
3804SHELL = /bin/sh
3805all:
3806 @echo '@@@%%%=$(MAKE)=@@@%%%'
3807_ACEOF
3808# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3809case `${MAKE-make} -f conftest.make 2>/dev/null` in
3810 *@@@%%%=?*=@@@%%%*)
3811 eval ac_cv_prog_make_${ac_make}_set=yes;;
3812 *)
3813 eval ac_cv_prog_make_${ac_make}_set=no;;
3814esac
3815rm -f conftest.make
3816fi
3817if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003819$as_echo "yes" >&6; }
3820 SET_MAKE=
3821else
cristy8b350f62009-11-15 23:12:43 +00003822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003823$as_echo "no" >&6; }
3824 SET_MAKE="MAKE=${MAKE-make}"
3825fi
3826
3827rm -rf .tst 2>/dev/null
3828mkdir .tst 2>/dev/null
3829if test -d .tst; then
3830 am__leading_dot=.
3831else
3832 am__leading_dot=_
3833fi
3834rmdir .tst 2>/dev/null
3835
3836if test "`cd $srcdir && pwd`" != "`pwd`"; then
3837 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3838 # is not polluted with repeated "-I."
3839 am__isrc=' -I$(srcdir)'
3840 # test to see if srcdir already configured
3841 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003842 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003843 fi
3844fi
3845
3846# test whether we have cygpath
3847if test -z "$CYGPATH_W"; then
3848 if (cygpath --version) >/dev/null 2>/dev/null; then
3849 CYGPATH_W='cygpath -w'
3850 else
3851 CYGPATH_W=echo
3852 fi
3853fi
3854
3855
3856# Define the identity of the package.
3857 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003858 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003859
3860
3861# Some tools Automake needs.
3862
3863ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3864
3865
3866AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3867
3868
3869AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3870
3871
3872AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3873
3874
3875MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3876
3877# We need awk for the "check" target. The system "awk" is bad on
3878# some platforms.
3879# Always define AMTAR for backward compatibility.
3880
3881AMTAR=${AMTAR-"${am_missing_run}tar"}
3882
3883am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3884
3885
3886
3887
3888
3889
3890# Enable support for silent build rules
3891# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003892if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003893 enableval=$enable_silent_rules;
3894fi
3895
3896case $enable_silent_rules in
3897yes) AM_DEFAULT_VERBOSITY=0;;
3898no) AM_DEFAULT_VERBOSITY=1;;
3899*) AM_DEFAULT_VERBOSITY=0;;
3900esac
3901AM_BACKSLASH='\'
3902
3903
3904MAGICK_LIB_VERSION="0x"
3905if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3906 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3907fi
3908MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3909if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3910 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3911fi
3912MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3913if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3914 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3915fi
3916MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3917
3918
3919# Definition used to define MagickLibVersionText in version.h
3920MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3921
3922
3923# Definition used to define MagickLibVersionNumber in version.h
3924MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3925
3926
3927# Regenerate config.status if ChangeLog or version.sh is updated.
3928CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3929
3930
3931PERLMAINCC=$CC
3932
3933MAGICK_CFLAGS=''
3934MAGICK_CPPFLAGS=$CPPFLAGS_USER
3935MAGICK_PCFLAGS=$CPPFLAGS_USER
3936MAGICK_LDFLAGS=''
3937MAGICK_LIBS=''
3938
3939#
3940# Evaluate shell variable equivalents to Makefile directory variables
3941#
3942if test "x$prefix" = xNONE; then
3943 prefix=$ac_default_prefix
3944fi
3945# Let make expand exec_prefix.
3946if test "x$exec_prefix" = xNONE; then
3947 exec_prefix='${prefix}'
3948fi
3949
3950#
3951eval "eval PREFIX_DIR=${prefix}"
3952
3953eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3954
3955eval "eval BIN_DIR=$bindir"
3956
3957eval "eval SBIN_DIR=$sbindir"
3958
3959eval "eval LIBEXEC_DIR=$libexecdir"
3960
3961eval "eval DATA_DIR=$datadir"
3962
3963eval "eval SYSCONF_DIR=$sysconfdir"
3964
3965eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3966
3967eval "eval LOCALSTATE_DIR=$localstatedir"
3968
3969eval "eval LIB_DIR=$libdir"
3970
3971eval "eval INCLUDE_DIR=$includedir"
3972
3973eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3974
3975eval "eval INFO_DIR=$infodir"
3976
3977eval "eval MAN_DIR=$mandir"
3978
3979
3980# Get full paths to source and build directories
3981srcdirfull="`cd $srcdir && pwd`"
3982builddir="`pwd`"
3983
3984#
3985# Compute variables useful for running uninstalled software.
3986#
3987MAGICK_CODER_MODULE_PATH="${builddir}/coders"
3988MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
3989MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
3990MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
3991DIRSEP=':'
3992case "${build_os}" in
3993 mingw* )
3994 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
3995 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
3996 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
3997 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
3998 DIRSEP=';'
3999 ;;
4000esac
4001case "${host_os}" in
4002 mingw* )
4003 DIRSEP=';'
4004 ;;
4005esac
4006
4007
4008
4009
4010
4011
cristya0b81c32010-01-22 02:54:33 +00004012
4013#
4014# Enable OS features.
4015#
4016DEPDIR="${am__leading_dot}deps"
4017
4018ac_config_commands="$ac_config_commands depfiles"
4019
4020
4021am_make=${MAKE-make}
4022cat > confinc << 'END'
4023am__doit:
4024 @echo this is the am__doit target
4025.PHONY: am__doit
4026END
4027# If we don't find an include directive, just comment out the code.
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4029$as_echo_n "checking for style of include used by $am_make... " >&6; }
4030am__include="#"
4031am__quote=
4032_am_result=none
4033# First try GNU make style include.
4034echo "include confinc" > confmf
4035# Ignore all kinds of additional output from `make'.
4036case `$am_make -s -f confmf 2> /dev/null` in #(
4037*the\ am__doit\ target*)
4038 am__include=include
4039 am__quote=
4040 _am_result=GNU
4041 ;;
4042esac
4043# Now try BSD make style include.
4044if test "$am__include" = "#"; then
4045 echo '.include "confinc"' > confmf
4046 case `$am_make -s -f confmf 2> /dev/null` in #(
4047 *the\ am__doit\ target*)
4048 am__include=.include
4049 am__quote="\""
4050 _am_result=BSD
4051 ;;
4052 esac
4053fi
4054
4055
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4057$as_echo "$_am_result" >&6; }
4058rm -f confinc confmf
4059
4060# Check whether --enable-dependency-tracking was given.
4061if test "${enable_dependency_tracking+set}" = set; then :
4062 enableval=$enable_dependency_tracking;
4063fi
4064
4065if test "x$enable_dependency_tracking" != xno; then
4066 am_depcomp="$ac_aux_dir/depcomp"
4067 AMDEPBACKSLASH='\'
4068fi
4069 if test "x$enable_dependency_tracking" != xno; then
4070 AMDEP_TRUE=
4071 AMDEP_FALSE='#'
4072else
4073 AMDEP_TRUE='#'
4074 AMDEP_FALSE=
4075fi
4076
4077
cristy3ed852e2009-09-05 21:47:34 +00004078ac_ext=c
4079ac_cpp='$CPP $CPPFLAGS'
4080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083if test -n "$ac_tool_prefix"; then
4084 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4085set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004087$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004088if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004089 $as_echo_n "(cached) " >&6
4090else
4091 if test -n "$CC"; then
4092 ac_cv_prog_CC="$CC" # Let the user override the test.
4093else
4094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095for as_dir in $PATH
4096do
4097 IFS=$as_save_IFS
4098 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4101 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004103 break 2
4104 fi
4105done
cristy8b350f62009-11-15 23:12:43 +00004106 done
cristy3ed852e2009-09-05 21:47:34 +00004107IFS=$as_save_IFS
4108
4109fi
4110fi
4111CC=$ac_cv_prog_CC
4112if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004114$as_echo "$CC" >&6; }
4115else
cristy8b350f62009-11-15 23:12:43 +00004116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004117$as_echo "no" >&6; }
4118fi
4119
4120
4121fi
4122if test -z "$ac_cv_prog_CC"; then
4123 ac_ct_CC=$CC
4124 # Extract the first word of "gcc", so it can be a program name with args.
4125set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004127$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004128if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004129 $as_echo_n "(cached) " >&6
4130else
4131 if test -n "$ac_ct_CC"; then
4132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4133else
4134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH
4136do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004143 break 2
4144 fi
4145done
cristy8b350f62009-11-15 23:12:43 +00004146 done
cristy3ed852e2009-09-05 21:47:34 +00004147IFS=$as_save_IFS
4148
4149fi
4150fi
4151ac_ct_CC=$ac_cv_prog_ac_ct_CC
4152if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004154$as_echo "$ac_ct_CC" >&6; }
4155else
cristy8b350f62009-11-15 23:12:43 +00004156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004157$as_echo "no" >&6; }
4158fi
4159
4160 if test "x$ac_ct_CC" = x; then
4161 CC=""
4162 else
4163 case $cross_compiling:$ac_tool_warned in
4164yes:)
cristy8b350f62009-11-15 23:12:43 +00004165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4167ac_tool_warned=yes ;;
4168esac
4169 CC=$ac_ct_CC
4170 fi
4171else
4172 CC="$ac_cv_prog_CC"
4173fi
4174
4175if test -z "$CC"; then
4176 if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4178set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004180$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004181if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004182 $as_echo_n "(cached) " >&6
4183else
4184 if test -n "$CC"; then
4185 ac_cv_prog_CC="$CC" # Let the user override the test.
4186else
4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH
4189do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004196 break 2
4197 fi
4198done
cristy8b350f62009-11-15 23:12:43 +00004199 done
cristy3ed852e2009-09-05 21:47:34 +00004200IFS=$as_save_IFS
4201
4202fi
4203fi
4204CC=$ac_cv_prog_CC
4205if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004207$as_echo "$CC" >&6; }
4208else
cristy8b350f62009-11-15 23:12:43 +00004209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004210$as_echo "no" >&6; }
4211fi
4212
4213
4214 fi
4215fi
4216if test -z "$CC"; then
4217 # Extract the first word of "cc", so it can be a program name with args.
4218set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004220$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004221if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004222 $as_echo_n "(cached) " >&6
4223else
4224 if test -n "$CC"; then
4225 ac_cv_prog_CC="$CC" # Let the user override the test.
4226else
4227 ac_prog_rejected=no
4228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH
4230do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4236 ac_prog_rejected=yes
4237 continue
4238 fi
4239 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004241 break 2
4242 fi
4243done
cristy8b350f62009-11-15 23:12:43 +00004244 done
cristy3ed852e2009-09-05 21:47:34 +00004245IFS=$as_save_IFS
4246
4247if test $ac_prog_rejected = yes; then
4248 # We found a bogon in the path, so make sure we never use it.
4249 set dummy $ac_cv_prog_CC
4250 shift
4251 if test $# != 0; then
4252 # We chose a different compiler from the bogus one.
4253 # However, it has the same basename, so the bogon will be chosen
4254 # first if we set CC to just the basename; use the full file name.
4255 shift
4256 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4257 fi
4258fi
4259fi
4260fi
4261CC=$ac_cv_prog_CC
4262if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004264$as_echo "$CC" >&6; }
4265else
cristy8b350f62009-11-15 23:12:43 +00004266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004267$as_echo "no" >&6; }
4268fi
4269
4270
4271fi
4272if test -z "$CC"; then
4273 if test -n "$ac_tool_prefix"; then
4274 for ac_prog in cl.exe
4275 do
4276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4277set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004279$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004280if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004281 $as_echo_n "(cached) " >&6
4282else
4283 if test -n "$CC"; then
4284 ac_cv_prog_CC="$CC" # Let the user override the test.
4285else
4286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287for as_dir in $PATH
4288do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004291 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004295 break 2
4296 fi
4297done
cristy8b350f62009-11-15 23:12:43 +00004298 done
cristy3ed852e2009-09-05 21:47:34 +00004299IFS=$as_save_IFS
4300
4301fi
4302fi
4303CC=$ac_cv_prog_CC
4304if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004306$as_echo "$CC" >&6; }
4307else
cristy8b350f62009-11-15 23:12:43 +00004308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004309$as_echo "no" >&6; }
4310fi
4311
4312
4313 test -n "$CC" && break
4314 done
4315fi
4316if test -z "$CC"; then
4317 ac_ct_CC=$CC
4318 for ac_prog in cl.exe
4319do
4320 # Extract the first word of "$ac_prog", so it can be a program name with args.
4321set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004323$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004324if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004325 $as_echo_n "(cached) " >&6
4326else
4327 if test -n "$ac_ct_CC"; then
4328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4329else
4330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331for as_dir in $PATH
4332do
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004339 break 2
4340 fi
4341done
cristy8b350f62009-11-15 23:12:43 +00004342 done
cristy3ed852e2009-09-05 21:47:34 +00004343IFS=$as_save_IFS
4344
4345fi
4346fi
4347ac_ct_CC=$ac_cv_prog_ac_ct_CC
4348if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004350$as_echo "$ac_ct_CC" >&6; }
4351else
cristy8b350f62009-11-15 23:12:43 +00004352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004353$as_echo "no" >&6; }
4354fi
4355
4356
4357 test -n "$ac_ct_CC" && break
4358done
4359
4360 if test "x$ac_ct_CC" = x; then
4361 CC=""
4362 else
4363 case $cross_compiling:$ac_tool_warned in
4364yes:)
cristy8b350f62009-11-15 23:12:43 +00004365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4367ac_tool_warned=yes ;;
4368esac
4369 CC=$ac_ct_CC
4370 fi
4371fi
4372
4373fi
4374
4375
cristy8b350f62009-11-15 23:12:43 +00004376test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004378as_fn_error "no acceptable C compiler found in \$PATH
4379See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004380
4381# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004382$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004383set X $ac_compile
4384ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004385for ac_option in --version -v -V -qversion; do
4386 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004387case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390esac
cristy8b350f62009-11-15 23:12:43 +00004391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392$as_echo "$ac_try_echo"; } >&5
4393 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004394 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004395 if test -s conftest.err; then
4396 sed '10a\
4397... rest of stderr output deleted ...
4398 10q' conftest.err >conftest.er1
4399 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004400 fi
cristycd4c5312009-11-22 01:19:08 +00004401 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }
4404done
cristy3ed852e2009-09-05 21:47:34 +00004405
cristy8b350f62009-11-15 23:12:43 +00004406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004407/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004408
cristy3ed852e2009-09-05 21:47:34 +00004409int
4410main ()
4411{
4412
4413 ;
4414 return 0;
4415}
4416_ACEOF
4417ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004418ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004419# Try to create an executable without -o first, disregard a.out.
4420# It will help us diagnose broken compilers, and finding out an intuition
4421# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4423$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004424ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4425
4426# The possible output files:
4427ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4428
4429ac_rmfiles=
4430for ac_file in $ac_files
4431do
4432 case $ac_file in
4433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4434 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4435 esac
4436done
4437rm -f $ac_rmfiles
4438
cristy8b350f62009-11-15 23:12:43 +00004439if { { ac_try="$ac_link_default"
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_link_default") 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 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4451# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4452# in a Makefile. We should not override ac_cv_exeext if it was cached,
4453# so that the user can short-circuit this test for compilers unknown to
4454# Autoconf.
4455for ac_file in $ac_files ''
4456do
4457 test -f "$ac_file" || continue
4458 case $ac_file in
4459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4460 ;;
4461 [ab].out )
4462 # We found the default executable, but exeext='' is most
4463 # certainly right.
4464 break;;
4465 *.* )
cristy8b350f62009-11-15 23:12:43 +00004466 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004467 then :; else
4468 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4469 fi
4470 # We set ac_cv_exeext here because the later test for it is not
4471 # safe: cross compilers may not add the suffix if given an `-o'
4472 # argument, so we may need to know it at that point already.
4473 # Even if this section looks crufty: it has the advantage of
4474 # actually working.
4475 break;;
4476 * )
4477 break;;
4478 esac
4479done
4480test "$ac_cv_exeext" = no && ac_cv_exeext=
4481
4482else
4483 ac_file=''
4484fi
cristy8b350f62009-11-15 23:12:43 +00004485if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487$as_echo "no" >&6; }
4488$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004489sed 's/^/| /' conftest.$ac_ext >&5
4490
cristy8b350f62009-11-15 23:12:43 +00004491{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004493{ as_fn_set_status 77
4494as_fn_error "C compiler cannot create executables
4495See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004496else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4498$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004499fi
cristycd4c5312009-11-22 01:19:08 +00004500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4501$as_echo_n "checking for C compiler default output file name... " >&6; }
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4503$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004504ac_exeext=$ac_cv_exeext
4505
cristycd4c5312009-11-22 01:19:08 +00004506rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004507ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004509$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004510if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004511case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514esac
cristy8b350f62009-11-15 23:12:43 +00004515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004517 (eval "$ac_link") 2>&5
4518 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004521 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4522# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4523# work properly (i.e., refer to `conftest.exe'), while it won't with
4524# `rm'.
4525for ac_file in conftest.exe conftest conftest.*; do
4526 test -f "$ac_file" || continue
4527 case $ac_file in
4528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4529 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4530 break;;
4531 * ) break;;
4532 esac
4533done
4534else
cristy8b350f62009-11-15 23:12:43 +00004535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004537as_fn_error "cannot compute suffix of executables: cannot compile and link
4538See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004539fi
cristycd4c5312009-11-22 01:19:08 +00004540rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004542$as_echo "$ac_cv_exeext" >&6; }
4543
4544rm -f conftest.$ac_ext
4545EXEEXT=$ac_cv_exeext
4546ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548/* end confdefs.h. */
4549#include <stdio.h>
4550int
4551main ()
4552{
4553FILE *f = fopen ("conftest.out", "w");
4554 return ferror (f) || fclose (f) != 0;
4555
4556 ;
4557 return 0;
4558}
4559_ACEOF
4560ac_clean_files="$ac_clean_files conftest.out"
4561# Check that the compiler produces executables we can run. If not, either
4562# the compiler is broken, or we cross compile.
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4564$as_echo_n "checking whether we are cross compiling... " >&6; }
4565if test "$cross_compiling" != yes; then
4566 { { ac_try="$ac_link"
4567case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570esac
4571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572$as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_link") 2>&5
4574 ac_status=$?
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }
4577 if { ac_try='./conftest$ac_cv_exeext'
4578 { { case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581esac
4582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4583$as_echo "$ac_try_echo"; } >&5
4584 (eval "$ac_try") 2>&5
4585 ac_status=$?
4586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4587 test $ac_status = 0; }; }; then
4588 cross_compiling=no
4589 else
4590 if test "$cross_compiling" = maybe; then
4591 cross_compiling=yes
4592 else
4593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4595as_fn_error "cannot run C compiled programs.
4596If you meant to cross compile, use \`--host'.
4597See \`config.log' for more details." "$LINENO" 5; }
4598 fi
4599 fi
4600fi
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4602$as_echo "$cross_compiling" >&6; }
4603
4604rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4605ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004607$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004608if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004609 $as_echo_n "(cached) " >&6
4610else
cristy8b350f62009-11-15 23:12:43 +00004611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004612/* end confdefs.h. */
4613
4614int
4615main ()
4616{
4617
4618 ;
4619 return 0;
4620}
4621_ACEOF
4622rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004623if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004624case "(($ac_try" in
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4627esac
cristy8b350f62009-11-15 23:12:43 +00004628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4629$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004630 (eval "$ac_compile") 2>&5
4631 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4633 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004634 for ac_file in conftest.o conftest.obj conftest.*; do
4635 test -f "$ac_file" || continue;
4636 case $ac_file in
4637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4638 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4639 break;;
4640 esac
4641done
4642else
4643 $as_echo "$as_me: failed program was:" >&5
4644sed 's/^/| /' conftest.$ac_ext >&5
4645
cristy8b350f62009-11-15 23:12:43 +00004646{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004648as_fn_error "cannot compute suffix of object files: cannot compile
4649See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004650fi
cristy3ed852e2009-09-05 21:47:34 +00004651rm -f conftest.$ac_cv_objext conftest.$ac_ext
4652fi
cristy8b350f62009-11-15 23:12:43 +00004653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004654$as_echo "$ac_cv_objext" >&6; }
4655OBJEXT=$ac_cv_objext
4656ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004658$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004659if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004660 $as_echo_n "(cached) " >&6
4661else
cristy8b350f62009-11-15 23:12:43 +00004662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004663/* end confdefs.h. */
4664
4665int
4666main ()
4667{
4668#ifndef __GNUC__
4669 choke me
4670#endif
4671
4672 ;
4673 return 0;
4674}
4675_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004676if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004677 ac_compiler_gnu=yes
4678else
cristy8b350f62009-11-15 23:12:43 +00004679 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004680fi
cristy3ed852e2009-09-05 21:47:34 +00004681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682ac_cv_c_compiler_gnu=$ac_compiler_gnu
4683
4684fi
cristy8b350f62009-11-15 23:12:43 +00004685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004686$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4687if test $ac_compiler_gnu = yes; then
4688 GCC=yes
4689else
4690 GCC=
4691fi
4692ac_test_CFLAGS=${CFLAGS+set}
4693ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004695$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004696if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004697 $as_echo_n "(cached) " >&6
4698else
4699 ac_save_c_werror_flag=$ac_c_werror_flag
4700 ac_c_werror_flag=yes
4701 ac_cv_prog_cc_g=no
4702 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004704/* end confdefs.h. */
4705
4706int
4707main ()
4708{
4709
4710 ;
4711 return 0;
4712}
4713_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004714if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004715 ac_cv_prog_cc_g=yes
4716else
cristy8b350f62009-11-15 23:12:43 +00004717 CFLAGS=""
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004719/* end confdefs.h. */
4720
4721int
4722main ()
4723{
4724
4725 ;
4726 return 0;
4727}
4728_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004729if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004730
cristy8b350f62009-11-15 23:12:43 +00004731else
4732 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004733 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004735/* end confdefs.h. */
4736
4737int
4738main ()
4739{
4740
4741 ;
4742 return 0;
4743}
4744_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004745if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004746 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004747fi
cristy3ed852e2009-09-05 21:47:34 +00004748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749fi
cristy3ed852e2009-09-05 21:47:34 +00004750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751fi
cristy3ed852e2009-09-05 21:47:34 +00004752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 ac_c_werror_flag=$ac_save_c_werror_flag
4754fi
cristy8b350f62009-11-15 23:12:43 +00004755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004756$as_echo "$ac_cv_prog_cc_g" >&6; }
4757if test "$ac_test_CFLAGS" = set; then
4758 CFLAGS=$ac_save_CFLAGS
4759elif test $ac_cv_prog_cc_g = yes; then
4760 if test "$GCC" = yes; then
4761 CFLAGS="-g -O2"
4762 else
4763 CFLAGS="-g"
4764 fi
4765else
4766 if test "$GCC" = yes; then
4767 CFLAGS="-O2"
4768 else
4769 CFLAGS=
4770 fi
4771fi
cristy8b350f62009-11-15 23:12:43 +00004772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004773$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004774if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004775 $as_echo_n "(cached) " >&6
4776else
4777 ac_cv_prog_cc_c89=no
4778ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004780/* end confdefs.h. */
4781#include <stdarg.h>
4782#include <stdio.h>
4783#include <sys/types.h>
4784#include <sys/stat.h>
4785/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4786struct buf { int x; };
4787FILE * (*rcsopen) (struct buf *, struct stat *, int);
4788static char *e (p, i)
4789 char **p;
4790 int i;
4791{
4792 return p[i];
4793}
4794static char *f (char * (*g) (char **, int), char **p, ...)
4795{
4796 char *s;
4797 va_list v;
4798 va_start (v,p);
4799 s = g (p, va_arg (v,int));
4800 va_end (v);
4801 return s;
4802}
4803
4804/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4805 function prototypes and stuff, but not '\xHH' hex character constants.
4806 These don't provoke an error unfortunately, instead are silently treated
4807 as 'x'. The following induces an error, until -std is added to get
4808 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4809 array size at least. It's necessary to write '\x00'==0 to get something
4810 that's true only with -std. */
4811int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4812
4813/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4814 inside strings and character constants. */
4815#define FOO(x) 'x'
4816int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4817
4818int test (int i, double x);
4819struct s1 {int (*f) (int a);};
4820struct s2 {int (*f) (double a);};
4821int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4822int argc;
4823char **argv;
4824int
4825main ()
4826{
4827return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4828 ;
4829 return 0;
4830}
4831_ACEOF
4832for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4833 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4834do
4835 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004836 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004837 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004838fi
cristy3ed852e2009-09-05 21:47:34 +00004839rm -f core conftest.err conftest.$ac_objext
4840 test "x$ac_cv_prog_cc_c89" != "xno" && break
4841done
4842rm -f conftest.$ac_ext
4843CC=$ac_save_CC
4844
4845fi
4846# AC_CACHE_VAL
4847case "x$ac_cv_prog_cc_c89" in
4848 x)
cristy8b350f62009-11-15 23:12:43 +00004849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004850$as_echo "none needed" >&6; } ;;
4851 xno)
cristy8b350f62009-11-15 23:12:43 +00004852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004853$as_echo "unsupported" >&6; } ;;
4854 *)
4855 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004857$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4858esac
cristy8b350f62009-11-15 23:12:43 +00004859if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004860
cristy8b350f62009-11-15 23:12:43 +00004861fi
cristy3ed852e2009-09-05 21:47:34 +00004862
4863ac_ext=c
4864ac_cpp='$CPP $CPPFLAGS'
4865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004868
cristya0b81c32010-01-22 02:54:33 +00004869depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00004870
cristya0b81c32010-01-22 02:54:33 +00004871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4872$as_echo_n "checking dependency style of $depcc... " >&6; }
4873if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00004875else
cristya0b81c32010-01-22 02:54:33 +00004876 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4877 # We make a subdir and do the tests there. Otherwise we can end up
4878 # making bogus files that we don't know about and never remove. For
4879 # instance it was reported that on HP-UX the gcc test will end up
4880 # making a dummy file named `D' -- because `-MD' means `put the output
4881 # in D'.
4882 mkdir conftest.dir
4883 # Copy depcomp to subdir because otherwise we won't find it if we're
4884 # using a relative directory.
4885 cp "$am_depcomp" conftest.dir
4886 cd conftest.dir
4887 # We will build objects and dependencies in a subdirectory because
4888 # it helps to detect inapplicable dependency modes. For instance
4889 # both Tru64's cc and ICC support -MD to output dependencies as a
4890 # side effect of compilation, but ICC will put the dependencies in
4891 # the current directory while Tru64 will put them in the object
4892 # directory.
4893 mkdir sub
4894
4895 am_cv_CC_dependencies_compiler_type=none
4896 if test "$am_compiler_list" = ""; then
4897 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4898 fi
4899 am__universal=false
4900 case " $depcc " in #(
4901 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4902 esac
4903
4904 for depmode in $am_compiler_list; do
4905 # Setup a source with many dependencies, because some compilers
4906 # like to wrap large dependency lists on column 80 (with \), and
4907 # we should not choose a depcomp mode which is confused by this.
4908 #
4909 # We need to recreate these files for each test, as the compiler may
4910 # overwrite some of them when testing with obscure command lines.
4911 # This happens at least with the AIX C compiler.
4912 : > sub/conftest.c
4913 for i in 1 2 3 4 5 6; do
4914 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4915 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4916 # Solaris 8's {/usr,}/bin/sh.
4917 touch sub/conftst$i.h
4918 done
4919 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4920
4921 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4922 # mode. It turns out that the SunPro C++ compiler does not properly
4923 # handle `-M -o', and we need to detect this. Also, some Intel
4924 # versions had trouble with output in subdirs
4925 am__obj=sub/conftest.${OBJEXT-o}
4926 am__minus_obj="-o $am__obj"
4927 case $depmode in
4928 gcc)
4929 # This depmode causes a compiler race in universal mode.
4930 test "$am__universal" = false || continue
4931 ;;
4932 nosideeffect)
4933 # after this tag, mechanisms are not by side-effect, so they'll
4934 # only be used when explicitly requested
4935 if test "x$enable_dependency_tracking" = xyes; then
4936 continue
4937 else
4938 break
4939 fi
4940 ;;
4941 msvisualcpp | msvcmsys)
4942 # This compiler won't grok `-c -o', but also, the minuso test has
4943 # not run yet. These depmodes are late enough in the game, and
4944 # so weak that their functioning should not be impacted.
4945 am__obj=conftest.${OBJEXT-o}
4946 am__minus_obj=
4947 ;;
4948 none) break ;;
4949 esac
4950 if depmode=$depmode \
4951 source=sub/conftest.c object=$am__obj \
4952 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4953 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4954 >/dev/null 2>conftest.err &&
4955 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4956 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4957 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4958 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4959 # icc doesn't choke on unknown options, it will just issue warnings
4960 # or remarks (even with -Werror). So we grep stderr for any message
4961 # that says an option was ignored or not supported.
4962 # When given -MP, icc 7.0 and 7.1 complain thusly:
4963 # icc: Command line warning: ignoring option '-M'; no argument required
4964 # The diagnosis changed in icc 8.0:
4965 # icc: Command line remark: option '-MP' not supported
4966 if (grep 'ignoring option' conftest.err ||
4967 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4968 am_cv_CC_dependencies_compiler_type=$depmode
4969 break
4970 fi
4971 fi
4972 done
4973
4974 cd ..
4975 rm -rf conftest.dir
4976else
4977 am_cv_CC_dependencies_compiler_type=none
4978fi
4979
4980fi
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4982$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4983CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4984
4985 if
4986 test "x$enable_dependency_tracking" != xno \
4987 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4988 am__fastdepCC_TRUE=
4989 am__fastdepCC_FALSE='#'
4990else
4991 am__fastdepCC_TRUE='#'
4992 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00004993fi
4994
4995
4996
cristya0b81c32010-01-22 02:54:33 +00004997ac_ext=c
4998ac_cpp='$CPP $CPPFLAGS'
4999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5003$as_echo_n "checking how to run the C preprocessor... " >&6; }
5004# On Suns, sometimes $CPP names a directory.
5005if test -n "$CPP" && test -d "$CPP"; then
5006 CPP=
5007fi
5008if test -z "$CPP"; then
5009 if test "${ac_cv_prog_CPP+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5011else
5012 # Double quotes because CPP needs to be expanded
5013 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5014 do
5015 ac_preproc_ok=false
5016for ac_c_preproc_warn_flag in '' yes
5017do
5018 # Use a header file that comes with gcc, so configuring glibc
5019 # with a fresh cross-compiler works.
5020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5021 # <limits.h> exists even on freestanding compilers.
5022 # On the NeXT, cc -E runs the code through the compiler's parser,
5023 # not just through cpp. "Syntax error" is here to catch this case.
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025/* end confdefs.h. */
5026#ifdef __STDC__
5027# include <limits.h>
5028#else
5029# include <assert.h>
5030#endif
5031 Syntax error
5032_ACEOF
5033if ac_fn_c_try_cpp "$LINENO"; then :
5034
5035else
5036 # Broken: fails on valid input.
5037continue
5038fi
5039rm -f conftest.err conftest.$ac_ext
5040
5041 # OK, works on sane cases. Now check whether nonexistent headers
5042 # can be detected and how.
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044/* end confdefs.h. */
5045#include <ac_nonexistent.h>
5046_ACEOF
5047if ac_fn_c_try_cpp "$LINENO"; then :
5048 # Broken: success on invalid input.
5049continue
5050else
5051 # Passes both tests.
5052ac_preproc_ok=:
5053break
5054fi
5055rm -f conftest.err conftest.$ac_ext
5056
5057done
5058# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5059rm -f conftest.err conftest.$ac_ext
5060if $ac_preproc_ok; then :
5061 break
5062fi
5063
5064 done
5065 ac_cv_prog_CPP=$CPP
5066
5067fi
5068 CPP=$ac_cv_prog_CPP
5069else
5070 ac_cv_prog_CPP=$CPP
5071fi
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5073$as_echo "$CPP" >&6; }
5074ac_preproc_ok=false
5075for ac_c_preproc_warn_flag in '' yes
5076do
5077 # Use a header file that comes with gcc, so configuring glibc
5078 # with a fresh cross-compiler works.
5079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5080 # <limits.h> exists even on freestanding compilers.
5081 # On the NeXT, cc -E runs the code through the compiler's parser,
5082 # not just through cpp. "Syntax error" is here to catch this case.
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084/* end confdefs.h. */
5085#ifdef __STDC__
5086# include <limits.h>
5087#else
5088# include <assert.h>
5089#endif
5090 Syntax error
5091_ACEOF
5092if ac_fn_c_try_cpp "$LINENO"; then :
5093
5094else
5095 # Broken: fails on valid input.
5096continue
5097fi
5098rm -f conftest.err conftest.$ac_ext
5099
5100 # OK, works on sane cases. Now check whether nonexistent headers
5101 # can be detected and how.
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103/* end confdefs.h. */
5104#include <ac_nonexistent.h>
5105_ACEOF
5106if ac_fn_c_try_cpp "$LINENO"; then :
5107 # Broken: success on invalid input.
5108continue
5109else
5110 # Passes both tests.
5111ac_preproc_ok=:
5112break
5113fi
5114rm -f conftest.err conftest.$ac_ext
5115
5116done
5117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5118rm -f conftest.err conftest.$ac_ext
5119if $ac_preproc_ok; then :
5120
5121else
5122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5124as_fn_error "C preprocessor \"$CPP\" fails sanity check
5125See \`config.log' for more details." "$LINENO" 5; }
5126fi
5127
5128ac_ext=c
5129ac_cpp='$CPP $CPPFLAGS'
5130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132ac_compiler_gnu=$ac_cv_c_compiler_gnu
5133
5134
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5136$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5137if test "${ac_cv_path_GREP+set}" = set; then :
5138 $as_echo_n "(cached) " >&6
5139else
5140 if test -z "$GREP"; then
5141 ac_path_GREP_found=false
5142 # Loop through the user's path and test for each of PROGNAME-LIST
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5145do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_prog in grep ggrep; do
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5151 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5152# Check for GNU ac_path_GREP and select it if it is found.
5153 # Check for GNU $ac_path_GREP
5154case `"$ac_path_GREP" --version 2>&1` in
5155*GNU*)
5156 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5157*)
5158 ac_count=0
5159 $as_echo_n 0123456789 >"conftest.in"
5160 while :
5161 do
5162 cat "conftest.in" "conftest.in" >"conftest.tmp"
5163 mv "conftest.tmp" "conftest.in"
5164 cp "conftest.in" "conftest.nl"
5165 $as_echo 'GREP' >> "conftest.nl"
5166 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5168 as_fn_arith $ac_count + 1 && ac_count=$as_val
5169 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5170 # Best one so far, save it but keep looking for a better one
5171 ac_cv_path_GREP="$ac_path_GREP"
5172 ac_path_GREP_max=$ac_count
5173 fi
5174 # 10*(2^10) chars as input seems more than enough
5175 test $ac_count -gt 10 && break
5176 done
5177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5178esac
5179
5180 $ac_path_GREP_found && break 3
5181 done
5182 done
5183 done
5184IFS=$as_save_IFS
5185 if test -z "$ac_cv_path_GREP"; then
5186 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5187 fi
5188else
5189 ac_cv_path_GREP=$GREP
5190fi
5191
5192fi
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5194$as_echo "$ac_cv_path_GREP" >&6; }
5195 GREP="$ac_cv_path_GREP"
5196
5197
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5199$as_echo_n "checking for egrep... " >&6; }
5200if test "${ac_cv_path_EGREP+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5202else
5203 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5204 then ac_cv_path_EGREP="$GREP -E"
5205 else
5206 if test -z "$EGREP"; then
5207 ac_path_EGREP_found=false
5208 # Loop through the user's path and test for each of PROGNAME-LIST
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5211do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_prog in egrep; do
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5217 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5218# Check for GNU ac_path_EGREP and select it if it is found.
5219 # Check for GNU $ac_path_EGREP
5220case `"$ac_path_EGREP" --version 2>&1` in
5221*GNU*)
5222 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5223*)
5224 ac_count=0
5225 $as_echo_n 0123456789 >"conftest.in"
5226 while :
5227 do
5228 cat "conftest.in" "conftest.in" >"conftest.tmp"
5229 mv "conftest.tmp" "conftest.in"
5230 cp "conftest.in" "conftest.nl"
5231 $as_echo 'EGREP' >> "conftest.nl"
5232 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5234 as_fn_arith $ac_count + 1 && ac_count=$as_val
5235 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5236 # Best one so far, save it but keep looking for a better one
5237 ac_cv_path_EGREP="$ac_path_EGREP"
5238 ac_path_EGREP_max=$ac_count
5239 fi
5240 # 10*(2^10) chars as input seems more than enough
5241 test $ac_count -gt 10 && break
5242 done
5243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5244esac
5245
5246 $ac_path_EGREP_found && break 3
5247 done
5248 done
5249 done
5250IFS=$as_save_IFS
5251 if test -z "$ac_cv_path_EGREP"; then
5252 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5253 fi
5254else
5255 ac_cv_path_EGREP=$EGREP
5256fi
5257
5258 fi
5259fi
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5261$as_echo "$ac_cv_path_EGREP" >&6; }
5262 EGREP="$ac_cv_path_EGREP"
5263
5264
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5266$as_echo_n "checking for ANSI C header files... " >&6; }
5267if test "${ac_cv_header_stdc+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5269else
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271/* end confdefs.h. */
5272#include <stdlib.h>
5273#include <stdarg.h>
5274#include <string.h>
5275#include <float.h>
5276
5277int
5278main ()
5279{
5280
5281 ;
5282 return 0;
5283}
5284_ACEOF
5285if ac_fn_c_try_compile "$LINENO"; then :
5286 ac_cv_header_stdc=yes
5287else
5288 ac_cv_header_stdc=no
5289fi
5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291
5292if test $ac_cv_header_stdc = yes; then
5293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295/* end confdefs.h. */
5296#include <string.h>
5297
5298_ACEOF
5299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5300 $EGREP "memchr" >/dev/null 2>&1; then :
5301
5302else
5303 ac_cv_header_stdc=no
5304fi
5305rm -f conftest*
5306
5307fi
5308
5309if test $ac_cv_header_stdc = yes; then
5310 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312/* end confdefs.h. */
5313#include <stdlib.h>
5314
5315_ACEOF
5316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5317 $EGREP "free" >/dev/null 2>&1; then :
5318
5319else
5320 ac_cv_header_stdc=no
5321fi
5322rm -f conftest*
5323
5324fi
5325
5326if test $ac_cv_header_stdc = yes; then
5327 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5328 if test "$cross_compiling" = yes; then :
5329 :
5330else
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332/* end confdefs.h. */
5333#include <ctype.h>
5334#include <stdlib.h>
5335#if ((' ' & 0x0FF) == 0x020)
5336# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5337# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5338#else
5339# define ISLOWER(c) \
5340 (('a' <= (c) && (c) <= 'i') \
5341 || ('j' <= (c) && (c) <= 'r') \
5342 || ('s' <= (c) && (c) <= 'z'))
5343# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5344#endif
5345
5346#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5347int
5348main ()
5349{
5350 int i;
5351 for (i = 0; i < 256; i++)
5352 if (XOR (islower (i), ISLOWER (i))
5353 || toupper (i) != TOUPPER (i))
5354 return 2;
5355 return 0;
5356}
5357_ACEOF
5358if ac_fn_c_try_run "$LINENO"; then :
5359
5360else
5361 ac_cv_header_stdc=no
5362fi
5363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5364 conftest.$ac_objext conftest.beam conftest.$ac_ext
5365fi
5366
5367fi
5368fi
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5370$as_echo "$ac_cv_header_stdc" >&6; }
5371if test $ac_cv_header_stdc = yes; then
5372
5373$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5374
5375fi
5376
5377# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5378for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5379 inttypes.h stdint.h unistd.h
5380do :
5381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5382ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5383"
5384eval as_val=\$$as_ac_Header
5385 if test "x$as_val" = x""yes; then :
5386 cat >>confdefs.h <<_ACEOF
5387#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5388_ACEOF
5389
5390fi
5391
5392done
5393
5394
5395
5396 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5397if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5398 MINIX=yes
5399else
5400 MINIX=
5401fi
5402
5403
5404 if test "$MINIX" = yes; then
5405
5406$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5407
5408
5409$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5410
5411
5412$as_echo "#define _MINIX 1" >>confdefs.h
5413
5414 fi
5415
5416
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5418$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5419if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5420 $as_echo_n "(cached) " >&6
5421else
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423/* end confdefs.h. */
5424
5425# define __EXTENSIONS__ 1
5426 $ac_includes_default
5427int
5428main ()
5429{
5430
5431 ;
5432 return 0;
5433}
5434_ACEOF
5435if ac_fn_c_try_compile "$LINENO"; then :
5436 ac_cv_safe_to_define___extensions__=yes
5437else
5438 ac_cv_safe_to_define___extensions__=no
5439fi
5440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5441fi
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5443$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5444 test $ac_cv_safe_to_define___extensions__ = yes &&
5445 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5446
5447 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5448
5449 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5450
5451 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5452
5453 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5454
5455
5456
5457# Check for programs
5458ac_ext=c
5459ac_cpp='$CPP $CPPFLAGS'
5460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5462ac_compiler_gnu=$ac_cv_c_compiler_gnu
5463if test -n "$ac_tool_prefix"; then
5464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5465set dummy ${ac_tool_prefix}gcc; ac_word=$2
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467$as_echo_n "checking for $ac_word... " >&6; }
5468if test "${ac_cv_prog_CC+set}" = set; then :
5469 $as_echo_n "(cached) " >&6
5470else
5471 if test -n "$CC"; then
5472 ac_cv_prog_CC="$CC" # Let the user override the test.
5473else
5474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475for as_dir in $PATH
5476do
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 break 2
5484 fi
5485done
5486 done
5487IFS=$as_save_IFS
5488
5489fi
5490fi
5491CC=$ac_cv_prog_CC
5492if test -n "$CC"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5494$as_echo "$CC" >&6; }
5495else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497$as_echo "no" >&6; }
5498fi
5499
5500
5501fi
5502if test -z "$ac_cv_prog_CC"; then
5503 ac_ct_CC=$CC
5504 # Extract the first word of "gcc", so it can be a program name with args.
5505set dummy gcc; ac_word=$2
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507$as_echo_n "checking for $ac_word... " >&6; }
5508if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5509 $as_echo_n "(cached) " >&6
5510else
5511 if test -n "$ac_ct_CC"; then
5512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5513else
5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH
5516do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521 ac_cv_prog_ac_ct_CC="gcc"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5524 fi
5525done
5526 done
5527IFS=$as_save_IFS
5528
5529fi
5530fi
5531ac_ct_CC=$ac_cv_prog_ac_ct_CC
5532if test -n "$ac_ct_CC"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5534$as_echo "$ac_ct_CC" >&6; }
5535else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537$as_echo "no" >&6; }
5538fi
5539
5540 if test "x$ac_ct_CC" = x; then
5541 CC=""
5542 else
5543 case $cross_compiling:$ac_tool_warned in
5544yes:)
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5547ac_tool_warned=yes ;;
5548esac
5549 CC=$ac_ct_CC
5550 fi
5551else
5552 CC="$ac_cv_prog_CC"
5553fi
5554
5555if test -z "$CC"; then
5556 if test -n "$ac_tool_prefix"; then
5557 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5558set dummy ${ac_tool_prefix}cc; ac_word=$2
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560$as_echo_n "checking for $ac_word... " >&6; }
5561if test "${ac_cv_prog_CC+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5563else
5564 if test -n "$CC"; then
5565 ac_cv_prog_CC="$CC" # Let the user override the test.
5566else
5567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH
5569do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5574 ac_cv_prog_CC="${ac_tool_prefix}cc"
5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5577 fi
5578done
5579 done
5580IFS=$as_save_IFS
5581
5582fi
5583fi
5584CC=$ac_cv_prog_CC
5585if test -n "$CC"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5587$as_echo "$CC" >&6; }
5588else
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590$as_echo "no" >&6; }
5591fi
5592
5593
5594 fi
5595fi
5596if test -z "$CC"; then
5597 # Extract the first word of "cc", so it can be a program name with args.
5598set dummy cc; ac_word=$2
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600$as_echo_n "checking for $ac_word... " >&6; }
5601if test "${ac_cv_prog_CC+set}" = set; then :
5602 $as_echo_n "(cached) " >&6
5603else
5604 if test -n "$CC"; then
5605 ac_cv_prog_CC="$CC" # Let the user override the test.
5606else
5607 ac_prog_rejected=no
5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH
5610do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5616 ac_prog_rejected=yes
5617 continue
5618 fi
5619 ac_cv_prog_CC="cc"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623done
5624 done
5625IFS=$as_save_IFS
5626
5627if test $ac_prog_rejected = yes; then
5628 # We found a bogon in the path, so make sure we never use it.
5629 set dummy $ac_cv_prog_CC
5630 shift
5631 if test $# != 0; then
5632 # We chose a different compiler from the bogus one.
5633 # However, it has the same basename, so the bogon will be chosen
5634 # first if we set CC to just the basename; use the full file name.
5635 shift
5636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5637 fi
5638fi
5639fi
5640fi
5641CC=$ac_cv_prog_CC
5642if test -n "$CC"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5644$as_echo "$CC" >&6; }
5645else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647$as_echo "no" >&6; }
5648fi
5649
5650
5651fi
5652if test -z "$CC"; then
5653 if test -n "$ac_tool_prefix"; then
5654 for ac_prog in cl.exe
5655 do
5656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659$as_echo_n "checking for $ac_word... " >&6; }
5660if test "${ac_cv_prog_CC+set}" = set; then :
5661 $as_echo_n "(cached) " >&6
5662else
5663 if test -n "$CC"; then
5664 ac_cv_prog_CC="$CC" # Let the user override the test.
5665else
5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667for as_dir in $PATH
5668do
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5676 fi
5677done
5678 done
5679IFS=$as_save_IFS
5680
5681fi
5682fi
5683CC=$ac_cv_prog_CC
5684if test -n "$CC"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5686$as_echo "$CC" >&6; }
5687else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689$as_echo "no" >&6; }
5690fi
5691
5692
5693 test -n "$CC" && break
5694 done
5695fi
5696if test -z "$CC"; then
5697 ac_ct_CC=$CC
5698 for ac_prog in cl.exe
5699do
5700 # Extract the first word of "$ac_prog", so it can be a program name with args.
5701set dummy $ac_prog; ac_word=$2
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703$as_echo_n "checking for $ac_word... " >&6; }
5704if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5706else
5707 if test -n "$ac_ct_CC"; then
5708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5717 ac_cv_prog_ac_ct_CC="$ac_prog"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721done
5722 done
5723IFS=$as_save_IFS
5724
5725fi
5726fi
5727ac_ct_CC=$ac_cv_prog_ac_ct_CC
5728if test -n "$ac_ct_CC"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5730$as_echo "$ac_ct_CC" >&6; }
5731else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733$as_echo "no" >&6; }
5734fi
5735
5736
5737 test -n "$ac_ct_CC" && break
5738done
5739
5740 if test "x$ac_ct_CC" = x; then
5741 CC=""
5742 else
5743 case $cross_compiling:$ac_tool_warned in
5744yes:)
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5747ac_tool_warned=yes ;;
5748esac
5749 CC=$ac_ct_CC
5750 fi
5751fi
5752
5753fi
5754
5755
5756test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5758as_fn_error "no acceptable C compiler found in \$PATH
5759See \`config.log' for more details." "$LINENO" 5; }
5760
5761# Provide some information about the compiler.
5762$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5763set X $ac_compile
5764ac_compiler=$2
5765for ac_option in --version -v -V -qversion; do
5766 { { ac_try="$ac_compiler $ac_option >&5"
5767case "(($ac_try" in
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5770esac
5771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5772$as_echo "$ac_try_echo"; } >&5
5773 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5774 ac_status=$?
5775 if test -s conftest.err; then
5776 sed '10a\
5777... rest of stderr output deleted ...
5778 10q' conftest.err >conftest.er1
5779 cat conftest.er1 >&5
5780 fi
5781 rm -f conftest.er1 conftest.err
5782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5783 test $ac_status = 0; }
5784done
5785
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5787$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5788if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5790else
5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792/* end confdefs.h. */
5793
5794int
5795main ()
5796{
5797#ifndef __GNUC__
5798 choke me
5799#endif
5800
5801 ;
5802 return 0;
5803}
5804_ACEOF
5805if ac_fn_c_try_compile "$LINENO"; then :
5806 ac_compiler_gnu=yes
5807else
5808 ac_compiler_gnu=no
5809fi
5810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5811ac_cv_c_compiler_gnu=$ac_compiler_gnu
5812
5813fi
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5815$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5816if test $ac_compiler_gnu = yes; then
5817 GCC=yes
5818else
5819 GCC=
5820fi
5821ac_test_CFLAGS=${CFLAGS+set}
5822ac_save_CFLAGS=$CFLAGS
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5824$as_echo_n "checking whether $CC accepts -g... " >&6; }
5825if test "${ac_cv_prog_cc_g+set}" = set; then :
5826 $as_echo_n "(cached) " >&6
5827else
5828 ac_save_c_werror_flag=$ac_c_werror_flag
5829 ac_c_werror_flag=yes
5830 ac_cv_prog_cc_g=no
5831 CFLAGS="-g"
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h. */
5834
5835int
5836main ()
5837{
5838
5839 ;
5840 return 0;
5841}
5842_ACEOF
5843if ac_fn_c_try_compile "$LINENO"; then :
5844 ac_cv_prog_cc_g=yes
5845else
5846 CFLAGS=""
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848/* end confdefs.h. */
5849
5850int
5851main ()
5852{
5853
5854 ;
5855 return 0;
5856}
5857_ACEOF
5858if ac_fn_c_try_compile "$LINENO"; then :
5859
5860else
5861 ac_c_werror_flag=$ac_save_c_werror_flag
5862 CFLAGS="-g"
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h. */
5865
5866int
5867main ()
5868{
5869
5870 ;
5871 return 0;
5872}
5873_ACEOF
5874if ac_fn_c_try_compile "$LINENO"; then :
5875 ac_cv_prog_cc_g=yes
5876fi
5877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878fi
5879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880fi
5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 ac_c_werror_flag=$ac_save_c_werror_flag
5883fi
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5885$as_echo "$ac_cv_prog_cc_g" >&6; }
5886if test "$ac_test_CFLAGS" = set; then
5887 CFLAGS=$ac_save_CFLAGS
5888elif test $ac_cv_prog_cc_g = yes; then
5889 if test "$GCC" = yes; then
5890 CFLAGS="-g -O2"
5891 else
5892 CFLAGS="-g"
5893 fi
5894else
5895 if test "$GCC" = yes; then
5896 CFLAGS="-O2"
5897 else
5898 CFLAGS=
5899 fi
5900fi
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5902$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5903if test "${ac_cv_prog_cc_c89+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5905else
5906 ac_cv_prog_cc_c89=no
5907ac_save_CC=$CC
5908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909/* end confdefs.h. */
5910#include <stdarg.h>
5911#include <stdio.h>
5912#include <sys/types.h>
5913#include <sys/stat.h>
5914/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5915struct buf { int x; };
5916FILE * (*rcsopen) (struct buf *, struct stat *, int);
5917static char *e (p, i)
5918 char **p;
5919 int i;
5920{
5921 return p[i];
5922}
5923static char *f (char * (*g) (char **, int), char **p, ...)
5924{
5925 char *s;
5926 va_list v;
5927 va_start (v,p);
5928 s = g (p, va_arg (v,int));
5929 va_end (v);
5930 return s;
5931}
5932
5933/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5934 function prototypes and stuff, but not '\xHH' hex character constants.
5935 These don't provoke an error unfortunately, instead are silently treated
5936 as 'x'. The following induces an error, until -std is added to get
5937 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5938 array size at least. It's necessary to write '\x00'==0 to get something
5939 that's true only with -std. */
5940int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5941
5942/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5943 inside strings and character constants. */
5944#define FOO(x) 'x'
5945int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5946
5947int test (int i, double x);
5948struct s1 {int (*f) (int a);};
5949struct s2 {int (*f) (double a);};
5950int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5951int argc;
5952char **argv;
5953int
5954main ()
5955{
5956return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5957 ;
5958 return 0;
5959}
5960_ACEOF
5961for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5962 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5963do
5964 CC="$ac_save_CC $ac_arg"
5965 if ac_fn_c_try_compile "$LINENO"; then :
5966 ac_cv_prog_cc_c89=$ac_arg
5967fi
5968rm -f core conftest.err conftest.$ac_objext
5969 test "x$ac_cv_prog_cc_c89" != "xno" && break
5970done
5971rm -f conftest.$ac_ext
5972CC=$ac_save_CC
5973
5974fi
5975# AC_CACHE_VAL
5976case "x$ac_cv_prog_cc_c89" in
5977 x)
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5979$as_echo "none needed" >&6; } ;;
5980 xno)
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5982$as_echo "unsupported" >&6; } ;;
5983 *)
5984 CC="$CC $ac_cv_prog_cc_c89"
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5986$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5987esac
5988if test "x$ac_cv_prog_cc_c89" != xno; then :
5989
5990fi
5991
5992ac_ext=c
5993ac_cpp='$CPP $CPPFLAGS'
5994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997
cristy3ed852e2009-09-05 21:47:34 +00005998depcc="$CC" am_compiler_list=
5999
cristy8b350f62009-11-15 23:12:43 +00006000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006001$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006002if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006003 $as_echo_n "(cached) " >&6
6004else
6005 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6006 # We make a subdir and do the tests there. Otherwise we can end up
6007 # making bogus files that we don't know about and never remove. For
6008 # instance it was reported that on HP-UX the gcc test will end up
6009 # making a dummy file named `D' -- because `-MD' means `put the output
6010 # in D'.
6011 mkdir conftest.dir
6012 # Copy depcomp to subdir because otherwise we won't find it if we're
6013 # using a relative directory.
6014 cp "$am_depcomp" conftest.dir
6015 cd conftest.dir
6016 # We will build objects and dependencies in a subdirectory because
6017 # it helps to detect inapplicable dependency modes. For instance
6018 # both Tru64's cc and ICC support -MD to output dependencies as a
6019 # side effect of compilation, but ICC will put the dependencies in
6020 # the current directory while Tru64 will put them in the object
6021 # directory.
6022 mkdir sub
6023
6024 am_cv_CC_dependencies_compiler_type=none
6025 if test "$am_compiler_list" = ""; then
6026 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6027 fi
6028 am__universal=false
6029 case " $depcc " in #(
6030 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6031 esac
6032
6033 for depmode in $am_compiler_list; do
6034 # Setup a source with many dependencies, because some compilers
6035 # like to wrap large dependency lists on column 80 (with \), and
6036 # we should not choose a depcomp mode which is confused by this.
6037 #
6038 # We need to recreate these files for each test, as the compiler may
6039 # overwrite some of them when testing with obscure command lines.
6040 # This happens at least with the AIX C compiler.
6041 : > sub/conftest.c
6042 for i in 1 2 3 4 5 6; do
6043 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6044 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6045 # Solaris 8's {/usr,}/bin/sh.
6046 touch sub/conftst$i.h
6047 done
6048 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6049
6050 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6051 # mode. It turns out that the SunPro C++ compiler does not properly
6052 # handle `-M -o', and we need to detect this. Also, some Intel
6053 # versions had trouble with output in subdirs
6054 am__obj=sub/conftest.${OBJEXT-o}
6055 am__minus_obj="-o $am__obj"
6056 case $depmode in
6057 gcc)
6058 # This depmode causes a compiler race in universal mode.
6059 test "$am__universal" = false || continue
6060 ;;
6061 nosideeffect)
6062 # after this tag, mechanisms are not by side-effect, so they'll
6063 # only be used when explicitly requested
6064 if test "x$enable_dependency_tracking" = xyes; then
6065 continue
6066 else
6067 break
6068 fi
6069 ;;
6070 msvisualcpp | msvcmsys)
6071 # This compiler won't grok `-c -o', but also, the minuso test has
6072 # not run yet. These depmodes are late enough in the game, and
6073 # so weak that their functioning should not be impacted.
6074 am__obj=conftest.${OBJEXT-o}
6075 am__minus_obj=
6076 ;;
6077 none) break ;;
6078 esac
6079 if depmode=$depmode \
6080 source=sub/conftest.c object=$am__obj \
6081 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6082 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6083 >/dev/null 2>conftest.err &&
6084 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6085 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6086 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6087 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6088 # icc doesn't choke on unknown options, it will just issue warnings
6089 # or remarks (even with -Werror). So we grep stderr for any message
6090 # that says an option was ignored or not supported.
6091 # When given -MP, icc 7.0 and 7.1 complain thusly:
6092 # icc: Command line warning: ignoring option '-M'; no argument required
6093 # The diagnosis changed in icc 8.0:
6094 # icc: Command line remark: option '-MP' not supported
6095 if (grep 'ignoring option' conftest.err ||
6096 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6097 am_cv_CC_dependencies_compiler_type=$depmode
6098 break
6099 fi
6100 fi
6101 done
6102
6103 cd ..
6104 rm -rf conftest.dir
6105else
6106 am_cv_CC_dependencies_compiler_type=none
6107fi
6108
6109fi
cristy8b350f62009-11-15 23:12:43 +00006110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006111$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6112CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6113
6114 if
6115 test "x$enable_dependency_tracking" != xno \
6116 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6117 am__fastdepCC_TRUE=
6118 am__fastdepCC_FALSE='#'
6119else
6120 am__fastdepCC_TRUE='#'
6121 am__fastdepCC_FALSE=
6122fi
6123
6124
cristy95646052009-11-28 23:05:30 +00006125ac_ext=cpp
6126ac_cpp='$CXXCPP $CPPFLAGS'
6127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6130if test -z "$CXX"; then
6131 if test -n "$CCC"; then
6132 CXX=$CCC
6133 else
6134 if test -n "$ac_tool_prefix"; then
6135 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6136 do
6137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6138set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140$as_echo_n "checking for $ac_word... " >&6; }
6141if test "${ac_cv_prog_CXX+set}" = set; then :
6142 $as_echo_n "(cached) " >&6
6143else
6144 if test -n "$CXX"; then
6145 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6146else
6147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148for as_dir in $PATH
6149do
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 break 2
6157 fi
6158done
6159 done
6160IFS=$as_save_IFS
6161
6162fi
6163fi
6164CXX=$ac_cv_prog_CXX
6165if test -n "$CXX"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6167$as_echo "$CXX" >&6; }
6168else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170$as_echo "no" >&6; }
6171fi
6172
6173
6174 test -n "$CXX" && break
6175 done
6176fi
6177if test -z "$CXX"; then
6178 ac_ct_CXX=$CXX
6179 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6180do
6181 # Extract the first word of "$ac_prog", so it can be a program name with args.
6182set dummy $ac_prog; ac_word=$2
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184$as_echo_n "checking for $ac_word... " >&6; }
6185if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6187else
6188 if test -n "$ac_ct_CXX"; then
6189 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6190else
6191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192for as_dir in $PATH
6193do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_CXX="$ac_prog"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202done
6203 done
6204IFS=$as_save_IFS
6205
6206fi
6207fi
6208ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6209if test -n "$ac_ct_CXX"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6211$as_echo "$ac_ct_CXX" >&6; }
6212else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214$as_echo "no" >&6; }
6215fi
6216
6217
6218 test -n "$ac_ct_CXX" && break
6219done
6220
6221 if test "x$ac_ct_CXX" = x; then
6222 CXX="g++"
6223 else
6224 case $cross_compiling:$ac_tool_warned in
6225yes:)
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6228ac_tool_warned=yes ;;
6229esac
6230 CXX=$ac_ct_CXX
6231 fi
6232fi
6233
6234 fi
6235fi
6236# Provide some information about the compiler.
6237$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6238set X $ac_compile
6239ac_compiler=$2
6240for ac_option in --version -v -V -qversion; do
6241 { { ac_try="$ac_compiler $ac_option >&5"
6242case "(($ac_try" in
6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6245esac
6246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6247$as_echo "$ac_try_echo"; } >&5
6248 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6249 ac_status=$?
6250 if test -s conftest.err; then
6251 sed '10a\
6252... rest of stderr output deleted ...
6253 10q' conftest.err >conftest.er1
6254 cat conftest.er1 >&5
6255 fi
6256 rm -f conftest.er1 conftest.err
6257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6258 test $ac_status = 0; }
6259done
6260
6261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6262$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6263if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6264 $as_echo_n "(cached) " >&6
6265else
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267/* end confdefs.h. */
6268
6269int
6270main ()
6271{
6272#ifndef __GNUC__
6273 choke me
6274#endif
6275
6276 ;
6277 return 0;
6278}
6279_ACEOF
6280if ac_fn_cxx_try_compile "$LINENO"; then :
6281 ac_compiler_gnu=yes
6282else
6283 ac_compiler_gnu=no
6284fi
6285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6287
6288fi
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6290$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6291if test $ac_compiler_gnu = yes; then
6292 GXX=yes
6293else
6294 GXX=
6295fi
6296ac_test_CXXFLAGS=${CXXFLAGS+set}
6297ac_save_CXXFLAGS=$CXXFLAGS
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6299$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6300if test "${ac_cv_prog_cxx_g+set}" = set; then :
6301 $as_echo_n "(cached) " >&6
6302else
6303 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6304 ac_cxx_werror_flag=yes
6305 ac_cv_prog_cxx_g=no
6306 CXXFLAGS="-g"
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308/* end confdefs.h. */
6309
6310int
6311main ()
6312{
6313
6314 ;
6315 return 0;
6316}
6317_ACEOF
6318if ac_fn_cxx_try_compile "$LINENO"; then :
6319 ac_cv_prog_cxx_g=yes
6320else
6321 CXXFLAGS=""
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323/* end confdefs.h. */
6324
6325int
6326main ()
6327{
6328
6329 ;
6330 return 0;
6331}
6332_ACEOF
6333if ac_fn_cxx_try_compile "$LINENO"; then :
6334
6335else
6336 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6337 CXXFLAGS="-g"
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h. */
6340
6341int
6342main ()
6343{
6344
6345 ;
6346 return 0;
6347}
6348_ACEOF
6349if ac_fn_cxx_try_compile "$LINENO"; then :
6350 ac_cv_prog_cxx_g=yes
6351fi
6352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353fi
6354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355fi
6356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6358fi
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6360$as_echo "$ac_cv_prog_cxx_g" >&6; }
6361if test "$ac_test_CXXFLAGS" = set; then
6362 CXXFLAGS=$ac_save_CXXFLAGS
6363elif test $ac_cv_prog_cxx_g = yes; then
6364 if test "$GXX" = yes; then
6365 CXXFLAGS="-g -O2"
6366 else
6367 CXXFLAGS="-g"
6368 fi
6369else
6370 if test "$GXX" = yes; then
6371 CXXFLAGS="-O2"
6372 else
6373 CXXFLAGS=
6374 fi
6375fi
6376ac_ext=c
6377ac_cpp='$CPP $CPPFLAGS'
6378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381
6382depcc="$CXX" am_compiler_list=
6383
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6385$as_echo_n "checking dependency style of $depcc... " >&6; }
6386if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6387 $as_echo_n "(cached) " >&6
6388else
6389 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6390 # We make a subdir and do the tests there. Otherwise we can end up
6391 # making bogus files that we don't know about and never remove. For
6392 # instance it was reported that on HP-UX the gcc test will end up
6393 # making a dummy file named `D' -- because `-MD' means `put the output
6394 # in D'.
6395 mkdir conftest.dir
6396 # Copy depcomp to subdir because otherwise we won't find it if we're
6397 # using a relative directory.
6398 cp "$am_depcomp" conftest.dir
6399 cd conftest.dir
6400 # We will build objects and dependencies in a subdirectory because
6401 # it helps to detect inapplicable dependency modes. For instance
6402 # both Tru64's cc and ICC support -MD to output dependencies as a
6403 # side effect of compilation, but ICC will put the dependencies in
6404 # the current directory while Tru64 will put them in the object
6405 # directory.
6406 mkdir sub
6407
6408 am_cv_CXX_dependencies_compiler_type=none
6409 if test "$am_compiler_list" = ""; then
6410 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6411 fi
6412 am__universal=false
6413 case " $depcc " in #(
6414 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6415 esac
6416
6417 for depmode in $am_compiler_list; do
6418 # Setup a source with many dependencies, because some compilers
6419 # like to wrap large dependency lists on column 80 (with \), and
6420 # we should not choose a depcomp mode which is confused by this.
6421 #
6422 # We need to recreate these files for each test, as the compiler may
6423 # overwrite some of them when testing with obscure command lines.
6424 # This happens at least with the AIX C compiler.
6425 : > sub/conftest.c
6426 for i in 1 2 3 4 5 6; do
6427 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6428 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6429 # Solaris 8's {/usr,}/bin/sh.
6430 touch sub/conftst$i.h
6431 done
6432 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6433
6434 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6435 # mode. It turns out that the SunPro C++ compiler does not properly
6436 # handle `-M -o', and we need to detect this. Also, some Intel
6437 # versions had trouble with output in subdirs
6438 am__obj=sub/conftest.${OBJEXT-o}
6439 am__minus_obj="-o $am__obj"
6440 case $depmode in
6441 gcc)
6442 # This depmode causes a compiler race in universal mode.
6443 test "$am__universal" = false || continue
6444 ;;
6445 nosideeffect)
6446 # after this tag, mechanisms are not by side-effect, so they'll
6447 # only be used when explicitly requested
6448 if test "x$enable_dependency_tracking" = xyes; then
6449 continue
6450 else
6451 break
6452 fi
6453 ;;
6454 msvisualcpp | msvcmsys)
6455 # This compiler won't grok `-c -o', but also, the minuso test has
6456 # not run yet. These depmodes are late enough in the game, and
6457 # so weak that their functioning should not be impacted.
6458 am__obj=conftest.${OBJEXT-o}
6459 am__minus_obj=
6460 ;;
6461 none) break ;;
6462 esac
6463 if depmode=$depmode \
6464 source=sub/conftest.c object=$am__obj \
6465 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6466 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6467 >/dev/null 2>conftest.err &&
6468 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6469 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6470 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6471 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6472 # icc doesn't choke on unknown options, it will just issue warnings
6473 # or remarks (even with -Werror). So we grep stderr for any message
6474 # that says an option was ignored or not supported.
6475 # When given -MP, icc 7.0 and 7.1 complain thusly:
6476 # icc: Command line warning: ignoring option '-M'; no argument required
6477 # The diagnosis changed in icc 8.0:
6478 # icc: Command line remark: option '-MP' not supported
6479 if (grep 'ignoring option' conftest.err ||
6480 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6481 am_cv_CXX_dependencies_compiler_type=$depmode
6482 break
6483 fi
6484 fi
6485 done
6486
6487 cd ..
6488 rm -rf conftest.dir
6489else
6490 am_cv_CXX_dependencies_compiler_type=none
6491fi
6492
6493fi
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6495$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6496CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6497
6498 if
6499 test "x$enable_dependency_tracking" != xno \
6500 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6501 am__fastdepCXX_TRUE=
6502 am__fastdepCXX_FALSE='#'
6503else
6504 am__fastdepCXX_TRUE='#'
6505 am__fastdepCXX_FALSE=
6506fi
6507
6508
cristy8b350f62009-11-15 23:12:43 +00006509 case $ac_cv_prog_cc_stdc in #(
6510 no) :
6511 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6512 *) :
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006514$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006515if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006516 $as_echo_n "(cached) " >&6
6517else
6518 ac_cv_prog_cc_c99=no
6519ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006521/* end confdefs.h. */
6522#include <stdarg.h>
6523#include <stdbool.h>
6524#include <stdlib.h>
6525#include <wchar.h>
6526#include <stdio.h>
6527
6528// Check varargs macros. These examples are taken from C99 6.10.3.5.
6529#define debug(...) fprintf (stderr, __VA_ARGS__)
6530#define showlist(...) puts (#__VA_ARGS__)
6531#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6532static void
6533test_varargs_macros (void)
6534{
6535 int x = 1234;
6536 int y = 5678;
6537 debug ("Flag");
6538 debug ("X = %d\n", x);
6539 showlist (The first, second, and third items.);
6540 report (x>y, "x is %d but y is %d", x, y);
6541}
6542
6543// Check long long types.
6544#define BIG64 18446744073709551615ull
6545#define BIG32 4294967295ul
6546#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6547#if !BIG_OK
6548 your preprocessor is broken;
6549#endif
6550#if BIG_OK
6551#else
6552 your preprocessor is broken;
6553#endif
6554static long long int bignum = -9223372036854775807LL;
6555static unsigned long long int ubignum = BIG64;
6556
6557struct incomplete_array
6558{
6559 int datasize;
6560 double data[];
6561};
6562
6563struct named_init {
6564 int number;
6565 const wchar_t *name;
6566 double average;
6567};
6568
6569typedef const char *ccp;
6570
6571static inline int
6572test_restrict (ccp restrict text)
6573{
6574 // See if C++-style comments work.
6575 // Iterate through items via the restricted pointer.
6576 // Also check for declarations in for loops.
6577 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6578 continue;
6579 return 0;
6580}
6581
6582// Check varargs and va_copy.
6583static void
6584test_varargs (const char *format, ...)
6585{
6586 va_list args;
6587 va_start (args, format);
6588 va_list args_copy;
6589 va_copy (args_copy, args);
6590
6591 const char *str;
6592 int number;
6593 float fnumber;
6594
6595 while (*format)
6596 {
6597 switch (*format++)
6598 {
6599 case 's': // string
6600 str = va_arg (args_copy, const char *);
6601 break;
6602 case 'd': // int
6603 number = va_arg (args_copy, int);
6604 break;
6605 case 'f': // float
6606 fnumber = va_arg (args_copy, double);
6607 break;
6608 default:
6609 break;
6610 }
6611 }
6612 va_end (args_copy);
6613 va_end (args);
6614}
6615
6616int
6617main ()
6618{
6619
6620 // Check bool.
6621 _Bool success = false;
6622
6623 // Check restrict.
6624 if (test_restrict ("String literal") == 0)
6625 success = true;
6626 char *restrict newvar = "Another string";
6627
6628 // Check varargs.
6629 test_varargs ("s, d' f .", "string", 65, 34.234);
6630 test_varargs_macros ();
6631
6632 // Check flexible array members.
6633 struct incomplete_array *ia =
6634 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6635 ia->datasize = 10;
6636 for (int i = 0; i < ia->datasize; ++i)
6637 ia->data[i] = i * 1.234;
6638
6639 // Check named initializers.
6640 struct named_init ni = {
6641 .number = 34,
6642 .name = L"Test wide string",
6643 .average = 543.34343,
6644 };
6645
6646 ni.number = 58;
6647
6648 int dynamic_array[ni.number];
6649 dynamic_array[ni.number - 1] = 543;
6650
6651 // work around unused variable warnings
6652 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6653 || dynamic_array[ni.number - 1] != 543);
6654
6655 ;
6656 return 0;
6657}
6658_ACEOF
6659for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6660do
6661 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006662 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006663 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006664fi
cristy3ed852e2009-09-05 21:47:34 +00006665rm -f core conftest.err conftest.$ac_objext
6666 test "x$ac_cv_prog_cc_c99" != "xno" && break
6667done
6668rm -f conftest.$ac_ext
6669CC=$ac_save_CC
6670
6671fi
6672# AC_CACHE_VAL
6673case "x$ac_cv_prog_cc_c99" in
6674 x)
cristy8b350f62009-11-15 23:12:43 +00006675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006676$as_echo "none needed" >&6; } ;;
6677 xno)
cristy8b350f62009-11-15 23:12:43 +00006678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006679$as_echo "unsupported" >&6; } ;;
6680 *)
6681 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006683$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6684esac
cristy8b350f62009-11-15 23:12:43 +00006685if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006686 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6687else
cristy8b350f62009-11-15 23:12:43 +00006688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006689$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006690if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006691 $as_echo_n "(cached) " >&6
6692else
6693 ac_cv_prog_cc_c89=no
6694ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006696/* end confdefs.h. */
6697#include <stdarg.h>
6698#include <stdio.h>
6699#include <sys/types.h>
6700#include <sys/stat.h>
6701/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6702struct buf { int x; };
6703FILE * (*rcsopen) (struct buf *, struct stat *, int);
6704static char *e (p, i)
6705 char **p;
6706 int i;
6707{
6708 return p[i];
6709}
6710static char *f (char * (*g) (char **, int), char **p, ...)
6711{
6712 char *s;
6713 va_list v;
6714 va_start (v,p);
6715 s = g (p, va_arg (v,int));
6716 va_end (v);
6717 return s;
6718}
6719
6720/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6721 function prototypes and stuff, but not '\xHH' hex character constants.
6722 These don't provoke an error unfortunately, instead are silently treated
6723 as 'x'. The following induces an error, until -std is added to get
6724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6725 array size at least. It's necessary to write '\x00'==0 to get something
6726 that's true only with -std. */
6727int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6728
6729/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6730 inside strings and character constants. */
6731#define FOO(x) 'x'
6732int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6733
6734int test (int i, double x);
6735struct s1 {int (*f) (int a);};
6736struct s2 {int (*f) (double a);};
6737int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6738int argc;
6739char **argv;
6740int
6741main ()
6742{
6743return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6744 ;
6745 return 0;
6746}
6747_ACEOF
6748for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6750do
6751 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006752 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006753 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006754fi
cristy3ed852e2009-09-05 21:47:34 +00006755rm -f core conftest.err conftest.$ac_objext
6756 test "x$ac_cv_prog_cc_c89" != "xno" && break
6757done
6758rm -f conftest.$ac_ext
6759CC=$ac_save_CC
6760
6761fi
6762# AC_CACHE_VAL
6763case "x$ac_cv_prog_cc_c89" in
6764 x)
cristy8b350f62009-11-15 23:12:43 +00006765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006766$as_echo "none needed" >&6; } ;;
6767 xno)
cristy8b350f62009-11-15 23:12:43 +00006768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006769$as_echo "unsupported" >&6; } ;;
6770 *)
6771 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006773$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6774esac
cristy8b350f62009-11-15 23:12:43 +00006775if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006776 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6777else
6778 ac_cv_prog_cc_stdc=no
6779fi
6780
cristy3ed852e2009-09-05 21:47:34 +00006781fi
cristy3ed852e2009-09-05 21:47:34 +00006782 ;;
6783esac
cristy8b350f62009-11-15 23:12:43 +00006784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006785$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006786 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006787 $as_echo_n "(cached) " >&6
6788fi
6789
cristy8b350f62009-11-15 23:12:43 +00006790 case $ac_cv_prog_cc_stdc in #(
6791 no) :
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6793$as_echo "unsupported" >&6; } ;; #(
6794 '') :
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6796$as_echo "none needed" >&6; } ;; #(
6797 *) :
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006799$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6800esac
6801
cristy3ed852e2009-09-05 21:47:34 +00006802ac_ext=c
6803ac_cpp='$CPP $CPPFLAGS'
6804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006808$as_echo_n "checking how to run the C preprocessor... " >&6; }
6809# On Suns, sometimes $CPP names a directory.
6810if test -n "$CPP" && test -d "$CPP"; then
6811 CPP=
6812fi
6813if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006814 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006815 $as_echo_n "(cached) " >&6
6816else
6817 # Double quotes because CPP needs to be expanded
6818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6819 do
6820 ac_preproc_ok=false
6821for ac_c_preproc_warn_flag in '' yes
6822do
6823 # Use a header file that comes with gcc, so configuring glibc
6824 # with a fresh cross-compiler works.
6825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6826 # <limits.h> exists even on freestanding compilers.
6827 # On the NeXT, cc -E runs the code through the compiler's parser,
6828 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006830/* end confdefs.h. */
6831#ifdef __STDC__
6832# include <limits.h>
6833#else
6834# include <assert.h>
6835#endif
6836 Syntax error
6837_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006838if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006839
cristy8b350f62009-11-15 23:12:43 +00006840else
cristy3ed852e2009-09-05 21:47:34 +00006841 # Broken: fails on valid input.
6842continue
6843fi
cristy3ed852e2009-09-05 21:47:34 +00006844rm -f conftest.err conftest.$ac_ext
6845
6846 # OK, works on sane cases. Now check whether nonexistent headers
6847 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006849/* end confdefs.h. */
6850#include <ac_nonexistent.h>
6851_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006852if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006853 # Broken: success on invalid input.
6854continue
6855else
cristy3ed852e2009-09-05 21:47:34 +00006856 # Passes both tests.
6857ac_preproc_ok=:
6858break
6859fi
cristy3ed852e2009-09-05 21:47:34 +00006860rm -f conftest.err conftest.$ac_ext
6861
6862done
6863# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6864rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006865if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006866 break
6867fi
6868
6869 done
6870 ac_cv_prog_CPP=$CPP
6871
6872fi
6873 CPP=$ac_cv_prog_CPP
6874else
6875 ac_cv_prog_CPP=$CPP
6876fi
cristy8b350f62009-11-15 23:12:43 +00006877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006878$as_echo "$CPP" >&6; }
6879ac_preproc_ok=false
6880for ac_c_preproc_warn_flag in '' yes
6881do
6882 # Use a header file that comes with gcc, so configuring glibc
6883 # with a fresh cross-compiler works.
6884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6885 # <limits.h> exists even on freestanding compilers.
6886 # On the NeXT, cc -E runs the code through the compiler's parser,
6887 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006889/* end confdefs.h. */
6890#ifdef __STDC__
6891# include <limits.h>
6892#else
6893# include <assert.h>
6894#endif
6895 Syntax error
6896_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006897if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006898
cristy8b350f62009-11-15 23:12:43 +00006899else
cristy3ed852e2009-09-05 21:47:34 +00006900 # Broken: fails on valid input.
6901continue
6902fi
cristy3ed852e2009-09-05 21:47:34 +00006903rm -f conftest.err conftest.$ac_ext
6904
6905 # OK, works on sane cases. Now check whether nonexistent headers
6906 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006908/* end confdefs.h. */
6909#include <ac_nonexistent.h>
6910_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006911if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006912 # Broken: success on invalid input.
6913continue
6914else
cristy3ed852e2009-09-05 21:47:34 +00006915 # Passes both tests.
6916ac_preproc_ok=:
6917break
6918fi
cristy3ed852e2009-09-05 21:47:34 +00006919rm -f conftest.err conftest.$ac_ext
6920
6921done
6922# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6923rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006924if $ac_preproc_ok; then :
6925
cristy3ed852e2009-09-05 21:47:34 +00006926else
cristy8b350f62009-11-15 23:12:43 +00006927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00006929as_fn_error "C preprocessor \"$CPP\" fails sanity check
6930See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006931fi
6932
6933ac_ext=c
6934ac_cpp='$CPP $CPPFLAGS'
6935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937ac_compiler_gnu=$ac_cv_c_compiler_gnu
6938
cristy8b350f62009-11-15 23:12:43 +00006939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00006940$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006941if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006942 $as_echo_n "(cached) " >&6
6943else
6944 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6945 for ac_i in 1 2 3 4 5 6 7; do
6946 ac_script="$ac_script$as_nl$ac_script"
6947 done
6948 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00006949 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00006950 if test -z "$SED"; then
6951 ac_path_SED_found=false
6952 # Loop through the user's path and test for each of PROGNAME-LIST
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954for as_dir in $PATH
6955do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006958 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00006959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6961 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6962# Check for GNU ac_path_SED and select it if it is found.
6963 # Check for GNU $ac_path_SED
6964case `"$ac_path_SED" --version 2>&1` in
6965*GNU*)
6966 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6967*)
6968 ac_count=0
6969 $as_echo_n 0123456789 >"conftest.in"
6970 while :
6971 do
6972 cat "conftest.in" "conftest.in" >"conftest.tmp"
6973 mv "conftest.tmp" "conftest.in"
6974 cp "conftest.in" "conftest.nl"
6975 $as_echo '' >> "conftest.nl"
6976 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6977 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006978 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006979 if test $ac_count -gt ${ac_path_SED_max-0}; then
6980 # Best one so far, save it but keep looking for a better one
6981 ac_cv_path_SED="$ac_path_SED"
6982 ac_path_SED_max=$ac_count
6983 fi
6984 # 10*(2^10) chars as input seems more than enough
6985 test $ac_count -gt 10 && break
6986 done
6987 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6988esac
6989
6990 $ac_path_SED_found && break 3
6991 done
6992 done
cristy8b350f62009-11-15 23:12:43 +00006993 done
cristy3ed852e2009-09-05 21:47:34 +00006994IFS=$as_save_IFS
6995 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00006996 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006997 fi
6998else
6999 ac_cv_path_SED=$SED
7000fi
7001
7002fi
cristy8b350f62009-11-15 23:12:43 +00007003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007004$as_echo "$ac_cv_path_SED" >&6; }
7005 SED="$ac_cv_path_SED"
7006 rm -f conftest.sed
7007
7008test -z "$SED" && SED=sed
7009Xsed="$SED -e 1s/^X//"
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
cristy8b350f62009-11-15 23:12:43 +00007021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007022$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007023if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007024 $as_echo_n "(cached) " >&6
7025else
7026 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7027 then ac_cv_path_FGREP="$GREP -F"
7028 else
7029 if test -z "$FGREP"; then
7030 ac_path_FGREP_found=false
7031 # Loop through the user's path and test for each of PROGNAME-LIST
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7034do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007037 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7040 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7041# Check for GNU ac_path_FGREP and select it if it is found.
7042 # Check for GNU $ac_path_FGREP
7043case `"$ac_path_FGREP" --version 2>&1` in
7044*GNU*)
7045 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7046*)
7047 ac_count=0
7048 $as_echo_n 0123456789 >"conftest.in"
7049 while :
7050 do
7051 cat "conftest.in" "conftest.in" >"conftest.tmp"
7052 mv "conftest.tmp" "conftest.in"
7053 cp "conftest.in" "conftest.nl"
7054 $as_echo 'FGREP' >> "conftest.nl"
7055 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007057 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007058 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7059 # Best one so far, save it but keep looking for a better one
7060 ac_cv_path_FGREP="$ac_path_FGREP"
7061 ac_path_FGREP_max=$ac_count
7062 fi
7063 # 10*(2^10) chars as input seems more than enough
7064 test $ac_count -gt 10 && break
7065 done
7066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7067esac
7068
7069 $ac_path_FGREP_found && break 3
7070 done
7071 done
cristy8b350f62009-11-15 23:12:43 +00007072 done
cristy3ed852e2009-09-05 21:47:34 +00007073IFS=$as_save_IFS
7074 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00007075 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007076 fi
7077else
7078 ac_cv_path_FGREP=$FGREP
7079fi
7080
7081 fi
7082fi
cristy8b350f62009-11-15 23:12:43 +00007083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007084$as_echo "$ac_cv_path_FGREP" >&6; }
7085 FGREP="$ac_cv_path_FGREP"
7086
7087
7088test -z "$GREP" && GREP=grep
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
cristy232a9ab2010-06-26 01:02:54 +00007106ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7107ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7108ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7109
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7111$as_echo_n "checking how to print strings... " >&6; }
7112# Test print first, because it will be a builtin if present.
7113if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7114 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7115 ECHO='print -r --'
7116elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7117 ECHO='printf %s\n'
7118else
7119 # Use this function as a fallback that always works.
7120 func_fallback_echo ()
7121 {
7122 eval 'cat <<_LTECHO_EOF
7123$1
7124_LTECHO_EOF'
7125 }
7126 ECHO='func_fallback_echo'
7127fi
7128
7129# func_echo_all arg...
7130# Invoke $ECHO with all args, space-separated.
7131func_echo_all ()
7132{
7133 $ECHO ""
7134}
7135
7136case "$ECHO" in
7137 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7138$as_echo "printf" >&6; } ;;
7139 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7140$as_echo "print -r" >&6; } ;;
7141 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7142$as_echo "cat" >&6; } ;;
7143esac
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
cristy3ed852e2009-09-05 21:47:34 +00007158
7159
7160# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007161if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007162 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7163else
7164 with_gnu_ld=no
7165fi
7166
7167ac_prog=ld
7168if test "$GCC" = yes; then
7169 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007171$as_echo_n "checking for ld used by $CC... " >&6; }
7172 case $host in
7173 *-*-mingw*)
7174 # gcc leaves a trailing carriage return which upsets mingw
7175 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7176 *)
7177 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7178 esac
7179 case $ac_prog in
7180 # Accept absolute paths.
7181 [\\/]* | ?:[\\/]*)
7182 re_direlt='/[^/][^/]*/\.\./'
7183 # Canonicalize the pathname of ld
7184 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7185 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7186 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7187 done
7188 test -z "$LD" && LD="$ac_prog"
7189 ;;
7190 "")
7191 # If it fails, then pretend we aren't using GCC.
7192 ac_prog=ld
7193 ;;
7194 *)
7195 # If it is relative, then search for the first ld in PATH.
7196 with_gnu_ld=unknown
7197 ;;
7198 esac
7199elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007201$as_echo_n "checking for GNU ld... " >&6; }
7202else
cristy8b350f62009-11-15 23:12:43 +00007203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007204$as_echo_n "checking for non-GNU ld... " >&6; }
7205fi
cristy8b350f62009-11-15 23:12:43 +00007206if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007207 $as_echo_n "(cached) " >&6
7208else
7209 if test -z "$LD"; then
7210 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7211 for ac_dir in $PATH; do
7212 IFS="$lt_save_ifs"
7213 test -z "$ac_dir" && ac_dir=.
7214 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7215 lt_cv_path_LD="$ac_dir/$ac_prog"
7216 # Check to see if the program is GNU ld. I'd rather use --version,
7217 # but apparently some variants of GNU ld only accept -v.
7218 # Break only if it was the GNU/non-GNU ld that we prefer.
7219 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7220 *GNU* | *'with BFD'*)
7221 test "$with_gnu_ld" != no && break
7222 ;;
7223 *)
7224 test "$with_gnu_ld" != yes && break
7225 ;;
7226 esac
7227 fi
7228 done
7229 IFS="$lt_save_ifs"
7230else
7231 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7232fi
7233fi
7234
7235LD="$lt_cv_path_LD"
7236if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007238$as_echo "$LD" >&6; }
7239else
cristy8b350f62009-11-15 23:12:43 +00007240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007241$as_echo "no" >&6; }
7242fi
cristy8b350f62009-11-15 23:12:43 +00007243test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007245$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007246if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007247 $as_echo_n "(cached) " >&6
7248else
7249 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7250case `$LD -v 2>&1 </dev/null` in
7251*GNU* | *'with BFD'*)
7252 lt_cv_prog_gnu_ld=yes
7253 ;;
7254*)
7255 lt_cv_prog_gnu_ld=no
7256 ;;
7257esac
7258fi
cristy8b350f62009-11-15 23:12:43 +00007259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007260$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7261with_gnu_ld=$lt_cv_prog_gnu_ld
7262
7263
7264
7265
7266
7267
7268
7269
7270
cristy3ed852e2009-09-05 21:47:34 +00007271
cristy837d6dc2010-02-27 01:16:57 +00007272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7273$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7274if test "${ac_cv_prog_cc_c99+set}" = set; then :
7275 $as_echo_n "(cached) " >&6
7276else
7277 ac_cv_prog_cc_c99=no
7278ac_save_CC=$CC
7279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280/* end confdefs.h. */
7281#include <stdarg.h>
7282#include <stdbool.h>
7283#include <stdlib.h>
7284#include <wchar.h>
7285#include <stdio.h>
7286
7287// Check varargs macros. These examples are taken from C99 6.10.3.5.
7288#define debug(...) fprintf (stderr, __VA_ARGS__)
7289#define showlist(...) puts (#__VA_ARGS__)
7290#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7291static void
7292test_varargs_macros (void)
7293{
7294 int x = 1234;
7295 int y = 5678;
7296 debug ("Flag");
7297 debug ("X = %d\n", x);
7298 showlist (The first, second, and third items.);
7299 report (x>y, "x is %d but y is %d", x, y);
7300}
7301
7302// Check long long types.
7303#define BIG64 18446744073709551615ull
7304#define BIG32 4294967295ul
7305#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7306#if !BIG_OK
7307 your preprocessor is broken;
7308#endif
7309#if BIG_OK
7310#else
7311 your preprocessor is broken;
7312#endif
7313static long long int bignum = -9223372036854775807LL;
7314static unsigned long long int ubignum = BIG64;
7315
7316struct incomplete_array
7317{
7318 int datasize;
7319 double data[];
7320};
7321
7322struct named_init {
7323 int number;
7324 const wchar_t *name;
7325 double average;
7326};
7327
7328typedef const char *ccp;
7329
7330static inline int
7331test_restrict (ccp restrict text)
7332{
7333 // See if C++-style comments work.
7334 // Iterate through items via the restricted pointer.
7335 // Also check for declarations in for loops.
7336 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7337 continue;
7338 return 0;
7339}
7340
7341// Check varargs and va_copy.
7342static void
7343test_varargs (const char *format, ...)
7344{
7345 va_list args;
7346 va_start (args, format);
7347 va_list args_copy;
7348 va_copy (args_copy, args);
7349
7350 const char *str;
7351 int number;
7352 float fnumber;
7353
7354 while (*format)
7355 {
7356 switch (*format++)
7357 {
7358 case 's': // string
7359 str = va_arg (args_copy, const char *);
7360 break;
7361 case 'd': // int
7362 number = va_arg (args_copy, int);
7363 break;
7364 case 'f': // float
7365 fnumber = va_arg (args_copy, double);
7366 break;
7367 default:
7368 break;
7369 }
7370 }
7371 va_end (args_copy);
7372 va_end (args);
7373}
7374
7375int
7376main ()
7377{
7378
7379 // Check bool.
7380 _Bool success = false;
7381
7382 // Check restrict.
7383 if (test_restrict ("String literal") == 0)
7384 success = true;
7385 char *restrict newvar = "Another string";
7386
7387 // Check varargs.
7388 test_varargs ("s, d' f .", "string", 65, 34.234);
7389 test_varargs_macros ();
7390
7391 // Check flexible array members.
7392 struct incomplete_array *ia =
7393 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7394 ia->datasize = 10;
7395 for (int i = 0; i < ia->datasize; ++i)
7396 ia->data[i] = i * 1.234;
7397
7398 // Check named initializers.
7399 struct named_init ni = {
7400 .number = 34,
7401 .name = L"Test wide string",
7402 .average = 543.34343,
7403 };
7404
7405 ni.number = 58;
7406
7407 int dynamic_array[ni.number];
7408 dynamic_array[ni.number - 1] = 543;
7409
7410 // work around unused variable warnings
7411 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7412 || dynamic_array[ni.number - 1] != 543);
7413
7414 ;
7415 return 0;
7416}
7417_ACEOF
7418for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7419do
7420 CC="$ac_save_CC $ac_arg"
7421 if ac_fn_c_try_compile "$LINENO"; then :
7422 ac_cv_prog_cc_c99=$ac_arg
7423fi
7424rm -f core conftest.err conftest.$ac_objext
7425 test "x$ac_cv_prog_cc_c99" != "xno" && break
7426done
7427rm -f conftest.$ac_ext
7428CC=$ac_save_CC
7429
7430fi
7431# AC_CACHE_VAL
7432case "x$ac_cv_prog_cc_c99" in
7433 x)
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7435$as_echo "none needed" >&6; } ;;
7436 xno)
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7438$as_echo "unsupported" >&6; } ;;
7439 *)
7440 CC="$CC $ac_cv_prog_cc_c99"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7442$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7443esac
7444if test "x$ac_cv_prog_cc_c99" != xno; then :
7445
7446fi
7447
7448
cristy3ed852e2009-09-05 21:47:34 +00007449if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007451$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7452else
cristy8b350f62009-11-15 23:12:43 +00007453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007454$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7455fi
7456set dummy $CC; ac_cc=`$as_echo "$2" |
7457 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00007458if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007459 $as_echo_n "(cached) " >&6
7460else
cristy8b350f62009-11-15 23:12:43 +00007461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007462/* end confdefs.h. */
7463
7464int
7465main ()
7466{
7467
7468 ;
7469 return 0;
7470}
7471_ACEOF
7472# Make sure it works both with $CC and with simple cc.
7473# We do the test twice because some compilers refuse to overwrite an
7474# existing .o file with -o, though they will create one.
7475ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7476rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007477if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7479 *) ac_try_echo=$ac_try;;
7480esac
cristy8b350f62009-11-15 23:12:43 +00007481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7482$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007483 (eval "$ac_try") 2>&5
7484 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7486 test $ac_status = 0; } &&
7487 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7489 *) ac_try_echo=$ac_try;;
7490esac
cristy8b350f62009-11-15 23:12:43 +00007491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7492$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007493 (eval "$ac_try") 2>&5
7494 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7496 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007497then
7498 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7499 if test "x$CC" != xcc; then
7500 # Test first that cc exists at all.
7501 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007502 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7505esac
cristy8b350f62009-11-15 23:12:43 +00007506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7507$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007508 (eval "$ac_try") 2>&5
7509 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7511 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007512 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7513 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007514 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7517esac
cristy8b350f62009-11-15 23:12:43 +00007518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7519$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007520 (eval "$ac_try") 2>&5
7521 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7523 test $ac_status = 0; } &&
7524 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7526 *) ac_try_echo=$ac_try;;
7527esac
cristy8b350f62009-11-15 23:12:43 +00007528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7529$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007530 (eval "$ac_try") 2>&5
7531 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7533 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007534 then
7535 # cc works too.
7536 :
7537 else
7538 # cc exists but doesn't like -o.
7539 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7540 fi
7541 fi
7542 fi
7543else
7544 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7545fi
7546rm -f core conftest*
7547
7548fi
7549if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007551$as_echo "yes" >&6; }
7552else
cristy8b350f62009-11-15 23:12:43 +00007553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007554$as_echo "no" >&6; }
7555
cristy8b350f62009-11-15 23:12:43 +00007556$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007557
7558fi
7559
7560# FIXME: we rely on the cache variable name because
7561# there is no other way.
7562set dummy $CC
7563am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7564eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7565if test "$am_t" != yes; then
7566 # Losing compiler, so override with the script.
7567 # FIXME: It is wrong to rewrite CC.
7568 # But if we don't then we get into trouble of one sort or another.
7569 # A longer-term fix would be to have automake use am__CC in this case,
7570 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7571 CC="$am_aux_dir/compile $CC"
7572fi
7573
7574
cristy92703d82010-04-26 00:18:18 +00007575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7576$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7577if test "${ac_cv_cflags_warn_all+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00007579else
cristy92703d82010-04-26 00:18:18 +00007580 ac_cv_cflags_warn_all="no, unknown"
7581
7582 ac_ext=c
7583ac_cpp='$CPP $CPPFLAGS'
7584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7586ac_compiler_gnu=$ac_cv_c_compiler_gnu
7587
7588 ac_save_CFLAGS="$CFLAGS"
7589for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7590do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592/* end confdefs.h. */
7593
7594int
7595main ()
7596{
7597return 0;
7598 ;
7599 return 0;
7600}
7601_ACEOF
7602if ac_fn_c_try_compile "$LINENO"; then :
7603 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
cristy3ed852e2009-09-05 21:47:34 +00007604fi
cristy92703d82010-04-26 00:18:18 +00007605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606done
7607 CFLAGS="$ac_save_CFLAGS"
7608 ac_ext=c
7609ac_cpp='$CPP $CPPFLAGS'
7610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7612ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00007613
7614
cristy92703d82010-04-26 00:18:18 +00007615fi
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7617$as_echo "$ac_cv_cflags_warn_all" >&6; }
7618case ".$ac_cv_cflags_warn_all" in
7619 .ok|.ok,*) ;;
7620 .|.no|.no,*)
7621 ;;
7622 *)
7623 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7624 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7625 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7626 ac_status=$?
7627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7628 test $ac_status = 0; }
7629 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7630 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7631 ac_status=$?
7632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7633 test $ac_status = 0; }
7634 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7635 fi
7636 ;;
7637esac
cristy3ed852e2009-09-05 21:47:34 +00007638
cristya0b81c32010-01-22 02:54:33 +00007639$ac_includes_default
7640
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7642$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7643set x ${MAKE-make}
7644ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7645if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7646 $as_echo_n "(cached) " >&6
7647else
7648 cat >conftest.make <<\_ACEOF
7649SHELL = /bin/sh
7650all:
7651 @echo '@@@%%%=$(MAKE)=@@@%%%'
7652_ACEOF
7653# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7654case `${MAKE-make} -f conftest.make 2>/dev/null` in
7655 *@@@%%%=?*=@@@%%%*)
7656 eval ac_cv_prog_make_${ac_make}_set=yes;;
7657 *)
7658 eval ac_cv_prog_make_${ac_make}_set=no;;
7659esac
7660rm -f conftest.make
7661fi
7662if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7664$as_echo "yes" >&6; }
7665 SET_MAKE=
7666else
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668$as_echo "no" >&6; }
7669 SET_MAKE="MAKE=${MAKE-make}"
7670fi
7671
cristy8b350f62009-11-15 23:12:43 +00007672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007673$as_echo_n "checking whether ln -s works... " >&6; }
7674LN_S=$as_ln_s
7675if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007677$as_echo "yes" >&6; }
7678else
cristy8b350f62009-11-15 23:12:43 +00007679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007680$as_echo "no, using $LN_S" >&6; }
7681fi
7682
cristy8b350f62009-11-15 23:12:43 +00007683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007684$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7685
7686# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007687if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007688 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007690$as_echo "yes" >&6; }
7691
cristy8b350f62009-11-15 23:12:43 +00007692$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007693
7694 LIBS="$LIBS -ldmalloc"
7695 LDFLAGS="$LDFLAGS -g"
7696else
cristy8b350f62009-11-15 23:12:43 +00007697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007698$as_echo "no" >&6; }
7699fi
7700else
cristy8b350f62009-11-15 23:12:43 +00007701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007702$as_echo "no" >&6; }
7703fi
7704
7705
7706
cristy0d3a6382010-04-26 00:45:55 +00007707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7708$as_echo_n "checking for __attribute__... " >&6; }
7709if test "${ax_cv___attribute__+set}" = set; then :
7710 $as_echo_n "(cached) " >&6
7711else
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713/* end confdefs.h. */
7714#include <stdlib.h>
7715 static void foo(void) __attribute__ ((unused));
7716 static void
7717 foo(void) {
7718 exit(1);
7719 }
7720
7721int
7722main ()
7723{
7724
7725 ;
7726 return 0;
7727}
7728_ACEOF
7729if ac_fn_c_try_compile "$LINENO"; then :
7730 ax_cv___attribute__=yes
7731else
7732 ax_cv___attribute__=no
7733
7734fi
7735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736
7737fi
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7739$as_echo "$ax_cv___attribute__" >&6; }
7740 if test "$ax_cv___attribute__" = "yes"; then
7741
7742$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7743
7744 fi
7745
7746
cristy3ed852e2009-09-05 21:47:34 +00007747
7748if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7749 if test -n "$ac_tool_prefix"; then
7750 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7751set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007753$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007754if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007755 $as_echo_n "(cached) " >&6
7756else
7757 case $PKG_CONFIG in
7758 [\\/]* | ?:[\\/]*)
7759 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7760 ;;
7761 *)
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007767 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007771 break 2
7772 fi
7773done
cristy8b350f62009-11-15 23:12:43 +00007774 done
cristy3ed852e2009-09-05 21:47:34 +00007775IFS=$as_save_IFS
7776
7777 ;;
7778esac
7779fi
7780PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7781if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007783$as_echo "$PKG_CONFIG" >&6; }
7784else
cristy8b350f62009-11-15 23:12:43 +00007785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007786$as_echo "no" >&6; }
7787fi
7788
7789
7790fi
7791if test -z "$ac_cv_path_PKG_CONFIG"; then
7792 ac_pt_PKG_CONFIG=$PKG_CONFIG
7793 # Extract the first word of "pkg-config", so it can be a program name with args.
7794set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007796$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007797if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007798 $as_echo_n "(cached) " >&6
7799else
7800 case $ac_pt_PKG_CONFIG in
7801 [\\/]* | ?:[\\/]*)
7802 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7803 ;;
7804 *)
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806for as_dir in $PATH
7807do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007810 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007814 break 2
7815 fi
7816done
cristy8b350f62009-11-15 23:12:43 +00007817 done
cristy3ed852e2009-09-05 21:47:34 +00007818IFS=$as_save_IFS
7819
7820 ;;
7821esac
7822fi
7823ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7824if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007826$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7827else
cristy8b350f62009-11-15 23:12:43 +00007828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007829$as_echo "no" >&6; }
7830fi
7831
7832 if test "x$ac_pt_PKG_CONFIG" = x; then
7833 PKG_CONFIG=""
7834 else
7835 case $cross_compiling:$ac_tool_warned in
7836yes:)
cristy8b350f62009-11-15 23:12:43 +00007837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7839ac_tool_warned=yes ;;
7840esac
7841 PKG_CONFIG=$ac_pt_PKG_CONFIG
7842 fi
7843else
7844 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7845fi
7846
7847fi
7848if test -n "$PKG_CONFIG"; then
7849 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007851$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7852 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007854$as_echo "yes" >&6; }
7855 else
cristy8b350f62009-11-15 23:12:43 +00007856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007857$as_echo "no" >&6; }
7858 PKG_CONFIG=""
7859 fi
7860
7861fi
7862
7863#
cristy3ed852e2009-09-05 21:47:34 +00007864# Enable run-time checking.
7865#
7866# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007867if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007868 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7869else
7870 enable_bounds_checking='no'
7871fi
7872
7873
7874if test "$enable_bounds_checking" = yes; then
7875
cristy8b350f62009-11-15 23:12:43 +00007876$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007877
7878fi
7879
7880#
7881# Tests for Windows
7882#
7883
7884
cristy0d3a6382010-04-26 00:45:55 +00007885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7886$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7887if test "${ax_cv_c_compiler_ms+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889else
7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891/* end confdefs.h. */
7892
7893int
7894main ()
7895{
7896#ifndef _MSC_VER
7897 choke me
7898#endif
7899
7900 ;
7901 return 0;
7902}
7903_ACEOF
7904if ac_fn_c_try_compile "$LINENO"; then :
7905 ax_compiler_ms=yes
7906else
7907 ax_compiler_ms=no
7908fi
7909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910ax_cv_c_compiler_ms=$ax_compiler_ms
7911
7912fi
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7914$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007915
7916GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007917native_win32_build='no'
7918cygwin_build='no'
7919case "${host_os}" in
7920 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007921 cygwin_build='yes'
7922 GDI32_LIBS='-lgdi32'
7923 ;;
7924 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007925 native_win32_build='yes'
7926 GDI32_LIBS='-lgdi32'
7927 ;;
7928esac
7929if test "${GDI32_LIBS}x" != 'x'; then
7930
cristy8b350f62009-11-15 23:12:43 +00007931$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007932
7933fi
7934
7935 if test "${GDI32_LIBS}x" != 'x' ; then
7936 WINGDI32_DELEGATE_TRUE=
7937 WINGDI32_DELEGATE_FALSE='#'
7938else
7939 WINGDI32_DELEGATE_TRUE='#'
7940 WINGDI32_DELEGATE_FALSE=
7941fi
7942
7943 if test "${native_win32_build}" = 'yes' ; then
7944 WIN32_NATIVE_BUILD_TRUE=
7945 WIN32_NATIVE_BUILD_FALSE='#'
7946else
7947 WIN32_NATIVE_BUILD_TRUE='#'
7948 WIN32_NATIVE_BUILD_FALSE=
7949fi
7950
7951 if test "${cygwin_build}" = 'yes' ; then
7952 CYGWIN_BUILD_TRUE=
7953 CYGWIN_BUILD_FALSE='#'
7954else
7955 CYGWIN_BUILD_TRUE='#'
7956 CYGWIN_BUILD_FALSE=
7957fi
7958
7959 if test "x${CC}" = 'xcl.exe' ; then
7960 USING_CL_TRUE=
7961 USING_CL_FALSE='#'
7962else
7963 USING_CL_TRUE='#'
7964 USING_CL_FALSE=
7965fi
7966
7967
7968WinPathScript="${srcdirfull}/winpath.sh"
7969
7970
7971#
7972# Compiler flags tweaks
7973#
7974if test "${GCC}" != "yes"; then
7975 case "${host}" in
7976 *-*-hpux* )
7977 # aCC: HP ANSI C++ B3910B A.03.34
7978 CFLAGS="${CFLAGS} -Wp,-H30000"
7979 if test -n "${CXXFLAGS}"; then
7980 CXXFLAGS='-AA'
7981 else
7982 CXXFLAGS="${CXXFLAGS} -AA"
7983 fi
7984 ;;
7985 *-dec-osf5.* )
7986 # Compaq alphaev68-dec-osf5.1 compiler
7987 if test -n "${CXXFLAGS}"; then
7988 CXXFLAGS='-std strict_ansi -noimplicit_include'
7989 else
7990 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7991 fi
7992 esac
7993fi
7994
7995# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00007996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007997$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007998if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007999 $as_echo_n "(cached) " >&6
8000else
8001
8002im_cv_ld_lazyload='none'
8003case "${host}" in
8004 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8005 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8006 im_cv_ld_lazyload='-Wl,-zlazyload'
8007 fi
8008 ;;
8009esac
8010
8011fi
cristy8b350f62009-11-15 23:12:43 +00008012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008013$as_echo "$im_cv_ld_lazyload" >&6; }
8014if test "${im_cv_ld_lazyload}" != 'none' ; then
8015 if test -z "${LDFLAGS}" ; then
8016 LDFLAGS="${im_cv_ld_lazyload}"
8017 else
8018 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8019 fi
8020fi
8021
8022case "$host" in
8023*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008024 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008025if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008026 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8027else
8028 build_osxuniversal=no
8029fi
8030
8031
8032 if test "${build_osxuniversal}" != no ; then
8033 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00008034 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008035Please re-run configure with these options:
8036 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008037 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008038 fi
8039 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8040 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8041 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8042 fi
8043 ;;
8044esac
8045
8046# Enable support for threads
8047
8048# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008049if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008050 withval=$with_threads; with_threads=$withval
8051else
8052 with_threads='yes'
8053fi
8054
8055
8056have_threads=no
8057if test "$with_threads" != 'no'; then
8058
8059
8060
8061ac_ext=c
8062ac_cpp='$CPP $CPPFLAGS'
8063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065ac_compiler_gnu=$ac_cv_c_compiler_gnu
8066
cristy964cb7f2010-04-25 23:18:00 +00008067ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008068
8069# We used to check for pthread.h first, but this fails if pthread.h
8070# requires special compiler flags (e.g. on True64 or Sequent).
8071# It gets checked for in the link test anyway.
8072
8073# First of all, check if the user has set any of the PTHREAD_LIBS,
8074# etcetera environment variables, and if threads linking works using
8075# them:
8076if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8077 save_CFLAGS="$CFLAGS"
8078 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8079 save_LIBS="$LIBS"
8080 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008081 { $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 +00008082$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008084/* end confdefs.h. */
8085
8086/* Override any GCC internal prototype to avoid an error.
8087 Use char because int might match the return type of a GCC
8088 builtin and then its argument prototype would still apply. */
8089#ifdef __cplusplus
8090extern "C"
8091#endif
8092char pthread_join ();
8093int
8094main ()
8095{
8096return pthread_join ();
8097 ;
8098 return 0;
8099}
8100_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008101if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008102 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008103fi
cristy8b350f62009-11-15 23:12:43 +00008104rm -f core conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8107$as_echo "$ax_pthread_ok" >&6; }
8108 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008109 PTHREAD_LIBS=""
8110 PTHREAD_CFLAGS=""
8111 fi
8112 LIBS="$save_LIBS"
8113 CFLAGS="$save_CFLAGS"
8114fi
8115
8116# We must check for the threads library under a number of different
8117# names; the ordering is very important because some systems
8118# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8119# libraries is broken (non-POSIX).
8120
8121# Create a list of thread flags to try. Items starting with a "-" are
8122# C compiler flags, and other items are library names, except for "none"
8123# which indicates that we try without any flags at all, and "pthread-config"
8124# which is a program returning the flags for the Pth emulation library.
8125
cristy964cb7f2010-04-25 23:18:00 +00008126ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008127
8128# The ordering *is* (sometimes) important. Some notes on the
8129# individual items follow:
8130
8131# pthreads: AIX (must check this before -lpthread)
8132# none: in case threads are in libc; should be tried before -Kthread and
8133# other compiler flags to prevent continual compiler warnings
8134# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8135# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8136# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8137# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8138# -pthreads: Solaris/gcc
8139# -mthreads: Mingw32/gcc, Lynx/gcc
8140# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8141# doesn't hurt to check since this sometimes defines pthreads too;
8142# also defines -D_REENTRANT)
8143# ... -mt is also the pthreads flag for HP/aCC
8144# pthread: Linux, etcetera
8145# --thread-safe: KAI C++
8146# pthread-config: use pthread-config program (for GNU Pth library)
8147
8148case "${host_cpu}-${host_os}" in
8149 *solaris*)
8150
8151 # On Solaris (at least, for some versions), libc contains stubbed
8152 # (non-functional) versions of the pthreads routines, so link-based
8153 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8154 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8155 # a function called by this macro, so we could check for that, but
8156 # who knows whether they'll stub that too in a future libc.) So,
8157 # we'll just look for -pthreads and -lpthread first:
8158
cristy964cb7f2010-04-25 23:18:00 +00008159 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008160 ;;
cristy964cb7f2010-04-25 23:18:00 +00008161
8162 *-darwin*)
8163 acx_pthread_flags="-pthread $acx_pthread_flags"
8164 ;;
cristy3ed852e2009-09-05 21:47:34 +00008165esac
8166
cristy964cb7f2010-04-25 23:18:00 +00008167if test x"$ax_pthread_ok" = xno; then
8168for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008169
8170 case $flag in
8171 none)
cristy8b350f62009-11-15 23:12:43 +00008172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008173$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8174 ;;
8175
8176 -*)
cristy8b350f62009-11-15 23:12:43 +00008177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008178$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8179 PTHREAD_CFLAGS="$flag"
8180 ;;
8181
8182 pthread-config)
8183 # Extract the first word of "pthread-config", so it can be a program name with args.
8184set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008186$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008187if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008188 $as_echo_n "(cached) " >&6
8189else
cristy964cb7f2010-04-25 23:18:00 +00008190 if test -n "$ax_pthread_config"; then
8191 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008192else
8193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194for as_dir in $PATH
8195do
8196 IFS=$as_save_IFS
8197 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy964cb7f2010-04-25 23:18:00 +00008200 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008202 break 2
8203 fi
8204done
cristy8b350f62009-11-15 23:12:43 +00008205 done
cristy3ed852e2009-09-05 21:47:34 +00008206IFS=$as_save_IFS
8207
cristy964cb7f2010-04-25 23:18:00 +00008208 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008209fi
8210fi
cristy964cb7f2010-04-25 23:18:00 +00008211ax_pthread_config=$ac_cv_prog_ax_pthread_config
8212if test -n "$ax_pthread_config"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8214$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008215else
cristy8b350f62009-11-15 23:12:43 +00008216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008217$as_echo "no" >&6; }
8218fi
8219
8220
cristy964cb7f2010-04-25 23:18:00 +00008221 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008222 PTHREAD_CFLAGS="`pthread-config --cflags`"
8223 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8224 ;;
8225
8226 *)
cristy8b350f62009-11-15 23:12:43 +00008227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008228$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8229 PTHREAD_LIBS="-l$flag"
8230 ;;
8231 esac
8232
8233 save_LIBS="$LIBS"
8234 save_CFLAGS="$CFLAGS"
8235 LIBS="$PTHREAD_LIBS $LIBS"
8236 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8237
8238 # Check for various functions. We must include pthread.h,
8239 # since some functions may be macros. (On the Sequent, we
8240 # need a special flag -Kthread to make this header compile.)
8241 # We check for pthread_join because it is in -lpthread on IRIX
8242 # while pthread_create is in libc. We check for pthread_attr_init
8243 # due to DEC craziness with -lpthreads. We check for
8244 # pthread_cleanup_push because it is one of the few pthread
8245 # functions on Solaris that doesn't have a non-functional libc stub.
8246 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008248/* end confdefs.h. */
8249#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008250 static void routine(void* a) {a=0;}
8251 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008252int
8253main ()
8254{
cristy964cb7f2010-04-25 23:18:00 +00008255pthread_t th; pthread_attr_t attr;
8256 pthread_join(th, 0);
8257 pthread_attr_init(&attr);
8258 pthread_cleanup_push(routine, 0);
8259 pthread_create(&th,0,start_routine,0);
8260 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008261 ;
8262 return 0;
8263}
8264_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008265if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008266 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008267fi
cristy8b350f62009-11-15 23:12:43 +00008268rm -f core conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008270
8271 LIBS="$save_LIBS"
8272 CFLAGS="$save_CFLAGS"
8273
cristy964cb7f2010-04-25 23:18:00 +00008274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8275$as_echo "$ax_pthread_ok" >&6; }
8276 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008277 break;
8278 fi
8279
8280 PTHREAD_LIBS=""
8281 PTHREAD_CFLAGS=""
8282done
8283fi
8284
8285# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008286if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008287 save_LIBS="$LIBS"
8288 LIBS="$PTHREAD_LIBS $LIBS"
8289 save_CFLAGS="$CFLAGS"
8290 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8291
8292 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008294$as_echo_n "checking for joinable pthread attribute... " >&6; }
8295 attr_name=unknown
8296 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008298/* end confdefs.h. */
8299#include <pthread.h>
8300int
8301main ()
8302{
8303int attr=$attr; return attr;
8304 ;
8305 return 0;
8306}
8307_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008308if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008309 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008310fi
cristy8b350f62009-11-15 23:12:43 +00008311rm -f core conftest.err conftest.$ac_objext \
8312 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008313 done
cristy8b350f62009-11-15 23:12:43 +00008314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008315$as_echo "$attr_name" >&6; }
8316 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8317
8318cat >>confdefs.h <<_ACEOF
8319#define PTHREAD_CREATE_JOINABLE $attr_name
8320_ACEOF
8321
8322 fi
8323
cristy8b350f62009-11-15 23:12:43 +00008324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008325$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8326 flag=no
8327 case "${host_cpu}-${host_os}" in
8328 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8329 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8330 esac
cristy8b350f62009-11-15 23:12:43 +00008331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008332$as_echo "${flag}" >&6; }
8333 if test "x$flag" != xno; then
8334 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8335 fi
8336
8337 LIBS="$save_LIBS"
8338 CFLAGS="$save_CFLAGS"
8339
8340 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008341 if test x"$GCC" != xyes; then
8342 for ac_prog in xlc_r cc_r
8343do
8344 # Extract the first word of "$ac_prog", so it can be a program name with args.
8345set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008347$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008348if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008349 $as_echo_n "(cached) " >&6
8350else
8351 if test -n "$PTHREAD_CC"; then
8352 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8353else
8354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355for as_dir in $PATH
8356do
8357 IFS=$as_save_IFS
8358 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008359 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008360 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 +00008361 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008363 break 2
8364 fi
8365done
cristy8b350f62009-11-15 23:12:43 +00008366 done
cristy3ed852e2009-09-05 21:47:34 +00008367IFS=$as_save_IFS
8368
cristy3ed852e2009-09-05 21:47:34 +00008369fi
8370fi
8371PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8372if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008374$as_echo "$PTHREAD_CC" >&6; }
8375else
cristy8b350f62009-11-15 23:12:43 +00008376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008377$as_echo "no" >&6; }
8378fi
8379
cristy736173a2009-09-20 21:18:22 +00008380
8381 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008382done
cristy736173a2009-09-20 21:18:22 +00008383test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008384
cristy736173a2009-09-20 21:18:22 +00008385 else
8386 PTHREAD_CC=$CC
8387 fi
cristy3ed852e2009-09-05 21:47:34 +00008388else
cristy736173a2009-09-20 21:18:22 +00008389 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008390fi
8391
cristy3ed852e2009-09-05 21:47:34 +00008392
8393
8394
8395
8396# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008397if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008398
cristy8b350f62009-11-15 23:12:43 +00008399$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008400
8401 :
8402else
cristy964cb7f2010-04-25 23:18:00 +00008403 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008404
8405fi
8406ac_ext=c
8407ac_cpp='$CPP $CPPFLAGS'
8408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8410ac_compiler_gnu=$ac_cv_c_compiler_gnu
8411
8412
cristy964cb7f2010-04-25 23:18:00 +00008413 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008414 have_threads=yes
8415 DEF_THREAD="$PTHREAD_CFLAGS"
8416 CFLAGS="$CFLAGS $DEF_THREAD"
8417 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8418 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008419 { $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 +00008420$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8421 CC="$PTHREAD_CC"
8422 fi
8423 fi
8424fi
8425
8426# Enable support for OpenMP
8427if test "$have_threads" != 'yes'; then
8428 ac_cv_prog_c_openmp=unsupported
8429fi
8430
8431 OPENMP_CFLAGS=
8432 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008433if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008434 enableval=$enable_openmp;
8435fi
8436
8437 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008439$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008440if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008441 $as_echo_n "(cached) " >&6
8442else
cristy8b350f62009-11-15 23:12:43 +00008443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008445
8446#ifndef _OPENMP
8447 choke me
8448#endif
8449#include <omp.h>
8450int main () { return omp_get_num_threads (); }
8451
8452_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008453if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008454 ac_cv_prog_c_openmp='none needed'
8455else
cristy8b350f62009-11-15 23:12:43 +00008456 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008457 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8458 ac_save_CFLAGS=$CFLAGS
8459 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008462
8463#ifndef _OPENMP
8464 choke me
8465#endif
8466#include <omp.h>
8467int main () { return omp_get_num_threads (); }
8468
8469_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008470if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008471 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008472fi
cristy8b350f62009-11-15 23:12:43 +00008473rm -f core conftest.err conftest.$ac_objext \
8474 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008475 CFLAGS=$ac_save_CFLAGS
8476 if test "$ac_cv_prog_c_openmp" != unsupported; then
8477 break
8478 fi
8479 done
8480fi
cristy8b350f62009-11-15 23:12:43 +00008481rm -f core conftest.err conftest.$ac_objext \
8482 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008483fi
cristy8b350f62009-11-15 23:12:43 +00008484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008485$as_echo "$ac_cv_prog_c_openmp" >&6; }
8486 case $ac_cv_prog_c_openmp in #(
8487 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008488 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008489 *)
cristy8b350f62009-11-15 23:12:43 +00008490 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008491 esac
8492 fi
8493
8494
8495CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8496MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8497
8498
cristy736173a2009-09-20 21:18:22 +00008499# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008500
cristy964cb7f2010-04-25 23:18:00 +00008501
8502
8503ac_ext=c
8504ac_cpp='$CPP $CPPFLAGS'
8505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8507ac_compiler_gnu=$ac_cv_c_compiler_gnu
8508
8509ax_pthread_ok=no
8510
8511# We used to check for pthread.h first, but this fails if pthread.h
8512# requires special compiler flags (e.g. on True64 or Sequent).
8513# It gets checked for in the link test anyway.
8514
8515# First of all, check if the user has set any of the PTHREAD_LIBS,
8516# etcetera environment variables, and if threads linking works using
8517# them:
8518if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8519 save_CFLAGS="$CFLAGS"
8520 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8521 save_LIBS="$LIBS"
8522 LIBS="$PTHREAD_LIBS $LIBS"
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8524$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526/* end confdefs.h. */
8527
8528/* Override any GCC internal prototype to avoid an error.
8529 Use char because int might match the return type of a GCC
8530 builtin and then its argument prototype would still apply. */
8531#ifdef __cplusplus
8532extern "C"
8533#endif
8534char pthread_join ();
8535int
8536main ()
8537{
8538return pthread_join ();
8539 ;
8540 return 0;
8541}
8542_ACEOF
8543if ac_fn_c_try_link "$LINENO"; then :
8544 ax_pthread_ok=yes
8545fi
8546rm -f core conftest.err conftest.$ac_objext \
8547 conftest$ac_exeext conftest.$ac_ext
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8549$as_echo "$ax_pthread_ok" >&6; }
8550 if test x"$ax_pthread_ok" = xno; then
8551 PTHREAD_LIBS=""
8552 PTHREAD_CFLAGS=""
8553 fi
8554 LIBS="$save_LIBS"
8555 CFLAGS="$save_CFLAGS"
8556fi
8557
8558# We must check for the threads library under a number of different
8559# names; the ordering is very important because some systems
8560# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8561# libraries is broken (non-POSIX).
8562
8563# Create a list of thread flags to try. Items starting with a "-" are
8564# C compiler flags, and other items are library names, except for "none"
8565# which indicates that we try without any flags at all, and "pthread-config"
8566# which is a program returning the flags for the Pth emulation library.
8567
8568ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8569
8570# The ordering *is* (sometimes) important. Some notes on the
8571# individual items follow:
8572
8573# pthreads: AIX (must check this before -lpthread)
8574# none: in case threads are in libc; should be tried before -Kthread and
8575# other compiler flags to prevent continual compiler warnings
8576# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8577# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8578# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8579# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8580# -pthreads: Solaris/gcc
8581# -mthreads: Mingw32/gcc, Lynx/gcc
8582# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8583# doesn't hurt to check since this sometimes defines pthreads too;
8584# also defines -D_REENTRANT)
8585# ... -mt is also the pthreads flag for HP/aCC
8586# pthread: Linux, etcetera
8587# --thread-safe: KAI C++
8588# pthread-config: use pthread-config program (for GNU Pth library)
8589
8590case "${host_cpu}-${host_os}" in
8591 *solaris*)
8592
8593 # On Solaris (at least, for some versions), libc contains stubbed
8594 # (non-functional) versions of the pthreads routines, so link-based
8595 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8596 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8597 # a function called by this macro, so we could check for that, but
8598 # who knows whether they'll stub that too in a future libc.) So,
8599 # we'll just look for -pthreads and -lpthread first:
8600
8601 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8602 ;;
8603
8604 *-darwin*)
8605 acx_pthread_flags="-pthread $acx_pthread_flags"
8606 ;;
8607esac
8608
8609if test x"$ax_pthread_ok" = xno; then
8610for flag in $ax_pthread_flags; do
8611
8612 case $flag in
8613 none)
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8615$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8616 ;;
8617
8618 -*)
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8620$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8621 PTHREAD_CFLAGS="$flag"
8622 ;;
8623
8624 pthread-config)
8625 # Extract the first word of "pthread-config", so it can be a program name with args.
8626set dummy pthread-config; ac_word=$2
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628$as_echo_n "checking for $ac_word... " >&6; }
8629if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8630 $as_echo_n "(cached) " >&6
8631else
8632 if test -n "$ax_pthread_config"; then
8633 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8634else
8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636for as_dir in $PATH
8637do
8638 IFS=$as_save_IFS
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
8641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8642 ac_cv_prog_ax_pthread_config="yes"
8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 break 2
8645 fi
8646done
8647 done
8648IFS=$as_save_IFS
8649
8650 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8651fi
8652fi
8653ax_pthread_config=$ac_cv_prog_ax_pthread_config
8654if test -n "$ax_pthread_config"; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8656$as_echo "$ax_pthread_config" >&6; }
8657else
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659$as_echo "no" >&6; }
8660fi
8661
8662
8663 if test x"$ax_pthread_config" = xno; then continue; fi
8664 PTHREAD_CFLAGS="`pthread-config --cflags`"
8665 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8666 ;;
8667
8668 *)
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8670$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8671 PTHREAD_LIBS="-l$flag"
8672 ;;
8673 esac
8674
8675 save_LIBS="$LIBS"
8676 save_CFLAGS="$CFLAGS"
8677 LIBS="$PTHREAD_LIBS $LIBS"
8678 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8679
8680 # Check for various functions. We must include pthread.h,
8681 # since some functions may be macros. (On the Sequent, we
8682 # need a special flag -Kthread to make this header compile.)
8683 # We check for pthread_join because it is in -lpthread on IRIX
8684 # while pthread_create is in libc. We check for pthread_attr_init
8685 # due to DEC craziness with -lpthreads. We check for
8686 # pthread_cleanup_push because it is one of the few pthread
8687 # functions on Solaris that doesn't have a non-functional libc stub.
8688 # We try pthread_create on general principles.
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690/* end confdefs.h. */
8691#include <pthread.h>
8692 static void routine(void* a) {a=0;}
8693 static void* start_routine(void* a) {return a;}
8694int
8695main ()
8696{
8697pthread_t th; pthread_attr_t attr;
8698 pthread_join(th, 0);
8699 pthread_attr_init(&attr);
8700 pthread_cleanup_push(routine, 0);
8701 pthread_create(&th,0,start_routine,0);
8702 pthread_cleanup_pop(0);
8703 ;
8704 return 0;
8705}
8706_ACEOF
8707if ac_fn_c_try_link "$LINENO"; then :
8708 ax_pthread_ok=yes
8709fi
8710rm -f core conftest.err conftest.$ac_objext \
8711 conftest$ac_exeext conftest.$ac_ext
8712
8713 LIBS="$save_LIBS"
8714 CFLAGS="$save_CFLAGS"
8715
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8717$as_echo "$ax_pthread_ok" >&6; }
8718 if test "x$ax_pthread_ok" = xyes; then
8719 break;
8720 fi
8721
8722 PTHREAD_LIBS=""
8723 PTHREAD_CFLAGS=""
8724done
8725fi
8726
8727# Various other checks:
8728if test "x$ax_pthread_ok" = xyes; then
8729 save_LIBS="$LIBS"
8730 LIBS="$PTHREAD_LIBS $LIBS"
8731 save_CFLAGS="$CFLAGS"
8732 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8733
8734 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8736$as_echo_n "checking for joinable pthread attribute... " >&6; }
8737 attr_name=unknown
8738 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740/* end confdefs.h. */
8741#include <pthread.h>
8742int
8743main ()
8744{
8745int attr=$attr; return attr;
8746 ;
8747 return 0;
8748}
8749_ACEOF
8750if ac_fn_c_try_link "$LINENO"; then :
8751 attr_name=$attr; break
8752fi
8753rm -f core conftest.err conftest.$ac_objext \
8754 conftest$ac_exeext conftest.$ac_ext
8755 done
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8757$as_echo "$attr_name" >&6; }
8758 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8759
8760cat >>confdefs.h <<_ACEOF
8761#define PTHREAD_CREATE_JOINABLE $attr_name
8762_ACEOF
8763
8764 fi
8765
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8767$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8768 flag=no
8769 case "${host_cpu}-${host_os}" in
8770 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8771 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8772 esac
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8774$as_echo "${flag}" >&6; }
8775 if test "x$flag" != xno; then
8776 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8777 fi
8778
8779 LIBS="$save_LIBS"
8780 CFLAGS="$save_CFLAGS"
8781
8782 # More AIX lossage: must compile with xlc_r or cc_r
8783 if test x"$GCC" != xyes; then
8784 for ac_prog in xlc_r cc_r
8785do
8786 # Extract the first word of "$ac_prog", so it can be a program name with args.
8787set dummy $ac_prog; ac_word=$2
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789$as_echo_n "checking for $ac_word... " >&6; }
8790if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8791 $as_echo_n "(cached) " >&6
8792else
8793 if test -n "$PTHREAD_CC"; then
8794 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8795else
8796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797for as_dir in $PATH
8798do
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8803 ac_cv_prog_PTHREAD_CC="$ac_prog"
8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 break 2
8806 fi
8807done
8808 done
8809IFS=$as_save_IFS
8810
8811fi
8812fi
8813PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8814if test -n "$PTHREAD_CC"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8816$as_echo "$PTHREAD_CC" >&6; }
8817else
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819$as_echo "no" >&6; }
8820fi
8821
8822
8823 test -n "$PTHREAD_CC" && break
8824done
8825test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8826
8827 else
8828 PTHREAD_CC=$CC
8829 fi
8830else
8831 PTHREAD_CC="$CC"
8832fi
8833
8834
8835
8836
8837
8838# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8839if test x"$ax_pthread_ok" = xyes; then
8840
8841$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8842
8843 :
8844else
8845 ax_pthread_ok=no
8846
8847fi
8848ac_ext=c
8849ac_cpp='$CPP $CPPFLAGS'
8850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8852ac_compiler_gnu=$ac_cv_c_compiler_gnu
8853
8854
8855
cristy43596fe2010-01-21 16:46:08 +00008856# Check whether --enable-opencl was given.
8857if test "${enable_opencl+set}" = set; then :
8858 enableval=$enable_opencl; disable_opencl=$enableval
8859else
8860 disable_opencl='yes'
8861fi
8862
8863
8864if test "$disable_opencl" = 'yes'; then
8865 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008866ac_cpp='$CPP $CPPFLAGS'
8867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8869ac_compiler_gnu=$ac_cv_c_compiler_gnu
8870
cristy43596fe2010-01-21 16:46:08 +00008871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008872$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008873if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008874 $as_echo_n "(cached) " >&6
8875else
cristy8b350f62009-11-15 23:12:43 +00008876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008877/* end confdefs.h. */
8878
8879int
8880main ()
8881{
8882#ifndef _MSC_VER
8883 choke me
8884#endif
8885
8886 ;
8887 return 0;
8888}
8889_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008890if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008891 ax_compiler_ms=yes
8892else
cristy8b350f62009-11-15 23:12:43 +00008893 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008894fi
cristy736173a2009-09-20 21:18:22 +00008895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8896ax_cv_c_compiler_ms=$ax_compiler_ms
8897
8898fi
cristy8b350f62009-11-15 23:12:43 +00008899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008900$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008901 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008902 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8903fi
8904
cristy43596fe2010-01-21 16:46:08 +00008905 ax_save_CPPFLAGS=$CPPFLAGS
8906 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8907 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008908do :
8909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8910ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8911eval as_val=\$$as_ac_Header
8912 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008913 cat >>confdefs.h <<_ACEOF
8914#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8915_ACEOF
8916
8917fi
8918
8919done
8920
cristy43596fe2010-01-21 16:46:08 +00008921 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008922
cristy43596fe2010-01-21 16:46:08 +00008923 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008924do :
8925 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8926if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008927 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008928#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008929_ACEOF
8930
8931fi
8932
8933done
8934
8935
8936
8937
cristy43596fe2010-01-21 16:46:08 +00008938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008939$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008940if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008941 $as_echo_n "(cached) " >&6
8942else
8943 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008944 case $host_cpu in
8945 x86_64) ax_check_cl_libdir=lib64 ;;
8946 *) ax_check_cl_libdir=lib ;;
8947 esac
8948 ax_save_CPPFLAGS=$CPPFLAGS
8949 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8950 ax_save_LIBS=$LIBS
8951 LIBS=""
8952 ax_check_libs="-lOpenCL -lCL -lclparser"
8953 for ax_lib in $ax_check_libs; do
8954 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008955 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8956else
8957 ax_try_lib=$ax_lib
8958fi
cristy43596fe2010-01-21 16:46:08 +00008959 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008961/* end confdefs.h. */
8962
cristy43596fe2010-01-21 16:46:08 +00008963 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8964 # include <windows.h>
8965 # endif
8966 # ifdef HAVE_CL_CL_H
8967 # include <CL/cl.h>
8968 # elif defined(HAVE_OPENCL_CL_H)
8969 # include <OpenCL/cl.h>
8970 # else
8971 # error no CL.h
8972 # endif
cristy736173a2009-09-20 21:18:22 +00008973int
8974main ()
8975{
cristyc7083c12009-10-14 03:16:55 +00008976clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008977 ;
8978 return 0;
8979}
8980_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008981if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008982 ax_cv_check_cl_libcl=$ax_try_lib; break
8983else
cristy8b350f62009-11-15 23:12:43 +00008984 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"
cristy43596fe2010-01-21 16:46:08 +00008985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008986/* end confdefs.h. */
8987
cristy43596fe2010-01-21 16:46:08 +00008988 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8989 # include <windows.h>
8990 # endif
8991 # ifdef HAVE_CL_CL_H
8992 # include <CL/cl.h>
8993 # elif defined(HAVE_OPENCL_CL_H)
8994 # include <OpenCL/cl.h>
8995 # else
8996 # error no CL.h
8997 # endif
cristy736173a2009-09-20 21:18:22 +00008998int
8999main ()
9000{
cristyc7083c12009-10-14 03:16:55 +00009001clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009002 ;
9003 return 0;
9004}
9005_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009006if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009007 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9008else
cristy4dc44432009-12-30 23:30:06 +00009009 ax_check_cl_dylib_flag='-framework OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
cristy43596fe2010-01-21 16:46:08 +00009010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009011/* end confdefs.h. */
9012
cristy43596fe2010-01-21 16:46:08 +00009013 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9014 # include <windows.h>
9015 # endif
9016 # ifdef HAVE_CL_CL_H
9017 # include <CL/cl.h>
9018 # elif defined(HAVE_OPENCL_CL_H)
9019 # include <OpenCL/cl.h>
9020 # else
9021 # error no CL.h
9022 # endif
cristy736173a2009-09-20 21:18:22 +00009023int
9024main ()
9025{
cristyc7083c12009-10-14 03:16:55 +00009026clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009027 ;
9028 return 0;
9029}
9030_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009031if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009032 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009033fi
cristy8b350f62009-11-15 23:12:43 +00009034rm -f core conftest.err conftest.$ac_objext \
9035 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009036fi
cristy8b350f62009-11-15 23:12:43 +00009037rm -f core conftest.err conftest.$ac_objext \
9038 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009039fi
cristy8b350f62009-11-15 23:12:43 +00009040rm -f core conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009042 done
cristy736173a2009-09-20 21:18:22 +00009043
cristy43596fe2010-01-21 16:46:08 +00009044 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009045 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009047/* end confdefs.h. */
9048
cristy43596fe2010-01-21 16:46:08 +00009049 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9050 # include <windows.h>
9051 # endif
9052 # ifdef HAVE_CL_CL_H
9053 # include <CL/cl.h>
9054 # elif defined(HAVE_OPENCL_CL_H)
9055 # include <OpenCL/cl.h>
9056 # else
9057 # error no CL.h
9058 # endif
cristy736173a2009-09-20 21:18:22 +00009059int
9060main ()
9061{
cristyc7083c12009-10-14 03:16:55 +00009062clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009063 ;
9064 return 0;
9065}
9066_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009067if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009068 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009069fi
cristy8b350f62009-11-15 23:12:43 +00009070rm -f core conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009072fi
9073
cristy43596fe2010-01-21 16:46:08 +00009074 LIBS=$ax_save_LIBS
9075 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009076fi
cristy8b350f62009-11-15 23:12:43 +00009077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009078$as_echo "$ax_cv_check_cl_libcl" >&6; }
9079
cristy43596fe2010-01-21 16:46:08 +00009080 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009081 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9082else
cristy99cc3002010-01-21 14:50:11 +00009083 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9084$as_echo "#define _OPENCL 1" >>confdefs.h
9085
cristy736173a2009-09-20 21:18:22 +00009086fi
cristy43596fe2010-01-21 16:46:08 +00009087 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009088ac_cpp='$CPP $CPPFLAGS'
9089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9091ac_compiler_gnu=$ac_cv_c_compiler_gnu
9092
cristy43596fe2010-01-21 16:46:08 +00009093fi
cristy736173a2009-09-20 21:18:22 +00009094
9095
9096
9097
cristyc7083c12009-10-14 03:16:55 +00009098CFLAGS="$CL_CFLAGS $CFLAGS"
9099LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009100
cristy2e8b51d2009-10-17 18:26:15 +00009101
cristy3ed852e2009-09-05 21:47:34 +00009102########
9103#
9104# Check for large file support
9105#
9106########
9107# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009108if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009109 enableval=$enable_largefile;
9110fi
9111
9112if test "$enable_largefile" != no; then
9113
cristy8b350f62009-11-15 23:12:43 +00009114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009115$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009116if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009117 $as_echo_n "(cached) " >&6
9118else
9119 ac_cv_sys_largefile_CC=no
9120 if test "$GCC" != yes; then
9121 ac_save_CC=$CC
9122 while :; do
9123 # IRIX 6.2 and later do not support large files by default,
9124 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009126/* end confdefs.h. */
9127#include <sys/types.h>
9128 /* Check that off_t can represent 2**63 - 1 correctly.
9129 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9130 since some C++ compilers masquerading as C compilers
9131 incorrectly reject 9223372036854775807. */
9132#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9134 && LARGE_OFF_T % 2147483647 == 1)
9135 ? 1 : -1];
9136int
9137main ()
9138{
9139
9140 ;
9141 return 0;
9142}
9143_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009144 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009145 break
cristy3ed852e2009-09-05 21:47:34 +00009146fi
cristy3ed852e2009-09-05 21:47:34 +00009147rm -f core conftest.err conftest.$ac_objext
9148 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009149 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009150 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009151fi
cristy3ed852e2009-09-05 21:47:34 +00009152rm -f core conftest.err conftest.$ac_objext
9153 break
9154 done
9155 CC=$ac_save_CC
9156 rm -f conftest.$ac_ext
9157 fi
9158fi
cristy8b350f62009-11-15 23:12:43 +00009159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009160$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9161 if test "$ac_cv_sys_largefile_CC" != no; then
9162 CC=$CC$ac_cv_sys_largefile_CC
9163 fi
9164
cristy8b350f62009-11-15 23:12:43 +00009165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009166$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009167if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009168 $as_echo_n "(cached) " >&6
9169else
9170 while :; do
cristy8b350f62009-11-15 23:12:43 +00009171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009172/* end confdefs.h. */
9173#include <sys/types.h>
9174 /* Check that off_t can represent 2**63 - 1 correctly.
9175 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9176 since some C++ compilers masquerading as C compilers
9177 incorrectly reject 9223372036854775807. */
9178#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9179 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9180 && LARGE_OFF_T % 2147483647 == 1)
9181 ? 1 : -1];
9182int
9183main ()
9184{
9185
9186 ;
9187 return 0;
9188}
9189_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009190if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009191 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009192fi
cristy3ed852e2009-09-05 21:47:34 +00009193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009195/* end confdefs.h. */
9196#define _FILE_OFFSET_BITS 64
9197#include <sys/types.h>
9198 /* Check that off_t can represent 2**63 - 1 correctly.
9199 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9200 since some C++ compilers masquerading as C compilers
9201 incorrectly reject 9223372036854775807. */
9202#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9204 && LARGE_OFF_T % 2147483647 == 1)
9205 ? 1 : -1];
9206int
9207main ()
9208{
9209
9210 ;
9211 return 0;
9212}
9213_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009214if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009215 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009216fi
cristy3ed852e2009-09-05 21:47:34 +00009217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218 ac_cv_sys_file_offset_bits=unknown
9219 break
9220done
9221fi
cristy8b350f62009-11-15 23:12:43 +00009222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009223$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9224case $ac_cv_sys_file_offset_bits in #(
9225 no | unknown) ;;
9226 *)
9227cat >>confdefs.h <<_ACEOF
9228#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9229_ACEOF
9230;;
9231esac
9232rm -rf conftest*
9233 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009235$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009236if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009237 $as_echo_n "(cached) " >&6
9238else
9239 while :; do
cristy8b350f62009-11-15 23:12:43 +00009240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009241/* end confdefs.h. */
9242#include <sys/types.h>
9243 /* Check that off_t can represent 2**63 - 1 correctly.
9244 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9245 since some C++ compilers masquerading as C compilers
9246 incorrectly reject 9223372036854775807. */
9247#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9248 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9249 && LARGE_OFF_T % 2147483647 == 1)
9250 ? 1 : -1];
9251int
9252main ()
9253{
9254
9255 ;
9256 return 0;
9257}
9258_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009259if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009260 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009261fi
cristy3ed852e2009-09-05 21:47:34 +00009262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009264/* end confdefs.h. */
9265#define _LARGE_FILES 1
9266#include <sys/types.h>
9267 /* Check that off_t can represent 2**63 - 1 correctly.
9268 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9269 since some C++ compilers masquerading as C compilers
9270 incorrectly reject 9223372036854775807. */
9271#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9273 && LARGE_OFF_T % 2147483647 == 1)
9274 ? 1 : -1];
9275int
9276main ()
9277{
9278
9279 ;
9280 return 0;
9281}
9282_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009283if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009284 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009285fi
cristy3ed852e2009-09-05 21:47:34 +00009286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287 ac_cv_sys_large_files=unknown
9288 break
9289done
9290fi
cristy8b350f62009-11-15 23:12:43 +00009291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009292$as_echo "$ac_cv_sys_large_files" >&6; }
9293case $ac_cv_sys_large_files in #(
9294 no | unknown) ;;
9295 *)
9296cat >>confdefs.h <<_ACEOF
9297#define _LARGE_FILES $ac_cv_sys_large_files
9298_ACEOF
9299;;
9300esac
9301rm -rf conftest*
9302 fi
9303fi
9304
cristy8b350f62009-11-15 23:12:43 +00009305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009306$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009307if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009308 $as_echo_n "(cached) " >&6
9309else
9310 while :; do
cristy8b350f62009-11-15 23:12:43 +00009311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009312/* end confdefs.h. */
9313#include <sys/types.h> /* for off_t */
9314 #include <stdio.h>
9315int
9316main ()
9317{
9318int (*fp) (FILE *, off_t, int) = fseeko;
9319 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9320 ;
9321 return 0;
9322}
9323_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009324if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009325 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009326fi
cristy8b350f62009-11-15 23:12:43 +00009327rm -f core conftest.err conftest.$ac_objext \
9328 conftest$ac_exeext conftest.$ac_ext
9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009330/* end confdefs.h. */
9331#define _LARGEFILE_SOURCE 1
9332#include <sys/types.h> /* for off_t */
9333 #include <stdio.h>
9334int
9335main ()
9336{
9337int (*fp) (FILE *, off_t, int) = fseeko;
9338 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9339 ;
9340 return 0;
9341}
9342_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009343if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009344 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009345fi
cristy8b350f62009-11-15 23:12:43 +00009346rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009348 ac_cv_sys_largefile_source=unknown
9349 break
9350done
9351fi
cristy8b350f62009-11-15 23:12:43 +00009352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009353$as_echo "$ac_cv_sys_largefile_source" >&6; }
9354case $ac_cv_sys_largefile_source in #(
9355 no | unknown) ;;
9356 *)
9357cat >>confdefs.h <<_ACEOF
9358#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9359_ACEOF
9360;;
9361esac
9362rm -rf conftest*
9363
9364# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9365# in glibc 2.1.3, but that breaks too many other things.
9366# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9367if test $ac_cv_sys_largefile_source != unknown; then
9368
cristy8b350f62009-11-15 23:12:43 +00009369$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009370
9371fi
9372
9373LFS_CPPFLAGS=''
9374if test "$enable_largefile" != no; then
9375 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9376 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9377 else
cristy8b350f62009-11-15 23:12:43 +00009378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009379$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009380 if test "$cross_compiling" = yes; then :
9381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00009383as_fn_error "cannot run test program while cross compiling
9384See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009385else
cristy8b350f62009-11-15 23:12:43 +00009386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009388#include <unistd.h>
9389 main () {
9390 exit(!(sizeof(off_t) == 8));
9391 }
9392_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009393if ac_fn_c_try_run "$LINENO"; then :
9394 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009395
cristy8b350f62009-11-15 23:12:43 +00009396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009397$as_echo "yes" >&6; }
9398else
cristy8b350f62009-11-15 23:12:43 +00009399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009400$as_echo "no" >&6; }
9401fi
cristy8b350f62009-11-15 23:12:43 +00009402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9403 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009404fi
9405
cristy3ed852e2009-09-05 21:47:34 +00009406 fi
9407 if test "$ac_cv_sys_large_files" != 'no'; then
9408 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9409 fi
9410 if test "$ac_cv_sys_largefile_source" != 'no'; then
9411 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9412 fi
9413fi
9414
9415
9416#
9417# Configure libtool & libltdl
9418#
9419# Configure libtool
9420enable_dlopen=yes
9421
9422
9423
9424case `pwd` in
9425 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009427$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9428esac
9429
9430
9431
cristy232a9ab2010-06-26 01:02:54 +00009432macro_version='2.2.10'
9433macro_revision='1.3175'
cristy3ed852e2009-09-05 21:47:34 +00009434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447ltmain="$ac_aux_dir/ltmain.sh"
9448
cristy232a9ab2010-06-26 01:02:54 +00009449# Backslashify metacharacters that are still active within
9450# double-quoted strings.
9451sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9452
9453# Same as above, but do not quote variable references.
9454double_quote_subst='s/\(["`\\]\)/\\\1/g'
9455
9456# Sed substitution to delay expansion of an escaped shell variable in a
9457# double_quote_subst'ed string.
9458delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9459
9460# Sed substitution to delay expansion of an escaped single quote.
9461delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9462
9463# Sed substitution to avoid accidental globbing in evaled expressions
9464no_glob_subst='s/\*/\\\*/g'
9465
cristy8b350f62009-11-15 23:12:43 +00009466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009467$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009468if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009469 $as_echo_n "(cached) " >&6
9470else
9471 if test -n "$NM"; then
9472 # Let the user override the test.
9473 lt_cv_path_NM="$NM"
9474else
9475 lt_nm_to_check="${ac_tool_prefix}nm"
9476 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9477 lt_nm_to_check="$lt_nm_to_check nm"
9478 fi
9479 for lt_tmp_nm in $lt_nm_to_check; do
9480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9481 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9482 IFS="$lt_save_ifs"
9483 test -z "$ac_dir" && ac_dir=.
9484 tmp_nm="$ac_dir/$lt_tmp_nm"
9485 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9486 # Check to see if the nm accepts a BSD-compat flag.
9487 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9488 # nm: unknown option "B" ignored
9489 # Tru64's nm complains that /dev/null is an invalid object file
9490 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9491 */dev/null* | *'Invalid file or object type'*)
9492 lt_cv_path_NM="$tmp_nm -B"
9493 break
9494 ;;
9495 *)
9496 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9497 */dev/null*)
9498 lt_cv_path_NM="$tmp_nm -p"
9499 break
9500 ;;
9501 *)
9502 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9503 continue # so that we can try to find one that supports BSD flags
9504 ;;
9505 esac
9506 ;;
9507 esac
9508 fi
9509 done
9510 IFS="$lt_save_ifs"
9511 done
9512 : ${lt_cv_path_NM=no}
9513fi
9514fi
cristy8b350f62009-11-15 23:12:43 +00009515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009516$as_echo "$lt_cv_path_NM" >&6; }
9517if test "$lt_cv_path_NM" != "no"; then
9518 NM="$lt_cv_path_NM"
9519else
9520 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy232a9ab2010-06-26 01:02:54 +00009521 if test -n "$DUMPBIN"; then :
9522 # Let the user override the test.
9523 else
9524 if test -n "$ac_tool_prefix"; then
9525 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009526 do
9527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9528set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009530$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009531if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009532 $as_echo_n "(cached) " >&6
9533else
9534 if test -n "$DUMPBIN"; then
9535 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9536else
9537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538for as_dir in $PATH
9539do
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9544 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009546 break 2
9547 fi
9548done
cristy8b350f62009-11-15 23:12:43 +00009549 done
cristy3ed852e2009-09-05 21:47:34 +00009550IFS=$as_save_IFS
9551
9552fi
9553fi
9554DUMPBIN=$ac_cv_prog_DUMPBIN
9555if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009557$as_echo "$DUMPBIN" >&6; }
9558else
cristy8b350f62009-11-15 23:12:43 +00009559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009560$as_echo "no" >&6; }
9561fi
9562
9563
9564 test -n "$DUMPBIN" && break
9565 done
9566fi
9567if test -z "$DUMPBIN"; then
9568 ac_ct_DUMPBIN=$DUMPBIN
cristy232a9ab2010-06-26 01:02:54 +00009569 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009570do
9571 # Extract the first word of "$ac_prog", so it can be a program name with args.
9572set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009574$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009575if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009576 $as_echo_n "(cached) " >&6
9577else
9578 if test -n "$ac_ct_DUMPBIN"; then
9579 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9580else
9581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9582for as_dir in $PATH
9583do
9584 IFS=$as_save_IFS
9585 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009586 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9588 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009590 break 2
9591 fi
9592done
cristy8b350f62009-11-15 23:12:43 +00009593 done
cristy3ed852e2009-09-05 21:47:34 +00009594IFS=$as_save_IFS
9595
9596fi
9597fi
9598ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9599if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009601$as_echo "$ac_ct_DUMPBIN" >&6; }
9602else
cristy8b350f62009-11-15 23:12:43 +00009603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009604$as_echo "no" >&6; }
9605fi
9606
9607
9608 test -n "$ac_ct_DUMPBIN" && break
9609done
9610
9611 if test "x$ac_ct_DUMPBIN" = x; then
9612 DUMPBIN=":"
9613 else
9614 case $cross_compiling:$ac_tool_warned in
9615yes:)
cristy8b350f62009-11-15 23:12:43 +00009616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9618ac_tool_warned=yes ;;
9619esac
9620 DUMPBIN=$ac_ct_DUMPBIN
9621 fi
9622fi
9623
cristy232a9ab2010-06-26 01:02:54 +00009624 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9625 *COFF*)
9626 DUMPBIN="$DUMPBIN -symbols"
9627 ;;
9628 *)
9629 DUMPBIN=:
9630 ;;
9631 esac
9632 fi
cristy3ed852e2009-09-05 21:47:34 +00009633
9634 if test "$DUMPBIN" != ":"; then
9635 NM="$DUMPBIN"
9636 fi
9637fi
9638test -z "$NM" && NM=nm
9639
9640
9641
9642
9643
9644
cristy8b350f62009-11-15 23:12:43 +00009645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009646$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009647if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009648 $as_echo_n "(cached) " >&6
9649else
9650 lt_cv_nm_interface="BSD nm"
9651 echo "int some_variable = 0;" > conftest.$ac_ext
cristy232a9ab2010-06-26 01:02:54 +00009652 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009653 (eval "$ac_compile" 2>conftest.err)
9654 cat conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +00009655 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009656 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9657 cat conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +00009658 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009659 cat conftest.out >&5
9660 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9661 lt_cv_nm_interface="MS dumpbin"
9662 fi
9663 rm -f conftest*
9664fi
cristy8b350f62009-11-15 23:12:43 +00009665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009666$as_echo "$lt_cv_nm_interface" >&6; }
9667
9668# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009670$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009671if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009672 $as_echo_n "(cached) " >&6
9673else
9674 i=0
9675 teststring="ABCD"
9676
9677 case $build_os in
9678 msdosdjgpp*)
9679 # On DJGPP, this test can blow up pretty badly due to problems in libc
9680 # (any single argument exceeding 2000 bytes causes a buffer overrun
9681 # during glob expansion). Even if it were fixed, the result of this
9682 # check would be larger than it should be.
9683 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9684 ;;
9685
9686 gnu*)
9687 # Under GNU Hurd, this test is not required because there is
9688 # no limit to the length of command line arguments.
9689 # Libtool will interpret -1 as no limit whatsoever
9690 lt_cv_sys_max_cmd_len=-1;
9691 ;;
9692
9693 cygwin* | mingw* | cegcc*)
9694 # On Win9x/ME, this test blows up -- it succeeds, but takes
9695 # about 5 minutes as the teststring grows exponentially.
9696 # Worse, since 9x/ME are not pre-emptively multitasking,
9697 # you end up with a "frozen" computer, even though with patience
9698 # the test eventually succeeds (with a max line length of 256k).
9699 # Instead, let's just punt: use the minimum linelength reported by
9700 # all of the supported platforms: 8192 (on NT/2K/XP).
9701 lt_cv_sys_max_cmd_len=8192;
9702 ;;
9703
cristy232a9ab2010-06-26 01:02:54 +00009704 mint*)
9705 # On MiNT this can take a long time and run out of memory.
9706 lt_cv_sys_max_cmd_len=8192;
9707 ;;
9708
cristy3ed852e2009-09-05 21:47:34 +00009709 amigaos*)
9710 # On AmigaOS with pdksh, this test takes hours, literally.
9711 # So we just punt and use a minimum line length of 8192.
9712 lt_cv_sys_max_cmd_len=8192;
9713 ;;
9714
9715 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9716 # This has been around since 386BSD, at least. Likely further.
9717 if test -x /sbin/sysctl; then
9718 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9719 elif test -x /usr/sbin/sysctl; then
9720 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9721 else
9722 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9723 fi
9724 # And add a safety zone
9725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9727 ;;
9728
9729 interix*)
9730 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9731 lt_cv_sys_max_cmd_len=196608
9732 ;;
9733
9734 osf*)
9735 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9736 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9737 # nice to cause kernel panics so lets avoid the loop below.
9738 # First set a reasonable default.
9739 lt_cv_sys_max_cmd_len=16384
9740 #
9741 if test -x /sbin/sysconfig; then
9742 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9743 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9744 esac
9745 fi
9746 ;;
9747 sco3.2v5*)
9748 lt_cv_sys_max_cmd_len=102400
9749 ;;
9750 sysv5* | sco5v6* | sysv4.2uw2*)
9751 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9752 if test -n "$kargmax"; then
9753 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9754 else
9755 lt_cv_sys_max_cmd_len=32768
9756 fi
9757 ;;
9758 *)
9759 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9760 if test -n "$lt_cv_sys_max_cmd_len"; then
9761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9763 else
9764 # Make teststring a little bigger before we do anything with it.
9765 # a 1K string should be a reasonable start.
9766 for i in 1 2 3 4 5 6 7 8 ; do
9767 teststring=$teststring$teststring
9768 done
9769 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9770 # If test is not a shell built-in, we'll probably end up computing a
9771 # maximum length that is only half of the actual maximum length, but
9772 # we can't tell.
cristy232a9ab2010-06-26 01:02:54 +00009773 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9774 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009775 test $i != 17 # 1/2 MB should be enough
9776 do
9777 i=`expr $i + 1`
9778 teststring=$teststring$teststring
9779 done
9780 # Only check the string length outside the loop.
9781 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9782 teststring=
9783 # Add a significant safety factor because C++ compilers can tack on
9784 # massive amounts of additional arguments before passing them to the
9785 # linker. It appears as though 1/2 is a usable value.
9786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9787 fi
9788 ;;
9789 esac
9790
9791fi
9792
9793if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009795$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9796else
cristy8b350f62009-11-15 23:12:43 +00009797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009798$as_echo "none" >&6; }
9799fi
9800max_cmd_len=$lt_cv_sys_max_cmd_len
9801
9802
9803
9804
9805
9806
9807: ${CP="cp -f"}
9808: ${MV="mv -f"}
9809: ${RM="rm -f"}
9810
cristy8b350f62009-11-15 23:12:43 +00009811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009812$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9813# Try some XSI features
9814xsi_shell=no
9815( _lt_dummy="a/b/c"
9816 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9817 = c,a/b,, \
9818 && eval 'test $(( 1 + 1 )) -eq 2 \
9819 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9820 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009822$as_echo "$xsi_shell" >&6; }
9823
9824
cristy8b350f62009-11-15 23:12:43 +00009825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009826$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9827lt_shell_append=no
9828( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9829 >/dev/null 2>&1 \
9830 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009832$as_echo "$lt_shell_append" >&6; }
9833
9834
9835if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9836 lt_unset=unset
9837else
9838 lt_unset=false
9839fi
9840
9841
9842
9843
9844
9845# test EBCDIC or ASCII
9846case `echo X|tr X '\101'` in
9847 A) # ASCII based system
9848 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9849 lt_SP2NL='tr \040 \012'
9850 lt_NL2SP='tr \015\012 \040\040'
9851 ;;
9852 *) # EBCDIC based system
9853 lt_SP2NL='tr \100 \n'
9854 lt_NL2SP='tr \r\n \100\100'
9855 ;;
9856esac
9857
9858
9859
9860
9861
9862
9863
9864
9865
cristy8b350f62009-11-15 23:12:43 +00009866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009867$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009868if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009869 $as_echo_n "(cached) " >&6
9870else
9871 lt_cv_ld_reload_flag='-r'
9872fi
cristy8b350f62009-11-15 23:12:43 +00009873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009874$as_echo "$lt_cv_ld_reload_flag" >&6; }
9875reload_flag=$lt_cv_ld_reload_flag
9876case $reload_flag in
9877"" | " "*) ;;
9878*) reload_flag=" $reload_flag" ;;
9879esac
9880reload_cmds='$LD$reload_flag -o $output$reload_objs'
9881case $host_os in
9882 darwin*)
9883 if test "$GCC" = yes; then
9884 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9885 else
9886 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9887 fi
9888 ;;
9889esac
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899if test -n "$ac_tool_prefix"; then
9900 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9901set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009903$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009904if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009905 $as_echo_n "(cached) " >&6
9906else
9907 if test -n "$OBJDUMP"; then
9908 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9909else
9910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911for as_dir in $PATH
9912do
9913 IFS=$as_save_IFS
9914 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9917 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009919 break 2
9920 fi
9921done
cristy8b350f62009-11-15 23:12:43 +00009922 done
cristy3ed852e2009-09-05 21:47:34 +00009923IFS=$as_save_IFS
9924
9925fi
9926fi
9927OBJDUMP=$ac_cv_prog_OBJDUMP
9928if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009930$as_echo "$OBJDUMP" >&6; }
9931else
cristy8b350f62009-11-15 23:12:43 +00009932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009933$as_echo "no" >&6; }
9934fi
9935
9936
9937fi
9938if test -z "$ac_cv_prog_OBJDUMP"; then
9939 ac_ct_OBJDUMP=$OBJDUMP
9940 # Extract the first word of "objdump", so it can be a program name with args.
9941set dummy objdump; 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_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009945 $as_echo_n "(cached) " >&6
9946else
9947 if test -n "$ac_ct_OBJDUMP"; then
9948 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_ac_ct_OBJDUMP="objdump"
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
9967ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9968if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009970$as_echo "$ac_ct_OBJDUMP" >&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 if test "x$ac_ct_OBJDUMP" = x; then
9977 OBJDUMP="false"
9978 else
9979 case $cross_compiling:$ac_tool_warned in
9980yes:)
cristy8b350f62009-11-15 23:12:43 +00009981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9983ac_tool_warned=yes ;;
9984esac
9985 OBJDUMP=$ac_ct_OBJDUMP
9986 fi
9987else
9988 OBJDUMP="$ac_cv_prog_OBJDUMP"
9989fi
9990
9991test -z "$OBJDUMP" && OBJDUMP=objdump
9992
9993
9994
9995
9996
9997
cristy8b350f62009-11-15 23:12:43 +00009998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00009999$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010000if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010001 $as_echo_n "(cached) " >&6
10002else
10003 lt_cv_file_magic_cmd='$MAGIC_CMD'
10004lt_cv_file_magic_test_file=
10005lt_cv_deplibs_check_method='unknown'
10006# Need to set the preceding variable on all platforms that support
10007# interlibrary dependencies.
10008# 'none' -- dependencies not supported.
10009# `unknown' -- same as none, but documents that we really don't know.
10010# 'pass_all' -- all dependencies passed with no checks.
10011# 'test_compile' -- check by making test program.
10012# 'file_magic [[regex]]' -- check by looking for files in library path
10013# which responds to the $file_magic_cmd with a given extended regex.
10014# If you have `file' or equivalent on your system and you're not sure
10015# whether `pass_all' will *always* work, you probably want this one.
10016
10017case $host_os in
10018aix[4-9]*)
10019 lt_cv_deplibs_check_method=pass_all
10020 ;;
10021
10022beos*)
10023 lt_cv_deplibs_check_method=pass_all
10024 ;;
10025
10026bsdi[45]*)
10027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10028 lt_cv_file_magic_cmd='/usr/bin/file -L'
10029 lt_cv_file_magic_test_file=/shlib/libc.so
10030 ;;
10031
10032cygwin*)
10033 # func_win32_libid is a shell function defined in ltmain.sh
10034 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10035 lt_cv_file_magic_cmd='func_win32_libid'
10036 ;;
10037
10038mingw* | pw32*)
10039 # Base MSYS/MinGW do not provide the 'file' command needed by
10040 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10041 # unless we find 'file', for example because we are cross-compiling.
cristy232a9ab2010-06-26 01:02:54 +000010042 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10043 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010044 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10045 lt_cv_file_magic_cmd='func_win32_libid'
10046 else
cristy232a9ab2010-06-26 01:02:54 +000010047 # Keep this pattern in sync with the one in func_win32_libid.
10048 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cristy3ed852e2009-09-05 21:47:34 +000010049 lt_cv_file_magic_cmd='$OBJDUMP -f'
10050 fi
10051 ;;
10052
cristy232a9ab2010-06-26 01:02:54 +000010053cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010054 # use the weaker test based on 'objdump'. See mingw*.
10055 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10056 lt_cv_file_magic_cmd='$OBJDUMP -f'
10057 ;;
10058
10059darwin* | rhapsody*)
10060 lt_cv_deplibs_check_method=pass_all
10061 ;;
10062
10063freebsd* | dragonfly*)
10064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10065 case $host_cpu in
10066 i*86 )
10067 # Not sure whether the presence of OpenBSD here was a mistake.
10068 # Let's accept both of them until this is cleared up.
10069 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10070 lt_cv_file_magic_cmd=/usr/bin/file
10071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10072 ;;
10073 esac
10074 else
10075 lt_cv_deplibs_check_method=pass_all
10076 fi
10077 ;;
10078
10079gnu*)
10080 lt_cv_deplibs_check_method=pass_all
10081 ;;
10082
cristy232a9ab2010-06-26 01:02:54 +000010083haiku*)
10084 lt_cv_deplibs_check_method=pass_all
10085 ;;
10086
cristy3ed852e2009-09-05 21:47:34 +000010087hpux10.20* | hpux11*)
10088 lt_cv_file_magic_cmd=/usr/bin/file
10089 case $host_cpu in
10090 ia64*)
10091 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10092 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10093 ;;
10094 hppa*64*)
cristy232a9ab2010-06-26 01:02:54 +000010095 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 +000010096 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10097 ;;
10098 *)
cristy232a9ab2010-06-26 01:02:54 +000010099 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 +000010100 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10101 ;;
10102 esac
10103 ;;
10104
10105interix[3-9]*)
10106 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10108 ;;
10109
10110irix5* | irix6* | nonstopux*)
10111 case $LD in
10112 *-32|*"-32 ") libmagic=32-bit;;
10113 *-n32|*"-n32 ") libmagic=N32;;
10114 *-64|*"-64 ") libmagic=64-bit;;
10115 *) libmagic=never-match;;
10116 esac
10117 lt_cv_deplibs_check_method=pass_all
10118 ;;
10119
10120# This must be Linux ELF.
cristy232a9ab2010-06-26 01:02:54 +000010121linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010122 lt_cv_deplibs_check_method=pass_all
10123 ;;
10124
10125netbsd*)
10126 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10128 else
10129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10130 fi
10131 ;;
10132
10133newos6*)
10134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10135 lt_cv_file_magic_cmd=/usr/bin/file
10136 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10137 ;;
10138
10139*nto* | *qnx*)
10140 lt_cv_deplibs_check_method=pass_all
10141 ;;
10142
10143openbsd*)
10144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10146 else
10147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10148 fi
10149 ;;
10150
10151osf3* | osf4* | osf5*)
10152 lt_cv_deplibs_check_method=pass_all
10153 ;;
10154
10155rdos*)
10156 lt_cv_deplibs_check_method=pass_all
10157 ;;
10158
10159solaris*)
10160 lt_cv_deplibs_check_method=pass_all
10161 ;;
10162
10163sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10164 lt_cv_deplibs_check_method=pass_all
10165 ;;
10166
10167sysv4 | sysv4.3*)
10168 case $host_vendor in
10169 motorola)
10170 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]'
10171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10172 ;;
10173 ncr)
10174 lt_cv_deplibs_check_method=pass_all
10175 ;;
10176 sequent)
10177 lt_cv_file_magic_cmd='/bin/file'
10178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10179 ;;
10180 sni)
10181 lt_cv_file_magic_cmd='/bin/file'
10182 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10183 lt_cv_file_magic_test_file=/lib/libc.so
10184 ;;
10185 siemens)
10186 lt_cv_deplibs_check_method=pass_all
10187 ;;
10188 pc)
10189 lt_cv_deplibs_check_method=pass_all
10190 ;;
10191 esac
10192 ;;
10193
10194tpf*)
10195 lt_cv_deplibs_check_method=pass_all
10196 ;;
10197esac
10198
10199fi
cristy8b350f62009-11-15 23:12:43 +000010200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010201$as_echo "$lt_cv_deplibs_check_method" >&6; }
10202file_magic_cmd=$lt_cv_file_magic_cmd
10203deplibs_check_method=$lt_cv_deplibs_check_method
10204test -z "$deplibs_check_method" && deplibs_check_method=unknown
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217if test -n "$ac_tool_prefix"; then
10218 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10219set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010221$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010222if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010223 $as_echo_n "(cached) " >&6
10224else
10225 if test -n "$AR"; then
10226 ac_cv_prog_AR="$AR" # Let the user override the test.
10227else
10228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10229for as_dir in $PATH
10230do
10231 IFS=$as_save_IFS
10232 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10235 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010237 break 2
10238 fi
10239done
cristy8b350f62009-11-15 23:12:43 +000010240 done
cristy3ed852e2009-09-05 21:47:34 +000010241IFS=$as_save_IFS
10242
10243fi
10244fi
10245AR=$ac_cv_prog_AR
10246if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010248$as_echo "$AR" >&6; }
10249else
cristy8b350f62009-11-15 23:12:43 +000010250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010251$as_echo "no" >&6; }
10252fi
10253
10254
10255fi
10256if test -z "$ac_cv_prog_AR"; then
10257 ac_ct_AR=$AR
10258 # Extract the first word of "ar", so it can be a program name with args.
10259set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010261$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010262if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010263 $as_echo_n "(cached) " >&6
10264else
10265 if test -n "$ac_ct_AR"; then
10266 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10267else
10268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269for as_dir in $PATH
10270do
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010273 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10275 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010277 break 2
10278 fi
10279done
cristy8b350f62009-11-15 23:12:43 +000010280 done
cristy3ed852e2009-09-05 21:47:34 +000010281IFS=$as_save_IFS
10282
10283fi
10284fi
10285ac_ct_AR=$ac_cv_prog_ac_ct_AR
10286if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010288$as_echo "$ac_ct_AR" >&6; }
10289else
cristy8b350f62009-11-15 23:12:43 +000010290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010291$as_echo "no" >&6; }
10292fi
10293
10294 if test "x$ac_ct_AR" = x; then
10295 AR="false"
10296 else
10297 case $cross_compiling:$ac_tool_warned in
10298yes:)
cristy8b350f62009-11-15 23:12:43 +000010299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10301ac_tool_warned=yes ;;
10302esac
10303 AR=$ac_ct_AR
10304 fi
10305else
10306 AR="$ac_cv_prog_AR"
10307fi
10308
10309test -z "$AR" && AR=ar
10310test -z "$AR_FLAGS" && AR_FLAGS=cru
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322if test -n "$ac_tool_prefix"; then
10323 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10324set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010326$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010327if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010328 $as_echo_n "(cached) " >&6
10329else
10330 if test -n "$STRIP"; then
10331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10332else
10333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334for as_dir in $PATH
10335do
10336 IFS=$as_save_IFS
10337 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010338 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10340 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010342 break 2
10343 fi
10344done
cristy8b350f62009-11-15 23:12:43 +000010345 done
cristy3ed852e2009-09-05 21:47:34 +000010346IFS=$as_save_IFS
10347
10348fi
10349fi
10350STRIP=$ac_cv_prog_STRIP
10351if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010353$as_echo "$STRIP" >&6; }
10354else
cristy8b350f62009-11-15 23:12:43 +000010355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010356$as_echo "no" >&6; }
10357fi
10358
10359
10360fi
10361if test -z "$ac_cv_prog_STRIP"; then
10362 ac_ct_STRIP=$STRIP
10363 # Extract the first word of "strip", so it can be a program name with args.
10364set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010366$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010367if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010368 $as_echo_n "(cached) " >&6
10369else
10370 if test -n "$ac_ct_STRIP"; then
10371 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10372else
10373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374for as_dir in $PATH
10375do
10376 IFS=$as_save_IFS
10377 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10380 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010382 break 2
10383 fi
10384done
cristy8b350f62009-11-15 23:12:43 +000010385 done
cristy3ed852e2009-09-05 21:47:34 +000010386IFS=$as_save_IFS
10387
10388fi
10389fi
10390ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10391if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010393$as_echo "$ac_ct_STRIP" >&6; }
10394else
cristy8b350f62009-11-15 23:12:43 +000010395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010396$as_echo "no" >&6; }
10397fi
10398
10399 if test "x$ac_ct_STRIP" = x; then
10400 STRIP=":"
10401 else
10402 case $cross_compiling:$ac_tool_warned in
10403yes:)
cristy8b350f62009-11-15 23:12:43 +000010404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10406ac_tool_warned=yes ;;
10407esac
10408 STRIP=$ac_ct_STRIP
10409 fi
10410else
10411 STRIP="$ac_cv_prog_STRIP"
10412fi
10413
10414test -z "$STRIP" && STRIP=:
10415
10416
10417
10418
10419
10420
10421if test -n "$ac_tool_prefix"; then
10422 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10423set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010425$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010426if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010427 $as_echo_n "(cached) " >&6
10428else
10429 if test -n "$RANLIB"; then
10430 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10431else
10432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10433for as_dir in $PATH
10434do
10435 IFS=$as_save_IFS
10436 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010437 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10439 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010441 break 2
10442 fi
10443done
cristy8b350f62009-11-15 23:12:43 +000010444 done
cristy3ed852e2009-09-05 21:47:34 +000010445IFS=$as_save_IFS
10446
10447fi
10448fi
10449RANLIB=$ac_cv_prog_RANLIB
10450if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010452$as_echo "$RANLIB" >&6; }
10453else
cristy8b350f62009-11-15 23:12:43 +000010454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010455$as_echo "no" >&6; }
10456fi
10457
10458
10459fi
10460if test -z "$ac_cv_prog_RANLIB"; then
10461 ac_ct_RANLIB=$RANLIB
10462 # Extract the first word of "ranlib", so it can be a program name with args.
10463set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010465$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010466if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010467 $as_echo_n "(cached) " >&6
10468else
10469 if test -n "$ac_ct_RANLIB"; then
10470 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10471else
10472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473for as_dir in $PATH
10474do
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10479 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010481 break 2
10482 fi
10483done
cristy8b350f62009-11-15 23:12:43 +000010484 done
cristy3ed852e2009-09-05 21:47:34 +000010485IFS=$as_save_IFS
10486
10487fi
10488fi
10489ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10490if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010492$as_echo "$ac_ct_RANLIB" >&6; }
10493else
cristy8b350f62009-11-15 23:12:43 +000010494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010495$as_echo "no" >&6; }
10496fi
10497
10498 if test "x$ac_ct_RANLIB" = x; then
10499 RANLIB=":"
10500 else
10501 case $cross_compiling:$ac_tool_warned in
10502yes:)
cristy8b350f62009-11-15 23:12:43 +000010503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10505ac_tool_warned=yes ;;
10506esac
10507 RANLIB=$ac_ct_RANLIB
10508 fi
10509else
10510 RANLIB="$ac_cv_prog_RANLIB"
10511fi
10512
10513test -z "$RANLIB" && RANLIB=:
10514
10515
10516
10517
10518
10519
10520# Determine commands to create old-style static archives.
10521old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10522old_postinstall_cmds='chmod 644 $oldlib'
10523old_postuninstall_cmds=
10524
10525if test -n "$RANLIB"; then
10526 case $host_os in
10527 openbsd*)
10528 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10529 ;;
10530 *)
10531 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10532 ;;
10533 esac
10534 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10535fi
10536
cristy232a9ab2010-06-26 01:02:54 +000010537case $host_os in
10538 darwin*)
10539 lock_old_archive_extraction=yes ;;
10540 *)
10541 lock_old_archive_extraction=no ;;
10542esac
10543
10544
10545
10546
10547
10548
cristy3ed852e2009-09-05 21:47:34 +000010549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582# If no C compiler was specified, use CC.
10583LTCC=${LTCC-"$CC"}
10584
10585# If no C compiler flags were specified, use CFLAGS.
10586LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10587
10588# Allow CC to be a program name with arguments.
10589compiler=$CC
10590
10591
10592# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010594$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010595if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010596 $as_echo_n "(cached) " >&6
10597else
10598
10599# These are sane defaults that work on at least a few old systems.
10600# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10601
10602# Character class describing NM global symbol codes.
10603symcode='[BCDEGRST]'
10604
10605# Regexp to match symbols that can be accessed directly from C.
10606sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10607
10608# Define system-specific variables.
10609case $host_os in
10610aix*)
10611 symcode='[BCDT]'
10612 ;;
10613cygwin* | mingw* | pw32* | cegcc*)
10614 symcode='[ABCDGISTW]'
10615 ;;
10616hpux*)
10617 if test "$host_cpu" = ia64; then
10618 symcode='[ABCDEGRST]'
10619 fi
10620 ;;
10621irix* | nonstopux*)
10622 symcode='[BCDEGRST]'
10623 ;;
10624osf*)
10625 symcode='[BCDEGQRST]'
10626 ;;
10627solaris*)
10628 symcode='[BDRT]'
10629 ;;
10630sco3.2v5*)
10631 symcode='[DT]'
10632 ;;
10633sysv4.2uw2*)
10634 symcode='[DT]'
10635 ;;
10636sysv5* | sco5v6* | unixware* | OpenUNIX*)
10637 symcode='[ABDT]'
10638 ;;
10639sysv4)
10640 symcode='[DFNSTU]'
10641 ;;
10642esac
10643
10644# If we're using GNU nm, then use its standard symbol codes.
10645case `$NM -V 2>&1` in
10646*GNU* | *'with BFD'*)
10647 symcode='[ABCDGIRSTW]' ;;
10648esac
10649
10650# Transform an extracted symbol line into a proper C declaration.
10651# Some systems (esp. on ia64) link data and code symbols differently,
10652# so use this general approach.
10653lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10654
10655# Transform an extracted symbol line into symbol name and symbol address
10656lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10657lt_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'"
10658
10659# Handle CRLF in mingw tool chain
10660opt_cr=
10661case $build_os in
10662mingw*)
10663 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10664 ;;
10665esac
10666
10667# Try without a prefix underscore, then with it.
10668for ac_symprfx in "" "_"; do
10669
10670 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10671 symxfrm="\\1 $ac_symprfx\\2 \\2"
10672
10673 # Write the raw and C identifiers.
10674 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10675 # Fake it for dumpbin and say T for any non-static function
10676 # and D for any global variable.
10677 # Also find C++ and __fastcall symbols from MSVC++,
10678 # which start with @ or ?.
10679 lt_cv_sys_global_symbol_pipe="$AWK '"\
10680" {last_section=section; section=\$ 3};"\
10681" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10682" \$ 0!~/External *\|/{next};"\
10683" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10684" {if(hide[section]) next};"\
10685" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10686" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10687" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10688" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10689" ' prfx=^$ac_symprfx"
10690 else
10691 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10692 fi
10693
10694 # Check to see that the pipe works correctly.
10695 pipe_works=no
10696
10697 rm -f conftest*
10698 cat > conftest.$ac_ext <<_LT_EOF
10699#ifdef __cplusplus
10700extern "C" {
10701#endif
10702char nm_test_var;
10703void nm_test_func(void);
10704void nm_test_func(void){}
10705#ifdef __cplusplus
10706}
10707#endif
10708int main(){nm_test_var='a';nm_test_func();return(0);}
10709_LT_EOF
10710
cristy8b350f62009-11-15 23:12:43 +000010711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010712 (eval $ac_compile) 2>&5
10713 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10715 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010716 # Now try to grab the symbols.
10717 nlist=conftest.nm
cristy232a9ab2010-06-26 01:02:54 +000010718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10719 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010720 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10722 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010723 # Try sorting and uniquifying the output.
10724 if sort "$nlist" | uniq > "$nlist"T; then
10725 mv -f "$nlist"T "$nlist"
10726 else
10727 rm -f "$nlist"T
10728 fi
10729
10730 # Make sure that we snagged all the symbols we need.
10731 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10732 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10733 cat <<_LT_EOF > conftest.$ac_ext
10734#ifdef __cplusplus
10735extern "C" {
10736#endif
10737
10738_LT_EOF
10739 # Now generate the symbol file.
10740 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10741
10742 cat <<_LT_EOF >> conftest.$ac_ext
10743
10744/* The mapping between symbol names and symbols. */
10745const struct {
10746 const char *name;
10747 void *address;
10748}
10749lt__PROGRAM__LTX_preloaded_symbols[] =
10750{
10751 { "@PROGRAM@", (void *) 0 },
10752_LT_EOF
10753 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10754 cat <<\_LT_EOF >> conftest.$ac_ext
10755 {0, (void *) 0}
10756};
10757
10758/* This works around a problem in FreeBSD linker */
10759#ifdef FREEBSD_WORKAROUND
10760static const void *lt_preloaded_setup() {
10761 return lt__PROGRAM__LTX_preloaded_symbols;
10762}
10763#endif
10764
10765#ifdef __cplusplus
10766}
10767#endif
10768_LT_EOF
10769 # Now try linking the two files.
10770 mv conftest.$ac_objext conftstm.$ac_objext
10771 lt_save_LIBS="$LIBS"
10772 lt_save_CFLAGS="$CFLAGS"
10773 LIBS="conftstm.$ac_objext"
10774 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010776 (eval $ac_link) 2>&5
10777 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10779 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010780 pipe_works=yes
10781 fi
10782 LIBS="$lt_save_LIBS"
10783 CFLAGS="$lt_save_CFLAGS"
10784 else
10785 echo "cannot find nm_test_func in $nlist" >&5
10786 fi
10787 else
10788 echo "cannot find nm_test_var in $nlist" >&5
10789 fi
10790 else
10791 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10792 fi
10793 else
10794 echo "$progname: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 fi
10797 rm -rf conftest* conftst*
10798
10799 # Do not use the global_symbol_pipe unless it works.
10800 if test "$pipe_works" = yes; then
10801 break
10802 else
10803 lt_cv_sys_global_symbol_pipe=
10804 fi
10805done
10806
10807fi
10808
10809if test -z "$lt_cv_sys_global_symbol_pipe"; then
10810 lt_cv_sys_global_symbol_to_cdecl=
10811fi
10812if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010814$as_echo "failed" >&6; }
10815else
cristy8b350f62009-11-15 23:12:43 +000010816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010817$as_echo "ok" >&6; }
10818fi
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010842if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010843 enableval=$enable_libtool_lock;
10844fi
10845
10846test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10847
10848# Some flags need to be propagated to the compiler or linker for good
10849# libtool support.
10850case $host in
10851ia64-*-hpux*)
10852 # Find out which ABI we are using.
10853 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010855 (eval $ac_compile) 2>&5
10856 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10858 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010859 case `/usr/bin/file conftest.$ac_objext` in
10860 *ELF-32*)
10861 HPUX_IA64_MODE="32"
10862 ;;
10863 *ELF-64*)
10864 HPUX_IA64_MODE="64"
10865 ;;
10866 esac
10867 fi
10868 rm -rf conftest*
10869 ;;
10870*-*-irix6*)
10871 # Find out which ABI we are using.
cristy232a9ab2010-06-26 01:02:54 +000010872 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010874 (eval $ac_compile) 2>&5
10875 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10877 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010878 if test "$lt_cv_prog_gnu_ld" = yes; then
10879 case `/usr/bin/file conftest.$ac_objext` in
10880 *32-bit*)
10881 LD="${LD-ld} -melf32bsmip"
10882 ;;
10883 *N32*)
10884 LD="${LD-ld} -melf32bmipn32"
10885 ;;
10886 *64-bit*)
10887 LD="${LD-ld} -melf64bmip"
10888 ;;
10889 esac
10890 else
10891 case `/usr/bin/file conftest.$ac_objext` in
10892 *32-bit*)
10893 LD="${LD-ld} -32"
10894 ;;
10895 *N32*)
10896 LD="${LD-ld} -n32"
10897 ;;
10898 *64-bit*)
10899 LD="${LD-ld} -64"
10900 ;;
10901 esac
10902 fi
10903 fi
10904 rm -rf conftest*
10905 ;;
10906
10907x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10908s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10909 # Find out which ABI we are using.
10910 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010912 (eval $ac_compile) 2>&5
10913 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10915 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010916 case `/usr/bin/file conftest.o` in
10917 *32-bit*)
10918 case $host in
10919 x86_64-*kfreebsd*-gnu)
10920 LD="${LD-ld} -m elf_i386_fbsd"
10921 ;;
10922 x86_64-*linux*)
10923 LD="${LD-ld} -m elf_i386"
10924 ;;
10925 ppc64-*linux*|powerpc64-*linux*)
10926 LD="${LD-ld} -m elf32ppclinux"
10927 ;;
10928 s390x-*linux*)
10929 LD="${LD-ld} -m elf_s390"
10930 ;;
10931 sparc64-*linux*)
10932 LD="${LD-ld} -m elf32_sparc"
10933 ;;
10934 esac
10935 ;;
10936 *64-bit*)
10937 case $host in
10938 x86_64-*kfreebsd*-gnu)
10939 LD="${LD-ld} -m elf_x86_64_fbsd"
10940 ;;
10941 x86_64-*linux*)
10942 LD="${LD-ld} -m elf_x86_64"
10943 ;;
10944 ppc*-*linux*|powerpc*-*linux*)
10945 LD="${LD-ld} -m elf64ppc"
10946 ;;
10947 s390*-*linux*|s390*-*tpf*)
10948 LD="${LD-ld} -m elf64_s390"
10949 ;;
10950 sparc*-*linux*)
10951 LD="${LD-ld} -m elf64_sparc"
10952 ;;
10953 esac
10954 ;;
10955 esac
10956 fi
10957 rm -rf conftest*
10958 ;;
10959
10960*-*-sco3.2v5*)
10961 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10962 SAVE_CFLAGS="$CFLAGS"
10963 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010965$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010966if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010967 $as_echo_n "(cached) " >&6
10968else
10969 ac_ext=c
10970ac_cpp='$CPP $CPPFLAGS'
10971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10973ac_compiler_gnu=$ac_cv_c_compiler_gnu
10974
cristy8b350f62009-11-15 23:12:43 +000010975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010976/* end confdefs.h. */
10977
10978int
10979main ()
10980{
10981
10982 ;
10983 return 0;
10984}
10985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010986if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010987 lt_cv_cc_needs_belf=yes
10988else
cristy8b350f62009-11-15 23:12:43 +000010989 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000010990fi
cristy8b350f62009-11-15 23:12:43 +000010991rm -f core conftest.err conftest.$ac_objext \
10992 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010993 ac_ext=c
10994ac_cpp='$CPP $CPPFLAGS'
10995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10997ac_compiler_gnu=$ac_cv_c_compiler_gnu
10998
10999fi
cristy8b350f62009-11-15 23:12:43 +000011000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011001$as_echo "$lt_cv_cc_needs_belf" >&6; }
11002 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11003 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11004 CFLAGS="$SAVE_CFLAGS"
11005 fi
11006 ;;
11007sparc*-*solaris*)
11008 # Find out which ABI we are using.
11009 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011011 (eval $ac_compile) 2>&5
11012 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11014 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011015 case `/usr/bin/file conftest.o` in
11016 *64-bit*)
11017 case $lt_cv_prog_gnu_ld in
11018 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11019 *)
11020 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11021 LD="${LD-ld} -64"
11022 fi
11023 ;;
11024 esac
11025 ;;
11026 esac
11027 fi
11028 rm -rf conftest*
11029 ;;
11030esac
11031
11032need_locks="$enable_libtool_lock"
11033
11034
11035 case $host_os in
11036 rhapsody* | darwin*)
11037 if test -n "$ac_tool_prefix"; then
11038 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11039set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011041$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011042if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011043 $as_echo_n "(cached) " >&6
11044else
11045 if test -n "$DSYMUTIL"; then
11046 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11047else
11048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049for as_dir in $PATH
11050do
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011053 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11055 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011057 break 2
11058 fi
11059done
cristy8b350f62009-11-15 23:12:43 +000011060 done
cristy3ed852e2009-09-05 21:47:34 +000011061IFS=$as_save_IFS
11062
11063fi
11064fi
11065DSYMUTIL=$ac_cv_prog_DSYMUTIL
11066if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011068$as_echo "$DSYMUTIL" >&6; }
11069else
cristy8b350f62009-11-15 23:12:43 +000011070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011071$as_echo "no" >&6; }
11072fi
11073
11074
11075fi
11076if test -z "$ac_cv_prog_DSYMUTIL"; then
11077 ac_ct_DSYMUTIL=$DSYMUTIL
11078 # Extract the first word of "dsymutil", so it can be a program name with args.
11079set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011081$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011082if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011083 $as_echo_n "(cached) " >&6
11084else
11085 if test -n "$ac_ct_DSYMUTIL"; then
11086 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11087else
11088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089for as_dir in $PATH
11090do
11091 IFS=$as_save_IFS
11092 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011093 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11095 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011097 break 2
11098 fi
11099done
cristy8b350f62009-11-15 23:12:43 +000011100 done
cristy3ed852e2009-09-05 21:47:34 +000011101IFS=$as_save_IFS
11102
11103fi
11104fi
11105ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11106if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011108$as_echo "$ac_ct_DSYMUTIL" >&6; }
11109else
cristy8b350f62009-11-15 23:12:43 +000011110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011111$as_echo "no" >&6; }
11112fi
11113
11114 if test "x$ac_ct_DSYMUTIL" = x; then
11115 DSYMUTIL=":"
11116 else
11117 case $cross_compiling:$ac_tool_warned in
11118yes:)
cristy8b350f62009-11-15 23:12:43 +000011119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11121ac_tool_warned=yes ;;
11122esac
11123 DSYMUTIL=$ac_ct_DSYMUTIL
11124 fi
11125else
11126 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11127fi
11128
11129 if test -n "$ac_tool_prefix"; then
11130 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11131set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011133$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011134if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011135 $as_echo_n "(cached) " >&6
11136else
11137 if test -n "$NMEDIT"; then
11138 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11139else
11140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141for as_dir in $PATH
11142do
11143 IFS=$as_save_IFS
11144 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011145 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11147 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011149 break 2
11150 fi
11151done
cristy8b350f62009-11-15 23:12:43 +000011152 done
cristy3ed852e2009-09-05 21:47:34 +000011153IFS=$as_save_IFS
11154
11155fi
11156fi
11157NMEDIT=$ac_cv_prog_NMEDIT
11158if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011160$as_echo "$NMEDIT" >&6; }
11161else
cristy8b350f62009-11-15 23:12:43 +000011162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011163$as_echo "no" >&6; }
11164fi
11165
11166
11167fi
11168if test -z "$ac_cv_prog_NMEDIT"; then
11169 ac_ct_NMEDIT=$NMEDIT
11170 # Extract the first word of "nmedit", so it can be a program name with args.
11171set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011173$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011174if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011175 $as_echo_n "(cached) " >&6
11176else
11177 if test -n "$ac_ct_NMEDIT"; then
11178 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11179else
11180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181for as_dir in $PATH
11182do
11183 IFS=$as_save_IFS
11184 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11187 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011189 break 2
11190 fi
11191done
cristy8b350f62009-11-15 23:12:43 +000011192 done
cristy3ed852e2009-09-05 21:47:34 +000011193IFS=$as_save_IFS
11194
11195fi
11196fi
11197ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11198if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011200$as_echo "$ac_ct_NMEDIT" >&6; }
11201else
cristy8b350f62009-11-15 23:12:43 +000011202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011203$as_echo "no" >&6; }
11204fi
11205
11206 if test "x$ac_ct_NMEDIT" = x; then
11207 NMEDIT=":"
11208 else
11209 case $cross_compiling:$ac_tool_warned in
11210yes:)
cristy8b350f62009-11-15 23:12:43 +000011211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11213ac_tool_warned=yes ;;
11214esac
11215 NMEDIT=$ac_ct_NMEDIT
11216 fi
11217else
11218 NMEDIT="$ac_cv_prog_NMEDIT"
11219fi
11220
11221 if test -n "$ac_tool_prefix"; then
11222 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11223set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011225$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011226if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011227 $as_echo_n "(cached) " >&6
11228else
11229 if test -n "$LIPO"; then
11230 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11231else
11232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233for as_dir in $PATH
11234do
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11239 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011241 break 2
11242 fi
11243done
cristy8b350f62009-11-15 23:12:43 +000011244 done
cristy3ed852e2009-09-05 21:47:34 +000011245IFS=$as_save_IFS
11246
11247fi
11248fi
11249LIPO=$ac_cv_prog_LIPO
11250if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011252$as_echo "$LIPO" >&6; }
11253else
cristy8b350f62009-11-15 23:12:43 +000011254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011255$as_echo "no" >&6; }
11256fi
11257
11258
11259fi
11260if test -z "$ac_cv_prog_LIPO"; then
11261 ac_ct_LIPO=$LIPO
11262 # Extract the first word of "lipo", so it can be a program name with args.
11263set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011265$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011266if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011267 $as_echo_n "(cached) " >&6
11268else
11269 if test -n "$ac_ct_LIPO"; then
11270 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11271else
11272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273for as_dir in $PATH
11274do
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11279 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011281 break 2
11282 fi
11283done
cristy8b350f62009-11-15 23:12:43 +000011284 done
cristy3ed852e2009-09-05 21:47:34 +000011285IFS=$as_save_IFS
11286
11287fi
11288fi
11289ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11290if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011292$as_echo "$ac_ct_LIPO" >&6; }
11293else
cristy8b350f62009-11-15 23:12:43 +000011294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011295$as_echo "no" >&6; }
11296fi
11297
11298 if test "x$ac_ct_LIPO" = x; then
11299 LIPO=":"
11300 else
11301 case $cross_compiling:$ac_tool_warned in
11302yes:)
cristy8b350f62009-11-15 23:12:43 +000011303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11305ac_tool_warned=yes ;;
11306esac
11307 LIPO=$ac_ct_LIPO
11308 fi
11309else
11310 LIPO="$ac_cv_prog_LIPO"
11311fi
11312
11313 if test -n "$ac_tool_prefix"; then
11314 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11315set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011317$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011318if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011319 $as_echo_n "(cached) " >&6
11320else
11321 if test -n "$OTOOL"; then
11322 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11323else
11324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325for as_dir in $PATH
11326do
11327 IFS=$as_save_IFS
11328 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11331 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011333 break 2
11334 fi
11335done
cristy8b350f62009-11-15 23:12:43 +000011336 done
cristy3ed852e2009-09-05 21:47:34 +000011337IFS=$as_save_IFS
11338
11339fi
11340fi
11341OTOOL=$ac_cv_prog_OTOOL
11342if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011344$as_echo "$OTOOL" >&6; }
11345else
cristy8b350f62009-11-15 23:12:43 +000011346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011347$as_echo "no" >&6; }
11348fi
11349
11350
11351fi
11352if test -z "$ac_cv_prog_OTOOL"; then
11353 ac_ct_OTOOL=$OTOOL
11354 # Extract the first word of "otool", so it can be a program name with args.
11355set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011357$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011358if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011359 $as_echo_n "(cached) " >&6
11360else
11361 if test -n "$ac_ct_OTOOL"; then
11362 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11363else
11364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365for as_dir in $PATH
11366do
11367 IFS=$as_save_IFS
11368 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011369 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11371 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011373 break 2
11374 fi
11375done
cristy8b350f62009-11-15 23:12:43 +000011376 done
cristy3ed852e2009-09-05 21:47:34 +000011377IFS=$as_save_IFS
11378
11379fi
11380fi
11381ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11382if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011384$as_echo "$ac_ct_OTOOL" >&6; }
11385else
cristy8b350f62009-11-15 23:12:43 +000011386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011387$as_echo "no" >&6; }
11388fi
11389
11390 if test "x$ac_ct_OTOOL" = x; then
11391 OTOOL=":"
11392 else
11393 case $cross_compiling:$ac_tool_warned in
11394yes:)
cristy8b350f62009-11-15 23:12:43 +000011395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11397ac_tool_warned=yes ;;
11398esac
11399 OTOOL=$ac_ct_OTOOL
11400 fi
11401else
11402 OTOOL="$ac_cv_prog_OTOOL"
11403fi
11404
11405 if test -n "$ac_tool_prefix"; then
11406 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11407set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011409$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011410if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011411 $as_echo_n "(cached) " >&6
11412else
11413 if test -n "$OTOOL64"; then
11414 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11415else
11416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11417for as_dir in $PATH
11418do
11419 IFS=$as_save_IFS
11420 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011421 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11423 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011425 break 2
11426 fi
11427done
cristy8b350f62009-11-15 23:12:43 +000011428 done
cristy3ed852e2009-09-05 21:47:34 +000011429IFS=$as_save_IFS
11430
11431fi
11432fi
11433OTOOL64=$ac_cv_prog_OTOOL64
11434if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011436$as_echo "$OTOOL64" >&6; }
11437else
cristy8b350f62009-11-15 23:12:43 +000011438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011439$as_echo "no" >&6; }
11440fi
11441
11442
11443fi
11444if test -z "$ac_cv_prog_OTOOL64"; then
11445 ac_ct_OTOOL64=$OTOOL64
11446 # Extract the first word of "otool64", so it can be a program name with args.
11447set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011449$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011450if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011451 $as_echo_n "(cached) " >&6
11452else
11453 if test -n "$ac_ct_OTOOL64"; then
11454 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11455else
11456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11457for as_dir in $PATH
11458do
11459 IFS=$as_save_IFS
11460 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011461 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11463 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011465 break 2
11466 fi
11467done
cristy8b350f62009-11-15 23:12:43 +000011468 done
cristy3ed852e2009-09-05 21:47:34 +000011469IFS=$as_save_IFS
11470
11471fi
11472fi
11473ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11474if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011476$as_echo "$ac_ct_OTOOL64" >&6; }
11477else
cristy8b350f62009-11-15 23:12:43 +000011478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011479$as_echo "no" >&6; }
11480fi
11481
11482 if test "x$ac_ct_OTOOL64" = x; then
11483 OTOOL64=":"
11484 else
11485 case $cross_compiling:$ac_tool_warned in
11486yes:)
cristy8b350f62009-11-15 23:12:43 +000011487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11489ac_tool_warned=yes ;;
11490esac
11491 OTOOL64=$ac_ct_OTOOL64
11492 fi
11493else
11494 OTOOL64="$ac_cv_prog_OTOOL64"
11495fi
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
cristy8b350f62009-11-15 23:12:43 +000011523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011524$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011525if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011526 $as_echo_n "(cached) " >&6
11527else
11528 lt_cv_apple_cc_single_mod=no
11529 if test -z "${LT_MULTI_MODULE}"; then
11530 # By default we will add the -single_module flag. You can override
11531 # by either setting the environment variable LT_MULTI_MODULE
11532 # non-empty at configure time, or by adding -multi_module to the
11533 # link flags.
11534 rm -rf libconftest.dylib*
11535 echo "int foo(void){return 1;}" > conftest.c
11536 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11537-dynamiclib -Wl,-single_module conftest.c" >&5
11538 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11539 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11540 _lt_result=$?
11541 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11542 lt_cv_apple_cc_single_mod=yes
11543 else
11544 cat conftest.err >&5
11545 fi
11546 rm -rf libconftest.dylib*
11547 rm -f conftest.*
11548 fi
11549fi
cristy8b350f62009-11-15 23:12:43 +000011550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011551$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011553$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011554if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011555 $as_echo_n "(cached) " >&6
11556else
11557 lt_cv_ld_exported_symbols_list=no
11558 save_LDFLAGS=$LDFLAGS
11559 echo "_main" > conftest.sym
11560 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011562/* end confdefs.h. */
11563
11564int
11565main ()
11566{
11567
11568 ;
11569 return 0;
11570}
11571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011572if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011573 lt_cv_ld_exported_symbols_list=yes
11574else
cristy8b350f62009-11-15 23:12:43 +000011575 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011576fi
cristy8b350f62009-11-15 23:12:43 +000011577rm -f core conftest.err conftest.$ac_objext \
11578 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011579 LDFLAGS="$save_LDFLAGS"
11580
11581fi
cristy8b350f62009-11-15 23:12:43 +000011582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011583$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy232a9ab2010-06-26 01:02:54 +000011584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11585$as_echo_n "checking for -force_load linker flag... " >&6; }
11586if test "${lt_cv_ld_force_load+set}" = set; then :
11587 $as_echo_n "(cached) " >&6
11588else
11589 lt_cv_ld_force_load=no
11590 cat > conftest.c << _LT_EOF
11591int forced_loaded() { return 2;}
11592_LT_EOF
11593 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11594 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11595 echo "$AR cru libconftest.a conftest.o" >&5
11596 $AR cru libconftest.a conftest.o 2>&5
11597 echo "$RANLIB libconftest.a" >&5
11598 $RANLIB libconftest.a 2>&5
11599 cat > conftest.c << _LT_EOF
11600int main() { return 0;}
11601_LT_EOF
11602 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11603 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11604 _lt_result=$?
11605 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11606 lt_cv_ld_force_load=yes
11607 else
11608 cat conftest.err >&5
11609 fi
11610 rm -f conftest.err libconftest.a conftest conftest.c
11611 rm -rf conftest.dSYM
11612
11613fi
11614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11615$as_echo "$lt_cv_ld_force_load" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011616 case $host_os in
11617 rhapsody* | darwin1.[012])
11618 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11619 darwin1.*)
11620 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11621 darwin*) # darwin 5.x on
11622 # if running on 10.5 or later, the deployment target defaults
11623 # to the OS version, if on x86, and 10.4, the deployment
11624 # target defaults to 10.4. Don't you love it?
11625 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11626 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11627 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11628 10.[012]*)
11629 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11630 10.*)
11631 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11632 esac
11633 ;;
11634 esac
11635 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11636 _lt_dar_single_mod='$single_module'
11637 fi
11638 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11639 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11640 else
11641 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11642 fi
cristy232a9ab2010-06-26 01:02:54 +000011643 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy3ed852e2009-09-05 21:47:34 +000011644 _lt_dsymutil='~$DSYMUTIL $lib || :'
11645 else
11646 _lt_dsymutil=
11647 fi
11648 ;;
11649 esac
11650
cristy3ed852e2009-09-05 21:47:34 +000011651for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011652do :
11653 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11654"
11655if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011656 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011657#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011658_ACEOF
11659
11660fi
11661
11662done
11663
11664
11665
cristy3ed852e2009-09-05 21:47:34 +000011666
11667
11668
11669# Set options
11670enable_win32_dll=yes
11671
11672case $host in
cristy232a9ab2010-06-26 01:02:54 +000011673*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011674 if test -n "$ac_tool_prefix"; then
11675 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11676set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011678$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011679if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011680 $as_echo_n "(cached) " >&6
11681else
11682 if test -n "$AS"; then
11683 ac_cv_prog_AS="$AS" # Let the user override the test.
11684else
11685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686for as_dir in $PATH
11687do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011690 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011694 break 2
11695 fi
11696done
cristy8b350f62009-11-15 23:12:43 +000011697 done
cristy3ed852e2009-09-05 21:47:34 +000011698IFS=$as_save_IFS
11699
11700fi
11701fi
11702AS=$ac_cv_prog_AS
11703if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011705$as_echo "$AS" >&6; }
11706else
cristy8b350f62009-11-15 23:12:43 +000011707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011708$as_echo "no" >&6; }
11709fi
11710
11711
11712fi
11713if test -z "$ac_cv_prog_AS"; then
11714 ac_ct_AS=$AS
11715 # Extract the first word of "as", so it can be a program name with args.
11716set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011718$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011719if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011720 $as_echo_n "(cached) " >&6
11721else
11722 if test -n "$ac_ct_AS"; then
11723 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11724else
11725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726for as_dir in $PATH
11727do
11728 IFS=$as_save_IFS
11729 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011730 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11732 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011734 break 2
11735 fi
11736done
cristy8b350f62009-11-15 23:12:43 +000011737 done
cristy3ed852e2009-09-05 21:47:34 +000011738IFS=$as_save_IFS
11739
11740fi
11741fi
11742ac_ct_AS=$ac_cv_prog_ac_ct_AS
11743if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011745$as_echo "$ac_ct_AS" >&6; }
11746else
cristy8b350f62009-11-15 23:12:43 +000011747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011748$as_echo "no" >&6; }
11749fi
11750
11751 if test "x$ac_ct_AS" = x; then
11752 AS="false"
11753 else
11754 case $cross_compiling:$ac_tool_warned in
11755yes:)
cristy8b350f62009-11-15 23:12:43 +000011756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11758ac_tool_warned=yes ;;
11759esac
11760 AS=$ac_ct_AS
11761 fi
11762else
11763 AS="$ac_cv_prog_AS"
11764fi
11765
11766 if test -n "$ac_tool_prefix"; then
11767 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11768set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011770$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011771if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011772 $as_echo_n "(cached) " >&6
11773else
11774 if test -n "$DLLTOOL"; then
11775 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11776else
11777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778for as_dir in $PATH
11779do
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11784 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011786 break 2
11787 fi
11788done
cristy8b350f62009-11-15 23:12:43 +000011789 done
cristy3ed852e2009-09-05 21:47:34 +000011790IFS=$as_save_IFS
11791
11792fi
11793fi
11794DLLTOOL=$ac_cv_prog_DLLTOOL
11795if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011797$as_echo "$DLLTOOL" >&6; }
11798else
cristy8b350f62009-11-15 23:12:43 +000011799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011800$as_echo "no" >&6; }
11801fi
11802
11803
11804fi
11805if test -z "$ac_cv_prog_DLLTOOL"; then
11806 ac_ct_DLLTOOL=$DLLTOOL
11807 # Extract the first word of "dlltool", so it can be a program name with args.
11808set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011810$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011811if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011812 $as_echo_n "(cached) " >&6
11813else
11814 if test -n "$ac_ct_DLLTOOL"; then
11815 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11816else
11817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818for as_dir in $PATH
11819do
11820 IFS=$as_save_IFS
11821 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011822 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11824 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011826 break 2
11827 fi
11828done
cristy8b350f62009-11-15 23:12:43 +000011829 done
cristy3ed852e2009-09-05 21:47:34 +000011830IFS=$as_save_IFS
11831
11832fi
11833fi
11834ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11835if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011837$as_echo "$ac_ct_DLLTOOL" >&6; }
11838else
cristy8b350f62009-11-15 23:12:43 +000011839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011840$as_echo "no" >&6; }
11841fi
11842
11843 if test "x$ac_ct_DLLTOOL" = x; then
11844 DLLTOOL="false"
11845 else
11846 case $cross_compiling:$ac_tool_warned in
11847yes:)
cristy8b350f62009-11-15 23:12:43 +000011848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11850ac_tool_warned=yes ;;
11851esac
11852 DLLTOOL=$ac_ct_DLLTOOL
11853 fi
11854else
11855 DLLTOOL="$ac_cv_prog_DLLTOOL"
11856fi
11857
11858 if test -n "$ac_tool_prefix"; then
11859 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11860set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011862$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011863if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011864 $as_echo_n "(cached) " >&6
11865else
11866 if test -n "$OBJDUMP"; then
11867 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11868else
11869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11870for as_dir in $PATH
11871do
11872 IFS=$as_save_IFS
11873 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011874 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11876 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011878 break 2
11879 fi
11880done
cristy8b350f62009-11-15 23:12:43 +000011881 done
cristy3ed852e2009-09-05 21:47:34 +000011882IFS=$as_save_IFS
11883
11884fi
11885fi
11886OBJDUMP=$ac_cv_prog_OBJDUMP
11887if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011889$as_echo "$OBJDUMP" >&6; }
11890else
cristy8b350f62009-11-15 23:12:43 +000011891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011892$as_echo "no" >&6; }
11893fi
11894
11895
11896fi
11897if test -z "$ac_cv_prog_OBJDUMP"; then
11898 ac_ct_OBJDUMP=$OBJDUMP
11899 # Extract the first word of "objdump", so it can be a program name with args.
11900set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011902$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011903if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011904 $as_echo_n "(cached) " >&6
11905else
11906 if test -n "$ac_ct_OBJDUMP"; then
11907 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11908else
11909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910for as_dir in $PATH
11911do
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011914 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11916 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011918 break 2
11919 fi
11920done
cristy8b350f62009-11-15 23:12:43 +000011921 done
cristy3ed852e2009-09-05 21:47:34 +000011922IFS=$as_save_IFS
11923
11924fi
11925fi
11926ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11927if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011929$as_echo "$ac_ct_OBJDUMP" >&6; }
11930else
cristy8b350f62009-11-15 23:12:43 +000011931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011932$as_echo "no" >&6; }
11933fi
11934
11935 if test "x$ac_ct_OBJDUMP" = x; then
11936 OBJDUMP="false"
11937 else
11938 case $cross_compiling:$ac_tool_warned in
11939yes:)
cristy8b350f62009-11-15 23:12:43 +000011940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11942ac_tool_warned=yes ;;
11943esac
11944 OBJDUMP=$ac_ct_OBJDUMP
11945 fi
11946else
11947 OBJDUMP="$ac_cv_prog_OBJDUMP"
11948fi
11949
11950 ;;
11951esac
11952
11953test -z "$AS" && AS=as
11954
11955
11956
11957
11958
11959test -z "$DLLTOOL" && DLLTOOL=dlltool
11960
11961
11962
11963
11964
11965test -z "$OBJDUMP" && OBJDUMP=objdump
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011976if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011977 enableval=$enable_shared; p=${PACKAGE-default}
11978 case $enableval in
11979 yes) enable_shared=yes ;;
11980 no) enable_shared=no ;;
11981 *)
11982 enable_shared=no
11983 # Look at the argument we got. We use all the common list separators.
11984 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11985 for pkg in $enableval; do
11986 IFS="$lt_save_ifs"
11987 if test "X$pkg" = "X$p"; then
11988 enable_shared=yes
11989 fi
11990 done
11991 IFS="$lt_save_ifs"
11992 ;;
11993 esac
11994else
11995 enable_shared=yes
11996fi
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012007if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012008 enableval=$enable_static; p=${PACKAGE-default}
12009 case $enableval in
12010 yes) enable_static=yes ;;
12011 no) enable_static=no ;;
12012 *)
12013 enable_static=no
12014 # Look at the argument we got. We use all the common list separators.
12015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12016 for pkg in $enableval; do
12017 IFS="$lt_save_ifs"
12018 if test "X$pkg" = "X$p"; then
12019 enable_static=yes
12020 fi
12021 done
12022 IFS="$lt_save_ifs"
12023 ;;
12024 esac
12025else
12026 enable_static=yes
12027fi
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012039if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012040 withval=$with_pic; pic_mode="$withval"
12041else
12042 pic_mode=default
12043fi
12044
12045
12046test -z "$pic_mode" && pic_mode=default
12047
12048
12049
12050
12051
12052
12053
12054 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012055if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012056 enableval=$enable_fast_install; p=${PACKAGE-default}
12057 case $enableval in
12058 yes) enable_fast_install=yes ;;
12059 no) enable_fast_install=no ;;
12060 *)
12061 enable_fast_install=no
12062 # Look at the argument we got. We use all the common list separators.
12063 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12064 for pkg in $enableval; do
12065 IFS="$lt_save_ifs"
12066 if test "X$pkg" = "X$p"; then
12067 enable_fast_install=yes
12068 fi
12069 done
12070 IFS="$lt_save_ifs"
12071 ;;
12072 esac
12073else
12074 enable_fast_install=yes
12075fi
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087# This can be used to rebuild libtool when needed
12088LIBTOOL_DEPS="$ltmain"
12089
12090# Always use our own libtool.
12091LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
cristy232a9ab2010-06-26 01:02:54 +000012117
cristy3ed852e2009-09-05 21:47:34 +000012118test -z "$LN_S" && LN_S="ln -s"
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133if test -n "${ZSH_VERSION+set}" ; then
12134 setopt NO_GLOB_SUBST
12135fi
12136
cristy8b350f62009-11-15 23:12:43 +000012137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012138$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012139if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012140 $as_echo_n "(cached) " >&6
12141else
12142 rm -f .libs 2>/dev/null
12143mkdir .libs 2>/dev/null
12144if test -d .libs; then
12145 lt_cv_objdir=.libs
12146else
12147 # MS-DOS does not allow filenames that begin with a dot.
12148 lt_cv_objdir=_libs
12149fi
12150rmdir .libs 2>/dev/null
12151fi
cristy8b350f62009-11-15 23:12:43 +000012152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012153$as_echo "$lt_cv_objdir" >&6; }
12154objdir=$lt_cv_objdir
12155
12156
12157
12158
12159
12160cat >>confdefs.h <<_ACEOF
12161#define LT_OBJDIR "$lt_cv_objdir/"
12162_ACEOF
12163
12164
12165
12166
cristy3ed852e2009-09-05 21:47:34 +000012167case $host_os in
12168aix3*)
12169 # AIX sometimes has problems with the GCC collect2 program. For some
12170 # reason, if we set the COLLECT_NAMES environment variable, the problems
12171 # vanish in a puff of smoke.
12172 if test "X${COLLECT_NAMES+set}" != Xset; then
12173 COLLECT_NAMES=
12174 export COLLECT_NAMES
12175 fi
12176 ;;
12177esac
12178
cristy3ed852e2009-09-05 21:47:34 +000012179# Global variables:
12180ofile=libtool
12181can_build_shared=yes
12182
12183# All known linkers require a `.a' archive for static linking (except MSVC,
12184# which needs '.lib').
12185libext=a
12186
12187with_gnu_ld="$lt_cv_prog_gnu_ld"
12188
12189old_CC="$CC"
12190old_CFLAGS="$CFLAGS"
12191
12192# Set sane defaults for various variables
12193test -z "$CC" && CC=cc
12194test -z "$LTCC" && LTCC=$CC
12195test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12196test -z "$LD" && LD=ld
12197test -z "$ac_objext" && ac_objext=o
12198
12199for cc_temp in $compiler""; do
12200 case $cc_temp in
12201 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12202 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12203 \-*) ;;
12204 *) break;;
12205 esac
12206done
cristy232a9ab2010-06-26 01:02:54 +000012207cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012208
12209
12210# Only perform the check for file, if the check method requires it
12211test -z "$MAGIC_CMD" && MAGIC_CMD=file
12212case $deplibs_check_method in
12213file_magic*)
12214 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012216$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012217if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012218 $as_echo_n "(cached) " >&6
12219else
12220 case $MAGIC_CMD in
12221[\\/*] | ?:[\\/]*)
12222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12223 ;;
12224*)
12225 lt_save_MAGIC_CMD="$MAGIC_CMD"
12226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12228 for ac_dir in $ac_dummy; do
12229 IFS="$lt_save_ifs"
12230 test -z "$ac_dir" && ac_dir=.
12231 if test -f $ac_dir/${ac_tool_prefix}file; then
12232 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12233 if test -n "$file_magic_test_file"; then
12234 case $deplibs_check_method in
12235 "file_magic "*)
12236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12239 $EGREP "$file_magic_regex" > /dev/null; then
12240 :
12241 else
12242 cat <<_LT_EOF 1>&2
12243
12244*** Warning: the command libtool uses to detect shared libraries,
12245*** $file_magic_cmd, produces output that libtool cannot recognize.
12246*** The result is that libtool may fail to recognize shared libraries
12247*** as such. This will affect the creation of libtool libraries that
12248*** depend on shared libraries, but programs linked with such libtool
12249*** libraries will work regardless of this problem. Nevertheless, you
12250*** may want to report the problem to your system manager and/or to
12251*** bug-libtool@gnu.org
12252
12253_LT_EOF
12254 fi ;;
12255 esac
12256 fi
12257 break
12258 fi
12259 done
12260 IFS="$lt_save_ifs"
12261 MAGIC_CMD="$lt_save_MAGIC_CMD"
12262 ;;
12263esac
12264fi
12265
12266MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12267if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012269$as_echo "$MAGIC_CMD" >&6; }
12270else
cristy8b350f62009-11-15 23:12:43 +000012271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012272$as_echo "no" >&6; }
12273fi
12274
12275
12276
12277
12278
12279if test -z "$lt_cv_path_MAGIC_CMD"; then
12280 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012282$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012283if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012284 $as_echo_n "(cached) " >&6
12285else
12286 case $MAGIC_CMD in
12287[\\/*] | ?:[\\/]*)
12288 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12289 ;;
12290*)
12291 lt_save_MAGIC_CMD="$MAGIC_CMD"
12292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12293 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12294 for ac_dir in $ac_dummy; do
12295 IFS="$lt_save_ifs"
12296 test -z "$ac_dir" && ac_dir=.
12297 if test -f $ac_dir/file; then
12298 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12299 if test -n "$file_magic_test_file"; then
12300 case $deplibs_check_method in
12301 "file_magic "*)
12302 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12304 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12305 $EGREP "$file_magic_regex" > /dev/null; then
12306 :
12307 else
12308 cat <<_LT_EOF 1>&2
12309
12310*** Warning: the command libtool uses to detect shared libraries,
12311*** $file_magic_cmd, produces output that libtool cannot recognize.
12312*** The result is that libtool may fail to recognize shared libraries
12313*** as such. This will affect the creation of libtool libraries that
12314*** depend on shared libraries, but programs linked with such libtool
12315*** libraries will work regardless of this problem. Nevertheless, you
12316*** may want to report the problem to your system manager and/or to
12317*** bug-libtool@gnu.org
12318
12319_LT_EOF
12320 fi ;;
12321 esac
12322 fi
12323 break
12324 fi
12325 done
12326 IFS="$lt_save_ifs"
12327 MAGIC_CMD="$lt_save_MAGIC_CMD"
12328 ;;
12329esac
12330fi
12331
12332MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12333if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012335$as_echo "$MAGIC_CMD" >&6; }
12336else
cristy8b350f62009-11-15 23:12:43 +000012337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012338$as_echo "no" >&6; }
12339fi
12340
12341
12342 else
12343 MAGIC_CMD=:
12344 fi
12345fi
12346
12347 fi
12348 ;;
12349esac
12350
12351# Use C for the default configuration in the libtool script
12352
12353lt_save_CC="$CC"
12354ac_ext=c
12355ac_cpp='$CPP $CPPFLAGS'
12356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12358ac_compiler_gnu=$ac_cv_c_compiler_gnu
12359
12360
12361# Source file extension for C test sources.
12362ac_ext=c
12363
12364# Object file extension for compiled C test sources.
12365objext=o
12366objext=$objext
12367
12368# Code to be used in simple compile tests
12369lt_simple_compile_test_code="int some_variable = 0;"
12370
12371# Code to be used in simple link tests
12372lt_simple_link_test_code='int main(){return(0);}'
12373
12374
12375
12376
12377
12378
12379
12380# If no C compiler was specified, use CC.
12381LTCC=${LTCC-"$CC"}
12382
12383# If no C compiler flags were specified, use CFLAGS.
12384LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12385
12386# Allow CC to be a program name with arguments.
12387compiler=$CC
12388
12389# Save the default compiler, since it gets overwritten when the other
12390# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12391compiler_DEFAULT=$CC
12392
12393# save warnings/boilerplate of simple test code
12394ac_outfile=conftest.$ac_objext
12395echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12396eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12397_lt_compiler_boilerplate=`cat conftest.err`
12398$RM conftest*
12399
12400ac_outfile=conftest.$ac_objext
12401echo "$lt_simple_link_test_code" >conftest.$ac_ext
12402eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12403_lt_linker_boilerplate=`cat conftest.err`
12404$RM -r conftest*
12405
12406
12407## CAVEAT EMPTOR:
12408## There is no encapsulation within the following macros, do not change
12409## the running order or otherwise move them around unless you know exactly
12410## what you are doing...
12411if test -n "$compiler"; then
12412
12413lt_prog_compiler_no_builtin_flag=
12414
12415if test "$GCC" = yes; then
cristy232a9ab2010-06-26 01:02:54 +000012416 case $cc_basename in
12417 nvcc*)
12418 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12419 *)
12420 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12421 esac
cristy3ed852e2009-09-05 21:47:34 +000012422
cristy8b350f62009-11-15 23:12:43 +000012423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012424$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012425if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012426 $as_echo_n "(cached) " >&6
12427else
12428 lt_cv_prog_compiler_rtti_exceptions=no
12429 ac_outfile=conftest.$ac_objext
12430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12431 lt_compiler_flag="-fno-rtti -fno-exceptions"
12432 # Insert the option either (1) after the last *FLAGS variable, or
12433 # (2) before a word containing "conftest.", or (3) at the end.
12434 # Note that $ac_compile itself does not contain backslashes and begins
12435 # with a dollar sign (not a hyphen), so the echo should work correctly.
12436 # The option is referenced via a variable to avoid confusing sed.
12437 lt_compile=`echo "$ac_compile" | $SED \
12438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12440 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000012441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012442 (eval "$lt_compile" 2>conftest.err)
12443 ac_status=$?
12444 cat conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000012445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012446 if (exit $ac_status) && test -s "$ac_outfile"; then
12447 # The compiler can only warn and ignore the option if not recognized
12448 # So say no if there are warnings other than the usual output.
cristy232a9ab2010-06-26 01:02:54 +000012449 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12451 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12452 lt_cv_prog_compiler_rtti_exceptions=yes
12453 fi
12454 fi
12455 $RM conftest*
12456
12457fi
cristy8b350f62009-11-15 23:12:43 +000012458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012459$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12460
12461if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12462 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12463else
12464 :
12465fi
12466
12467fi
12468
12469
12470
12471
12472
12473
12474 lt_prog_compiler_wl=
12475lt_prog_compiler_pic=
12476lt_prog_compiler_static=
12477
cristy8b350f62009-11-15 23:12:43 +000012478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012479$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12480
12481 if test "$GCC" = yes; then
12482 lt_prog_compiler_wl='-Wl,'
12483 lt_prog_compiler_static='-static'
12484
12485 case $host_os in
12486 aix*)
12487 # All AIX code is PIC.
12488 if test "$host_cpu" = ia64; then
12489 # AIX 5 now supports IA64 processor
12490 lt_prog_compiler_static='-Bstatic'
12491 fi
12492 ;;
12493
12494 amigaos*)
12495 case $host_cpu in
12496 powerpc)
12497 # see comment about AmigaOS4 .so support
12498 lt_prog_compiler_pic='-fPIC'
12499 ;;
12500 m68k)
12501 # FIXME: we need at least 68020 code to build shared libraries, but
12502 # adding the `-m68020' flag to GCC prevents building anything better,
12503 # like `-m68040'.
12504 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12505 ;;
12506 esac
12507 ;;
12508
12509 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12510 # PIC is the default for these OSes.
12511 ;;
12512
12513 mingw* | cygwin* | pw32* | os2* | cegcc*)
12514 # This hack is so that the source file can tell whether it is being
12515 # built for inclusion in a dll (and should export symbols for example).
12516 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12517 # (--disable-auto-import) libraries
12518 lt_prog_compiler_pic='-DDLL_EXPORT'
12519 ;;
12520
12521 darwin* | rhapsody*)
12522 # PIC is the default on this platform
12523 # Common symbols not allowed in MH_DYLIB files
12524 lt_prog_compiler_pic='-fno-common'
12525 ;;
12526
cristy232a9ab2010-06-26 01:02:54 +000012527 haiku*)
12528 # PIC is the default for Haiku.
12529 # The "-static" flag exists, but is broken.
12530 lt_prog_compiler_static=
12531 ;;
12532
cristy3ed852e2009-09-05 21:47:34 +000012533 hpux*)
12534 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12535 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12536 # sets the default TLS model and affects inlining.
12537 case $host_cpu in
12538 hppa*64*)
12539 # +Z the default
12540 ;;
12541 *)
12542 lt_prog_compiler_pic='-fPIC'
12543 ;;
12544 esac
12545 ;;
12546
12547 interix[3-9]*)
12548 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12549 # Instead, we relocate shared libraries at runtime.
12550 ;;
12551
12552 msdosdjgpp*)
12553 # Just because we use GCC doesn't mean we suddenly get shared libraries
12554 # on systems that don't support them.
12555 lt_prog_compiler_can_build_shared=no
12556 enable_shared=no
12557 ;;
12558
12559 *nto* | *qnx*)
12560 # QNX uses GNU C++, but need to define -shared option too, otherwise
12561 # it will coredump.
12562 lt_prog_compiler_pic='-fPIC -shared'
12563 ;;
12564
12565 sysv4*MP*)
12566 if test -d /usr/nec; then
12567 lt_prog_compiler_pic=-Kconform_pic
12568 fi
12569 ;;
12570
12571 *)
12572 lt_prog_compiler_pic='-fPIC'
12573 ;;
12574 esac
cristy232a9ab2010-06-26 01:02:54 +000012575
12576 case $cc_basename in
12577 nvcc*) # Cuda Compiler Driver 2.2
12578 lt_prog_compiler_wl='-Xlinker '
12579 lt_prog_compiler_pic='-Xcompiler -fPIC'
12580 ;;
12581 esac
cristy3ed852e2009-09-05 21:47:34 +000012582 else
12583 # PORTME Check for flag to pass linker flags through the system compiler.
12584 case $host_os in
12585 aix*)
12586 lt_prog_compiler_wl='-Wl,'
12587 if test "$host_cpu" = ia64; then
12588 # AIX 5 now supports IA64 processor
12589 lt_prog_compiler_static='-Bstatic'
12590 else
12591 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12592 fi
12593 ;;
12594
12595 mingw* | cygwin* | pw32* | os2* | cegcc*)
12596 # This hack is so that the source file can tell whether it is being
12597 # built for inclusion in a dll (and should export symbols for example).
12598 lt_prog_compiler_pic='-DDLL_EXPORT'
12599 ;;
12600
12601 hpux9* | hpux10* | hpux11*)
12602 lt_prog_compiler_wl='-Wl,'
12603 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12604 # not for PA HP-UX.
12605 case $host_cpu in
12606 hppa*64*|ia64*)
12607 # +Z the default
12608 ;;
12609 *)
12610 lt_prog_compiler_pic='+Z'
12611 ;;
12612 esac
12613 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12614 lt_prog_compiler_static='${wl}-a ${wl}archive'
12615 ;;
12616
12617 irix5* | irix6* | nonstopux*)
12618 lt_prog_compiler_wl='-Wl,'
12619 # PIC (with -KPIC) is the default.
12620 lt_prog_compiler_static='-non_shared'
12621 ;;
12622
cristy232a9ab2010-06-26 01:02:54 +000012623 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012624 case $cc_basename in
12625 # old Intel for x86_64 which still supported -KPIC.
12626 ecc*)
12627 lt_prog_compiler_wl='-Wl,'
12628 lt_prog_compiler_pic='-KPIC'
12629 lt_prog_compiler_static='-static'
12630 ;;
12631 # icc used to be incompatible with GCC.
12632 # ICC 10 doesn't accept -KPIC any more.
12633 icc* | ifort*)
12634 lt_prog_compiler_wl='-Wl,'
12635 lt_prog_compiler_pic='-fPIC'
12636 lt_prog_compiler_static='-static'
12637 ;;
12638 # Lahey Fortran 8.1.
12639 lf95*)
12640 lt_prog_compiler_wl='-Wl,'
12641 lt_prog_compiler_pic='--shared'
12642 lt_prog_compiler_static='--static'
12643 ;;
cristy232a9ab2010-06-26 01:02:54 +000012644 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy3ed852e2009-09-05 21:47:34 +000012645 # Portland Group compilers (*not* the Pentium gcc compiler,
12646 # which looks to be a dead project)
12647 lt_prog_compiler_wl='-Wl,'
12648 lt_prog_compiler_pic='-fpic'
12649 lt_prog_compiler_static='-Bstatic'
12650 ;;
12651 ccc*)
12652 lt_prog_compiler_wl='-Wl,'
12653 # All Alpha code is PIC.
12654 lt_prog_compiler_static='-non_shared'
12655 ;;
cristy232a9ab2010-06-26 01:02:54 +000012656 xl* | bgxl* | bgf* | mpixl*)
12657 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000012658 lt_prog_compiler_wl='-Wl,'
12659 lt_prog_compiler_pic='-qpic'
12660 lt_prog_compiler_static='-qstaticlink'
12661 ;;
12662 *)
12663 case `$CC -V 2>&1 | sed 5q` in
cristy232a9ab2010-06-26 01:02:54 +000012664 *Sun\ F* | *Sun*Fortran*)
12665 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12666 lt_prog_compiler_pic='-KPIC'
12667 lt_prog_compiler_static='-Bstatic'
12668 lt_prog_compiler_wl=''
12669 ;;
cristy3ed852e2009-09-05 21:47:34 +000012670 *Sun\ C*)
12671 # Sun C 5.9
12672 lt_prog_compiler_pic='-KPIC'
12673 lt_prog_compiler_static='-Bstatic'
12674 lt_prog_compiler_wl='-Wl,'
12675 ;;
cristy3ed852e2009-09-05 21:47:34 +000012676 esac
12677 ;;
12678 esac
12679 ;;
12680
12681 newsos6)
12682 lt_prog_compiler_pic='-KPIC'
12683 lt_prog_compiler_static='-Bstatic'
12684 ;;
12685
12686 *nto* | *qnx*)
12687 # QNX uses GNU C++, but need to define -shared option too, otherwise
12688 # it will coredump.
12689 lt_prog_compiler_pic='-fPIC -shared'
12690 ;;
12691
12692 osf3* | osf4* | osf5*)
12693 lt_prog_compiler_wl='-Wl,'
12694 # All OSF/1 code is PIC.
12695 lt_prog_compiler_static='-non_shared'
12696 ;;
12697
12698 rdos*)
12699 lt_prog_compiler_static='-non_shared'
12700 ;;
12701
12702 solaris*)
12703 lt_prog_compiler_pic='-KPIC'
12704 lt_prog_compiler_static='-Bstatic'
12705 case $cc_basename in
cristy232a9ab2010-06-26 01:02:54 +000012706 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy3ed852e2009-09-05 21:47:34 +000012707 lt_prog_compiler_wl='-Qoption ld ';;
12708 *)
12709 lt_prog_compiler_wl='-Wl,';;
12710 esac
12711 ;;
12712
12713 sunos4*)
12714 lt_prog_compiler_wl='-Qoption ld '
12715 lt_prog_compiler_pic='-PIC'
12716 lt_prog_compiler_static='-Bstatic'
12717 ;;
12718
12719 sysv4 | sysv4.2uw2* | sysv4.3*)
12720 lt_prog_compiler_wl='-Wl,'
12721 lt_prog_compiler_pic='-KPIC'
12722 lt_prog_compiler_static='-Bstatic'
12723 ;;
12724
12725 sysv4*MP*)
12726 if test -d /usr/nec ;then
12727 lt_prog_compiler_pic='-Kconform_pic'
12728 lt_prog_compiler_static='-Bstatic'
12729 fi
12730 ;;
12731
12732 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12733 lt_prog_compiler_wl='-Wl,'
12734 lt_prog_compiler_pic='-KPIC'
12735 lt_prog_compiler_static='-Bstatic'
12736 ;;
12737
12738 unicos*)
12739 lt_prog_compiler_wl='-Wl,'
12740 lt_prog_compiler_can_build_shared=no
12741 ;;
12742
12743 uts4*)
12744 lt_prog_compiler_pic='-pic'
12745 lt_prog_compiler_static='-Bstatic'
12746 ;;
12747
12748 *)
12749 lt_prog_compiler_can_build_shared=no
12750 ;;
12751 esac
12752 fi
12753
12754case $host_os in
12755 # For platforms which do not support PIC, -DPIC is meaningless:
12756 *djgpp*)
12757 lt_prog_compiler_pic=
12758 ;;
12759 *)
12760 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12761 ;;
12762esac
cristy8b350f62009-11-15 23:12:43 +000012763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012764$as_echo "$lt_prog_compiler_pic" >&6; }
12765
12766
12767
12768
12769
12770
12771#
12772# Check to make sure the PIC flag actually works.
12773#
12774if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012776$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012777if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012778 $as_echo_n "(cached) " >&6
12779else
12780 lt_cv_prog_compiler_pic_works=no
12781 ac_outfile=conftest.$ac_objext
12782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12783 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12784 # Insert the option either (1) after the last *FLAGS variable, or
12785 # (2) before a word containing "conftest.", or (3) at the end.
12786 # Note that $ac_compile itself does not contain backslashes and begins
12787 # with a dollar sign (not a hyphen), so the echo should work correctly.
12788 # The option is referenced via a variable to avoid confusing sed.
12789 lt_compile=`echo "$ac_compile" | $SED \
12790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12792 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000012793 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012794 (eval "$lt_compile" 2>conftest.err)
12795 ac_status=$?
12796 cat conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000012797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012798 if (exit $ac_status) && test -s "$ac_outfile"; then
12799 # The compiler can only warn and ignore the option if not recognized
12800 # So say no if there are warnings other than the usual output.
cristy232a9ab2010-06-26 01:02:54 +000012801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012802 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12803 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12804 lt_cv_prog_compiler_pic_works=yes
12805 fi
12806 fi
12807 $RM conftest*
12808
12809fi
cristy8b350f62009-11-15 23:12:43 +000012810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012811$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12812
12813if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12814 case $lt_prog_compiler_pic in
12815 "" | " "*) ;;
12816 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12817 esac
12818else
12819 lt_prog_compiler_pic=
12820 lt_prog_compiler_can_build_shared=no
12821fi
12822
12823fi
12824
12825
12826
12827
12828
12829
12830#
12831# Check to make sure the static flag actually works.
12832#
12833wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012835$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012836if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012837 $as_echo_n "(cached) " >&6
12838else
12839 lt_cv_prog_compiler_static_works=no
12840 save_LDFLAGS="$LDFLAGS"
12841 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12842 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12843 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12844 # The linker can only warn and ignore the option if not recognized
12845 # So say no if there are warnings
12846 if test -s conftest.err; then
12847 # Append any errors to the config.log.
12848 cat conftest.err 1>&5
cristy232a9ab2010-06-26 01:02:54 +000012849 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12851 if diff conftest.exp conftest.er2 >/dev/null; then
12852 lt_cv_prog_compiler_static_works=yes
12853 fi
12854 else
12855 lt_cv_prog_compiler_static_works=yes
12856 fi
12857 fi
12858 $RM -r conftest*
12859 LDFLAGS="$save_LDFLAGS"
12860
12861fi
cristy8b350f62009-11-15 23:12:43 +000012862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012863$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12864
12865if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12866 :
12867else
12868 lt_prog_compiler_static=
12869fi
12870
12871
12872
12873
12874
12875
12876
cristy8b350f62009-11-15 23:12:43 +000012877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012878$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012879if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012880 $as_echo_n "(cached) " >&6
12881else
12882 lt_cv_prog_compiler_c_o=no
12883 $RM -r conftest 2>/dev/null
12884 mkdir conftest
12885 cd conftest
12886 mkdir out
12887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12888
12889 lt_compiler_flag="-o out/conftest2.$ac_objext"
12890 # Insert the option either (1) after the last *FLAGS variable, or
12891 # (2) before a word containing "conftest.", or (3) at the end.
12892 # Note that $ac_compile itself does not contain backslashes and begins
12893 # with a dollar sign (not a hyphen), so the echo should work correctly.
12894 lt_compile=`echo "$ac_compile" | $SED \
12895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12897 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000012898 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012899 (eval "$lt_compile" 2>out/conftest.err)
12900 ac_status=$?
12901 cat out/conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000012902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012903 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12904 then
12905 # The compiler can only warn and ignore the option if not recognized
12906 # So say no if there are warnings
cristy232a9ab2010-06-26 01:02:54 +000012907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012908 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12909 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12910 lt_cv_prog_compiler_c_o=yes
12911 fi
12912 fi
12913 chmod u+w . 2>&5
12914 $RM conftest*
12915 # SGI C++ compiler will create directory out/ii_files/ for
12916 # template instantiation
12917 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12918 $RM out/* && rmdir out
12919 cd ..
12920 $RM -r conftest
12921 $RM conftest*
12922
12923fi
cristy8b350f62009-11-15 23:12:43 +000012924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012925$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12926
12927
12928
12929
12930
12931
cristy8b350f62009-11-15 23:12:43 +000012932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012933$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012934if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012935 $as_echo_n "(cached) " >&6
12936else
12937 lt_cv_prog_compiler_c_o=no
12938 $RM -r conftest 2>/dev/null
12939 mkdir conftest
12940 cd conftest
12941 mkdir out
12942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12943
12944 lt_compiler_flag="-o out/conftest2.$ac_objext"
12945 # Insert the option either (1) after the last *FLAGS variable, or
12946 # (2) before a word containing "conftest.", or (3) at the end.
12947 # Note that $ac_compile itself does not contain backslashes and begins
12948 # with a dollar sign (not a hyphen), so the echo should work correctly.
12949 lt_compile=`echo "$ac_compile" | $SED \
12950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12952 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000012953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012954 (eval "$lt_compile" 2>out/conftest.err)
12955 ac_status=$?
12956 cat out/conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000012957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12959 then
12960 # The compiler can only warn and ignore the option if not recognized
12961 # So say no if there are warnings
cristy232a9ab2010-06-26 01:02:54 +000012962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012963 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12964 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12965 lt_cv_prog_compiler_c_o=yes
12966 fi
12967 fi
12968 chmod u+w . 2>&5
12969 $RM conftest*
12970 # SGI C++ compiler will create directory out/ii_files/ for
12971 # template instantiation
12972 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12973 $RM out/* && rmdir out
12974 cd ..
12975 $RM -r conftest
12976 $RM conftest*
12977
12978fi
cristy8b350f62009-11-15 23:12:43 +000012979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012980$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12981
12982
12983
12984
12985hard_links="nottested"
12986if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12987 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000012988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012989$as_echo_n "checking if we can lock with hard links... " >&6; }
12990 hard_links=yes
12991 $RM conftest*
12992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12993 touch conftest.a
12994 ln conftest.a conftest.b 2>&5 || hard_links=no
12995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000012996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012997$as_echo "$hard_links" >&6; }
12998 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000012999 { $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 +000013000$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13001 need_locks=warn
13002 fi
13003else
13004 need_locks=no
13005fi
13006
13007
13008
13009
13010
13011
cristy8b350f62009-11-15 23:12:43 +000013012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013013$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13014
13015 runpath_var=
13016 allow_undefined_flag=
13017 always_export_symbols=no
13018 archive_cmds=
13019 archive_expsym_cmds=
13020 compiler_needs_object=no
13021 enable_shared_with_static_runtimes=no
13022 export_dynamic_flag_spec=
13023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13024 hardcode_automatic=no
13025 hardcode_direct=no
13026 hardcode_direct_absolute=no
13027 hardcode_libdir_flag_spec=
13028 hardcode_libdir_flag_spec_ld=
13029 hardcode_libdir_separator=
13030 hardcode_minus_L=no
13031 hardcode_shlibpath_var=unsupported
13032 inherit_rpath=no
13033 link_all_deplibs=unknown
13034 module_cmds=
13035 module_expsym_cmds=
13036 old_archive_from_new_cmds=
13037 old_archive_from_expsyms_cmds=
13038 thread_safe_flag_spec=
13039 whole_archive_flag_spec=
13040 # include_expsyms should be a list of space-separated symbols to be *always*
13041 # included in the symbol list
13042 include_expsyms=
13043 # exclude_expsyms can be an extended regexp of symbols to exclude
13044 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13045 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13046 # as well as any symbol that contains `d'.
13047 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13048 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13049 # platforms (ab)use it in PIC code, but their linkers get confused if
13050 # the symbol is explicitly referenced. Since portable code cannot
13051 # rely on this symbol name, it's probably fine to never include it in
13052 # preloaded symbol tables.
13053 # Exclude shared library initialization/finalization symbols.
13054 extract_expsyms_cmds=
13055
13056 case $host_os in
13057 cygwin* | mingw* | pw32* | cegcc*)
13058 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13059 # When not using gcc, we currently assume that we are using
13060 # Microsoft Visual C++.
13061 if test "$GCC" != yes; then
13062 with_gnu_ld=no
13063 fi
13064 ;;
13065 interix*)
13066 # we just hope/assume this is gcc and not c89 (= MSVC++)
13067 with_gnu_ld=yes
13068 ;;
13069 openbsd*)
13070 with_gnu_ld=no
13071 ;;
13072 esac
13073
13074 ld_shlibs=yes
cristy232a9ab2010-06-26 01:02:54 +000013075
13076 # On some targets, GNU ld is compatible enough with the native linker
13077 # that we're better off using the native interface for both.
13078 lt_use_gnu_ld_interface=no
cristy3ed852e2009-09-05 21:47:34 +000013079 if test "$with_gnu_ld" = yes; then
cristy232a9ab2010-06-26 01:02:54 +000013080 case $host_os in
13081 aix*)
13082 # The AIX port of GNU ld has always aspired to compatibility
13083 # with the native linker. However, as the warning in the GNU ld
13084 # block says, versions before 2.19.5* couldn't really create working
13085 # shared libraries, regardless of the interface used.
13086 case `$LD -v 2>&1` in
13087 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13088 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13089 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13090 *)
13091 lt_use_gnu_ld_interface=yes
13092 ;;
13093 esac
13094 ;;
13095 *)
13096 lt_use_gnu_ld_interface=yes
13097 ;;
13098 esac
13099 fi
13100
13101 if test "$lt_use_gnu_ld_interface" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000013102 # If archive_cmds runs LD, not CC, wlarc should be empty
13103 wlarc='${wl}'
13104
13105 # Set some defaults for GNU ld with shared library support. These
13106 # are reset later if shared libraries are not supported. Putting them
13107 # here allows them to be overridden if necessary.
13108 runpath_var=LD_RUN_PATH
13109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13110 export_dynamic_flag_spec='${wl}--export-dynamic'
13111 # ancient GNU ld didn't support --whole-archive et. al.
13112 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13113 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13114 else
13115 whole_archive_flag_spec=
13116 fi
13117 supports_anon_versioning=no
13118 case `$LD -v 2>&1` in
cristy232a9ab2010-06-26 01:02:54 +000013119 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy3ed852e2009-09-05 21:47:34 +000013120 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13121 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13122 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13123 *\ 2.11.*) ;; # other 2.11 versions
13124 *) supports_anon_versioning=yes ;;
13125 esac
13126
13127 # See if GNU ld supports shared libraries.
13128 case $host_os in
13129 aix[3-9]*)
13130 # On AIX/PPC, the GNU linker is very broken
13131 if test "$host_cpu" != ia64; then
13132 ld_shlibs=no
13133 cat <<_LT_EOF 1>&2
13134
cristy232a9ab2010-06-26 01:02:54 +000013135*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy3ed852e2009-09-05 21:47:34 +000013136*** to be unable to reliably create shared libraries on AIX.
13137*** Therefore, libtool is disabling shared libraries support. If you
cristy232a9ab2010-06-26 01:02:54 +000013138*** really care for shared libraries, you may want to install binutils
13139*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13140*** You will then need to restart the configuration process.
cristy3ed852e2009-09-05 21:47:34 +000013141
13142_LT_EOF
13143 fi
13144 ;;
13145
13146 amigaos*)
13147 case $host_cpu in
13148 powerpc)
13149 # see comment about AmigaOS4 .so support
13150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13151 archive_expsym_cmds=''
13152 ;;
13153 m68k)
13154 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)'
13155 hardcode_libdir_flag_spec='-L$libdir'
13156 hardcode_minus_L=yes
13157 ;;
13158 esac
13159 ;;
13160
13161 beos*)
13162 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13163 allow_undefined_flag=unsupported
13164 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13165 # support --undefined. This deserves some investigation. FIXME
13166 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13167 else
13168 ld_shlibs=no
13169 fi
13170 ;;
13171
13172 cygwin* | mingw* | pw32* | cegcc*)
13173 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13174 # as there is no search path for DLLs.
13175 hardcode_libdir_flag_spec='-L$libdir'
cristy232a9ab2010-06-26 01:02:54 +000013176 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000013177 allow_undefined_flag=unsupported
13178 always_export_symbols=no
13179 enable_shared_with_static_runtimes=yes
13180 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13181
13182 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13184 # If the export-symbols file already is a .def file (1st line
13185 # is EXPORTS), use it as is; otherwise, prepend...
13186 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13187 cp $export_symbols $output_objdir/$soname.def;
13188 else
13189 echo EXPORTS > $output_objdir/$soname.def;
13190 cat $export_symbols >> $output_objdir/$soname.def;
13191 fi~
13192 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13193 else
13194 ld_shlibs=no
13195 fi
13196 ;;
13197
cristy232a9ab2010-06-26 01:02:54 +000013198 haiku*)
13199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13200 link_all_deplibs=yes
13201 ;;
13202
cristy3ed852e2009-09-05 21:47:34 +000013203 interix[3-9]*)
13204 hardcode_direct=no
13205 hardcode_shlibpath_var=no
13206 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13207 export_dynamic_flag_spec='${wl}-E'
13208 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13209 # Instead, shared libraries are loaded at an image base (0x10000000 by
13210 # default) and relocated if they conflict, which is a slow very memory
13211 # consuming and fragmenting process. To avoid this, we pick a random,
13212 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13213 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13215 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'
13216 ;;
13217
cristy232a9ab2010-06-26 01:02:54 +000013218 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013219 tmp_diet=no
13220 if test "$host_os" = linux-dietlibc; then
13221 case $cc_basename in
13222 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13223 esac
13224 fi
13225 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13226 && test "$tmp_diet" = no
13227 then
13228 tmp_addflag=
13229 tmp_sharedflag='-shared'
13230 case $cc_basename,$host_cpu in
13231 pgcc*) # Portland Group C compiler
cristy232a9ab2010-06-26 01:02:54 +000013232 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 +000013233 tmp_addflag=' $pic_flag'
13234 ;;
cristy232a9ab2010-06-26 01:02:54 +000013235 pgf77* | pgf90* | pgf95* | pgfortran*)
13236 # Portland Group f77 and f90 compilers
13237 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 +000013238 tmp_addflag=' $pic_flag -Mnomain' ;;
13239 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13240 tmp_addflag=' -i_dynamic' ;;
13241 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13242 tmp_addflag=' -i_dynamic -nofor_main' ;;
13243 ifc* | ifort*) # Intel Fortran compiler
13244 tmp_addflag=' -nofor_main' ;;
13245 lf95*) # Lahey Fortran 8.1
13246 whole_archive_flag_spec=
13247 tmp_sharedflag='--shared' ;;
cristy232a9ab2010-06-26 01:02:54 +000013248 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013249 tmp_sharedflag='-qmkshrobj'
13250 tmp_addflag= ;;
cristy232a9ab2010-06-26 01:02:54 +000013251 nvcc*) # Cuda Compiler Driver 2.2
13252 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'
13253 compiler_needs_object=yes
13254 ;;
cristy3ed852e2009-09-05 21:47:34 +000013255 esac
13256 case `$CC -V 2>&1 | sed 5q` in
13257 *Sun\ C*) # Sun C 5.9
cristy232a9ab2010-06-26 01:02:54 +000013258 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 +000013259 compiler_needs_object=yes
13260 tmp_sharedflag='-G' ;;
13261 *Sun\ F*) # Sun Fortran 8.3
13262 tmp_sharedflag='-G' ;;
13263 esac
13264 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13265
13266 if test "x$supports_anon_versioning" = xyes; then
13267 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13268 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13269 echo "local: *; };" >> $output_objdir/$libname.ver~
13270 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13271 fi
13272
13273 case $cc_basename in
cristy232a9ab2010-06-26 01:02:54 +000013274 xlf* | bgf* | bgxlf* | mpixlf*)
cristy3ed852e2009-09-05 21:47:34 +000013275 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13276 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13277 hardcode_libdir_flag_spec=
13278 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy232a9ab2010-06-26 01:02:54 +000013279 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013280 if test "x$supports_anon_versioning" = xyes; then
13281 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13282 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13283 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy232a9ab2010-06-26 01:02:54 +000013284 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013285 fi
13286 ;;
13287 esac
13288 else
13289 ld_shlibs=no
13290 fi
13291 ;;
13292
13293 netbsd*)
13294 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13295 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13296 wlarc=
13297 else
13298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13300 fi
13301 ;;
13302
13303 solaris*)
13304 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13305 ld_shlibs=no
13306 cat <<_LT_EOF 1>&2
13307
13308*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13309*** create shared libraries on Solaris systems. Therefore, libtool
13310*** is disabling shared libraries support. We urge you to upgrade GNU
13311*** binutils to release 2.9.1 or newer. Another option is to modify
13312*** your PATH or compiler configuration so that the native linker is
13313*** used, and then restart.
13314
13315_LT_EOF
13316 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13319 else
13320 ld_shlibs=no
13321 fi
13322 ;;
13323
13324 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13325 case `$LD -v 2>&1` in
13326 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13327 ld_shlibs=no
13328 cat <<_LT_EOF 1>&2
13329
13330*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13331*** reliably create shared libraries on SCO systems. Therefore, libtool
13332*** is disabling shared libraries support. We urge you to upgrade GNU
13333*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13334*** your PATH or compiler configuration so that the native linker is
13335*** used, and then restart.
13336
13337_LT_EOF
13338 ;;
13339 *)
13340 # For security reasons, it is highly recommended that you always
13341 # use absolute paths for naming shared libraries, and exclude the
13342 # DT_RUNPATH tag from executables and libraries. But doing so
13343 # requires that you compile everything twice, which is a pain.
13344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13347 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13348 else
13349 ld_shlibs=no
13350 fi
13351 ;;
13352 esac
13353 ;;
13354
13355 sunos4*)
13356 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13357 wlarc=
13358 hardcode_direct=yes
13359 hardcode_shlibpath_var=no
13360 ;;
13361
13362 *)
13363 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13366 else
13367 ld_shlibs=no
13368 fi
13369 ;;
13370 esac
13371
13372 if test "$ld_shlibs" = no; then
13373 runpath_var=
13374 hardcode_libdir_flag_spec=
13375 export_dynamic_flag_spec=
13376 whole_archive_flag_spec=
13377 fi
13378 else
13379 # PORTME fill in a description of your system's linker (not GNU ld)
13380 case $host_os in
13381 aix3*)
13382 allow_undefined_flag=unsupported
13383 always_export_symbols=yes
13384 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'
13385 # Note: this linker hardcodes the directories in LIBPATH if there
13386 # are no directories specified by -L.
13387 hardcode_minus_L=yes
13388 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13389 # Neither direct hardcoding nor static linking is supported with a
13390 # broken collect2.
13391 hardcode_direct=unsupported
13392 fi
13393 ;;
13394
13395 aix[4-9]*)
13396 if test "$host_cpu" = ia64; then
13397 # On IA64, the linker does run time linking by default, so we don't
13398 # have to do anything special.
13399 aix_use_runtimelinking=no
13400 exp_sym_flag='-Bexport'
13401 no_entry_flag=""
13402 else
13403 # If we're using GNU nm, then we don't want the "-C" option.
13404 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy232a9ab2010-06-26 01:02:54 +000013405 # Also, AIX nm treats weak defined symbols like other global
13406 # defined symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000013407 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy232a9ab2010-06-26 01:02:54 +000013408 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 +000013409 else
13410 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'
13411 fi
13412 aix_use_runtimelinking=no
13413
13414 # Test if we are trying to use run time linking or normal
13415 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13416 # need to do runtime linking.
13417 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13418 for ld_flag in $LDFLAGS; do
13419 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13420 aix_use_runtimelinking=yes
13421 break
13422 fi
13423 done
13424 ;;
13425 esac
13426
13427 exp_sym_flag='-bexport'
13428 no_entry_flag='-bnoentry'
13429 fi
13430
13431 # When large executables or shared objects are built, AIX ld can
13432 # have problems creating the table of contents. If linking a library
13433 # or program results in "error TOC overflow" add -mminimal-toc to
13434 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13435 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13436
13437 archive_cmds=''
13438 hardcode_direct=yes
13439 hardcode_direct_absolute=yes
13440 hardcode_libdir_separator=':'
13441 link_all_deplibs=yes
13442 file_list_spec='${wl}-f,'
13443
13444 if test "$GCC" = yes; then
13445 case $host_os in aix4.[012]|aix4.[012].*)
13446 # We only want to do this on AIX 4.2 and lower, the check
13447 # below for broken collect2 doesn't work under 4.3+
13448 collect2name=`${CC} -print-prog-name=collect2`
13449 if test -f "$collect2name" &&
13450 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13451 then
13452 # We have reworked collect2
13453 :
13454 else
13455 # We have old collect2
13456 hardcode_direct=unsupported
13457 # It fails to find uninstalled libraries when the uninstalled
13458 # path is not listed in the libpath. Setting hardcode_minus_L
13459 # to unsupported forces relinking
13460 hardcode_minus_L=yes
13461 hardcode_libdir_flag_spec='-L$libdir'
13462 hardcode_libdir_separator=
13463 fi
13464 ;;
13465 esac
13466 shared_flag='-shared'
13467 if test "$aix_use_runtimelinking" = yes; then
13468 shared_flag="$shared_flag "'${wl}-G'
13469 fi
13470 else
13471 # not using gcc
13472 if test "$host_cpu" = ia64; then
13473 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13474 # chokes on -Wl,-G. The following line is correct:
13475 shared_flag='-G'
13476 else
13477 if test "$aix_use_runtimelinking" = yes; then
13478 shared_flag='${wl}-G'
13479 else
13480 shared_flag='${wl}-bM:SRE'
13481 fi
13482 fi
13483 fi
13484
13485 export_dynamic_flag_spec='${wl}-bexpall'
13486 # It seems that -bexpall does not export symbols beginning with
13487 # underscore (_), so it is better to generate a list of symbols to export.
13488 always_export_symbols=yes
13489 if test "$aix_use_runtimelinking" = yes; then
13490 # Warning - without using the other runtime loading flags (-brtl),
13491 # -berok will link without error, but may produce a broken library.
13492 allow_undefined_flag='-berok'
13493 # Determine the default libpath from the value encoded in an
13494 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013496/* end confdefs.h. */
13497
13498int
13499main ()
13500{
13501
13502 ;
13503 return 0;
13504}
13505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013506if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013507
13508lt_aix_libpath_sed='
13509 /Import File Strings/,/^$/ {
13510 /^0/ {
13511 s/^0 *\(.*\)$/\1/
13512 p
13513 }
13514 }'
13515aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13516# Check for a 64-bit object if we didn't find anything.
13517if test -z "$aix_libpath"; then
13518 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13519fi
cristy3ed852e2009-09-05 21:47:34 +000013520fi
cristy8b350f62009-11-15 23:12:43 +000013521rm -f core conftest.err conftest.$ac_objext \
13522 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13524
13525 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy232a9ab2010-06-26 01:02:54 +000013526 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 +000013527 else
13528 if test "$host_cpu" = ia64; then
13529 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13530 allow_undefined_flag="-z nodefs"
13531 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"
13532 else
13533 # Determine the default libpath from the value encoded in an
13534 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013536/* end confdefs.h. */
13537
13538int
13539main ()
13540{
13541
13542 ;
13543 return 0;
13544}
13545_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013546if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013547
13548lt_aix_libpath_sed='
13549 /Import File Strings/,/^$/ {
13550 /^0/ {
13551 s/^0 *\(.*\)$/\1/
13552 p
13553 }
13554 }'
13555aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13556# Check for a 64-bit object if we didn't find anything.
13557if test -z "$aix_libpath"; then
13558 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13559fi
cristy3ed852e2009-09-05 21:47:34 +000013560fi
cristy8b350f62009-11-15 23:12:43 +000013561rm -f core conftest.err conftest.$ac_objext \
13562 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013563if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13564
13565 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13566 # Warning - without using the other run time loading flags,
13567 # -berok will link without error, but may produce a broken library.
13568 no_undefined_flag=' ${wl}-bernotok'
13569 allow_undefined_flag=' ${wl}-berok'
cristy232a9ab2010-06-26 01:02:54 +000013570 if test "$with_gnu_ld" = yes; then
13571 # We only use this code for GNU lds that support --whole-archive.
13572 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13573 else
13574 # Exported symbols can be pulled into shared objects from archives
13575 whole_archive_flag_spec='$convenience'
13576 fi
cristy3ed852e2009-09-05 21:47:34 +000013577 archive_cmds_need_lc=yes
13578 # This is similar to how AIX traditionally builds its shared libraries.
13579 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'
13580 fi
13581 fi
13582 ;;
13583
13584 amigaos*)
13585 case $host_cpu in
13586 powerpc)
13587 # see comment about AmigaOS4 .so support
13588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13589 archive_expsym_cmds=''
13590 ;;
13591 m68k)
13592 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)'
13593 hardcode_libdir_flag_spec='-L$libdir'
13594 hardcode_minus_L=yes
13595 ;;
13596 esac
13597 ;;
13598
13599 bsdi[45]*)
13600 export_dynamic_flag_spec=-rdynamic
13601 ;;
13602
13603 cygwin* | mingw* | pw32* | cegcc*)
13604 # When not using gcc, we currently assume that we are using
13605 # Microsoft Visual C++.
13606 # hardcode_libdir_flag_spec is actually meaningless, as there is
13607 # no search path for DLLs.
13608 hardcode_libdir_flag_spec=' '
13609 allow_undefined_flag=unsupported
13610 # Tell ltmain to make .lib files, not .a files.
13611 libext=lib
13612 # Tell ltmain to make .dll files, not .so files.
13613 shrext_cmds=".dll"
13614 # FIXME: Setting linknames here is a bad hack.
cristy232a9ab2010-06-26 01:02:54 +000013615 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013616 # The linker will automatically build a .lib file if we build a DLL.
13617 old_archive_from_new_cmds='true'
13618 # FIXME: Should let the user specify the lib program.
13619 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13620 fix_srcfile_path='`cygpath -w "$srcfile"`'
13621 enable_shared_with_static_runtimes=yes
13622 ;;
13623
13624 darwin* | rhapsody*)
13625
13626
13627 archive_cmds_need_lc=no
13628 hardcode_direct=no
13629 hardcode_automatic=yes
13630 hardcode_shlibpath_var=unsupported
cristy232a9ab2010-06-26 01:02:54 +000013631 if test "$lt_cv_ld_force_load" = "yes"; then
13632 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\"`'
13633 else
13634 whole_archive_flag_spec=''
13635 fi
cristy3ed852e2009-09-05 21:47:34 +000013636 link_all_deplibs=yes
13637 allow_undefined_flag="$_lt_dar_allow_undefined"
13638 case $cc_basename in
13639 ifort*) _lt_dar_can_shared=yes ;;
13640 *) _lt_dar_can_shared=$GCC ;;
13641 esac
13642 if test "$_lt_dar_can_shared" = "yes"; then
cristy232a9ab2010-06-26 01:02:54 +000013643 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000013644 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13645 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13646 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}"
13647 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}"
13648
13649 else
13650 ld_shlibs=no
13651 fi
13652
13653 ;;
13654
13655 dgux*)
13656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13657 hardcode_libdir_flag_spec='-L$libdir'
13658 hardcode_shlibpath_var=no
13659 ;;
13660
13661 freebsd1*)
13662 ld_shlibs=no
13663 ;;
13664
13665 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13666 # support. Future versions do this automatically, but an explicit c++rt0.o
13667 # does not break anything, and helps significantly (at the cost of a little
13668 # extra space).
13669 freebsd2.2*)
13670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13671 hardcode_libdir_flag_spec='-R$libdir'
13672 hardcode_direct=yes
13673 hardcode_shlibpath_var=no
13674 ;;
13675
13676 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13677 freebsd2*)
13678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13679 hardcode_direct=yes
13680 hardcode_minus_L=yes
13681 hardcode_shlibpath_var=no
13682 ;;
13683
13684 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13685 freebsd* | dragonfly*)
13686 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13687 hardcode_libdir_flag_spec='-R$libdir'
13688 hardcode_direct=yes
13689 hardcode_shlibpath_var=no
13690 ;;
13691
13692 hpux9*)
13693 if test "$GCC" = yes; then
13694 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'
13695 else
13696 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'
13697 fi
13698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13699 hardcode_libdir_separator=:
13700 hardcode_direct=yes
13701
13702 # hardcode_minus_L: Not really in the search PATH,
13703 # but as the default location of the library.
13704 hardcode_minus_L=yes
13705 export_dynamic_flag_spec='${wl}-E'
13706 ;;
13707
13708 hpux10*)
cristy232a9ab2010-06-26 01:02:54 +000013709 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013710 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13711 else
13712 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13713 fi
13714 if test "$with_gnu_ld" = no; then
13715 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13716 hardcode_libdir_flag_spec_ld='+b $libdir'
13717 hardcode_libdir_separator=:
13718 hardcode_direct=yes
13719 hardcode_direct_absolute=yes
13720 export_dynamic_flag_spec='${wl}-E'
13721 # hardcode_minus_L: Not really in the search PATH,
13722 # but as the default location of the library.
13723 hardcode_minus_L=yes
13724 fi
13725 ;;
13726
13727 hpux11*)
cristy232a9ab2010-06-26 01:02:54 +000013728 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013729 case $host_cpu in
13730 hppa*64*)
13731 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13732 ;;
13733 ia64*)
13734 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13735 ;;
13736 *)
13737 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13738 ;;
13739 esac
13740 else
13741 case $host_cpu in
13742 hppa*64*)
13743 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13744 ;;
13745 ia64*)
13746 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13747 ;;
13748 *)
cristy232a9ab2010-06-26 01:02:54 +000013749
13750 # Older versions of the 11.00 compiler do not understand -b yet
13751 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13753$as_echo_n "checking if $CC understands -b... " >&6; }
13754if test "${lt_cv_prog_compiler__b+set}" = set; then :
13755 $as_echo_n "(cached) " >&6
13756else
13757 lt_cv_prog_compiler__b=no
13758 save_LDFLAGS="$LDFLAGS"
13759 LDFLAGS="$LDFLAGS -b"
13760 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13762 # The linker can only warn and ignore the option if not recognized
13763 # So say no if there are warnings
13764 if test -s conftest.err; then
13765 # Append any errors to the config.log.
13766 cat conftest.err 1>&5
13767 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13769 if diff conftest.exp conftest.er2 >/dev/null; then
13770 lt_cv_prog_compiler__b=yes
13771 fi
13772 else
13773 lt_cv_prog_compiler__b=yes
13774 fi
13775 fi
13776 $RM -r conftest*
13777 LDFLAGS="$save_LDFLAGS"
13778
13779fi
13780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13781$as_echo "$lt_cv_prog_compiler__b" >&6; }
13782
13783if test x"$lt_cv_prog_compiler__b" = xyes; then
13784 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13785else
13786 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13787fi
13788
cristy3ed852e2009-09-05 21:47:34 +000013789 ;;
13790 esac
13791 fi
13792 if test "$with_gnu_ld" = no; then
13793 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13794 hardcode_libdir_separator=:
13795
13796 case $host_cpu in
13797 hppa*64*|ia64*)
13798 hardcode_direct=no
13799 hardcode_shlibpath_var=no
13800 ;;
13801 *)
13802 hardcode_direct=yes
13803 hardcode_direct_absolute=yes
13804 export_dynamic_flag_spec='${wl}-E'
13805
13806 # hardcode_minus_L: Not really in the search PATH,
13807 # but as the default location of the library.
13808 hardcode_minus_L=yes
13809 ;;
13810 esac
13811 fi
13812 ;;
13813
13814 irix5* | irix6* | nonstopux*)
13815 if test "$GCC" = yes; then
cristy232a9ab2010-06-26 01:02:54 +000013816 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 +000013817 # Try to use the -exported_symbol ld option, if it does not
13818 # work, assume that -exports_file does not work either and
13819 # implicitly export all symbols.
13820 save_LDFLAGS="$LDFLAGS"
13821 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013824int foo(void) {}
13825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013826if ac_fn_c_try_link "$LINENO"; then :
cristy232a9ab2010-06-26 01:02:54 +000013827 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 +000013828
cristy3ed852e2009-09-05 21:47:34 +000013829fi
cristy8b350f62009-11-15 23:12:43 +000013830rm -f core conftest.err conftest.$ac_objext \
13831 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013832 LDFLAGS="$save_LDFLAGS"
13833 else
cristy232a9ab2010-06-26 01:02:54 +000013834 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'
13835 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 +000013836 fi
13837 archive_cmds_need_lc='no'
13838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13839 hardcode_libdir_separator=:
13840 inherit_rpath=yes
13841 link_all_deplibs=yes
13842 ;;
13843
13844 netbsd*)
13845 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13847 else
13848 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13849 fi
13850 hardcode_libdir_flag_spec='-R$libdir'
13851 hardcode_direct=yes
13852 hardcode_shlibpath_var=no
13853 ;;
13854
13855 newsos6)
13856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13857 hardcode_direct=yes
13858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13859 hardcode_libdir_separator=:
13860 hardcode_shlibpath_var=no
13861 ;;
13862
13863 *nto* | *qnx*)
13864 ;;
13865
13866 openbsd*)
13867 if test -f /usr/libexec/ld.so; then
13868 hardcode_direct=yes
13869 hardcode_shlibpath_var=no
13870 hardcode_direct_absolute=yes
13871 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13872 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13873 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13874 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13875 export_dynamic_flag_spec='${wl}-E'
13876 else
13877 case $host_os in
13878 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13880 hardcode_libdir_flag_spec='-R$libdir'
13881 ;;
13882 *)
13883 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13884 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13885 ;;
13886 esac
13887 fi
13888 else
13889 ld_shlibs=no
13890 fi
13891 ;;
13892
13893 os2*)
13894 hardcode_libdir_flag_spec='-L$libdir'
13895 hardcode_minus_L=yes
13896 allow_undefined_flag=unsupported
cristy232a9ab2010-06-26 01:02:54 +000013897 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 +000013898 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13899 ;;
13900
13901 osf3*)
13902 if test "$GCC" = yes; then
13903 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy232a9ab2010-06-26 01:02:54 +000013904 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 +000013905 else
13906 allow_undefined_flag=' -expect_unresolved \*'
cristy232a9ab2010-06-26 01:02:54 +000013907 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 +000013908 fi
13909 archive_cmds_need_lc='no'
13910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13911 hardcode_libdir_separator=:
13912 ;;
13913
13914 osf4* | osf5*) # as osf3* with the addition of -msym flag
13915 if test "$GCC" = yes; then
13916 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy232a9ab2010-06-26 01:02:54 +000013917 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 +000013918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13919 else
13920 allow_undefined_flag=' -expect_unresolved \*'
cristy232a9ab2010-06-26 01:02:54 +000013921 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 +000013922 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~
cristy232a9ab2010-06-26 01:02:54 +000013923 $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 +000013924
13925 # Both c and cxx compiler support -rpath directly
13926 hardcode_libdir_flag_spec='-rpath $libdir'
13927 fi
13928 archive_cmds_need_lc='no'
13929 hardcode_libdir_separator=:
13930 ;;
13931
13932 solaris*)
13933 no_undefined_flag=' -z defs'
13934 if test "$GCC" = yes; then
13935 wlarc='${wl}'
13936 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13937 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13938 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13939 else
13940 case `$CC -V 2>&1` in
13941 *"Compilers 5.0"*)
13942 wlarc=''
13943 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13945 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13946 ;;
13947 *)
13948 wlarc='${wl}'
13949 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13950 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13951 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13952 ;;
13953 esac
13954 fi
13955 hardcode_libdir_flag_spec='-R$libdir'
13956 hardcode_shlibpath_var=no
13957 case $host_os in
13958 solaris2.[0-5] | solaris2.[0-5].*) ;;
13959 *)
13960 # The compiler driver will combine and reorder linker options,
13961 # but understands `-z linker_flag'. GCC discards it without `$wl',
13962 # but is careful enough not to reorder.
13963 # Supported since Solaris 2.6 (maybe 2.5.1?)
13964 if test "$GCC" = yes; then
13965 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13966 else
13967 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13968 fi
13969 ;;
13970 esac
13971 link_all_deplibs=yes
13972 ;;
13973
13974 sunos4*)
13975 if test "x$host_vendor" = xsequent; then
13976 # Use $CC to link under sequent, because it throws in some extra .o
13977 # files that make .init and .fini sections work.
13978 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13979 else
13980 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13981 fi
13982 hardcode_libdir_flag_spec='-L$libdir'
13983 hardcode_direct=yes
13984 hardcode_minus_L=yes
13985 hardcode_shlibpath_var=no
13986 ;;
13987
13988 sysv4)
13989 case $host_vendor in
13990 sni)
13991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13992 hardcode_direct=yes # is this really true???
13993 ;;
13994 siemens)
13995 ## LD is ld it makes a PLAMLIB
13996 ## CC just makes a GrossModule.
13997 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13998 reload_cmds='$CC -r -o $output$reload_objs'
13999 hardcode_direct=no
14000 ;;
14001 motorola)
14002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14003 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14004 ;;
14005 esac
14006 runpath_var='LD_RUN_PATH'
14007 hardcode_shlibpath_var=no
14008 ;;
14009
14010 sysv4.3*)
14011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14012 hardcode_shlibpath_var=no
14013 export_dynamic_flag_spec='-Bexport'
14014 ;;
14015
14016 sysv4*MP*)
14017 if test -d /usr/nec; then
14018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14019 hardcode_shlibpath_var=no
14020 runpath_var=LD_RUN_PATH
14021 hardcode_runpath_var=yes
14022 ld_shlibs=yes
14023 fi
14024 ;;
14025
14026 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14027 no_undefined_flag='${wl}-z,text'
14028 archive_cmds_need_lc=no
14029 hardcode_shlibpath_var=no
14030 runpath_var='LD_RUN_PATH'
14031
14032 if test "$GCC" = yes; then
14033 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14034 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14035 else
14036 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14037 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14038 fi
14039 ;;
14040
14041 sysv5* | sco3.2v5* | sco5v6*)
14042 # Note: We can NOT use -z defs as we might desire, because we do not
14043 # link with -lc, and that would cause any symbols used from libc to
14044 # always be unresolved, which means just about no library would
14045 # ever link correctly. If we're not using GNU ld we use -z text
14046 # though, which does catch some bad symbols but isn't as heavy-handed
14047 # as -z defs.
14048 no_undefined_flag='${wl}-z,text'
14049 allow_undefined_flag='${wl}-z,nodefs'
14050 archive_cmds_need_lc=no
14051 hardcode_shlibpath_var=no
14052 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14053 hardcode_libdir_separator=':'
14054 link_all_deplibs=yes
14055 export_dynamic_flag_spec='${wl}-Bexport'
14056 runpath_var='LD_RUN_PATH'
14057
14058 if test "$GCC" = yes; then
14059 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14060 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14061 else
14062 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14063 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14064 fi
14065 ;;
14066
14067 uts4*)
14068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14069 hardcode_libdir_flag_spec='-L$libdir'
14070 hardcode_shlibpath_var=no
14071 ;;
14072
14073 *)
14074 ld_shlibs=no
14075 ;;
14076 esac
14077
14078 if test x$host_vendor = xsni; then
14079 case $host in
14080 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14081 export_dynamic_flag_spec='${wl}-Blargedynsym'
14082 ;;
14083 esac
14084 fi
14085 fi
14086
cristy8b350f62009-11-15 23:12:43 +000014087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014088$as_echo "$ld_shlibs" >&6; }
14089test "$ld_shlibs" = no && can_build_shared=no
14090
14091with_gnu_ld=$with_gnu_ld
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107#
14108# Do we need to explicitly link libc?
14109#
14110case "x$archive_cmds_need_lc" in
14111x|xyes)
14112 # Assume -lc should be added
14113 archive_cmds_need_lc=yes
14114
14115 if test "$enable_shared" = yes && test "$GCC" = yes; then
14116 case $archive_cmds in
14117 *'~'*)
14118 # FIXME: we may have to deal with multi-command sequences.
14119 ;;
14120 '$CC '*)
14121 # Test whether the compiler implicitly links with -lc since on some
14122 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14123 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014125$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy232a9ab2010-06-26 01:02:54 +000014126if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14127 $as_echo_n "(cached) " >&6
14128else
14129 $RM conftest*
14130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014131
cristy232a9ab2010-06-26 01:02:54 +000014132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014133 (eval $ac_compile) 2>&5
14134 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14136 test $ac_status = 0; } 2>conftest.err; then
cristy232a9ab2010-06-26 01:02:54 +000014137 soname=conftest
14138 lib=conftest
14139 libobjs=conftest.$ac_objext
14140 deplibs=
14141 wl=$lt_prog_compiler_wl
14142 pic_flag=$lt_prog_compiler_pic
14143 compiler_flags=-v
14144 linker_flags=-v
14145 verstring=
14146 output_objdir=.
14147 libname=conftest
14148 lt_save_allow_undefined_flag=$allow_undefined_flag
14149 allow_undefined_flag=
14150 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 +000014151 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14152 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14154 test $ac_status = 0; }
cristy232a9ab2010-06-26 01:02:54 +000014155 then
14156 lt_cv_archive_cmds_need_lc=no
14157 else
14158 lt_cv_archive_cmds_need_lc=yes
14159 fi
14160 allow_undefined_flag=$lt_save_allow_undefined_flag
14161 else
14162 cat conftest.err 1>&5
14163 fi
14164 $RM conftest*
14165
14166fi
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14168$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14169 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy3ed852e2009-09-05 21:47:34 +000014170 ;;
14171 esac
14172 fi
14173 ;;
14174esac
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
cristy8b350f62009-11-15 23:12:43 +000014332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014333$as_echo_n "checking dynamic linker characteristics... " >&6; }
14334
14335if test "$GCC" = yes; then
14336 case $host_os in
14337 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14338 *) lt_awk_arg="/^libraries:/" ;;
14339 esac
cristy232a9ab2010-06-26 01:02:54 +000014340 case $host_os in
14341 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14342 *) lt_sed_strip_eq="s,=/,/,g" ;;
14343 esac
14344 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14345 case $lt_search_path_spec in
14346 *\;*)
cristy3ed852e2009-09-05 21:47:34 +000014347 # if the path contains ";" then we assume it to be the separator
14348 # otherwise default to the standard path separator (i.e. ":") - it is
14349 # assumed that no part of a normal pathname contains ";" but that should
14350 # okay in the real world where ";" in dirpaths is itself problematic.
cristy232a9ab2010-06-26 01:02:54 +000014351 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14352 ;;
14353 *)
14354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14355 ;;
14356 esac
cristy3ed852e2009-09-05 21:47:34 +000014357 # Ok, now we have the path, separated by spaces, we can step through it
14358 # and add multilib dir if necessary.
14359 lt_tmp_lt_search_path_spec=
14360 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14361 for lt_sys_path in $lt_search_path_spec; do
14362 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14363 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14364 else
14365 test -d "$lt_sys_path" && \
14366 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14367 fi
14368 done
cristy232a9ab2010-06-26 01:02:54 +000014369 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy3ed852e2009-09-05 21:47:34 +000014370BEGIN {RS=" "; FS="/|\n";} {
14371 lt_foo="";
14372 lt_count=0;
14373 for (lt_i = NF; lt_i > 0; lt_i--) {
14374 if ($lt_i != "" && $lt_i != ".") {
14375 if ($lt_i == "..") {
14376 lt_count++;
14377 } else {
14378 if (lt_count == 0) {
14379 lt_foo="/" $lt_i lt_foo;
14380 } else {
14381 lt_count--;
14382 }
14383 }
14384 }
14385 }
14386 if (lt_foo != "") { lt_freq[lt_foo]++; }
14387 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14388}'`
cristy232a9ab2010-06-26 01:02:54 +000014389 # AWK program above erroneously prepends '/' to C:/dos/paths
14390 # for these hosts.
14391 case $host_os in
14392 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14393 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14394 esac
14395 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy3ed852e2009-09-05 21:47:34 +000014396else
14397 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14398fi
14399library_names_spec=
14400libname_spec='lib$name'
14401soname_spec=
14402shrext_cmds=".so"
14403postinstall_cmds=
14404postuninstall_cmds=
14405finish_cmds=
14406finish_eval=
14407shlibpath_var=
14408shlibpath_overrides_runpath=unknown
14409version_type=none
14410dynamic_linker="$host_os ld.so"
14411sys_lib_dlsearch_path_spec="/lib /usr/lib"
14412need_lib_prefix=unknown
14413hardcode_into_libs=no
14414
14415# when you set need_version to no, make sure it does not cause -set_version
14416# flags to be left without arguments
14417need_version=unknown
14418
14419case $host_os in
14420aix3*)
14421 version_type=linux
14422 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14423 shlibpath_var=LIBPATH
14424
14425 # AIX 3 has no versioning support, so we append a major version to the name.
14426 soname_spec='${libname}${release}${shared_ext}$major'
14427 ;;
14428
14429aix[4-9]*)
14430 version_type=linux
14431 need_lib_prefix=no
14432 need_version=no
14433 hardcode_into_libs=yes
14434 if test "$host_cpu" = ia64; then
14435 # AIX 5 supports IA64
14436 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14437 shlibpath_var=LD_LIBRARY_PATH
14438 else
14439 # With GCC up to 2.95.x, collect2 would create an import file
14440 # for dependence libraries. The import file would start with
14441 # the line `#! .'. This would cause the generated library to
14442 # depend on `.', always an invalid library. This was fixed in
14443 # development snapshots of GCC prior to 3.0.
14444 case $host_os in
14445 aix4 | aix4.[01] | aix4.[01].*)
14446 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14447 echo ' yes '
14448 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14449 :
14450 else
14451 can_build_shared=no
14452 fi
14453 ;;
14454 esac
14455 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14456 # soname into executable. Probably we can add versioning support to
14457 # collect2, so additional links can be useful in future.
14458 if test "$aix_use_runtimelinking" = yes; then
14459 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14460 # instead of lib<name>.a to let people know that these are not
14461 # typical AIX shared libraries.
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463 else
14464 # We preserve .a as extension for shared libraries through AIX4.2
14465 # and later when we are not doing run time linking.
14466 library_names_spec='${libname}${release}.a $libname.a'
14467 soname_spec='${libname}${release}${shared_ext}$major'
14468 fi
14469 shlibpath_var=LIBPATH
14470 fi
14471 ;;
14472
14473amigaos*)
14474 case $host_cpu in
14475 powerpc)
14476 # Since July 2007 AmigaOS4 officially supports .so libraries.
14477 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14479 ;;
14480 m68k)
14481 library_names_spec='$libname.ixlibrary $libname.a'
14482 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy232a9ab2010-06-26 01:02:54 +000014483 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 +000014484 ;;
14485 esac
14486 ;;
14487
14488beos*)
14489 library_names_spec='${libname}${shared_ext}'
14490 dynamic_linker="$host_os ld.so"
14491 shlibpath_var=LIBRARY_PATH
14492 ;;
14493
14494bsdi[45]*)
14495 version_type=linux
14496 need_version=no
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498 soname_spec='${libname}${release}${shared_ext}$major'
14499 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14500 shlibpath_var=LD_LIBRARY_PATH
14501 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14502 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14503 # the default ld.so.conf also contains /usr/contrib/lib and
14504 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14505 # libtool to hard-code these into programs
14506 ;;
14507
14508cygwin* | mingw* | pw32* | cegcc*)
14509 version_type=windows
14510 shrext_cmds=".dll"
14511 need_version=no
14512 need_lib_prefix=no
14513
14514 case $GCC,$host_os in
14515 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14516 library_names_spec='$libname.dll.a'
14517 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14518 postinstall_cmds='base_file=`basename \${file}`~
14519 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14520 dldir=$destdir/`dirname \$dlpath`~
14521 test -d \$dldir || mkdir -p \$dldir~
14522 $install_prog $dir/$dlname \$dldir/$dlname~
14523 chmod a+x \$dldir/$dlname~
14524 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14525 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14526 fi'
14527 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14528 dlpath=$dir/\$dldll~
14529 $RM \$dlpath'
14530 shlibpath_overrides_runpath=yes
14531
14532 case $host_os in
14533 cygwin*)
14534 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14535 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy232a9ab2010-06-26 01:02:54 +000014536
14537 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy3ed852e2009-09-05 21:47:34 +000014538 ;;
14539 mingw* | cegcc*)
14540 # MinGW DLLs use traditional 'lib' prefix
14541 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000014542 ;;
14543 pw32*)
14544 # pw32 DLLs use 'pw' prefix rather than 'lib'
14545 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14546 ;;
14547 esac
14548 ;;
14549
14550 *)
14551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14552 ;;
14553 esac
14554 dynamic_linker='Win32 ld.exe'
14555 # FIXME: first we should search . and the directory the executable is in
14556 shlibpath_var=PATH
14557 ;;
14558
14559darwin* | rhapsody*)
14560 dynamic_linker="$host_os dyld"
14561 version_type=darwin
14562 need_lib_prefix=no
14563 need_version=no
14564 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14565 soname_spec='${libname}${release}${major}$shared_ext'
14566 shlibpath_overrides_runpath=yes
14567 shlibpath_var=DYLD_LIBRARY_PATH
14568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14569
14570 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14572 ;;
14573
14574dgux*)
14575 version_type=linux
14576 need_lib_prefix=no
14577 need_version=no
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 shlibpath_var=LD_LIBRARY_PATH
14581 ;;
14582
14583freebsd1*)
14584 dynamic_linker=no
14585 ;;
14586
14587freebsd* | dragonfly*)
14588 # DragonFly does not have aout. When/if they implement a new
14589 # versioning mechanism, adjust this.
14590 if test -x /usr/bin/objformat; then
14591 objformat=`/usr/bin/objformat`
14592 else
14593 case $host_os in
14594 freebsd[123]*) objformat=aout ;;
14595 *) objformat=elf ;;
14596 esac
14597 fi
14598 version_type=freebsd-$objformat
14599 case $version_type in
14600 freebsd-elf*)
14601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14602 need_version=no
14603 need_lib_prefix=no
14604 ;;
14605 freebsd-*)
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14607 need_version=yes
14608 ;;
14609 esac
14610 shlibpath_var=LD_LIBRARY_PATH
14611 case $host_os in
14612 freebsd2*)
14613 shlibpath_overrides_runpath=yes
14614 ;;
14615 freebsd3.[01]* | freebsdelf3.[01]*)
14616 shlibpath_overrides_runpath=yes
14617 hardcode_into_libs=yes
14618 ;;
14619 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14620 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14621 shlibpath_overrides_runpath=no
14622 hardcode_into_libs=yes
14623 ;;
14624 *) # from 4.6 on, and DragonFly
14625 shlibpath_overrides_runpath=yes
14626 hardcode_into_libs=yes
14627 ;;
14628 esac
14629 ;;
14630
14631gnu*)
14632 version_type=linux
14633 need_lib_prefix=no
14634 need_version=no
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14636 soname_spec='${libname}${release}${shared_ext}$major'
14637 shlibpath_var=LD_LIBRARY_PATH
14638 hardcode_into_libs=yes
14639 ;;
14640
cristy232a9ab2010-06-26 01:02:54 +000014641haiku*)
14642 version_type=linux
14643 need_lib_prefix=no
14644 need_version=no
14645 dynamic_linker="$host_os runtime_loader"
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14647 soname_spec='${libname}${release}${shared_ext}$major'
14648 shlibpath_var=LIBRARY_PATH
14649 shlibpath_overrides_runpath=yes
14650 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14651 hardcode_into_libs=yes
14652 ;;
14653
cristy3ed852e2009-09-05 21:47:34 +000014654hpux9* | hpux10* | hpux11*)
14655 # Give a soname corresponding to the major version so that dld.sl refuses to
14656 # link against other versions.
14657 version_type=sunos
14658 need_lib_prefix=no
14659 need_version=no
14660 case $host_cpu in
14661 ia64*)
14662 shrext_cmds='.so'
14663 hardcode_into_libs=yes
14664 dynamic_linker="$host_os dld.so"
14665 shlibpath_var=LD_LIBRARY_PATH
14666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14668 soname_spec='${libname}${release}${shared_ext}$major'
14669 if test "X$HPUX_IA64_MODE" = X32; then
14670 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14671 else
14672 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14673 fi
14674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14675 ;;
14676 hppa*64*)
14677 shrext_cmds='.sl'
14678 hardcode_into_libs=yes
14679 dynamic_linker="$host_os dld.sl"
14680 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14683 soname_spec='${libname}${release}${shared_ext}$major'
14684 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14686 ;;
14687 *)
14688 shrext_cmds='.sl'
14689 dynamic_linker="$host_os dld.sl"
14690 shlibpath_var=SHLIB_PATH
14691 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693 soname_spec='${libname}${release}${shared_ext}$major'
14694 ;;
14695 esac
cristy232a9ab2010-06-26 01:02:54 +000014696 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000014697 postinstall_cmds='chmod 555 $lib'
cristy232a9ab2010-06-26 01:02:54 +000014698 # or fails outright, so override atomically:
14699 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000014700 ;;
14701
14702interix[3-9]*)
14703 version_type=linux
14704 need_lib_prefix=no
14705 need_version=no
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14707 soname_spec='${libname}${release}${shared_ext}$major'
14708 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14709 shlibpath_var=LD_LIBRARY_PATH
14710 shlibpath_overrides_runpath=no
14711 hardcode_into_libs=yes
14712 ;;
14713
14714irix5* | irix6* | nonstopux*)
14715 case $host_os in
14716 nonstopux*) version_type=nonstopux ;;
14717 *)
14718 if test "$lt_cv_prog_gnu_ld" = yes; then
14719 version_type=linux
14720 else
14721 version_type=irix
14722 fi ;;
14723 esac
14724 need_lib_prefix=no
14725 need_version=no
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14728 case $host_os in
14729 irix5* | nonstopux*)
14730 libsuff= shlibsuff=
14731 ;;
14732 *)
14733 case $LD in # libtool.m4 will add one of these switches to LD
14734 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14735 libsuff= shlibsuff= libmagic=32-bit;;
14736 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14737 libsuff=32 shlibsuff=N32 libmagic=N32;;
14738 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14739 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14740 *) libsuff= shlibsuff= libmagic=never-match;;
14741 esac
14742 ;;
14743 esac
14744 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14745 shlibpath_overrides_runpath=no
14746 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14747 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14748 hardcode_into_libs=yes
14749 ;;
14750
14751# No shared lib support for Linux oldld, aout, or coff.
14752linux*oldld* | linux*aout* | linux*coff*)
14753 dynamic_linker=no
14754 ;;
14755
14756# This must be Linux ELF.
cristy232a9ab2010-06-26 01:02:54 +000014757linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014758 version_type=linux
14759 need_lib_prefix=no
14760 need_version=no
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14762 soname_spec='${libname}${release}${shared_ext}$major'
14763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14764 shlibpath_var=LD_LIBRARY_PATH
14765 shlibpath_overrides_runpath=no
cristy232a9ab2010-06-26 01:02:54 +000014766
cristy3ed852e2009-09-05 21:47:34 +000014767 # Some binutils ld are patched to set DT_RUNPATH
cristy232a9ab2010-06-26 01:02:54 +000014768 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14769 $as_echo_n "(cached) " >&6
14770else
14771 lt_cv_shlibpath_overrides_runpath=no
14772 save_LDFLAGS=$LDFLAGS
14773 save_libdir=$libdir
14774 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14775 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014777/* end confdefs.h. */
14778
14779int
14780main ()
14781{
14782
14783 ;
14784 return 0;
14785}
14786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014787if ac_fn_c_try_link "$LINENO"; then :
14788 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy232a9ab2010-06-26 01:02:54 +000014789 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014790fi
cristy3ed852e2009-09-05 21:47:34 +000014791fi
cristy8b350f62009-11-15 23:12:43 +000014792rm -f core conftest.err conftest.$ac_objext \
14793 conftest$ac_exeext conftest.$ac_ext
cristy232a9ab2010-06-26 01:02:54 +000014794 LDFLAGS=$save_LDFLAGS
14795 libdir=$save_libdir
14796
14797fi
14798
14799 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000014800
14801 # This implies no fast_install, which is unacceptable.
14802 # Some rework will be needed to allow for fast_install
14803 # before this can be enabled.
14804 hardcode_into_libs=yes
14805
cristy679ed8e2009-12-05 02:37:41 +000014806 # Add ABI-specific directories to the system library path.
14807 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14808
cristy3ed852e2009-09-05 21:47:34 +000014809 # Append ld.so.conf contents to the search path
14810 if test -f /etc/ld.so.conf; then
cristy232a9ab2010-06-26 01:02:54 +000014811 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' ' '`
cristy679ed8e2009-12-05 02:37:41 +000014812 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy232a9ab2010-06-26 01:02:54 +000014813
cristy3ed852e2009-09-05 21:47:34 +000014814 fi
14815
14816 # We used to test for /lib/ld.so.1 and disable shared libraries on
14817 # powerpc, because MkLinux only supported shared libraries with the
14818 # GNU dynamic linker. Since this was broken with cross compilers,
14819 # most powerpc-linux boxes support dynamic linking these days and
14820 # people can always --disable-shared, the test was removed, and we
14821 # assume the GNU/Linux dynamic linker is in use.
14822 dynamic_linker='GNU/Linux ld.so'
14823 ;;
14824
14825netbsd*)
14826 version_type=sunos
14827 need_lib_prefix=no
14828 need_version=no
14829 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14832 dynamic_linker='NetBSD (a.out) ld.so'
14833 else
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14835 soname_spec='${libname}${release}${shared_ext}$major'
14836 dynamic_linker='NetBSD ld.elf_so'
14837 fi
14838 shlibpath_var=LD_LIBRARY_PATH
14839 shlibpath_overrides_runpath=yes
14840 hardcode_into_libs=yes
14841 ;;
14842
14843newsos6)
14844 version_type=linux
14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 shlibpath_overrides_runpath=yes
14848 ;;
14849
14850*nto* | *qnx*)
14851 version_type=qnx
14852 need_lib_prefix=no
14853 need_version=no
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14855 soname_spec='${libname}${release}${shared_ext}$major'
14856 shlibpath_var=LD_LIBRARY_PATH
14857 shlibpath_overrides_runpath=no
14858 hardcode_into_libs=yes
14859 dynamic_linker='ldqnx.so'
14860 ;;
14861
14862openbsd*)
14863 version_type=sunos
14864 sys_lib_dlsearch_path_spec="/usr/lib"
14865 need_lib_prefix=no
14866 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14867 case $host_os in
14868 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14869 *) need_version=no ;;
14870 esac
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14875 case $host_os in
14876 openbsd2.[89] | openbsd2.[89].*)
14877 shlibpath_overrides_runpath=no
14878 ;;
14879 *)
14880 shlibpath_overrides_runpath=yes
14881 ;;
14882 esac
14883 else
14884 shlibpath_overrides_runpath=yes
14885 fi
14886 ;;
14887
14888os2*)
14889 libname_spec='$name'
14890 shrext_cmds=".dll"
14891 need_lib_prefix=no
14892 library_names_spec='$libname${shared_ext} $libname.a'
14893 dynamic_linker='OS/2 ld.exe'
14894 shlibpath_var=LIBPATH
14895 ;;
14896
14897osf3* | osf4* | osf5*)
14898 version_type=osf
14899 need_lib_prefix=no
14900 need_version=no
14901 soname_spec='${libname}${release}${shared_ext}$major'
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14903 shlibpath_var=LD_LIBRARY_PATH
14904 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14905 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14906 ;;
14907
14908rdos*)
14909 dynamic_linker=no
14910 ;;
14911
14912solaris*)
14913 version_type=linux
14914 need_lib_prefix=no
14915 need_version=no
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917 soname_spec='${libname}${release}${shared_ext}$major'
14918 shlibpath_var=LD_LIBRARY_PATH
14919 shlibpath_overrides_runpath=yes
14920 hardcode_into_libs=yes
14921 # ldd complains unless libraries are executable
14922 postinstall_cmds='chmod +x $lib'
14923 ;;
14924
14925sunos4*)
14926 version_type=sunos
14927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14928 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14929 shlibpath_var=LD_LIBRARY_PATH
14930 shlibpath_overrides_runpath=yes
14931 if test "$with_gnu_ld" = yes; then
14932 need_lib_prefix=no
14933 fi
14934 need_version=yes
14935 ;;
14936
14937sysv4 | sysv4.3*)
14938 version_type=linux
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940 soname_spec='${libname}${release}${shared_ext}$major'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 case $host_vendor in
14943 sni)
14944 shlibpath_overrides_runpath=no
14945 need_lib_prefix=no
14946 runpath_var=LD_RUN_PATH
14947 ;;
14948 siemens)
14949 need_lib_prefix=no
14950 ;;
14951 motorola)
14952 need_lib_prefix=no
14953 need_version=no
14954 shlibpath_overrides_runpath=no
14955 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14956 ;;
14957 esac
14958 ;;
14959
14960sysv4*MP*)
14961 if test -d /usr/nec ;then
14962 version_type=linux
14963 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14964 soname_spec='$libname${shared_ext}.$major'
14965 shlibpath_var=LD_LIBRARY_PATH
14966 fi
14967 ;;
14968
14969sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14970 version_type=freebsd-elf
14971 need_lib_prefix=no
14972 need_version=no
14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14974 soname_spec='${libname}${release}${shared_ext}$major'
14975 shlibpath_var=LD_LIBRARY_PATH
14976 shlibpath_overrides_runpath=yes
14977 hardcode_into_libs=yes
14978 if test "$with_gnu_ld" = yes; then
14979 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14980 else
14981 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14982 case $host_os in
14983 sco3.2v5*)
14984 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14985 ;;
14986 esac
14987 fi
14988 sys_lib_dlsearch_path_spec='/usr/lib'
14989 ;;
14990
14991tpf*)
14992 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14993 version_type=linux
14994 need_lib_prefix=no
14995 need_version=no
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14997 shlibpath_var=LD_LIBRARY_PATH
14998 shlibpath_overrides_runpath=no
14999 hardcode_into_libs=yes
15000 ;;
15001
15002uts4*)
15003 version_type=linux
15004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005 soname_spec='${libname}${release}${shared_ext}$major'
15006 shlibpath_var=LD_LIBRARY_PATH
15007 ;;
15008
15009*)
15010 dynamic_linker=no
15011 ;;
15012esac
cristy8b350f62009-11-15 23:12:43 +000015013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015014$as_echo "$dynamic_linker" >&6; }
15015test "$dynamic_linker" = no && can_build_shared=no
15016
15017variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15018if test "$GCC" = yes; then
15019 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15020fi
15021
15022if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15023 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15024fi
15025if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15026 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15027fi
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
cristy232a9ab2010-06-26 01:02:54 +000015115
15116
15117
15118
15119
cristy8b350f62009-11-15 23:12:43 +000015120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015121$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15122hardcode_action=
15123if test -n "$hardcode_libdir_flag_spec" ||
15124 test -n "$runpath_var" ||
15125 test "X$hardcode_automatic" = "Xyes" ; then
15126
15127 # We can hardcode non-existent directories.
15128 if test "$hardcode_direct" != no &&
15129 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15130 # have to relink, otherwise we might link with an installed library
15131 # when we should be linking with a yet-to-be-installed one
15132 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15133 test "$hardcode_minus_L" != no; then
15134 # Linking always hardcodes the temporary library directory.
15135 hardcode_action=relink
15136 else
15137 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15138 hardcode_action=immediate
15139 fi
15140else
15141 # We cannot hardcode anything, or else we can only hardcode existing
15142 # directories.
15143 hardcode_action=unsupported
15144fi
cristy8b350f62009-11-15 23:12:43 +000015145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015146$as_echo "$hardcode_action" >&6; }
15147
15148if test "$hardcode_action" = relink ||
15149 test "$inherit_rpath" = yes; then
15150 # Fast installation is not supported
15151 enable_fast_install=no
15152elif test "$shlibpath_overrides_runpath" = yes ||
15153 test "$enable_shared" = no; then
15154 # Fast installation is not necessary
15155 enable_fast_install=needless
15156fi
15157
15158
15159
15160
15161
15162
15163 if test "x$enable_dlopen" != xyes; then
15164 enable_dlopen=unknown
15165 enable_dlopen_self=unknown
15166 enable_dlopen_self_static=unknown
15167else
15168 lt_cv_dlopen=no
15169 lt_cv_dlopen_libs=
15170
15171 case $host_os in
15172 beos*)
15173 lt_cv_dlopen="load_add_on"
15174 lt_cv_dlopen_libs=
15175 lt_cv_dlopen_self=yes
15176 ;;
15177
15178 mingw* | pw32* | cegcc*)
15179 lt_cv_dlopen="LoadLibrary"
15180 lt_cv_dlopen_libs=
15181 ;;
15182
15183 cygwin*)
15184 lt_cv_dlopen="dlopen"
15185 lt_cv_dlopen_libs=
15186 ;;
15187
15188 darwin*)
15189 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015191$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015192if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015193 $as_echo_n "(cached) " >&6
15194else
15195 ac_check_lib_save_LIBS=$LIBS
15196LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015198/* end confdefs.h. */
15199
15200/* Override any GCC internal prototype to avoid an error.
15201 Use char because int might match the return type of a GCC
15202 builtin and then its argument prototype would still apply. */
15203#ifdef __cplusplus
15204extern "C"
15205#endif
15206char dlopen ();
15207int
15208main ()
15209{
15210return dlopen ();
15211 ;
15212 return 0;
15213}
15214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015216 ac_cv_lib_dl_dlopen=yes
15217else
cristy8b350f62009-11-15 23:12:43 +000015218 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015219fi
cristy8b350f62009-11-15 23:12:43 +000015220rm -f core conftest.err conftest.$ac_objext \
15221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015222LIBS=$ac_check_lib_save_LIBS
15223fi
cristy8b350f62009-11-15 23:12:43 +000015224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015225$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015226if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015227 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15228else
15229
15230 lt_cv_dlopen="dyld"
15231 lt_cv_dlopen_libs=
15232 lt_cv_dlopen_self=yes
15233
15234fi
15235
15236 ;;
15237
15238 *)
cristy8b350f62009-11-15 23:12:43 +000015239 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15240if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015241 lt_cv_dlopen="shl_load"
15242else
cristy8b350f62009-11-15 23:12:43 +000015243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015244$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015245if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015246 $as_echo_n "(cached) " >&6
15247else
15248 ac_check_lib_save_LIBS=$LIBS
15249LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015251/* end confdefs.h. */
15252
15253/* Override any GCC internal prototype to avoid an error.
15254 Use char because int might match the return type of a GCC
15255 builtin and then its argument prototype would still apply. */
15256#ifdef __cplusplus
15257extern "C"
15258#endif
15259char shl_load ();
15260int
15261main ()
15262{
15263return shl_load ();
15264 ;
15265 return 0;
15266}
15267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015268if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015269 ac_cv_lib_dld_shl_load=yes
15270else
cristy8b350f62009-11-15 23:12:43 +000015271 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015272fi
cristy8b350f62009-11-15 23:12:43 +000015273rm -f core conftest.err conftest.$ac_objext \
15274 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015275LIBS=$ac_check_lib_save_LIBS
15276fi
cristy8b350f62009-11-15 23:12:43 +000015277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015278$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015279if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015280 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15281else
cristy8b350f62009-11-15 23:12:43 +000015282 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15283if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015284 lt_cv_dlopen="dlopen"
15285else
cristy8b350f62009-11-15 23:12:43 +000015286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015287$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015288if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015289 $as_echo_n "(cached) " >&6
15290else
15291 ac_check_lib_save_LIBS=$LIBS
15292LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015294/* end confdefs.h. */
15295
15296/* Override any GCC internal prototype to avoid an error.
15297 Use char because int might match the return type of a GCC
15298 builtin and then its argument prototype would still apply. */
15299#ifdef __cplusplus
15300extern "C"
15301#endif
15302char dlopen ();
15303int
15304main ()
15305{
15306return dlopen ();
15307 ;
15308 return 0;
15309}
15310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015311if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015312 ac_cv_lib_dl_dlopen=yes
15313else
cristy8b350f62009-11-15 23:12:43 +000015314 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015315fi
cristy8b350f62009-11-15 23:12:43 +000015316rm -f core conftest.err conftest.$ac_objext \
15317 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015318LIBS=$ac_check_lib_save_LIBS
15319fi
cristy8b350f62009-11-15 23:12:43 +000015320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015321$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015322if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15324else
cristy8b350f62009-11-15 23:12:43 +000015325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015326$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015327if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015328 $as_echo_n "(cached) " >&6
15329else
15330 ac_check_lib_save_LIBS=$LIBS
15331LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015333/* end confdefs.h. */
15334
15335/* Override any GCC internal prototype to avoid an error.
15336 Use char because int might match the return type of a GCC
15337 builtin and then its argument prototype would still apply. */
15338#ifdef __cplusplus
15339extern "C"
15340#endif
15341char dlopen ();
15342int
15343main ()
15344{
15345return dlopen ();
15346 ;
15347 return 0;
15348}
15349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015351 ac_cv_lib_svld_dlopen=yes
15352else
cristy8b350f62009-11-15 23:12:43 +000015353 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015354fi
cristy8b350f62009-11-15 23:12:43 +000015355rm -f core conftest.err conftest.$ac_objext \
15356 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015357LIBS=$ac_check_lib_save_LIBS
15358fi
cristy8b350f62009-11-15 23:12:43 +000015359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015360$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015361if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015362 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15363else
cristy8b350f62009-11-15 23:12:43 +000015364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015365$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015366if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015367 $as_echo_n "(cached) " >&6
15368else
15369 ac_check_lib_save_LIBS=$LIBS
15370LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015372/* end confdefs.h. */
15373
15374/* Override any GCC internal prototype to avoid an error.
15375 Use char because int might match the return type of a GCC
15376 builtin and then its argument prototype would still apply. */
15377#ifdef __cplusplus
15378extern "C"
15379#endif
15380char dld_link ();
15381int
15382main ()
15383{
15384return dld_link ();
15385 ;
15386 return 0;
15387}
15388_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015389if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015390 ac_cv_lib_dld_dld_link=yes
15391else
cristy8b350f62009-11-15 23:12:43 +000015392 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015393fi
cristy8b350f62009-11-15 23:12:43 +000015394rm -f core conftest.err conftest.$ac_objext \
15395 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015396LIBS=$ac_check_lib_save_LIBS
15397fi
cristy8b350f62009-11-15 23:12:43 +000015398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015399$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015400if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015401 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15402fi
15403
15404
15405fi
15406
15407
15408fi
15409
15410
15411fi
15412
15413
15414fi
15415
15416
15417fi
15418
15419 ;;
15420 esac
15421
15422 if test "x$lt_cv_dlopen" != xno; then
15423 enable_dlopen=yes
15424 else
15425 enable_dlopen=no
15426 fi
15427
15428 case $lt_cv_dlopen in
15429 dlopen)
15430 save_CPPFLAGS="$CPPFLAGS"
15431 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15432
15433 save_LDFLAGS="$LDFLAGS"
15434 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15435
15436 save_LIBS="$LIBS"
15437 LIBS="$lt_cv_dlopen_libs $LIBS"
15438
cristy8b350f62009-11-15 23:12:43 +000015439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015440$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015441if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015442 $as_echo_n "(cached) " >&6
15443else
15444 if test "$cross_compiling" = yes; then :
15445 lt_cv_dlopen_self=cross
15446else
15447 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15448 lt_status=$lt_dlunknown
15449 cat > conftest.$ac_ext <<_LT_EOF
cristy232a9ab2010-06-26 01:02:54 +000015450#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015451#include "confdefs.h"
15452
15453#if HAVE_DLFCN_H
15454#include <dlfcn.h>
15455#endif
15456
15457#include <stdio.h>
15458
15459#ifdef RTLD_GLOBAL
15460# define LT_DLGLOBAL RTLD_GLOBAL
15461#else
15462# ifdef DL_GLOBAL
15463# define LT_DLGLOBAL DL_GLOBAL
15464# else
15465# define LT_DLGLOBAL 0
15466# endif
15467#endif
15468
15469/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15470 find out it does not work in some platform. */
15471#ifndef LT_DLLAZY_OR_NOW
15472# ifdef RTLD_LAZY
15473# define LT_DLLAZY_OR_NOW RTLD_LAZY
15474# else
15475# ifdef DL_LAZY
15476# define LT_DLLAZY_OR_NOW DL_LAZY
15477# else
15478# ifdef RTLD_NOW
15479# define LT_DLLAZY_OR_NOW RTLD_NOW
15480# else
15481# ifdef DL_NOW
15482# define LT_DLLAZY_OR_NOW DL_NOW
15483# else
15484# define LT_DLLAZY_OR_NOW 0
15485# endif
15486# endif
15487# endif
15488# endif
15489#endif
15490
cristy232a9ab2010-06-26 01:02:54 +000015491/* When -fvisbility=hidden is used, assume the code has been annotated
15492 correspondingly for the symbols needed. */
15493#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15494void fnord () __attribute__((visibility("default")));
15495#endif
15496
15497void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015498int main ()
15499{
15500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15501 int status = $lt_dlunknown;
15502
15503 if (self)
15504 {
15505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy232a9ab2010-06-26 01:02:54 +000015506 else
15507 {
15508 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15509 else puts (dlerror ());
15510 }
cristy3ed852e2009-09-05 21:47:34 +000015511 /* dlclose (self); */
15512 }
15513 else
15514 puts (dlerror ());
15515
15516 return status;
15517}
15518_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015520 (eval $ac_link) 2>&5
15521 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15523 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015524 (./conftest; exit; ) >&5 2>/dev/null
15525 lt_status=$?
15526 case x$lt_status in
15527 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15528 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15529 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15530 esac
15531 else :
15532 # compilation failed
15533 lt_cv_dlopen_self=no
15534 fi
15535fi
15536rm -fr conftest*
15537
15538
15539fi
cristy8b350f62009-11-15 23:12:43 +000015540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015541$as_echo "$lt_cv_dlopen_self" >&6; }
15542
15543 if test "x$lt_cv_dlopen_self" = xyes; then
15544 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015546$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015547if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015548 $as_echo_n "(cached) " >&6
15549else
15550 if test "$cross_compiling" = yes; then :
15551 lt_cv_dlopen_self_static=cross
15552else
15553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15554 lt_status=$lt_dlunknown
15555 cat > conftest.$ac_ext <<_LT_EOF
cristy232a9ab2010-06-26 01:02:54 +000015556#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015557#include "confdefs.h"
15558
15559#if HAVE_DLFCN_H
15560#include <dlfcn.h>
15561#endif
15562
15563#include <stdio.h>
15564
15565#ifdef RTLD_GLOBAL
15566# define LT_DLGLOBAL RTLD_GLOBAL
15567#else
15568# ifdef DL_GLOBAL
15569# define LT_DLGLOBAL DL_GLOBAL
15570# else
15571# define LT_DLGLOBAL 0
15572# endif
15573#endif
15574
15575/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15576 find out it does not work in some platform. */
15577#ifndef LT_DLLAZY_OR_NOW
15578# ifdef RTLD_LAZY
15579# define LT_DLLAZY_OR_NOW RTLD_LAZY
15580# else
15581# ifdef DL_LAZY
15582# define LT_DLLAZY_OR_NOW DL_LAZY
15583# else
15584# ifdef RTLD_NOW
15585# define LT_DLLAZY_OR_NOW RTLD_NOW
15586# else
15587# ifdef DL_NOW
15588# define LT_DLLAZY_OR_NOW DL_NOW
15589# else
15590# define LT_DLLAZY_OR_NOW 0
15591# endif
15592# endif
15593# endif
15594# endif
15595#endif
15596
cristy232a9ab2010-06-26 01:02:54 +000015597/* When -fvisbility=hidden is used, assume the code has been annotated
15598 correspondingly for the symbols needed. */
15599#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15600void fnord () __attribute__((visibility("default")));
15601#endif
15602
15603void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015604int main ()
15605{
15606 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15607 int status = $lt_dlunknown;
15608
15609 if (self)
15610 {
15611 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy232a9ab2010-06-26 01:02:54 +000015612 else
15613 {
15614 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15615 else puts (dlerror ());
15616 }
cristy3ed852e2009-09-05 21:47:34 +000015617 /* dlclose (self); */
15618 }
15619 else
15620 puts (dlerror ());
15621
15622 return status;
15623}
15624_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015626 (eval $ac_link) 2>&5
15627 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15629 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015630 (./conftest; exit; ) >&5 2>/dev/null
15631 lt_status=$?
15632 case x$lt_status in
15633 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15634 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15635 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15636 esac
15637 else :
15638 # compilation failed
15639 lt_cv_dlopen_self_static=no
15640 fi
15641fi
15642rm -fr conftest*
15643
15644
15645fi
cristy8b350f62009-11-15 23:12:43 +000015646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015647$as_echo "$lt_cv_dlopen_self_static" >&6; }
15648 fi
15649
15650 CPPFLAGS="$save_CPPFLAGS"
15651 LDFLAGS="$save_LDFLAGS"
15652 LIBS="$save_LIBS"
15653 ;;
15654 esac
15655
15656 case $lt_cv_dlopen_self in
15657 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15658 *) enable_dlopen_self=unknown ;;
15659 esac
15660
15661 case $lt_cv_dlopen_self_static in
15662 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15663 *) enable_dlopen_self_static=unknown ;;
15664 esac
15665fi
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683striplib=
15684old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015686$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15687if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15688 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15689 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015691$as_echo "yes" >&6; }
15692else
15693# FIXME - insert some real tests, host_os isn't really good enough
15694 case $host_os in
15695 darwin*)
15696 if test -n "$STRIP" ; then
15697 striplib="$STRIP -x"
15698 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015700$as_echo "yes" >&6; }
15701 else
cristy8b350f62009-11-15 23:12:43 +000015702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015703$as_echo "no" >&6; }
15704 fi
15705 ;;
15706 *)
cristy8b350f62009-11-15 23:12:43 +000015707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015708$as_echo "no" >&6; }
15709 ;;
15710 esac
15711fi
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015726$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015728$as_echo "$can_build_shared" >&6; }
15729
cristy8b350f62009-11-15 23:12:43 +000015730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015731$as_echo_n "checking whether to build shared libraries... " >&6; }
15732 test "$can_build_shared" = "no" && enable_shared=no
15733
15734 # On AIX, shared libraries and static libraries use the same namespace, and
15735 # are all built from PIC.
15736 case $host_os in
15737 aix3*)
15738 test "$enable_shared" = yes && enable_static=no
15739 if test -n "$RANLIB"; then
15740 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15741 postinstall_cmds='$RANLIB $lib'
15742 fi
15743 ;;
15744
15745 aix[4-9]*)
15746 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15747 test "$enable_shared" = yes && enable_static=no
15748 fi
15749 ;;
15750 esac
cristy8b350f62009-11-15 23:12:43 +000015751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015752$as_echo "$enable_shared" >&6; }
15753
cristy8b350f62009-11-15 23:12:43 +000015754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015755$as_echo_n "checking whether to build static libraries... " >&6; }
15756 # Make sure either enable_shared or enable_static is yes.
15757 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015759$as_echo "$enable_static" >&6; }
15760
15761
15762
15763
15764fi
15765ac_ext=c
15766ac_cpp='$CPP $CPPFLAGS'
15767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15769ac_compiler_gnu=$ac_cv_c_compiler_gnu
15770
15771CC="$lt_save_CC"
15772
cristy232a9ab2010-06-26 01:02:54 +000015773 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15774 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15775 (test "X$CXX" != "Xg++"))) ; then
15776 ac_ext=cpp
15777ac_cpp='$CXXCPP $CPPFLAGS'
15778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15782$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15783if test -z "$CXXCPP"; then
15784 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15785 $as_echo_n "(cached) " >&6
15786else
15787 # Double quotes because CXXCPP needs to be expanded
15788 for CXXCPP in "$CXX -E" "/lib/cpp"
15789 do
15790 ac_preproc_ok=false
15791for ac_cxx_preproc_warn_flag in '' yes
15792do
15793 # Use a header file that comes with gcc, so configuring glibc
15794 # with a fresh cross-compiler works.
15795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15796 # <limits.h> exists even on freestanding compilers.
15797 # On the NeXT, cc -E runs the code through the compiler's parser,
15798 # not just through cpp. "Syntax error" is here to catch this case.
15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800/* end confdefs.h. */
15801#ifdef __STDC__
15802# include <limits.h>
15803#else
15804# include <assert.h>
15805#endif
15806 Syntax error
15807_ACEOF
15808if ac_fn_cxx_try_cpp "$LINENO"; then :
15809
15810else
15811 # Broken: fails on valid input.
15812continue
15813fi
15814rm -f conftest.err conftest.$ac_ext
15815
15816 # OK, works on sane cases. Now check whether nonexistent headers
15817 # can be detected and how.
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819/* end confdefs.h. */
15820#include <ac_nonexistent.h>
15821_ACEOF
15822if ac_fn_cxx_try_cpp "$LINENO"; then :
15823 # Broken: success on invalid input.
15824continue
15825else
15826 # Passes both tests.
15827ac_preproc_ok=:
15828break
15829fi
15830rm -f conftest.err conftest.$ac_ext
15831
15832done
15833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15834rm -f conftest.err conftest.$ac_ext
15835if $ac_preproc_ok; then :
15836 break
15837fi
15838
15839 done
15840 ac_cv_prog_CXXCPP=$CXXCPP
15841
15842fi
15843 CXXCPP=$ac_cv_prog_CXXCPP
15844else
15845 ac_cv_prog_CXXCPP=$CXXCPP
15846fi
15847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15848$as_echo "$CXXCPP" >&6; }
15849ac_preproc_ok=false
15850for ac_cxx_preproc_warn_flag in '' yes
15851do
15852 # Use a header file that comes with gcc, so configuring glibc
15853 # with a fresh cross-compiler works.
15854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15855 # <limits.h> exists even on freestanding compilers.
15856 # On the NeXT, cc -E runs the code through the compiler's parser,
15857 # not just through cpp. "Syntax error" is here to catch this case.
15858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15859/* end confdefs.h. */
15860#ifdef __STDC__
15861# include <limits.h>
15862#else
15863# include <assert.h>
15864#endif
15865 Syntax error
15866_ACEOF
15867if ac_fn_cxx_try_cpp "$LINENO"; then :
15868
15869else
15870 # Broken: fails on valid input.
15871continue
15872fi
15873rm -f conftest.err conftest.$ac_ext
15874
15875 # OK, works on sane cases. Now check whether nonexistent headers
15876 # can be detected and how.
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878/* end confdefs.h. */
15879#include <ac_nonexistent.h>
15880_ACEOF
15881if ac_fn_cxx_try_cpp "$LINENO"; then :
15882 # Broken: success on invalid input.
15883continue
15884else
15885 # Passes both tests.
15886ac_preproc_ok=:
15887break
15888fi
15889rm -f conftest.err conftest.$ac_ext
15890
15891done
15892# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15893rm -f conftest.err conftest.$ac_ext
15894if $ac_preproc_ok; then :
15895
15896else
15897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15899as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
15900See \`config.log' for more details." "$LINENO" 5; }
15901fi
15902
15903ac_ext=c
15904ac_cpp='$CPP $CPPFLAGS'
15905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15907ac_compiler_gnu=$ac_cv_c_compiler_gnu
15908
15909else
15910 _lt_caught_CXX_error=yes
15911fi
cristy3ed852e2009-09-05 21:47:34 +000015912
15913ac_ext=cpp
15914ac_cpp='$CXXCPP $CPPFLAGS'
15915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15918
15919archive_cmds_need_lc_CXX=no
15920allow_undefined_flag_CXX=
15921always_export_symbols_CXX=no
15922archive_expsym_cmds_CXX=
15923compiler_needs_object_CXX=no
15924export_dynamic_flag_spec_CXX=
15925hardcode_direct_CXX=no
15926hardcode_direct_absolute_CXX=no
15927hardcode_libdir_flag_spec_CXX=
15928hardcode_libdir_flag_spec_ld_CXX=
15929hardcode_libdir_separator_CXX=
15930hardcode_minus_L_CXX=no
15931hardcode_shlibpath_var_CXX=unsupported
15932hardcode_automatic_CXX=no
15933inherit_rpath_CXX=no
15934module_cmds_CXX=
15935module_expsym_cmds_CXX=
15936link_all_deplibs_CXX=unknown
15937old_archive_cmds_CXX=$old_archive_cmds
cristy232a9ab2010-06-26 01:02:54 +000015938reload_flag_CXX=$reload_flag
15939reload_cmds_CXX=$reload_cmds
cristy3ed852e2009-09-05 21:47:34 +000015940no_undefined_flag_CXX=
15941whole_archive_flag_spec_CXX=
15942enable_shared_with_static_runtimes_CXX=no
15943
15944# Source file extension for C++ test sources.
15945ac_ext=cpp
15946
15947# Object file extension for compiled C++ test sources.
15948objext=o
15949objext_CXX=$objext
15950
15951# No sense in running all these tests if we already determined that
15952# the CXX compiler isn't working. Some variables (like enable_shared)
15953# are currently assumed to apply to all compilers on this platform,
15954# and will be corrupted by setting them based on a non-working compiler.
15955if test "$_lt_caught_CXX_error" != yes; then
15956 # Code to be used in simple compile tests
15957 lt_simple_compile_test_code="int some_variable = 0;"
15958
15959 # Code to be used in simple link tests
15960 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15961
15962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15963
15964
15965
15966
15967
15968
15969# If no C compiler was specified, use CC.
15970LTCC=${LTCC-"$CC"}
15971
15972# If no C compiler flags were specified, use CFLAGS.
15973LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15974
15975# Allow CC to be a program name with arguments.
15976compiler=$CC
15977
15978
15979 # save warnings/boilerplate of simple test code
15980 ac_outfile=conftest.$ac_objext
15981echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15982eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15983_lt_compiler_boilerplate=`cat conftest.err`
15984$RM conftest*
15985
15986 ac_outfile=conftest.$ac_objext
15987echo "$lt_simple_link_test_code" >conftest.$ac_ext
15988eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15989_lt_linker_boilerplate=`cat conftest.err`
15990$RM -r conftest*
15991
15992
15993 # Allow CC to be a program name with arguments.
15994 lt_save_CC=$CC
15995 lt_save_LD=$LD
15996 lt_save_GCC=$GCC
15997 GCC=$GXX
15998 lt_save_with_gnu_ld=$with_gnu_ld
15999 lt_save_path_LD=$lt_cv_path_LD
16000 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16001 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16002 else
16003 $as_unset lt_cv_prog_gnu_ld
16004 fi
16005 if test -n "${lt_cv_path_LDCXX+set}"; then
16006 lt_cv_path_LD=$lt_cv_path_LDCXX
16007 else
16008 $as_unset lt_cv_path_LD
16009 fi
16010 test -z "${LDCXX+set}" || LD=$LDCXX
16011 CC=${CXX-"c++"}
16012 compiler=$CC
16013 compiler_CXX=$CC
16014 for cc_temp in $compiler""; do
16015 case $cc_temp in
16016 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16017 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16018 \-*) ;;
16019 *) break;;
16020 esac
16021done
cristy232a9ab2010-06-26 01:02:54 +000016022cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016023
16024
16025 if test -n "$compiler"; then
16026 # We don't want -fno-exception when compiling C++ code, so set the
16027 # no_builtin_flag separately
16028 if test "$GXX" = yes; then
16029 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16030 else
16031 lt_prog_compiler_no_builtin_flag_CXX=
16032 fi
16033
16034 if test "$GXX" = yes; then
16035 # Set up default GNU C++ configuration
16036
16037
16038
16039# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016040if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016041 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16042else
16043 with_gnu_ld=no
16044fi
16045
16046ac_prog=ld
16047if test "$GCC" = yes; then
16048 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016050$as_echo_n "checking for ld used by $CC... " >&6; }
16051 case $host in
16052 *-*-mingw*)
16053 # gcc leaves a trailing carriage return which upsets mingw
16054 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16055 *)
16056 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16057 esac
16058 case $ac_prog in
16059 # Accept absolute paths.
16060 [\\/]* | ?:[\\/]*)
16061 re_direlt='/[^/][^/]*/\.\./'
16062 # Canonicalize the pathname of ld
16063 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16064 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16065 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16066 done
16067 test -z "$LD" && LD="$ac_prog"
16068 ;;
16069 "")
16070 # If it fails, then pretend we aren't using GCC.
16071 ac_prog=ld
16072 ;;
16073 *)
16074 # If it is relative, then search for the first ld in PATH.
16075 with_gnu_ld=unknown
16076 ;;
16077 esac
16078elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016080$as_echo_n "checking for GNU ld... " >&6; }
16081else
cristy8b350f62009-11-15 23:12:43 +000016082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016083$as_echo_n "checking for non-GNU ld... " >&6; }
16084fi
cristy8b350f62009-11-15 23:12:43 +000016085if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016086 $as_echo_n "(cached) " >&6
16087else
16088 if test -z "$LD"; then
16089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16090 for ac_dir in $PATH; do
16091 IFS="$lt_save_ifs"
16092 test -z "$ac_dir" && ac_dir=.
16093 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16094 lt_cv_path_LD="$ac_dir/$ac_prog"
16095 # Check to see if the program is GNU ld. I'd rather use --version,
16096 # but apparently some variants of GNU ld only accept -v.
16097 # Break only if it was the GNU/non-GNU ld that we prefer.
16098 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16099 *GNU* | *'with BFD'*)
16100 test "$with_gnu_ld" != no && break
16101 ;;
16102 *)
16103 test "$with_gnu_ld" != yes && break
16104 ;;
16105 esac
16106 fi
16107 done
16108 IFS="$lt_save_ifs"
16109else
16110 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16111fi
16112fi
16113
16114LD="$lt_cv_path_LD"
16115if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016117$as_echo "$LD" >&6; }
16118else
cristy8b350f62009-11-15 23:12:43 +000016119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016120$as_echo "no" >&6; }
16121fi
cristy8b350f62009-11-15 23:12:43 +000016122test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016124$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016125if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016126 $as_echo_n "(cached) " >&6
16127else
16128 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16129case `$LD -v 2>&1 </dev/null` in
16130*GNU* | *'with BFD'*)
16131 lt_cv_prog_gnu_ld=yes
16132 ;;
16133*)
16134 lt_cv_prog_gnu_ld=no
16135 ;;
16136esac
16137fi
cristy8b350f62009-11-15 23:12:43 +000016138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016139$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16140with_gnu_ld=$lt_cv_prog_gnu_ld
16141
16142
16143
16144
16145
16146
16147
16148 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16149 # archiving commands below assume that GNU ld is being used.
16150 if test "$with_gnu_ld" = yes; then
16151 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16152 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'
16153
16154 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16155 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16156
16157 # If archive_cmds runs LD, not CC, wlarc should be empty
16158 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16159 # investigate it a little bit more. (MM)
16160 wlarc='${wl}'
16161
16162 # ancient GNU ld didn't support --whole-archive et. al.
16163 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16164 $GREP 'no-whole-archive' > /dev/null; then
16165 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16166 else
16167 whole_archive_flag_spec_CXX=
16168 fi
16169 else
16170 with_gnu_ld=no
16171 wlarc=
16172
16173 # A generic and very simple default shared library creation
16174 # command for GNU C++ for the case where it uses the native
16175 # linker, instead of GNU ld. If possible, this setting should
16176 # overridden to take advantage of the native linker features on
16177 # the platform it is being used on.
16178 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16179 fi
16180
16181 # Commands to make compiler produce verbose output that lists
16182 # what "hidden" libraries, object files and flags are used when
16183 # linking a shared library.
cristy232a9ab2010-06-26 01:02:54 +000016184 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016185
16186 else
16187 GXX=no
16188 with_gnu_ld=no
16189 wlarc=
16190 fi
16191
16192 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016194$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16195 ld_shlibs_CXX=yes
16196 case $host_os in
16197 aix3*)
16198 # FIXME: insert proper C++ library support
16199 ld_shlibs_CXX=no
16200 ;;
16201 aix[4-9]*)
16202 if test "$host_cpu" = ia64; then
16203 # On IA64, the linker does run time linking by default, so we don't
16204 # have to do anything special.
16205 aix_use_runtimelinking=no
16206 exp_sym_flag='-Bexport'
16207 no_entry_flag=""
16208 else
16209 aix_use_runtimelinking=no
16210
16211 # Test if we are trying to use run time linking or normal
16212 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16213 # need to do runtime linking.
16214 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16215 for ld_flag in $LDFLAGS; do
16216 case $ld_flag in
16217 *-brtl*)
16218 aix_use_runtimelinking=yes
16219 break
16220 ;;
16221 esac
16222 done
16223 ;;
16224 esac
16225
16226 exp_sym_flag='-bexport'
16227 no_entry_flag='-bnoentry'
16228 fi
16229
16230 # When large executables or shared objects are built, AIX ld can
16231 # have problems creating the table of contents. If linking a library
16232 # or program results in "error TOC overflow" add -mminimal-toc to
16233 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16234 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16235
16236 archive_cmds_CXX=''
16237 hardcode_direct_CXX=yes
16238 hardcode_direct_absolute_CXX=yes
16239 hardcode_libdir_separator_CXX=':'
16240 link_all_deplibs_CXX=yes
16241 file_list_spec_CXX='${wl}-f,'
16242
16243 if test "$GXX" = yes; then
16244 case $host_os in aix4.[012]|aix4.[012].*)
16245 # We only want to do this on AIX 4.2 and lower, the check
16246 # below for broken collect2 doesn't work under 4.3+
16247 collect2name=`${CC} -print-prog-name=collect2`
16248 if test -f "$collect2name" &&
16249 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16250 then
16251 # We have reworked collect2
16252 :
16253 else
16254 # We have old collect2
16255 hardcode_direct_CXX=unsupported
16256 # It fails to find uninstalled libraries when the uninstalled
16257 # path is not listed in the libpath. Setting hardcode_minus_L
16258 # to unsupported forces relinking
16259 hardcode_minus_L_CXX=yes
16260 hardcode_libdir_flag_spec_CXX='-L$libdir'
16261 hardcode_libdir_separator_CXX=
16262 fi
16263 esac
16264 shared_flag='-shared'
16265 if test "$aix_use_runtimelinking" = yes; then
16266 shared_flag="$shared_flag "'${wl}-G'
16267 fi
16268 else
16269 # not using gcc
16270 if test "$host_cpu" = ia64; then
16271 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16272 # chokes on -Wl,-G. The following line is correct:
16273 shared_flag='-G'
16274 else
16275 if test "$aix_use_runtimelinking" = yes; then
16276 shared_flag='${wl}-G'
16277 else
16278 shared_flag='${wl}-bM:SRE'
16279 fi
16280 fi
16281 fi
16282
16283 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16284 # It seems that -bexpall does not export symbols beginning with
16285 # underscore (_), so it is better to generate a list of symbols to
16286 # export.
16287 always_export_symbols_CXX=yes
16288 if test "$aix_use_runtimelinking" = yes; then
16289 # Warning - without using the other runtime loading flags (-brtl),
16290 # -berok will link without error, but may produce a broken library.
16291 allow_undefined_flag_CXX='-berok'
16292 # Determine the default libpath from the value encoded in an empty
16293 # executable.
cristy8b350f62009-11-15 23:12:43 +000016294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016295/* end confdefs.h. */
16296
16297int
16298main ()
16299{
16300
16301 ;
16302 return 0;
16303}
16304_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016305if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016306
16307lt_aix_libpath_sed='
16308 /Import File Strings/,/^$/ {
16309 /^0/ {
16310 s/^0 *\(.*\)$/\1/
16311 p
16312 }
16313 }'
16314aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16315# Check for a 64-bit object if we didn't find anything.
16316if test -z "$aix_libpath"; then
16317 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16318fi
cristy3ed852e2009-09-05 21:47:34 +000016319fi
cristy8b350f62009-11-15 23:12:43 +000016320rm -f core conftest.err conftest.$ac_objext \
16321 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016322if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16323
16324 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16325
cristy232a9ab2010-06-26 01:02:54 +000016326 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 +000016327 else
16328 if test "$host_cpu" = ia64; then
16329 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16330 allow_undefined_flag_CXX="-z nodefs"
16331 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"
16332 else
16333 # Determine the default libpath from the value encoded in an
16334 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016336/* end confdefs.h. */
16337
16338int
16339main ()
16340{
16341
16342 ;
16343 return 0;
16344}
16345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016346if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016347
16348lt_aix_libpath_sed='
16349 /Import File Strings/,/^$/ {
16350 /^0/ {
16351 s/^0 *\(.*\)$/\1/
16352 p
16353 }
16354 }'
16355aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16356# Check for a 64-bit object if we didn't find anything.
16357if test -z "$aix_libpath"; then
16358 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16359fi
cristy3ed852e2009-09-05 21:47:34 +000016360fi
cristy8b350f62009-11-15 23:12:43 +000016361rm -f core conftest.err conftest.$ac_objext \
16362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016363if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16364
16365 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16366 # Warning - without using the other run time loading flags,
16367 # -berok will link without error, but may produce a broken library.
16368 no_undefined_flag_CXX=' ${wl}-bernotok'
16369 allow_undefined_flag_CXX=' ${wl}-berok'
cristy232a9ab2010-06-26 01:02:54 +000016370 if test "$with_gnu_ld" = yes; then
16371 # We only use this code for GNU lds that support --whole-archive.
16372 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16373 else
16374 # Exported symbols can be pulled into shared objects from archives
16375 whole_archive_flag_spec_CXX='$convenience'
16376 fi
cristy3ed852e2009-09-05 21:47:34 +000016377 archive_cmds_need_lc_CXX=yes
16378 # This is similar to how AIX traditionally builds its shared
16379 # libraries.
16380 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'
16381 fi
16382 fi
16383 ;;
16384
16385 beos*)
16386 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16387 allow_undefined_flag_CXX=unsupported
16388 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16389 # support --undefined. This deserves some investigation. FIXME
16390 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16391 else
16392 ld_shlibs_CXX=no
16393 fi
16394 ;;
16395
16396 chorus*)
16397 case $cc_basename in
16398 *)
16399 # FIXME: insert proper C++ library support
16400 ld_shlibs_CXX=no
16401 ;;
16402 esac
16403 ;;
16404
16405 cygwin* | mingw* | pw32* | cegcc*)
16406 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16407 # as there is no search path for DLLs.
16408 hardcode_libdir_flag_spec_CXX='-L$libdir'
cristy232a9ab2010-06-26 01:02:54 +000016409 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000016410 allow_undefined_flag_CXX=unsupported
16411 always_export_symbols_CXX=no
16412 enable_shared_with_static_runtimes_CXX=yes
16413
16414 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16415 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'
16416 # If the export-symbols file already is a .def file (1st line
16417 # is EXPORTS), use it as is; otherwise, prepend...
16418 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16419 cp $export_symbols $output_objdir/$soname.def;
16420 else
16421 echo EXPORTS > $output_objdir/$soname.def;
16422 cat $export_symbols >> $output_objdir/$soname.def;
16423 fi~
16424 $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'
16425 else
16426 ld_shlibs_CXX=no
16427 fi
16428 ;;
16429 darwin* | rhapsody*)
16430
16431
16432 archive_cmds_need_lc_CXX=no
16433 hardcode_direct_CXX=no
16434 hardcode_automatic_CXX=yes
16435 hardcode_shlibpath_var_CXX=unsupported
cristy232a9ab2010-06-26 01:02:54 +000016436 if test "$lt_cv_ld_force_load" = "yes"; then
16437 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\"`'
16438 else
16439 whole_archive_flag_spec_CXX=''
16440 fi
cristy3ed852e2009-09-05 21:47:34 +000016441 link_all_deplibs_CXX=yes
16442 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16443 case $cc_basename in
16444 ifort*) _lt_dar_can_shared=yes ;;
16445 *) _lt_dar_can_shared=$GCC ;;
16446 esac
16447 if test "$_lt_dar_can_shared" = "yes"; then
cristy232a9ab2010-06-26 01:02:54 +000016448 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016449 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}"
16450 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16451 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}"
16452 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}"
16453 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16454 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}"
16455 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}"
16456 fi
16457
16458 else
16459 ld_shlibs_CXX=no
16460 fi
16461
16462 ;;
16463
16464 dgux*)
16465 case $cc_basename in
16466 ec++*)
16467 # FIXME: insert proper C++ library support
16468 ld_shlibs_CXX=no
16469 ;;
16470 ghcx*)
16471 # Green Hills C++ Compiler
16472 # FIXME: insert proper C++ library support
16473 ld_shlibs_CXX=no
16474 ;;
16475 *)
16476 # FIXME: insert proper C++ library support
16477 ld_shlibs_CXX=no
16478 ;;
16479 esac
16480 ;;
16481
16482 freebsd[12]*)
16483 # C++ shared libraries reported to be fairly broken before
16484 # switch to ELF
16485 ld_shlibs_CXX=no
16486 ;;
16487
16488 freebsd-elf*)
16489 archive_cmds_need_lc_CXX=no
16490 ;;
16491
16492 freebsd* | dragonfly*)
16493 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16494 # conventions
16495 ld_shlibs_CXX=yes
16496 ;;
16497
16498 gnu*)
16499 ;;
16500
cristy232a9ab2010-06-26 01:02:54 +000016501 haiku*)
16502 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16503 link_all_deplibs_CXX=yes
16504 ;;
16505
cristy3ed852e2009-09-05 21:47:34 +000016506 hpux9*)
16507 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16508 hardcode_libdir_separator_CXX=:
16509 export_dynamic_flag_spec_CXX='${wl}-E'
16510 hardcode_direct_CXX=yes
16511 hardcode_minus_L_CXX=yes # Not in the search PATH,
16512 # but as the default
16513 # location of the library.
16514
16515 case $cc_basename in
16516 CC*)
16517 # FIXME: insert proper C++ library support
16518 ld_shlibs_CXX=no
16519 ;;
16520 aCC*)
16521 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'
16522 # Commands to make compiler produce verbose output that lists
16523 # what "hidden" libraries, object files and flags are used when
16524 # linking a shared library.
16525 #
16526 # There doesn't appear to be a way to prevent this compiler from
16527 # explicitly linking system object files so we need to strip them
16528 # from the output so that they don't get included in the library
16529 # dependencies.
cristy232a9ab2010-06-26 01:02:54 +000016530 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 +000016531 ;;
16532 *)
16533 if test "$GXX" = yes; then
16534 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'
16535 else
16536 # FIXME: insert proper C++ library support
16537 ld_shlibs_CXX=no
16538 fi
16539 ;;
16540 esac
16541 ;;
16542
16543 hpux10*|hpux11*)
16544 if test $with_gnu_ld = no; then
16545 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16546 hardcode_libdir_separator_CXX=:
16547
16548 case $host_cpu in
16549 hppa*64*|ia64*)
16550 ;;
16551 *)
16552 export_dynamic_flag_spec_CXX='${wl}-E'
16553 ;;
16554 esac
16555 fi
16556 case $host_cpu in
16557 hppa*64*|ia64*)
16558 hardcode_direct_CXX=no
16559 hardcode_shlibpath_var_CXX=no
16560 ;;
16561 *)
16562 hardcode_direct_CXX=yes
16563 hardcode_direct_absolute_CXX=yes
16564 hardcode_minus_L_CXX=yes # Not in the search PATH,
16565 # but as the default
16566 # location of the library.
16567 ;;
16568 esac
16569
16570 case $cc_basename in
16571 CC*)
16572 # FIXME: insert proper C++ library support
16573 ld_shlibs_CXX=no
16574 ;;
16575 aCC*)
16576 case $host_cpu in
16577 hppa*64*)
16578 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16579 ;;
16580 ia64*)
16581 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16582 ;;
16583 *)
16584 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16585 ;;
16586 esac
16587 # Commands to make compiler produce verbose output that lists
16588 # what "hidden" libraries, object files and flags are used when
16589 # linking a shared library.
16590 #
16591 # There doesn't appear to be a way to prevent this compiler from
16592 # explicitly linking system object files so we need to strip them
16593 # from the output so that they don't get included in the library
16594 # dependencies.
cristy232a9ab2010-06-26 01:02:54 +000016595 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 +000016596 ;;
16597 *)
16598 if test "$GXX" = yes; then
16599 if test $with_gnu_ld = no; then
16600 case $host_cpu in
16601 hppa*64*)
16602 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16603 ;;
16604 ia64*)
16605 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16606 ;;
16607 *)
16608 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'
16609 ;;
16610 esac
16611 fi
16612 else
16613 # FIXME: insert proper C++ library support
16614 ld_shlibs_CXX=no
16615 fi
16616 ;;
16617 esac
16618 ;;
16619
16620 interix[3-9]*)
16621 hardcode_direct_CXX=no
16622 hardcode_shlibpath_var_CXX=no
16623 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16624 export_dynamic_flag_spec_CXX='${wl}-E'
16625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16626 # Instead, shared libraries are loaded at an image base (0x10000000 by
16627 # default) and relocated if they conflict, which is a slow very memory
16628 # consuming and fragmenting process. To avoid this, we pick a random,
16629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16631 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'
16632 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'
16633 ;;
16634 irix5* | irix6*)
16635 case $cc_basename in
16636 CC*)
16637 # SGI C++
cristy232a9ab2010-06-26 01:02:54 +000016638 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 +000016639
16640 # Archives containing C++ object files must be created using
16641 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16642 # necessary to make sure instantiated templates are included
16643 # in the archive.
16644 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16645 ;;
16646 *)
16647 if test "$GXX" = yes; then
16648 if test "$with_gnu_ld" = no; then
cristy232a9ab2010-06-26 01:02:54 +000016649 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 +000016650 else
cristy232a9ab2010-06-26 01:02:54 +000016651 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 +000016652 fi
16653 fi
16654 link_all_deplibs_CXX=yes
16655 ;;
16656 esac
16657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16658 hardcode_libdir_separator_CXX=:
16659 inherit_rpath_CXX=yes
16660 ;;
16661
cristy232a9ab2010-06-26 01:02:54 +000016662 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016663 case $cc_basename in
16664 KCC*)
16665 # Kuck and Associates, Inc. (KAI) C++ Compiler
16666
16667 # KCC will only create a shared library if the output file
16668 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16669 # to its proper name (with version) after linking.
16670 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'
16671 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'
16672 # Commands to make compiler produce verbose output that lists
16673 # what "hidden" libraries, object files and flags are used when
16674 # linking a shared library.
16675 #
16676 # There doesn't appear to be a way to prevent this compiler from
16677 # explicitly linking system object files so we need to strip them
16678 # from the output so that they don't get included in the library
16679 # dependencies.
cristy232a9ab2010-06-26 01:02:54 +000016680 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 +000016681
16682 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16683 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16684
16685 # Archives containing C++ object files must be created using
16686 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16687 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16688 ;;
16689 icpc* | ecpc* )
16690 # Intel C++
16691 with_gnu_ld=yes
16692 # version 8.0 and above of icpc choke on multiply defined symbols
16693 # if we add $predep_objects and $postdep_objects, however 7.1 and
16694 # earlier do not add the objects themselves.
16695 case `$CC -V 2>&1` in
16696 *"Version 7."*)
16697 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16698 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'
16699 ;;
16700 *) # Version 8.0 or newer
16701 tmp_idyn=
16702 case $host_cpu in
16703 ia64*) tmp_idyn=' -i_dynamic';;
16704 esac
16705 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16706 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'
16707 ;;
16708 esac
16709 archive_cmds_need_lc_CXX=no
16710 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16711 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16712 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16713 ;;
16714 pgCC* | pgcpp*)
16715 # Portland Group C++ compiler
16716 case `$CC -V` in
cristy232a9ab2010-06-26 01:02:54 +000016717 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy3ed852e2009-09-05 21:47:34 +000016718 prelink_cmds_CXX='tpldir=Template.dir~
16719 rm -rf $tpldir~
16720 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy232a9ab2010-06-26 01:02:54 +000016721 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy3ed852e2009-09-05 21:47:34 +000016722 old_archive_cmds_CXX='tpldir=Template.dir~
16723 rm -rf $tpldir~
16724 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy232a9ab2010-06-26 01:02:54 +000016725 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy3ed852e2009-09-05 21:47:34 +000016726 $RANLIB $oldlib'
16727 archive_cmds_CXX='tpldir=Template.dir~
16728 rm -rf $tpldir~
16729 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy232a9ab2010-06-26 01:02:54 +000016730 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016731 archive_expsym_cmds_CXX='tpldir=Template.dir~
16732 rm -rf $tpldir~
16733 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy232a9ab2010-06-26 01:02:54 +000016734 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016735 ;;
cristy232a9ab2010-06-26 01:02:54 +000016736 *) # Version 6 and above use weak symbols
cristy3ed852e2009-09-05 21:47:34 +000016737 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16738 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'
16739 ;;
16740 esac
16741
16742 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16743 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy232a9ab2010-06-26 01:02:54 +000016744 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 +000016745 ;;
16746 cxx*)
16747 # Compaq C++
16748 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16749 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'
16750
16751 runpath_var=LD_RUN_PATH
16752 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16753 hardcode_libdir_separator_CXX=:
16754
16755 # Commands to make compiler produce verbose output that lists
16756 # what "hidden" libraries, object files and flags are used when
16757 # linking a shared library.
16758 #
16759 # There doesn't appear to be a way to prevent this compiler from
16760 # explicitly linking system object files so we need to strip them
16761 # from the output so that they don't get included in the library
16762 # dependencies.
cristy232a9ab2010-06-26 01:02:54 +000016763 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 +000016764 ;;
cristy232a9ab2010-06-26 01:02:54 +000016765 xl* | mpixl* | bgxl*)
cristy3ed852e2009-09-05 21:47:34 +000016766 # IBM XL 8.0 on PPC, with GNU ld
16767 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16768 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16769 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16770 if test "x$supports_anon_versioning" = xyes; then
16771 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16773 echo "local: *; };" >> $output_objdir/$libname.ver~
16774 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16775 fi
16776 ;;
16777 *)
16778 case `$CC -V 2>&1 | sed 5q` in
16779 *Sun\ C*)
16780 # Sun C++ 5.9
16781 no_undefined_flag_CXX=' -zdefs'
16782 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16783 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'
16784 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy232a9ab2010-06-26 01:02:54 +000016785 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 +000016786 compiler_needs_object_CXX=yes
16787
16788 # Not sure whether something based on
16789 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16790 # would be better.
cristy232a9ab2010-06-26 01:02:54 +000016791 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000016792
16793 # Archives containing C++ object files must be created using
16794 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16795 # necessary to make sure instantiated templates are included
16796 # in the archive.
16797 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16798 ;;
16799 esac
16800 ;;
16801 esac
16802 ;;
16803
16804 lynxos*)
16805 # FIXME: insert proper C++ library support
16806 ld_shlibs_CXX=no
16807 ;;
16808
16809 m88k*)
16810 # FIXME: insert proper C++ library support
16811 ld_shlibs_CXX=no
16812 ;;
16813
16814 mvs*)
16815 case $cc_basename in
16816 cxx*)
16817 # FIXME: insert proper C++ library support
16818 ld_shlibs_CXX=no
16819 ;;
16820 *)
16821 # FIXME: insert proper C++ library support
16822 ld_shlibs_CXX=no
16823 ;;
16824 esac
16825 ;;
16826
16827 netbsd*)
16828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16829 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16830 wlarc=
16831 hardcode_libdir_flag_spec_CXX='-R$libdir'
16832 hardcode_direct_CXX=yes
16833 hardcode_shlibpath_var_CXX=no
16834 fi
16835 # Workaround some broken pre-1.5 toolchains
16836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16837 ;;
16838
16839 *nto* | *qnx*)
16840 ld_shlibs_CXX=yes
16841 ;;
16842
16843 openbsd2*)
16844 # C++ shared libraries are fairly broken
16845 ld_shlibs_CXX=no
16846 ;;
16847
16848 openbsd*)
16849 if test -f /usr/libexec/ld.so; then
16850 hardcode_direct_CXX=yes
16851 hardcode_shlibpath_var_CXX=no
16852 hardcode_direct_absolute_CXX=yes
16853 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16854 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16856 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16857 export_dynamic_flag_spec_CXX='${wl}-E'
16858 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16859 fi
cristy232a9ab2010-06-26 01:02:54 +000016860 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016861 else
16862 ld_shlibs_CXX=no
16863 fi
16864 ;;
16865
16866 osf3* | osf4* | osf5*)
16867 case $cc_basename in
16868 KCC*)
16869 # Kuck and Associates, Inc. (KAI) C++ Compiler
16870
16871 # KCC will only create a shared library if the output file
16872 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16873 # to its proper name (with version) after linking.
16874 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'
16875
16876 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16877 hardcode_libdir_separator_CXX=:
16878
16879 # Archives containing C++ object files must be created using
16880 # the KAI C++ compiler.
16881 case $host in
16882 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16883 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16884 esac
16885 ;;
16886 RCC*)
16887 # Rational C++ 2.4.1
16888 # FIXME: insert proper C++ library support
16889 ld_shlibs_CXX=no
16890 ;;
16891 cxx*)
16892 case $host in
16893 osf3*)
16894 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy232a9ab2010-06-26 01:02:54 +000016895 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 +000016896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16897 ;;
16898 *)
16899 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy232a9ab2010-06-26 01:02:54 +000016900 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 +000016901 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16902 echo "-hidden">> $lib.exp~
cristy232a9ab2010-06-26 01:02:54 +000016903 $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 +000016904 $RM $lib.exp'
16905 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16906 ;;
16907 esac
16908
16909 hardcode_libdir_separator_CXX=:
16910
16911 # Commands to make compiler produce verbose output that lists
16912 # what "hidden" libraries, object files and flags are used when
16913 # linking a shared library.
16914 #
16915 # There doesn't appear to be a way to prevent this compiler from
16916 # explicitly linking system object files so we need to strip them
16917 # from the output so that they don't get included in the library
16918 # dependencies.
cristy232a9ab2010-06-26 01:02:54 +000016919 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 +000016920 ;;
16921 *)
16922 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16923 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16924 case $host in
16925 osf3*)
cristy232a9ab2010-06-26 01:02:54 +000016926 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 +000016927 ;;
16928 *)
cristy232a9ab2010-06-26 01:02:54 +000016929 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 +000016930 ;;
16931 esac
16932
16933 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16934 hardcode_libdir_separator_CXX=:
16935
16936 # Commands to make compiler produce verbose output that lists
16937 # what "hidden" libraries, object files and flags are used when
16938 # linking a shared library.
cristy232a9ab2010-06-26 01:02:54 +000016939 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016940
16941 else
16942 # FIXME: insert proper C++ library support
16943 ld_shlibs_CXX=no
16944 fi
16945 ;;
16946 esac
16947 ;;
16948
16949 psos*)
16950 # FIXME: insert proper C++ library support
16951 ld_shlibs_CXX=no
16952 ;;
16953
16954 sunos4*)
16955 case $cc_basename in
16956 CC*)
16957 # Sun C++ 4.x
16958 # FIXME: insert proper C++ library support
16959 ld_shlibs_CXX=no
16960 ;;
16961 lcc*)
16962 # Lucid
16963 # FIXME: insert proper C++ library support
16964 ld_shlibs_CXX=no
16965 ;;
16966 *)
16967 # FIXME: insert proper C++ library support
16968 ld_shlibs_CXX=no
16969 ;;
16970 esac
16971 ;;
16972
16973 solaris*)
16974 case $cc_basename in
cristy232a9ab2010-06-26 01:02:54 +000016975 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000016976 # Sun C++ 4.2, 5.x and Centerline C++
16977 archive_cmds_need_lc_CXX=yes
16978 no_undefined_flag_CXX=' -zdefs'
16979 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16980 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16981 $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'
16982
16983 hardcode_libdir_flag_spec_CXX='-R$libdir'
16984 hardcode_shlibpath_var_CXX=no
16985 case $host_os in
16986 solaris2.[0-5] | solaris2.[0-5].*) ;;
16987 *)
16988 # The compiler driver will combine and reorder linker options,
16989 # but understands `-z linker_flag'.
16990 # Supported since Solaris 2.6 (maybe 2.5.1?)
16991 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16992 ;;
16993 esac
16994 link_all_deplibs_CXX=yes
16995
cristy232a9ab2010-06-26 01:02:54 +000016996 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000016997
16998 # Archives containing C++ object files must be created using
16999 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17000 # necessary to make sure instantiated templates are included
17001 # in the archive.
17002 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17003 ;;
17004 gcx*)
17005 # Green Hills C++ Compiler
17006 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17007
17008 # The C++ compiler must be used to create the archive.
17009 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17010 ;;
17011 *)
17012 # GNU C++ compiler with Solaris linker
17013 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17014 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17015 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17016 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17017 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17018 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17019
17020 # Commands to make compiler produce verbose output that lists
17021 # what "hidden" libraries, object files and flags are used when
17022 # linking a shared library.
cristy232a9ab2010-06-26 01:02:54 +000017023 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017024 else
17025 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17026 # platform.
17027 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17028 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17029 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17030
17031 # Commands to make compiler produce verbose output that lists
17032 # what "hidden" libraries, object files and flags are used when
17033 # linking a shared library.
cristy232a9ab2010-06-26 01:02:54 +000017034 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017035 fi
17036
17037 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17038 case $host_os in
17039 solaris2.[0-5] | solaris2.[0-5].*) ;;
17040 *)
17041 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17042 ;;
17043 esac
17044 fi
17045 ;;
17046 esac
17047 ;;
17048
17049 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17050 no_undefined_flag_CXX='${wl}-z,text'
17051 archive_cmds_need_lc_CXX=no
17052 hardcode_shlibpath_var_CXX=no
17053 runpath_var='LD_RUN_PATH'
17054
17055 case $cc_basename in
17056 CC*)
17057 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17058 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17059 ;;
17060 *)
17061 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17062 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17063 ;;
17064 esac
17065 ;;
17066
17067 sysv5* | sco3.2v5* | sco5v6*)
17068 # Note: We can NOT use -z defs as we might desire, because we do not
17069 # link with -lc, and that would cause any symbols used from libc to
17070 # always be unresolved, which means just about no library would
17071 # ever link correctly. If we're not using GNU ld we use -z text
17072 # though, which does catch some bad symbols but isn't as heavy-handed
17073 # as -z defs.
17074 no_undefined_flag_CXX='${wl}-z,text'
17075 allow_undefined_flag_CXX='${wl}-z,nodefs'
17076 archive_cmds_need_lc_CXX=no
17077 hardcode_shlibpath_var_CXX=no
17078 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17079 hardcode_libdir_separator_CXX=':'
17080 link_all_deplibs_CXX=yes
17081 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17082 runpath_var='LD_RUN_PATH'
17083
17084 case $cc_basename in
17085 CC*)
17086 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17087 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy232a9ab2010-06-26 01:02:54 +000017088 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17089 '"$old_archive_cmds_CXX"
17090 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17091 '"$reload_cmds_CXX"
cristy3ed852e2009-09-05 21:47:34 +000017092 ;;
17093 *)
17094 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17095 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17096 ;;
17097 esac
17098 ;;
17099
17100 tandem*)
17101 case $cc_basename in
17102 NCC*)
17103 # NonStop-UX NCC 3.20
17104 # FIXME: insert proper C++ library support
17105 ld_shlibs_CXX=no
17106 ;;
17107 *)
17108 # FIXME: insert proper C++ library support
17109 ld_shlibs_CXX=no
17110 ;;
17111 esac
17112 ;;
17113
17114 vxworks*)
17115 # FIXME: insert proper C++ library support
17116 ld_shlibs_CXX=no
17117 ;;
17118
17119 *)
17120 # FIXME: insert proper C++ library support
17121 ld_shlibs_CXX=no
17122 ;;
17123 esac
17124
cristy8b350f62009-11-15 23:12:43 +000017125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017126$as_echo "$ld_shlibs_CXX" >&6; }
17127 test "$ld_shlibs_CXX" = no && can_build_shared=no
17128
17129 GCC_CXX="$GXX"
17130 LD_CXX="$LD"
17131
17132 ## CAVEAT EMPTOR:
17133 ## There is no encapsulation within the following macros, do not change
17134 ## the running order or otherwise move them around unless you know exactly
17135 ## what you are doing...
17136 # Dependencies to place before and after the object being linked:
17137predep_objects_CXX=
17138postdep_objects_CXX=
17139predeps_CXX=
17140postdeps_CXX=
17141compiler_lib_search_path_CXX=
17142
17143cat > conftest.$ac_ext <<_LT_EOF
17144class Foo
17145{
17146public:
17147 Foo (void) { a = 0; }
17148private:
17149 int a;
17150};
17151_LT_EOF
17152
cristy8b350f62009-11-15 23:12:43 +000017153if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017154 (eval $ac_compile) 2>&5
17155 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17157 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017158 # Parse the compiler output and extract the necessary
17159 # objects, libraries and library flags.
17160
17161 # Sentinel used to keep track of whether or not we are before
17162 # the conftest object file.
17163 pre_test_object_deps_done=no
17164
17165 for p in `eval "$output_verbose_link_cmd"`; do
17166 case $p in
17167
17168 -L* | -R* | -l*)
17169 # Some compilers place space between "-{L,R}" and the path.
17170 # Remove the space.
17171 if test $p = "-L" ||
17172 test $p = "-R"; then
17173 prev=$p
17174 continue
17175 else
17176 prev=
17177 fi
17178
17179 if test "$pre_test_object_deps_done" = no; then
17180 case $p in
17181 -L* | -R*)
17182 # Internal compiler library paths should come after those
17183 # provided the user. The postdeps already come after the
17184 # user supplied libs so there is no need to process them.
17185 if test -z "$compiler_lib_search_path_CXX"; then
17186 compiler_lib_search_path_CXX="${prev}${p}"
17187 else
17188 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17189 fi
17190 ;;
17191 # The "-l" case would never come before the object being
17192 # linked, so don't bother handling this case.
17193 esac
17194 else
17195 if test -z "$postdeps_CXX"; then
17196 postdeps_CXX="${prev}${p}"
17197 else
17198 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17199 fi
17200 fi
17201 ;;
17202
17203 *.$objext)
17204 # This assumes that the test object file only shows up
17205 # once in the compiler output.
17206 if test "$p" = "conftest.$objext"; then
17207 pre_test_object_deps_done=yes
17208 continue
17209 fi
17210
17211 if test "$pre_test_object_deps_done" = no; then
17212 if test -z "$predep_objects_CXX"; then
17213 predep_objects_CXX="$p"
17214 else
17215 predep_objects_CXX="$predep_objects_CXX $p"
17216 fi
17217 else
17218 if test -z "$postdep_objects_CXX"; then
17219 postdep_objects_CXX="$p"
17220 else
17221 postdep_objects_CXX="$postdep_objects_CXX $p"
17222 fi
17223 fi
17224 ;;
17225
17226 *) ;; # Ignore the rest.
17227
17228 esac
17229 done
17230
17231 # Clean up.
17232 rm -f a.out a.exe
17233else
17234 echo "libtool.m4: error: problem compiling CXX test program"
17235fi
17236
17237$RM -f confest.$objext
17238
17239# PORTME: override above test on systems where it is broken
17240case $host_os in
17241interix[3-9]*)
17242 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17243 # hack all around it, let's just trust "g++" to DTRT.
17244 predep_objects_CXX=
17245 postdep_objects_CXX=
17246 postdeps_CXX=
17247 ;;
17248
17249linux*)
17250 case `$CC -V 2>&1 | sed 5q` in
17251 *Sun\ C*)
17252 # Sun C++ 5.9
17253
17254 # The more standards-conforming stlport4 library is
17255 # incompatible with the Cstd library. Avoid specifying
17256 # it if it's in CXXFLAGS. Ignore libCrun as
17257 # -library=stlport4 depends on it.
17258 case " $CXX $CXXFLAGS " in
17259 *" -library=stlport4 "*)
17260 solaris_use_stlport4=yes
17261 ;;
17262 esac
17263
17264 if test "$solaris_use_stlport4" != yes; then
17265 postdeps_CXX='-library=Cstd -library=Crun'
17266 fi
17267 ;;
17268 esac
17269 ;;
17270
17271solaris*)
17272 case $cc_basename in
cristy232a9ab2010-06-26 01:02:54 +000017273 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017274 # The more standards-conforming stlport4 library is
17275 # incompatible with the Cstd library. Avoid specifying
17276 # it if it's in CXXFLAGS. Ignore libCrun as
17277 # -library=stlport4 depends on it.
17278 case " $CXX $CXXFLAGS " in
17279 *" -library=stlport4 "*)
17280 solaris_use_stlport4=yes
17281 ;;
17282 esac
17283
17284 # Adding this requires a known-good setup of shared libraries for
17285 # Sun compiler versions before 5.6, else PIC objects from an old
17286 # archive will be linked into the output, leading to subtle bugs.
17287 if test "$solaris_use_stlport4" != yes; then
17288 postdeps_CXX='-library=Cstd -library=Crun'
17289 fi
17290 ;;
17291 esac
17292 ;;
17293esac
17294
17295
17296case " $postdeps_CXX " in
17297*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17298esac
17299 compiler_lib_search_dirs_CXX=
17300if test -n "${compiler_lib_search_path_CXX}"; then
17301 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17302fi
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334 lt_prog_compiler_wl_CXX=
17335lt_prog_compiler_pic_CXX=
17336lt_prog_compiler_static_CXX=
17337
cristy8b350f62009-11-15 23:12:43 +000017338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017339$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17340
17341 # C++ specific cases for pic, static, wl, etc.
17342 if test "$GXX" = yes; then
17343 lt_prog_compiler_wl_CXX='-Wl,'
17344 lt_prog_compiler_static_CXX='-static'
17345
17346 case $host_os in
17347 aix*)
17348 # All AIX code is PIC.
17349 if test "$host_cpu" = ia64; then
17350 # AIX 5 now supports IA64 processor
17351 lt_prog_compiler_static_CXX='-Bstatic'
17352 fi
17353 ;;
17354
17355 amigaos*)
17356 case $host_cpu in
17357 powerpc)
17358 # see comment about AmigaOS4 .so support
17359 lt_prog_compiler_pic_CXX='-fPIC'
17360 ;;
17361 m68k)
17362 # FIXME: we need at least 68020 code to build shared libraries, but
17363 # adding the `-m68020' flag to GCC prevents building anything better,
17364 # like `-m68040'.
17365 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17366 ;;
17367 esac
17368 ;;
17369
17370 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17371 # PIC is the default for these OSes.
17372 ;;
17373 mingw* | cygwin* | os2* | pw32* | cegcc*)
17374 # This hack is so that the source file can tell whether it is being
17375 # built for inclusion in a dll (and should export symbols for example).
17376 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17377 # (--disable-auto-import) libraries
17378 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17379 ;;
17380 darwin* | rhapsody*)
17381 # PIC is the default on this platform
17382 # Common symbols not allowed in MH_DYLIB files
17383 lt_prog_compiler_pic_CXX='-fno-common'
17384 ;;
17385 *djgpp*)
17386 # DJGPP does not support shared libraries at all
17387 lt_prog_compiler_pic_CXX=
17388 ;;
cristy232a9ab2010-06-26 01:02:54 +000017389 haiku*)
17390 # PIC is the default for Haiku.
17391 # The "-static" flag exists, but is broken.
17392 lt_prog_compiler_static_CXX=
17393 ;;
cristy3ed852e2009-09-05 21:47:34 +000017394 interix[3-9]*)
17395 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17396 # Instead, we relocate shared libraries at runtime.
17397 ;;
17398 sysv4*MP*)
17399 if test -d /usr/nec; then
17400 lt_prog_compiler_pic_CXX=-Kconform_pic
17401 fi
17402 ;;
17403 hpux*)
17404 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17405 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17406 # sets the default TLS model and affects inlining.
17407 case $host_cpu in
17408 hppa*64*)
17409 ;;
17410 *)
17411 lt_prog_compiler_pic_CXX='-fPIC'
17412 ;;
17413 esac
17414 ;;
17415 *qnx* | *nto*)
17416 # QNX uses GNU C++, but need to define -shared option too, otherwise
17417 # it will coredump.
17418 lt_prog_compiler_pic_CXX='-fPIC -shared'
17419 ;;
17420 *)
17421 lt_prog_compiler_pic_CXX='-fPIC'
17422 ;;
17423 esac
17424 else
17425 case $host_os in
17426 aix[4-9]*)
17427 # All AIX code is PIC.
17428 if test "$host_cpu" = ia64; then
17429 # AIX 5 now supports IA64 processor
17430 lt_prog_compiler_static_CXX='-Bstatic'
17431 else
17432 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17433 fi
17434 ;;
17435 chorus*)
17436 case $cc_basename in
17437 cxch68*)
17438 # Green Hills C++ Compiler
17439 # _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"
17440 ;;
17441 esac
17442 ;;
17443 dgux*)
17444 case $cc_basename in
17445 ec++*)
17446 lt_prog_compiler_pic_CXX='-KPIC'
17447 ;;
17448 ghcx*)
17449 # Green Hills C++ Compiler
17450 lt_prog_compiler_pic_CXX='-pic'
17451 ;;
17452 *)
17453 ;;
17454 esac
17455 ;;
17456 freebsd* | dragonfly*)
17457 # FreeBSD uses GNU C++
17458 ;;
17459 hpux9* | hpux10* | hpux11*)
17460 case $cc_basename in
17461 CC*)
17462 lt_prog_compiler_wl_CXX='-Wl,'
17463 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17464 if test "$host_cpu" != ia64; then
17465 lt_prog_compiler_pic_CXX='+Z'
17466 fi
17467 ;;
17468 aCC*)
17469 lt_prog_compiler_wl_CXX='-Wl,'
17470 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17471 case $host_cpu in
17472 hppa*64*|ia64*)
17473 # +Z the default
17474 ;;
17475 *)
17476 lt_prog_compiler_pic_CXX='+Z'
17477 ;;
17478 esac
17479 ;;
17480 *)
17481 ;;
17482 esac
17483 ;;
17484 interix*)
17485 # This is c89, which is MS Visual C++ (no shared libs)
17486 # Anyone wants to do a port?
17487 ;;
17488 irix5* | irix6* | nonstopux*)
17489 case $cc_basename in
17490 CC*)
17491 lt_prog_compiler_wl_CXX='-Wl,'
17492 lt_prog_compiler_static_CXX='-non_shared'
17493 # CC pic flag -KPIC is the default.
17494 ;;
17495 *)
17496 ;;
17497 esac
17498 ;;
cristy232a9ab2010-06-26 01:02:54 +000017499 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017500 case $cc_basename in
17501 KCC*)
17502 # KAI C++ Compiler
17503 lt_prog_compiler_wl_CXX='--backend -Wl,'
17504 lt_prog_compiler_pic_CXX='-fPIC'
17505 ;;
17506 ecpc* )
17507 # old Intel C++ for x86_64 which still supported -KPIC.
17508 lt_prog_compiler_wl_CXX='-Wl,'
17509 lt_prog_compiler_pic_CXX='-KPIC'
17510 lt_prog_compiler_static_CXX='-static'
17511 ;;
17512 icpc* )
17513 # Intel C++, used to be incompatible with GCC.
17514 # ICC 10 doesn't accept -KPIC any more.
17515 lt_prog_compiler_wl_CXX='-Wl,'
17516 lt_prog_compiler_pic_CXX='-fPIC'
17517 lt_prog_compiler_static_CXX='-static'
17518 ;;
17519 pgCC* | pgcpp*)
17520 # Portland Group C++ compiler
17521 lt_prog_compiler_wl_CXX='-Wl,'
17522 lt_prog_compiler_pic_CXX='-fpic'
17523 lt_prog_compiler_static_CXX='-Bstatic'
17524 ;;
17525 cxx*)
17526 # Compaq C++
17527 # Make sure the PIC flag is empty. It appears that all Alpha
17528 # Linux and Compaq Tru64 Unix objects are PIC.
17529 lt_prog_compiler_pic_CXX=
17530 lt_prog_compiler_static_CXX='-non_shared'
17531 ;;
cristy232a9ab2010-06-26 01:02:54 +000017532 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17533 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000017534 lt_prog_compiler_wl_CXX='-Wl,'
17535 lt_prog_compiler_pic_CXX='-qpic'
17536 lt_prog_compiler_static_CXX='-qstaticlink'
17537 ;;
17538 *)
17539 case `$CC -V 2>&1 | sed 5q` in
17540 *Sun\ C*)
17541 # Sun C++ 5.9
17542 lt_prog_compiler_pic_CXX='-KPIC'
17543 lt_prog_compiler_static_CXX='-Bstatic'
17544 lt_prog_compiler_wl_CXX='-Qoption ld '
17545 ;;
17546 esac
17547 ;;
17548 esac
17549 ;;
17550 lynxos*)
17551 ;;
17552 m88k*)
17553 ;;
17554 mvs*)
17555 case $cc_basename in
17556 cxx*)
17557 lt_prog_compiler_pic_CXX='-W c,exportall'
17558 ;;
17559 *)
17560 ;;
17561 esac
17562 ;;
17563 netbsd*)
17564 ;;
17565 *qnx* | *nto*)
17566 # QNX uses GNU C++, but need to define -shared option too, otherwise
17567 # it will coredump.
17568 lt_prog_compiler_pic_CXX='-fPIC -shared'
17569 ;;
17570 osf3* | osf4* | osf5*)
17571 case $cc_basename in
17572 KCC*)
17573 lt_prog_compiler_wl_CXX='--backend -Wl,'
17574 ;;
17575 RCC*)
17576 # Rational C++ 2.4.1
17577 lt_prog_compiler_pic_CXX='-pic'
17578 ;;
17579 cxx*)
17580 # Digital/Compaq C++
17581 lt_prog_compiler_wl_CXX='-Wl,'
17582 # Make sure the PIC flag is empty. It appears that all Alpha
17583 # Linux and Compaq Tru64 Unix objects are PIC.
17584 lt_prog_compiler_pic_CXX=
17585 lt_prog_compiler_static_CXX='-non_shared'
17586 ;;
17587 *)
17588 ;;
17589 esac
17590 ;;
17591 psos*)
17592 ;;
17593 solaris*)
17594 case $cc_basename in
cristy232a9ab2010-06-26 01:02:54 +000017595 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017596 # Sun C++ 4.2, 5.x and Centerline C++
17597 lt_prog_compiler_pic_CXX='-KPIC'
17598 lt_prog_compiler_static_CXX='-Bstatic'
17599 lt_prog_compiler_wl_CXX='-Qoption ld '
17600 ;;
17601 gcx*)
17602 # Green Hills C++ Compiler
17603 lt_prog_compiler_pic_CXX='-PIC'
17604 ;;
17605 *)
17606 ;;
17607 esac
17608 ;;
17609 sunos4*)
17610 case $cc_basename in
17611 CC*)
17612 # Sun C++ 4.x
17613 lt_prog_compiler_pic_CXX='-pic'
17614 lt_prog_compiler_static_CXX='-Bstatic'
17615 ;;
17616 lcc*)
17617 # Lucid
17618 lt_prog_compiler_pic_CXX='-pic'
17619 ;;
17620 *)
17621 ;;
17622 esac
17623 ;;
17624 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17625 case $cc_basename in
17626 CC*)
17627 lt_prog_compiler_wl_CXX='-Wl,'
17628 lt_prog_compiler_pic_CXX='-KPIC'
17629 lt_prog_compiler_static_CXX='-Bstatic'
17630 ;;
17631 esac
17632 ;;
17633 tandem*)
17634 case $cc_basename in
17635 NCC*)
17636 # NonStop-UX NCC 3.20
17637 lt_prog_compiler_pic_CXX='-KPIC'
17638 ;;
17639 *)
17640 ;;
17641 esac
17642 ;;
17643 vxworks*)
17644 ;;
17645 *)
17646 lt_prog_compiler_can_build_shared_CXX=no
17647 ;;
17648 esac
17649 fi
17650
17651case $host_os in
17652 # For platforms which do not support PIC, -DPIC is meaningless:
17653 *djgpp*)
17654 lt_prog_compiler_pic_CXX=
17655 ;;
17656 *)
17657 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17658 ;;
17659esac
cristy8b350f62009-11-15 23:12:43 +000017660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017661$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17662
17663
17664
17665#
17666# Check to make sure the PIC flag actually works.
17667#
17668if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017669 { $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 +000017670$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017671if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017672 $as_echo_n "(cached) " >&6
17673else
17674 lt_cv_prog_compiler_pic_works_CXX=no
17675 ac_outfile=conftest.$ac_objext
17676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17677 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17678 # Insert the option either (1) after the last *FLAGS variable, or
17679 # (2) before a word containing "conftest.", or (3) at the end.
17680 # Note that $ac_compile itself does not contain backslashes and begins
17681 # with a dollar sign (not a hyphen), so the echo should work correctly.
17682 # The option is referenced via a variable to avoid confusing sed.
17683 lt_compile=`echo "$ac_compile" | $SED \
17684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17686 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000017687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017688 (eval "$lt_compile" 2>conftest.err)
17689 ac_status=$?
17690 cat conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000017691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017692 if (exit $ac_status) && test -s "$ac_outfile"; then
17693 # The compiler can only warn and ignore the option if not recognized
17694 # So say no if there are warnings other than the usual output.
cristy232a9ab2010-06-26 01:02:54 +000017695 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17697 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17698 lt_cv_prog_compiler_pic_works_CXX=yes
17699 fi
17700 fi
17701 $RM conftest*
17702
17703fi
cristy8b350f62009-11-15 23:12:43 +000017704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017705$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17706
17707if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17708 case $lt_prog_compiler_pic_CXX in
17709 "" | " "*) ;;
17710 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17711 esac
17712else
17713 lt_prog_compiler_pic_CXX=
17714 lt_prog_compiler_can_build_shared_CXX=no
17715fi
17716
17717fi
17718
17719
17720
17721#
17722# Check to make sure the static flag actually works.
17723#
17724wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017726$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017727if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017728 $as_echo_n "(cached) " >&6
17729else
17730 lt_cv_prog_compiler_static_works_CXX=no
17731 save_LDFLAGS="$LDFLAGS"
17732 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17733 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17734 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17735 # The linker can only warn and ignore the option if not recognized
17736 # So say no if there are warnings
17737 if test -s conftest.err; then
17738 # Append any errors to the config.log.
17739 cat conftest.err 1>&5
cristy232a9ab2010-06-26 01:02:54 +000017740 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17742 if diff conftest.exp conftest.er2 >/dev/null; then
17743 lt_cv_prog_compiler_static_works_CXX=yes
17744 fi
17745 else
17746 lt_cv_prog_compiler_static_works_CXX=yes
17747 fi
17748 fi
17749 $RM -r conftest*
17750 LDFLAGS="$save_LDFLAGS"
17751
17752fi
cristy8b350f62009-11-15 23:12:43 +000017753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017754$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17755
17756if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17757 :
17758else
17759 lt_prog_compiler_static_CXX=
17760fi
17761
17762
17763
17764
cristy8b350f62009-11-15 23:12:43 +000017765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017766$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017767if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017768 $as_echo_n "(cached) " >&6
17769else
17770 lt_cv_prog_compiler_c_o_CXX=no
17771 $RM -r conftest 2>/dev/null
17772 mkdir conftest
17773 cd conftest
17774 mkdir out
17775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17776
17777 lt_compiler_flag="-o out/conftest2.$ac_objext"
17778 # Insert the option either (1) after the last *FLAGS variable, or
17779 # (2) before a word containing "conftest.", or (3) at the end.
17780 # Note that $ac_compile itself does not contain backslashes and begins
17781 # with a dollar sign (not a hyphen), so the echo should work correctly.
17782 lt_compile=`echo "$ac_compile" | $SED \
17783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17785 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000017786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017787 (eval "$lt_compile" 2>out/conftest.err)
17788 ac_status=$?
17789 cat out/conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000017790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017791 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17792 then
17793 # The compiler can only warn and ignore the option if not recognized
17794 # So say no if there are warnings
cristy232a9ab2010-06-26 01:02:54 +000017795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017796 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17797 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17798 lt_cv_prog_compiler_c_o_CXX=yes
17799 fi
17800 fi
17801 chmod u+w . 2>&5
17802 $RM conftest*
17803 # SGI C++ compiler will create directory out/ii_files/ for
17804 # template instantiation
17805 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17806 $RM out/* && rmdir out
17807 cd ..
17808 $RM -r conftest
17809 $RM conftest*
17810
17811fi
cristy8b350f62009-11-15 23:12:43 +000017812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017813$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17814
17815
17816
cristy8b350f62009-11-15 23:12:43 +000017817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017818$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017819if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017820 $as_echo_n "(cached) " >&6
17821else
17822 lt_cv_prog_compiler_c_o_CXX=no
17823 $RM -r conftest 2>/dev/null
17824 mkdir conftest
17825 cd conftest
17826 mkdir out
17827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17828
17829 lt_compiler_flag="-o out/conftest2.$ac_objext"
17830 # Insert the option either (1) after the last *FLAGS variable, or
17831 # (2) before a word containing "conftest.", or (3) at the end.
17832 # Note that $ac_compile itself does not contain backslashes and begins
17833 # with a dollar sign (not a hyphen), so the echo should work correctly.
17834 lt_compile=`echo "$ac_compile" | $SED \
17835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17837 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000017838 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017839 (eval "$lt_compile" 2>out/conftest.err)
17840 ac_status=$?
17841 cat out/conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000017842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017843 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17844 then
17845 # The compiler can only warn and ignore the option if not recognized
17846 # So say no if there are warnings
cristy232a9ab2010-06-26 01:02:54 +000017847 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017848 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17849 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17850 lt_cv_prog_compiler_c_o_CXX=yes
17851 fi
17852 fi
17853 chmod u+w . 2>&5
17854 $RM conftest*
17855 # SGI C++ compiler will create directory out/ii_files/ for
17856 # template instantiation
17857 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17858 $RM out/* && rmdir out
17859 cd ..
17860 $RM -r conftest
17861 $RM conftest*
17862
17863fi
cristy8b350f62009-11-15 23:12:43 +000017864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017865$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17866
17867
17868
17869
17870hard_links="nottested"
17871if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17872 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017874$as_echo_n "checking if we can lock with hard links... " >&6; }
17875 hard_links=yes
17876 $RM conftest*
17877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17878 touch conftest.a
17879 ln conftest.a conftest.b 2>&5 || hard_links=no
17880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017882$as_echo "$hard_links" >&6; }
17883 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017884 { $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 +000017885$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17886 need_locks=warn
17887 fi
17888else
17889 need_locks=no
17890fi
17891
17892
17893
cristy8b350f62009-11-15 23:12:43 +000017894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017895$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17896
17897 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17898 case $host_os in
17899 aix[4-9]*)
17900 # If we're using GNU nm, then we don't want the "-C" option.
17901 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy232a9ab2010-06-26 01:02:54 +000017902 # Also, AIX nm treats weak defined symbols like other global defined
17903 # symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000017904 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy232a9ab2010-06-26 01:02:54 +000017905 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 +000017906 else
17907 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'
17908 fi
17909 ;;
17910 pw32*)
17911 export_symbols_cmds_CXX="$ltdll_cmds"
17912 ;;
17913 cygwin* | mingw* | cegcc*)
17914 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'
17915 ;;
17916 *)
17917 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17918 ;;
17919 esac
17920 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17921
cristy8b350f62009-11-15 23:12:43 +000017922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017923$as_echo "$ld_shlibs_CXX" >&6; }
17924test "$ld_shlibs_CXX" = no && can_build_shared=no
17925
17926with_gnu_ld_CXX=$with_gnu_ld
17927
17928
17929
17930
17931
17932
17933#
17934# Do we need to explicitly link libc?
17935#
17936case "x$archive_cmds_need_lc_CXX" in
17937x|xyes)
17938 # Assume -lc should be added
17939 archive_cmds_need_lc_CXX=yes
17940
17941 if test "$enable_shared" = yes && test "$GCC" = yes; then
17942 case $archive_cmds_CXX in
17943 *'~'*)
17944 # FIXME: we may have to deal with multi-command sequences.
17945 ;;
17946 '$CC '*)
17947 # Test whether the compiler implicitly links with -lc since on some
17948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17949 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017951$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy232a9ab2010-06-26 01:02:54 +000017952if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17953 $as_echo_n "(cached) " >&6
17954else
17955 $RM conftest*
17956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017957
cristy232a9ab2010-06-26 01:02:54 +000017958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017959 (eval $ac_compile) 2>&5
17960 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17962 test $ac_status = 0; } 2>conftest.err; then
cristy232a9ab2010-06-26 01:02:54 +000017963 soname=conftest
17964 lib=conftest
17965 libobjs=conftest.$ac_objext
17966 deplibs=
17967 wl=$lt_prog_compiler_wl_CXX
17968 pic_flag=$lt_prog_compiler_pic_CXX
17969 compiler_flags=-v
17970 linker_flags=-v
17971 verstring=
17972 output_objdir=.
17973 libname=conftest
17974 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17975 allow_undefined_flag_CXX=
17976 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 +000017977 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17978 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17980 test $ac_status = 0; }
cristy232a9ab2010-06-26 01:02:54 +000017981 then
17982 lt_cv_archive_cmds_need_lc_CXX=no
17983 else
17984 lt_cv_archive_cmds_need_lc_CXX=yes
17985 fi
17986 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17987 else
17988 cat conftest.err 1>&5
17989 fi
17990 $RM conftest*
17991
17992fi
17993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17994$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17995 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy3ed852e2009-09-05 21:47:34 +000017996 ;;
17997 esac
17998 fi
17999 ;;
18000esac
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
cristy8b350f62009-11-15 23:12:43 +000018065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018066$as_echo_n "checking dynamic linker characteristics... " >&6; }
18067
18068library_names_spec=
18069libname_spec='lib$name'
18070soname_spec=
18071shrext_cmds=".so"
18072postinstall_cmds=
18073postuninstall_cmds=
18074finish_cmds=
18075finish_eval=
18076shlibpath_var=
18077shlibpath_overrides_runpath=unknown
18078version_type=none
18079dynamic_linker="$host_os ld.so"
18080sys_lib_dlsearch_path_spec="/lib /usr/lib"
18081need_lib_prefix=unknown
18082hardcode_into_libs=no
18083
18084# when you set need_version to no, make sure it does not cause -set_version
18085# flags to be left without arguments
18086need_version=unknown
18087
18088case $host_os in
18089aix3*)
18090 version_type=linux
18091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18092 shlibpath_var=LIBPATH
18093
18094 # AIX 3 has no versioning support, so we append a major version to the name.
18095 soname_spec='${libname}${release}${shared_ext}$major'
18096 ;;
18097
18098aix[4-9]*)
18099 version_type=linux
18100 need_lib_prefix=no
18101 need_version=no
18102 hardcode_into_libs=yes
18103 if test "$host_cpu" = ia64; then
18104 # AIX 5 supports IA64
18105 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18106 shlibpath_var=LD_LIBRARY_PATH
18107 else
18108 # With GCC up to 2.95.x, collect2 would create an import file
18109 # for dependence libraries. The import file would start with
18110 # the line `#! .'. This would cause the generated library to
18111 # depend on `.', always an invalid library. This was fixed in
18112 # development snapshots of GCC prior to 3.0.
18113 case $host_os in
18114 aix4 | aix4.[01] | aix4.[01].*)
18115 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18116 echo ' yes '
18117 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18118 :
18119 else
18120 can_build_shared=no
18121 fi
18122 ;;
18123 esac
18124 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18125 # soname into executable. Probably we can add versioning support to
18126 # collect2, so additional links can be useful in future.
18127 if test "$aix_use_runtimelinking" = yes; then
18128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18129 # instead of lib<name>.a to let people know that these are not
18130 # typical AIX shared libraries.
18131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18132 else
18133 # We preserve .a as extension for shared libraries through AIX4.2
18134 # and later when we are not doing run time linking.
18135 library_names_spec='${libname}${release}.a $libname.a'
18136 soname_spec='${libname}${release}${shared_ext}$major'
18137 fi
18138 shlibpath_var=LIBPATH
18139 fi
18140 ;;
18141
18142amigaos*)
18143 case $host_cpu in
18144 powerpc)
18145 # Since July 2007 AmigaOS4 officially supports .so libraries.
18146 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18148 ;;
18149 m68k)
18150 library_names_spec='$libname.ixlibrary $libname.a'
18151 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy232a9ab2010-06-26 01:02:54 +000018152 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 +000018153 ;;
18154 esac
18155 ;;
18156
18157beos*)
18158 library_names_spec='${libname}${shared_ext}'
18159 dynamic_linker="$host_os ld.so"
18160 shlibpath_var=LIBRARY_PATH
18161 ;;
18162
18163bsdi[45]*)
18164 version_type=linux
18165 need_version=no
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18167 soname_spec='${libname}${release}${shared_ext}$major'
18168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18169 shlibpath_var=LD_LIBRARY_PATH
18170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18172 # the default ld.so.conf also contains /usr/contrib/lib and
18173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18174 # libtool to hard-code these into programs
18175 ;;
18176
18177cygwin* | mingw* | pw32* | cegcc*)
18178 version_type=windows
18179 shrext_cmds=".dll"
18180 need_version=no
18181 need_lib_prefix=no
18182
18183 case $GCC,$host_os in
18184 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18185 library_names_spec='$libname.dll.a'
18186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18187 postinstall_cmds='base_file=`basename \${file}`~
18188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18189 dldir=$destdir/`dirname \$dlpath`~
18190 test -d \$dldir || mkdir -p \$dldir~
18191 $install_prog $dir/$dlname \$dldir/$dlname~
18192 chmod a+x \$dldir/$dlname~
18193 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18194 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18195 fi'
18196 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18197 dlpath=$dir/\$dldll~
18198 $RM \$dlpath'
18199 shlibpath_overrides_runpath=yes
18200
18201 case $host_os in
18202 cygwin*)
18203 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18204 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy232a9ab2010-06-26 01:02:54 +000018205
cristy3ed852e2009-09-05 21:47:34 +000018206 ;;
18207 mingw* | cegcc*)
18208 # MinGW DLLs use traditional 'lib' prefix
18209 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000018210 ;;
18211 pw32*)
18212 # pw32 DLLs use 'pw' prefix rather than 'lib'
18213 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18214 ;;
18215 esac
18216 ;;
18217
18218 *)
18219 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18220 ;;
18221 esac
18222 dynamic_linker='Win32 ld.exe'
18223 # FIXME: first we should search . and the directory the executable is in
18224 shlibpath_var=PATH
18225 ;;
18226
18227darwin* | rhapsody*)
18228 dynamic_linker="$host_os dyld"
18229 version_type=darwin
18230 need_lib_prefix=no
18231 need_version=no
18232 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18233 soname_spec='${libname}${release}${major}$shared_ext'
18234 shlibpath_overrides_runpath=yes
18235 shlibpath_var=DYLD_LIBRARY_PATH
18236 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18237
18238 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18239 ;;
18240
18241dgux*)
18242 version_type=linux
18243 need_lib_prefix=no
18244 need_version=no
18245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18246 soname_spec='${libname}${release}${shared_ext}$major'
18247 shlibpath_var=LD_LIBRARY_PATH
18248 ;;
18249
18250freebsd1*)
18251 dynamic_linker=no
18252 ;;
18253
18254freebsd* | dragonfly*)
18255 # DragonFly does not have aout. When/if they implement a new
18256 # versioning mechanism, adjust this.
18257 if test -x /usr/bin/objformat; then
18258 objformat=`/usr/bin/objformat`
18259 else
18260 case $host_os in
18261 freebsd[123]*) objformat=aout ;;
18262 *) objformat=elf ;;
18263 esac
18264 fi
18265 version_type=freebsd-$objformat
18266 case $version_type in
18267 freebsd-elf*)
18268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18269 need_version=no
18270 need_lib_prefix=no
18271 ;;
18272 freebsd-*)
18273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18274 need_version=yes
18275 ;;
18276 esac
18277 shlibpath_var=LD_LIBRARY_PATH
18278 case $host_os in
18279 freebsd2*)
18280 shlibpath_overrides_runpath=yes
18281 ;;
18282 freebsd3.[01]* | freebsdelf3.[01]*)
18283 shlibpath_overrides_runpath=yes
18284 hardcode_into_libs=yes
18285 ;;
18286 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18287 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18288 shlibpath_overrides_runpath=no
18289 hardcode_into_libs=yes
18290 ;;
18291 *) # from 4.6 on, and DragonFly
18292 shlibpath_overrides_runpath=yes
18293 hardcode_into_libs=yes
18294 ;;
18295 esac
18296 ;;
18297
18298gnu*)
18299 version_type=linux
18300 need_lib_prefix=no
18301 need_version=no
18302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18303 soname_spec='${libname}${release}${shared_ext}$major'
18304 shlibpath_var=LD_LIBRARY_PATH
18305 hardcode_into_libs=yes
18306 ;;
18307
cristy232a9ab2010-06-26 01:02:54 +000018308haiku*)
18309 version_type=linux
18310 need_lib_prefix=no
18311 need_version=no
18312 dynamic_linker="$host_os runtime_loader"
18313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18314 soname_spec='${libname}${release}${shared_ext}$major'
18315 shlibpath_var=LIBRARY_PATH
18316 shlibpath_overrides_runpath=yes
18317 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18318 hardcode_into_libs=yes
18319 ;;
18320
cristy3ed852e2009-09-05 21:47:34 +000018321hpux9* | hpux10* | hpux11*)
18322 # Give a soname corresponding to the major version so that dld.sl refuses to
18323 # link against other versions.
18324 version_type=sunos
18325 need_lib_prefix=no
18326 need_version=no
18327 case $host_cpu in
18328 ia64*)
18329 shrext_cmds='.so'
18330 hardcode_into_libs=yes
18331 dynamic_linker="$host_os dld.so"
18332 shlibpath_var=LD_LIBRARY_PATH
18333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18335 soname_spec='${libname}${release}${shared_ext}$major'
18336 if test "X$HPUX_IA64_MODE" = X32; then
18337 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18338 else
18339 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18340 fi
18341 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18342 ;;
18343 hppa*64*)
18344 shrext_cmds='.sl'
18345 hardcode_into_libs=yes
18346 dynamic_linker="$host_os dld.sl"
18347 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18348 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18350 soname_spec='${libname}${release}${shared_ext}$major'
18351 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18353 ;;
18354 *)
18355 shrext_cmds='.sl'
18356 dynamic_linker="$host_os dld.sl"
18357 shlibpath_var=SHLIB_PATH
18358 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18360 soname_spec='${libname}${release}${shared_ext}$major'
18361 ;;
18362 esac
cristy232a9ab2010-06-26 01:02:54 +000018363 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000018364 postinstall_cmds='chmod 555 $lib'
cristy232a9ab2010-06-26 01:02:54 +000018365 # or fails outright, so override atomically:
18366 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000018367 ;;
18368
18369interix[3-9]*)
18370 version_type=linux
18371 need_lib_prefix=no
18372 need_version=no
18373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18374 soname_spec='${libname}${release}${shared_ext}$major'
18375 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18376 shlibpath_var=LD_LIBRARY_PATH
18377 shlibpath_overrides_runpath=no
18378 hardcode_into_libs=yes
18379 ;;
18380
18381irix5* | irix6* | nonstopux*)
18382 case $host_os in
18383 nonstopux*) version_type=nonstopux ;;
18384 *)
18385 if test "$lt_cv_prog_gnu_ld" = yes; then
18386 version_type=linux
18387 else
18388 version_type=irix
18389 fi ;;
18390 esac
18391 need_lib_prefix=no
18392 need_version=no
18393 soname_spec='${libname}${release}${shared_ext}$major'
18394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18395 case $host_os in
18396 irix5* | nonstopux*)
18397 libsuff= shlibsuff=
18398 ;;
18399 *)
18400 case $LD in # libtool.m4 will add one of these switches to LD
18401 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18402 libsuff= shlibsuff= libmagic=32-bit;;
18403 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18404 libsuff=32 shlibsuff=N32 libmagic=N32;;
18405 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18406 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18407 *) libsuff= shlibsuff= libmagic=never-match;;
18408 esac
18409 ;;
18410 esac
18411 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18412 shlibpath_overrides_runpath=no
18413 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18414 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18415 hardcode_into_libs=yes
18416 ;;
18417
18418# No shared lib support for Linux oldld, aout, or coff.
18419linux*oldld* | linux*aout* | linux*coff*)
18420 dynamic_linker=no
18421 ;;
18422
18423# This must be Linux ELF.
cristy232a9ab2010-06-26 01:02:54 +000018424linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018425 version_type=linux
18426 need_lib_prefix=no
18427 need_version=no
18428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18429 soname_spec='${libname}${release}${shared_ext}$major'
18430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18431 shlibpath_var=LD_LIBRARY_PATH
18432 shlibpath_overrides_runpath=no
cristy232a9ab2010-06-26 01:02:54 +000018433
cristy3ed852e2009-09-05 21:47:34 +000018434 # Some binutils ld are patched to set DT_RUNPATH
cristy232a9ab2010-06-26 01:02:54 +000018435 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18436 $as_echo_n "(cached) " >&6
18437else
18438 lt_cv_shlibpath_overrides_runpath=no
18439 save_LDFLAGS=$LDFLAGS
18440 save_libdir=$libdir
18441 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18442 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018444/* end confdefs.h. */
18445
18446int
18447main ()
18448{
18449
18450 ;
18451 return 0;
18452}
18453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018454if ac_fn_cxx_try_link "$LINENO"; then :
18455 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy232a9ab2010-06-26 01:02:54 +000018456 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018457fi
cristy3ed852e2009-09-05 21:47:34 +000018458fi
cristy8b350f62009-11-15 23:12:43 +000018459rm -f core conftest.err conftest.$ac_objext \
18460 conftest$ac_exeext conftest.$ac_ext
cristy232a9ab2010-06-26 01:02:54 +000018461 LDFLAGS=$save_LDFLAGS
18462 libdir=$save_libdir
18463
18464fi
18465
18466 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000018467
18468 # This implies no fast_install, which is unacceptable.
18469 # Some rework will be needed to allow for fast_install
18470 # before this can be enabled.
18471 hardcode_into_libs=yes
18472
cristy679ed8e2009-12-05 02:37:41 +000018473 # Add ABI-specific directories to the system library path.
18474 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18475
cristy3ed852e2009-09-05 21:47:34 +000018476 # Append ld.so.conf contents to the search path
18477 if test -f /etc/ld.so.conf; then
cristy232a9ab2010-06-26 01:02:54 +000018478 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' ' '`
cristy679ed8e2009-12-05 02:37:41 +000018479 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy232a9ab2010-06-26 01:02:54 +000018480
cristy3ed852e2009-09-05 21:47:34 +000018481 fi
18482
18483 # We used to test for /lib/ld.so.1 and disable shared libraries on
18484 # powerpc, because MkLinux only supported shared libraries with the
18485 # GNU dynamic linker. Since this was broken with cross compilers,
18486 # most powerpc-linux boxes support dynamic linking these days and
18487 # people can always --disable-shared, the test was removed, and we
18488 # assume the GNU/Linux dynamic linker is in use.
18489 dynamic_linker='GNU/Linux ld.so'
18490 ;;
18491
18492netbsd*)
18493 version_type=sunos
18494 need_lib_prefix=no
18495 need_version=no
18496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18499 dynamic_linker='NetBSD (a.out) ld.so'
18500 else
18501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18502 soname_spec='${libname}${release}${shared_ext}$major'
18503 dynamic_linker='NetBSD ld.elf_so'
18504 fi
18505 shlibpath_var=LD_LIBRARY_PATH
18506 shlibpath_overrides_runpath=yes
18507 hardcode_into_libs=yes
18508 ;;
18509
18510newsos6)
18511 version_type=linux
18512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18513 shlibpath_var=LD_LIBRARY_PATH
18514 shlibpath_overrides_runpath=yes
18515 ;;
18516
18517*nto* | *qnx*)
18518 version_type=qnx
18519 need_lib_prefix=no
18520 need_version=no
18521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18522 soname_spec='${libname}${release}${shared_ext}$major'
18523 shlibpath_var=LD_LIBRARY_PATH
18524 shlibpath_overrides_runpath=no
18525 hardcode_into_libs=yes
18526 dynamic_linker='ldqnx.so'
18527 ;;
18528
18529openbsd*)
18530 version_type=sunos
18531 sys_lib_dlsearch_path_spec="/usr/lib"
18532 need_lib_prefix=no
18533 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18534 case $host_os in
18535 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18536 *) need_version=no ;;
18537 esac
18538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18540 shlibpath_var=LD_LIBRARY_PATH
18541 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18542 case $host_os in
18543 openbsd2.[89] | openbsd2.[89].*)
18544 shlibpath_overrides_runpath=no
18545 ;;
18546 *)
18547 shlibpath_overrides_runpath=yes
18548 ;;
18549 esac
18550 else
18551 shlibpath_overrides_runpath=yes
18552 fi
18553 ;;
18554
18555os2*)
18556 libname_spec='$name'
18557 shrext_cmds=".dll"
18558 need_lib_prefix=no
18559 library_names_spec='$libname${shared_ext} $libname.a'
18560 dynamic_linker='OS/2 ld.exe'
18561 shlibpath_var=LIBPATH
18562 ;;
18563
18564osf3* | osf4* | osf5*)
18565 version_type=osf
18566 need_lib_prefix=no
18567 need_version=no
18568 soname_spec='${libname}${release}${shared_ext}$major'
18569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18570 shlibpath_var=LD_LIBRARY_PATH
18571 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18572 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18573 ;;
18574
18575rdos*)
18576 dynamic_linker=no
18577 ;;
18578
18579solaris*)
18580 version_type=linux
18581 need_lib_prefix=no
18582 need_version=no
18583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18584 soname_spec='${libname}${release}${shared_ext}$major'
18585 shlibpath_var=LD_LIBRARY_PATH
18586 shlibpath_overrides_runpath=yes
18587 hardcode_into_libs=yes
18588 # ldd complains unless libraries are executable
18589 postinstall_cmds='chmod +x $lib'
18590 ;;
18591
18592sunos4*)
18593 version_type=sunos
18594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18595 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18596 shlibpath_var=LD_LIBRARY_PATH
18597 shlibpath_overrides_runpath=yes
18598 if test "$with_gnu_ld" = yes; then
18599 need_lib_prefix=no
18600 fi
18601 need_version=yes
18602 ;;
18603
18604sysv4 | sysv4.3*)
18605 version_type=linux
18606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18607 soname_spec='${libname}${release}${shared_ext}$major'
18608 shlibpath_var=LD_LIBRARY_PATH
18609 case $host_vendor in
18610 sni)
18611 shlibpath_overrides_runpath=no
18612 need_lib_prefix=no
18613 runpath_var=LD_RUN_PATH
18614 ;;
18615 siemens)
18616 need_lib_prefix=no
18617 ;;
18618 motorola)
18619 need_lib_prefix=no
18620 need_version=no
18621 shlibpath_overrides_runpath=no
18622 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18623 ;;
18624 esac
18625 ;;
18626
18627sysv4*MP*)
18628 if test -d /usr/nec ;then
18629 version_type=linux
18630 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18631 soname_spec='$libname${shared_ext}.$major'
18632 shlibpath_var=LD_LIBRARY_PATH
18633 fi
18634 ;;
18635
18636sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18637 version_type=freebsd-elf
18638 need_lib_prefix=no
18639 need_version=no
18640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18641 soname_spec='${libname}${release}${shared_ext}$major'
18642 shlibpath_var=LD_LIBRARY_PATH
18643 shlibpath_overrides_runpath=yes
18644 hardcode_into_libs=yes
18645 if test "$with_gnu_ld" = yes; then
18646 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18647 else
18648 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18649 case $host_os in
18650 sco3.2v5*)
18651 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18652 ;;
18653 esac
18654 fi
18655 sys_lib_dlsearch_path_spec='/usr/lib'
18656 ;;
18657
18658tpf*)
18659 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18660 version_type=linux
18661 need_lib_prefix=no
18662 need_version=no
18663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18664 shlibpath_var=LD_LIBRARY_PATH
18665 shlibpath_overrides_runpath=no
18666 hardcode_into_libs=yes
18667 ;;
18668
18669uts4*)
18670 version_type=linux
18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18672 soname_spec='${libname}${release}${shared_ext}$major'
18673 shlibpath_var=LD_LIBRARY_PATH
18674 ;;
18675
18676*)
18677 dynamic_linker=no
18678 ;;
18679esac
cristy8b350f62009-11-15 23:12:43 +000018680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018681$as_echo "$dynamic_linker" >&6; }
18682test "$dynamic_linker" = no && can_build_shared=no
18683
18684variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18685if test "$GCC" = yes; then
18686 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18687fi
18688
18689if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18690 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18691fi
18692if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18693 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18694fi
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
cristy232a9ab2010-06-26 01:02:54 +000018731
18732
cristy8b350f62009-11-15 23:12:43 +000018733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018734$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18735hardcode_action_CXX=
18736if test -n "$hardcode_libdir_flag_spec_CXX" ||
18737 test -n "$runpath_var_CXX" ||
18738 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18739
18740 # We can hardcode non-existent directories.
18741 if test "$hardcode_direct_CXX" != no &&
18742 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18743 # have to relink, otherwise we might link with an installed library
18744 # when we should be linking with a yet-to-be-installed one
18745 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18746 test "$hardcode_minus_L_CXX" != no; then
18747 # Linking always hardcodes the temporary library directory.
18748 hardcode_action_CXX=relink
18749 else
18750 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18751 hardcode_action_CXX=immediate
18752 fi
18753else
18754 # We cannot hardcode anything, or else we can only hardcode existing
18755 # directories.
18756 hardcode_action_CXX=unsupported
18757fi
cristy8b350f62009-11-15 23:12:43 +000018758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018759$as_echo "$hardcode_action_CXX" >&6; }
18760
18761if test "$hardcode_action_CXX" = relink ||
18762 test "$inherit_rpath_CXX" = yes; then
18763 # Fast installation is not supported
18764 enable_fast_install=no
18765elif test "$shlibpath_overrides_runpath" = yes ||
18766 test "$enable_shared" = no; then
18767 # Fast installation is not necessary
18768 enable_fast_install=needless
18769fi
18770
18771
18772
18773
18774
18775
18776
18777 fi # test -n "$compiler"
18778
18779 CC=$lt_save_CC
18780 LDCXX=$LD
18781 LD=$lt_save_LD
18782 GCC=$lt_save_GCC
18783 with_gnu_ld=$lt_save_with_gnu_ld
18784 lt_cv_path_LDCXX=$lt_cv_path_LD
18785 lt_cv_path_LD=$lt_save_path_LD
18786 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18787 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18788fi # test "$_lt_caught_CXX_error" != yes
18789
18790ac_ext=c
18791ac_cpp='$CPP $CPPFLAGS'
18792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18794ac_compiler_gnu=$ac_cv_c_compiler_gnu
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808 ac_config_commands="$ac_config_commands libtool"
18809
18810
18811
18812
18813# Only expand once:
18814
18815
18816
18817
18818
18819# Configure libltdl
18820
18821
18822
18823
18824
18825
18826
cristy8b350f62009-11-15 23:12:43 +000018827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018828$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018829if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018830 $as_echo_n "(cached) " >&6
18831else
18832
18833module=yes
18834eval libltdl_cv_shlibext=$shrext_cmds
18835
18836fi
cristy8b350f62009-11-15 23:12:43 +000018837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018838$as_echo "$libltdl_cv_shlibext" >&6; }
18839if test -n "$libltdl_cv_shlibext"; then
18840
18841cat >>confdefs.h <<_ACEOF
18842#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18843_ACEOF
18844
18845fi
18846
cristy8b350f62009-11-15 23:12:43 +000018847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018848$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018849if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018850 $as_echo_n "(cached) " >&6
18851else
18852 lt_cv_module_path_var="$shlibpath_var"
18853fi
cristy8b350f62009-11-15 23:12:43 +000018854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018855$as_echo "$lt_cv_module_path_var" >&6; }
18856if test -n "$lt_cv_module_path_var"; then
18857
18858cat >>confdefs.h <<_ACEOF
18859#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18860_ACEOF
18861
18862fi
18863
cristy8b350f62009-11-15 23:12:43 +000018864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018865$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018866if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018867 $as_echo_n "(cached) " >&6
18868else
18869 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18870fi
cristy8b350f62009-11-15 23:12:43 +000018871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018872$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18873if test -n "$lt_cv_sys_dlsearch_path"; then
18874 sys_dlsearch_path=
18875 for dir in $lt_cv_sys_dlsearch_path; do
18876 if test -z "$sys_dlsearch_path"; then
18877 sys_dlsearch_path="$dir"
18878 else
18879 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18880 fi
18881 done
18882
18883cat >>confdefs.h <<_ACEOF
18884#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18885_ACEOF
18886
18887fi
18888
18889
18890LT_DLLOADERS=
18891
18892
18893ac_ext=c
18894ac_cpp='$CPP $CPPFLAGS'
18895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18897ac_compiler_gnu=$ac_cv_c_compiler_gnu
18898
18899
18900LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018902$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018903if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018904 $as_echo_n "(cached) " >&6
18905else
18906 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018908/* end confdefs.h. */
18909
18910/* Override any GCC internal prototype to avoid an error.
18911 Use char because int might match the return type of a GCC
18912 builtin and then its argument prototype would still apply. */
18913#ifdef __cplusplus
18914extern "C"
18915#endif
18916char dlopen ();
18917int
18918main ()
18919{
18920return dlopen ();
18921 ;
18922 return 0;
18923}
18924_ACEOF
18925for ac_lib in '' dl; do
18926 if test -z "$ac_lib"; then
18927 ac_res="none required"
18928 else
18929 ac_res=-l$ac_lib
18930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18931 fi
cristy8b350f62009-11-15 23:12:43 +000018932 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018933 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018934fi
cristy8b350f62009-11-15 23:12:43 +000018935rm -f core conftest.err conftest.$ac_objext \
18936 conftest$ac_exeext
18937 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018938 break
18939fi
18940done
cristy8b350f62009-11-15 23:12:43 +000018941if test "${ac_cv_search_dlopen+set}" = set; then :
18942
cristy3ed852e2009-09-05 21:47:34 +000018943else
18944 ac_cv_search_dlopen=no
18945fi
18946rm conftest.$ac_ext
18947LIBS=$ac_func_search_save_LIBS
18948fi
cristy8b350f62009-11-15 23:12:43 +000018949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018950$as_echo "$ac_cv_search_dlopen" >&6; }
18951ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018952if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18954
cristy8b350f62009-11-15 23:12:43 +000018955$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018956
18957 if test "$ac_cv_search_dlopen" != "none required" ; then
18958 LIBADD_DLOPEN="-ldl"
18959 fi
18960 libltdl_cv_lib_dl_dlopen="yes"
18961 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18962else
cristy8b350f62009-11-15 23:12:43 +000018963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018964/* end confdefs.h. */
18965#if HAVE_DLFCN_H
18966# include <dlfcn.h>
18967#endif
18968
18969int
18970main ()
18971{
18972dlopen(0, 0);
18973 ;
18974 return 0;
18975}
18976_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018977if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018978
cristy8b350f62009-11-15 23:12:43 +000018979$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018980
18981 libltdl_cv_func_dlopen="yes"
18982 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18983else
cristy8b350f62009-11-15 23:12:43 +000018984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018985$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018986if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018987 $as_echo_n "(cached) " >&6
18988else
18989 ac_check_lib_save_LIBS=$LIBS
18990LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018992/* end confdefs.h. */
18993
18994/* Override any GCC internal prototype to avoid an error.
18995 Use char because int might match the return type of a GCC
18996 builtin and then its argument prototype would still apply. */
18997#ifdef __cplusplus
18998extern "C"
18999#endif
19000char dlopen ();
19001int
19002main ()
19003{
19004return dlopen ();
19005 ;
19006 return 0;
19007}
19008_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019009if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019010 ac_cv_lib_svld_dlopen=yes
19011else
cristy8b350f62009-11-15 23:12:43 +000019012 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019013fi
cristy8b350f62009-11-15 23:12:43 +000019014rm -f core conftest.err conftest.$ac_objext \
19015 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019016LIBS=$ac_check_lib_save_LIBS
19017fi
cristy8b350f62009-11-15 23:12:43 +000019018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019019$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019020if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019021
cristy8b350f62009-11-15 23:12:43 +000019022$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019023
19024 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19025 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19026fi
19027
19028fi
cristy8b350f62009-11-15 23:12:43 +000019029rm -f core conftest.err conftest.$ac_objext \
19030 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019031fi
19032
19033if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19034then
19035 lt_save_LIBS="$LIBS"
19036 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019037 for ac_func in dlerror
19038do :
19039 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19040if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019041 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019042#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019043_ACEOF
19044
19045fi
19046done
19047
19048 LIBS="$lt_save_LIBS"
19049fi
19050
19051
19052LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019053ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19054if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019055
cristy8b350f62009-11-15 23:12:43 +000019056$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019057
19058 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19059else
cristy8b350f62009-11-15 23:12:43 +000019060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019061$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019062if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019063 $as_echo_n "(cached) " >&6
19064else
19065 ac_check_lib_save_LIBS=$LIBS
19066LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019068/* end confdefs.h. */
19069
19070/* Override any GCC internal prototype to avoid an error.
19071 Use char because int might match the return type of a GCC
19072 builtin and then its argument prototype would still apply. */
19073#ifdef __cplusplus
19074extern "C"
19075#endif
19076char shl_load ();
19077int
19078main ()
19079{
19080return shl_load ();
19081 ;
19082 return 0;
19083}
19084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019085if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019086 ac_cv_lib_dld_shl_load=yes
19087else
cristy8b350f62009-11-15 23:12:43 +000019088 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019089fi
cristy8b350f62009-11-15 23:12:43 +000019090rm -f core conftest.err conftest.$ac_objext \
19091 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019092LIBS=$ac_check_lib_save_LIBS
19093fi
cristy8b350f62009-11-15 23:12:43 +000019094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019095$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019096if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019097
cristy8b350f62009-11-15 23:12:43 +000019098$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019099
19100 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19101 LIBADD_SHL_LOAD="-ldld"
19102fi
19103
19104fi
19105
19106
19107
19108case $host_os in
19109darwin[1567].*)
19110# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019111 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19112if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019113
cristy8b350f62009-11-15 23:12:43 +000019114$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019115
19116 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19117fi
19118
19119 ;;
19120beos*)
19121 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19122 ;;
19123cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019124 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19125"
19126if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19127 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019128else
cristy8b350f62009-11-15 23:12:43 +000019129 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019130fi
19131
cristy3ed852e2009-09-05 21:47:34 +000019132cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019133#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019134_ACEOF
19135
cristy3ed852e2009-09-05 21:47:34 +000019136 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19137 ;;
19138esac
19139
cristy8b350f62009-11-15 23:12:43 +000019140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019141$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019142if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019143 $as_echo_n "(cached) " >&6
19144else
19145 ac_check_lib_save_LIBS=$LIBS
19146LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019148/* end confdefs.h. */
19149
19150/* Override any GCC internal prototype to avoid an error.
19151 Use char because int might match the return type of a GCC
19152 builtin and then its argument prototype would still apply. */
19153#ifdef __cplusplus
19154extern "C"
19155#endif
19156char dld_link ();
19157int
19158main ()
19159{
19160return dld_link ();
19161 ;
19162 return 0;
19163}
19164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019165if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019166 ac_cv_lib_dld_dld_link=yes
19167else
cristy8b350f62009-11-15 23:12:43 +000019168 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019169fi
cristy8b350f62009-11-15 23:12:43 +000019170rm -f core conftest.err conftest.$ac_objext \
19171 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019172LIBS=$ac_check_lib_save_LIBS
19173fi
cristy8b350f62009-11-15 23:12:43 +000019174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019175$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019176if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019177
cristy8b350f62009-11-15 23:12:43 +000019178$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019179
19180 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19181fi
19182
19183
19184
19185
19186LT_DLPREOPEN=
19187if test -n "$LT_DLLOADERS"
19188then
19189 for lt_loader in $LT_DLLOADERS; do
19190 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19191 done
19192
cristy8b350f62009-11-15 23:12:43 +000019193$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019194
19195fi
19196
19197
19198LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19199
19200
19201ac_ext=c
19202ac_cpp='$CPP $CPPFLAGS'
19203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19205ac_compiler_gnu=$ac_cv_c_compiler_gnu
19206
19207
cristy8b350f62009-11-15 23:12:43 +000019208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019209$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019210if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019211 $as_echo_n "(cached) " >&6
19212else
19213 lt_cv_sys_symbol_underscore=no
19214 cat > conftest.$ac_ext <<_LT_EOF
19215void nm_test_func(){}
19216int main(){nm_test_func;return 0;}
19217_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019219 (eval $ac_compile) 2>&5
19220 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19222 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019223 # Now try to grab the symbols.
19224 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019225 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 +000019226 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19227 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19229 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019230 # See whether the symbols have a leading underscore.
19231 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19232 lt_cv_sys_symbol_underscore=yes
19233 else
19234 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19235 :
19236 else
19237 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19238 fi
19239 fi
19240 else
19241 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19242 fi
19243 else
19244 echo "configure: failed program was:" >&5
19245 cat conftest.c >&5
19246 fi
19247 rm -rf conftest*
19248
19249fi
cristy8b350f62009-11-15 23:12:43 +000019250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019251$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19252 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19253
19254
19255if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19256 if test x"$libltdl_cv_func_dlopen" = xyes ||
19257 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019259$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019260if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019261 $as_echo_n "(cached) " >&6
19262else
19263 libltdl_cv_need_uscore=unknown
19264 save_LIBS="$LIBS"
19265 LIBS="$LIBS $LIBADD_DLOPEN"
19266 if test "$cross_compiling" = yes; then :
19267 libltdl_cv_need_uscore=cross
19268else
19269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19270 lt_status=$lt_dlunknown
19271 cat > conftest.$ac_ext <<_LT_EOF
cristy232a9ab2010-06-26 01:02:54 +000019272#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000019273#include "confdefs.h"
19274
19275#if HAVE_DLFCN_H
19276#include <dlfcn.h>
19277#endif
19278
19279#include <stdio.h>
19280
19281#ifdef RTLD_GLOBAL
19282# define LT_DLGLOBAL RTLD_GLOBAL
19283#else
19284# ifdef DL_GLOBAL
19285# define LT_DLGLOBAL DL_GLOBAL
19286# else
19287# define LT_DLGLOBAL 0
19288# endif
19289#endif
19290
19291/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19292 find out it does not work in some platform. */
19293#ifndef LT_DLLAZY_OR_NOW
19294# ifdef RTLD_LAZY
19295# define LT_DLLAZY_OR_NOW RTLD_LAZY
19296# else
19297# ifdef DL_LAZY
19298# define LT_DLLAZY_OR_NOW DL_LAZY
19299# else
19300# ifdef RTLD_NOW
19301# define LT_DLLAZY_OR_NOW RTLD_NOW
19302# else
19303# ifdef DL_NOW
19304# define LT_DLLAZY_OR_NOW DL_NOW
19305# else
19306# define LT_DLLAZY_OR_NOW 0
19307# endif
19308# endif
19309# endif
19310# endif
19311#endif
19312
cristy232a9ab2010-06-26 01:02:54 +000019313/* When -fvisbility=hidden is used, assume the code has been annotated
19314 correspondingly for the symbols needed. */
19315#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19316void fnord () __attribute__((visibility("default")));
19317#endif
19318
19319void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000019320int main ()
19321{
19322 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19323 int status = $lt_dlunknown;
19324
19325 if (self)
19326 {
19327 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy232a9ab2010-06-26 01:02:54 +000019328 else
19329 {
19330 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19331 else puts (dlerror ());
19332 }
cristy3ed852e2009-09-05 21:47:34 +000019333 /* dlclose (self); */
19334 }
19335 else
19336 puts (dlerror ());
19337
19338 return status;
19339}
19340_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019342 (eval $ac_link) 2>&5
19343 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19345 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019346 (./conftest; exit; ) >&5 2>/dev/null
19347 lt_status=$?
19348 case x$lt_status in
19349 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19350 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19351 x$lt_dlunknown|x*) ;;
19352 esac
19353 else :
19354 # compilation failed
19355
19356 fi
19357fi
19358rm -fr conftest*
19359
19360 LIBS="$save_LIBS"
19361
19362fi
cristy8b350f62009-11-15 23:12:43 +000019363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019364$as_echo "$libltdl_cv_need_uscore" >&6; }
19365 fi
19366fi
19367
19368if test x"$libltdl_cv_need_uscore" = xyes; then
19369
cristy8b350f62009-11-15 23:12:43 +000019370$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019371
19372fi
19373
cristy8b350f62009-11-15 23:12:43 +000019374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019375$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019376if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019377 $as_echo_n "(cached) " >&6
19378else
19379 # PORTME does your system automatically load deplibs for dlopen?
19380 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19381 # For now, we just catch OSes we know something about -- in the
19382 # future, we'll try test this programmatically.
19383 lt_cv_sys_dlopen_deplibs=unknown
19384 case $host_os in
19385 aix3*|aix4.1.*|aix4.2.*)
19386 # Unknown whether this is true for these versions of AIX, but
19387 # we want this `case' here to explicitly catch those versions.
19388 lt_cv_sys_dlopen_deplibs=unknown
19389 ;;
19390 aix[4-9]*)
19391 lt_cv_sys_dlopen_deplibs=yes
19392 ;;
19393 amigaos*)
19394 case $host_cpu in
19395 powerpc)
19396 lt_cv_sys_dlopen_deplibs=no
19397 ;;
19398 esac
19399 ;;
19400 darwin*)
19401 # Assuming the user has installed a libdl from somewhere, this is true
19402 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19403 lt_cv_sys_dlopen_deplibs=yes
19404 ;;
19405 freebsd* | dragonfly*)
19406 lt_cv_sys_dlopen_deplibs=yes
19407 ;;
cristy232a9ab2010-06-26 01:02:54 +000019408 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019409 # GNU and its variants, using gnu ld.so (Glibc)
19410 lt_cv_sys_dlopen_deplibs=yes
19411 ;;
19412 hpux10*|hpux11*)
19413 lt_cv_sys_dlopen_deplibs=yes
19414 ;;
19415 interix*)
19416 lt_cv_sys_dlopen_deplibs=yes
19417 ;;
19418 irix[12345]*|irix6.[01]*)
19419 # Catch all versions of IRIX before 6.2, and indicate that we don't
19420 # know how it worked for any of those versions.
19421 lt_cv_sys_dlopen_deplibs=unknown
19422 ;;
19423 irix*)
19424 # The case above catches anything before 6.2, and it's known that
19425 # at 6.2 and later dlopen does load deplibs.
19426 lt_cv_sys_dlopen_deplibs=yes
19427 ;;
19428 netbsd*)
19429 lt_cv_sys_dlopen_deplibs=yes
19430 ;;
19431 openbsd*)
19432 lt_cv_sys_dlopen_deplibs=yes
19433 ;;
19434 osf[1234]*)
19435 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19436 # it did *not* use an RPATH in a shared library to find objects the
19437 # library depends on, so we explicitly say `no'.
19438 lt_cv_sys_dlopen_deplibs=no
19439 ;;
19440 osf5.0|osf5.0a|osf5.1)
19441 # dlopen *does* load deplibs and with the right loader patch applied
19442 # it even uses RPATH in a shared library to search for shared objects
19443 # that the library depends on, but there's no easy way to know if that
19444 # patch is installed. Since this is the case, all we can really
19445 # say is unknown -- it depends on the patch being installed. If
19446 # it is, this changes to `yes'. Without it, it would be `no'.
19447 lt_cv_sys_dlopen_deplibs=unknown
19448 ;;
19449 osf*)
19450 # the two cases above should catch all versions of osf <= 5.1. Read
19451 # the comments above for what we know about them.
19452 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19453 # is used to find them so we can finally say `yes'.
19454 lt_cv_sys_dlopen_deplibs=yes
19455 ;;
19456 qnx*)
19457 lt_cv_sys_dlopen_deplibs=yes
19458 ;;
19459 solaris*)
19460 lt_cv_sys_dlopen_deplibs=yes
19461 ;;
19462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19463 libltdl_cv_sys_dlopen_deplibs=yes
19464 ;;
19465 esac
19466
19467fi
cristy8b350f62009-11-15 23:12:43 +000019468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019469$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19470if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19471
cristy8b350f62009-11-15 23:12:43 +000019472$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019473
19474fi
19475
19476:
19477
cristy3ed852e2009-09-05 21:47:34 +000019478for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019479do :
19480 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19481"
19482if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019483 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019484#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019485_ACEOF
19486
19487fi
19488
19489done
19490
19491
cristy8b350f62009-11-15 23:12:43 +000019492ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019493# include <argz.h>
19494#endif
cristy8b350f62009-11-15 23:12:43 +000019495"
19496if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019497
19498cat >>confdefs.h <<_ACEOF
19499#define HAVE_ERROR_T 1
19500_ACEOF
19501
19502
19503else
19504
cristy8b350f62009-11-15 23:12:43 +000019505$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019506
19507
cristy8b350f62009-11-15 23:12:43 +000019508$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019509
19510fi
19511
19512
19513ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019514for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19515 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019516do :
19517 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19518ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19519eval as_val=\$$as_ac_var
19520 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019521 cat >>confdefs.h <<_ACEOF
19522#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19523_ACEOF
19524
19525else
19526 ARGZ_H=argz.h;
19527
19528 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19529
19530fi
19531done
19532
19533
cristy8b350f62009-11-15 23:12:43 +000019534if test -z "$ARGZ_H"; then :
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019536$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019537if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019538 $as_echo_n "(cached) " >&6
19539else
19540 case $host_os in #(
19541 *cygwin*)
19542 lt_cv_sys_argz_works=no
19543 if test "$cross_compiling" != no; then
19544 lt_cv_sys_argz_works="guessing no"
19545 else
19546 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19547 save_IFS=$IFS
19548 IFS=-.
19549 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19550 IFS=$save_IFS
19551 lt_os_major=${2-0}
19552 lt_os_minor=${3-0}
19553 lt_os_micro=${4-0}
19554 if test "$lt_os_major" -gt 1 \
19555 || { test "$lt_os_major" -eq 1 \
19556 && { test "$lt_os_minor" -gt 5 \
19557 || { test "$lt_os_minor" -eq 5 \
19558 && test "$lt_os_micro" -gt 24; }; }; }; then
19559 lt_cv_sys_argz_works=yes
19560 fi
19561 fi
19562 ;; #(
19563 *) lt_cv_sys_argz_works=yes ;;
19564 esac
19565fi
cristy8b350f62009-11-15 23:12:43 +000019566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019567$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019568 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019569
cristy8b350f62009-11-15 23:12:43 +000019570$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019571
19572else
19573 ARGZ_H=argz.h
19574
19575
19576 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19577
19578fi
cristy3ed852e2009-09-05 21:47:34 +000019579fi
19580
19581
19582
cristy8b350f62009-11-15 23:12:43 +000019583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019584$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019585if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019586 $as_echo_n "(cached) " >&6
19587else
19588 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19589 libltdl_cv_preloaded_symbols=yes
19590 else
19591 libltdl_cv_preloaded_symbols=no
19592 fi
19593
19594fi
cristy8b350f62009-11-15 23:12:43 +000019595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019596$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19597if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19598
cristy8b350f62009-11-15 23:12:43 +000019599$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019600
19601fi
19602
19603# Set options
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019616if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019617 withval=$with_included_ltdl;
19618fi
19619
19620
19621if test "x$with_included_ltdl" != xyes; then
19622 # We are not being forced to use the included libltdl sources, so
19623 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019624 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019625
cristy8b350f62009-11-15 23:12:43 +000019626"
19627if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19628 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 +000019629 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019630"
19631if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019633$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019634if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019635 $as_echo_n "(cached) " >&6
19636else
19637 ac_check_lib_save_LIBS=$LIBS
19638LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019640/* end confdefs.h. */
19641
19642/* Override any GCC internal prototype to avoid an error.
19643 Use char because int might match the return type of a GCC
19644 builtin and then its argument prototype would still apply. */
19645#ifdef __cplusplus
19646extern "C"
19647#endif
19648char lt_dladvise_preload ();
19649int
19650main ()
19651{
19652return lt_dladvise_preload ();
19653 ;
19654 return 0;
19655}
19656_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019657if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019658 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19659else
cristy8b350f62009-11-15 23:12:43 +000019660 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019661fi
cristy8b350f62009-11-15 23:12:43 +000019662rm -f core conftest.err conftest.$ac_objext \
19663 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019664LIBS=$ac_check_lib_save_LIBS
19665fi
cristy8b350f62009-11-15 23:12:43 +000019666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019667$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019668if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019669 with_included_ltdl=no
19670else
19671 with_included_ltdl=yes
19672fi
19673
19674else
19675 with_included_ltdl=yes
19676fi
19677
19678else
19679 with_included_ltdl=yes
19680fi
19681
19682
19683fi
19684
19685
19686
19687
19688# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019689if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019690 withval=$with_ltdl_include;
19691fi
19692
19693
19694if test -n "$with_ltdl_include"; then
19695 if test -f "$with_ltdl_include/ltdl.h"; then :
19696 else
cristy8b350f62009-11-15 23:12:43 +000019697 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019698 fi
19699else
19700 with_ltdl_include=no
19701fi
19702
19703
19704# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019705if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019706 withval=$with_ltdl_lib;
19707fi
19708
19709
19710if test -n "$with_ltdl_lib"; then
19711 if test -f "$with_ltdl_lib/libltdl.la"; then :
19712 else
cristy8b350f62009-11-15 23:12:43 +000019713 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019714 fi
19715else
19716 with_ltdl_lib=no
19717fi
19718
19719case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19720 ,yes,no,no,)
19721 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000019722 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019723 "") enable_ltdl_convenience=yes
19724 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19725esac
19726LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19727LTDLDEPS=$LIBLTDL
19728LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19729
19730
19731
19732
19733
19734# For backwards non-gettext consistent compatibility...
19735INCLTDL="$LTDLINCL"
19736
19737
19738 ;;
19739 ,no,no,no,)
19740 # If the included ltdl is not to be used, then use the
19741 # preinstalled libltdl we found.
19742
cristy8b350f62009-11-15 23:12:43 +000019743$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019744
19745 LIBLTDL=-lltdl
19746 LTDLDEPS=
19747 LTDLINCL=
19748 ;;
19749 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000019750 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019751 ;;
19752 *) with_included_ltdl=no
19753 LIBLTDL="-L$with_ltdl_lib -lltdl"
19754 LTDLDEPS=
19755 LTDLINCL="-I$with_ltdl_include"
19756 ;;
19757esac
19758INCLTDL="$LTDLINCL"
19759
19760# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019762$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019764$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019766$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019768$as_echo "$LIBLTDL" >&6; }
19769
19770
19771
19772# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019773if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019774 enableval=$enable_ltdl_install;
19775fi
19776
19777
19778case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19779 *yes*) ;;
19780 *) enable_ltdl_convenience=yes ;;
19781esac
19782
19783 if test x"${enable_ltdl_install-no}" != xno; then
19784 INSTALL_LTDL_TRUE=
19785 INSTALL_LTDL_FALSE='#'
19786else
19787 INSTALL_LTDL_TRUE='#'
19788 INSTALL_LTDL_FALSE=
19789fi
19790
19791 if test x"${enable_ltdl_convenience-no}" != xno; then
19792 CONVENIENCE_LTDL_TRUE=
19793 CONVENIENCE_LTDL_FALSE='#'
19794else
19795 CONVENIENCE_LTDL_TRUE='#'
19796 CONVENIENCE_LTDL_FALSE=
19797fi
19798
19799
19800
19801
19802
19803
cristy3ed852e2009-09-05 21:47:34 +000019804# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19805# the user used. This is so that ltdl.h can pick up the parent projects
19806# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19807# definitions required by ltdl.c.
19808# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19809
19810
19811
cristy3ed852e2009-09-05 21:47:34 +000019812for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019813do :
19814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19815ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19816"
19817eval as_val=\$$as_ac_Header
19818 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019819 cat >>confdefs.h <<_ACEOF
19820#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19821_ACEOF
19822
19823fi
19824
19825done
19826
19827
cristy3ed852e2009-09-05 21:47:34 +000019828for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019829do :
19830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19831ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19832eval as_val=\$$as_ac_var
19833 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019834 cat >>confdefs.h <<_ACEOF
19835#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19836_ACEOF
19837
19838else
19839
19840
19841 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19842
19843fi
19844done
19845
cristy3ed852e2009-09-05 21:47:34 +000019846for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019847do :
19848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19849ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19850eval as_val=\$$as_ac_var
19851 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019852 cat >>confdefs.h <<_ACEOF
19853#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19854_ACEOF
19855
19856else
19857
19858
19859 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19860
19861fi
19862done
19863
19864
19865
19866cat >>confdefs.h <<_ACEOF
19867#define LT_LIBEXT "$libext"
19868_ACEOF
19869
19870
19871name=ltdl
19872LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19873
19874
19875
19876
19877
19878
19879
19880
19881# Only expand once:
19882
19883
19884
19885# Check to see if building shared libraries
19886libtool_build_shared_libs='no'
19887if test "$enable_shared" = 'yes'; then
19888 libtool_build_shared_libs='yes'
19889fi
19890
19891# Check to see if building static libraries
19892libtool_build_static_libs='no'
19893if test "$enable_static" = 'yes'; then
19894 libtool_build_static_libs='yes'
19895fi
19896
cristyfa112112010-01-04 17:48:07 +000019897 if test "${libtool_build_shared_libs}" = 'yes'; then
19898 WITH_SHARED_LIBS_TRUE=
19899 WITH_SHARED_LIBS_FALSE='#'
19900else
19901 WITH_SHARED_LIBS_TRUE='#'
19902 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019903fi
19904
19905#
19906# Enable support for building loadable modules
19907#
19908
19909# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019910if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019911 withval=$with_modules; with_modules=$withval
19912else
cristy5a1cefd2010-01-06 20:42:35 +000019913 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019914fi
19915
19916
19917# Only allow building loadable modules if we are building shared libraries
19918if test "$with_modules" != 'no' ; then
19919 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019920 { $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 +000019921$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19922 with_modules='no'
19923 fi
19924fi
19925if test "$with_modules" != 'no'; then
19926
cristy8b350f62009-11-15 23:12:43 +000019927$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019928
19929fi
19930 if test "$with_modules" != 'no'; then
19931 WITH_MODULES_TRUE=
19932 WITH_MODULES_FALSE='#'
19933else
19934 WITH_MODULES_TRUE='#'
19935 WITH_MODULES_FALSE=
19936fi
19937
19938
19939# Enable building/use of libltdl if we are building shared libraries regardless
19940# of whether modules are built or not.
19941with_ltdl='no'
19942if test "$libtool_build_shared_libs" != 'no'; then
19943 with_ltdl='yes'
19944fi
19945
19946 if test "$with_ltdl" != 'no'; then
19947 WITH_LTDL_TRUE=
19948 WITH_LTDL_FALSE='#'
19949else
19950 WITH_LTDL_TRUE='#'
19951 WITH_LTDL_FALSE=
19952fi
19953
19954if test "$with_ltdl" != 'no'; then
19955
cristy8b350f62009-11-15 23:12:43 +000019956$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019957
19958
19959 # Set DLLDFLAGS
19960 if test X"$enable_shared" = Xyes; then
19961 DLLDFLAGS=-export-dynamic
19962
19963 fi
19964fi
19965
19966# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019967# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019968# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019969if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019970 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19971else
19972 enable_delegate_build='no'
19973fi
19974
19975
19976# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019977if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019978 enableval=$enable_deprecated; enable_deprecated=$enableval
19979else
19980 enable_deprecated='no'
19981fi
19982
19983
19984if test "$enable_deprecated" = 'yes'; then
19985
cristy8b350f62009-11-15 23:12:43 +000019986$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019987
19988else
19989 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
19990fi
19991
19992# Build a version of ImageMagick which operates uninstalled.
19993# Used to build distributions located via MAGICK_HOME / executable path
19994# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000019995if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019996 enableval=$enable_installed; enable_installed=$enableval
19997else
19998 enable_installed='yes'
19999fi
20000
20001
20002if test "$enable_installed" = 'yes'; then
20003
cristy8b350f62009-11-15 23:12:43 +000020004$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020005
20006else
20007 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20008fi
20009
20010# Permit enciphering and deciphering image pixels.
20011# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020012if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020013 enableval=$enable_cipher; enable_cipher=$enableval
20014else
20015 enable_cipher='yes'
20016fi
20017
20018
20019if test "$enable_cipher" = 'yes'; then
20020
cristy8b350f62009-11-15 23:12:43 +000020021$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020022
20023fi
20024
20025# Build an embeddable version of ImageMagick.
20026# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020027if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020028 enableval=$enable_embeddable; enable_embeddable=$enableval
20029else
20030 enable_embeddable='no'
20031fi
20032
20033
20034if test "$enable_embeddable" = 'yes'; then
20035
cristy8b350f62009-11-15 23:12:43 +000020036$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020037
20038fi
20039
20040# Build a high dynamic range version of ImageMagick.
20041# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020042if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020043 enableval=$enable_hdri; enable_hdri=$enableval
20044else
20045 enable_hdri='no'
20046fi
20047
20048
20049MAGICK_HDRI=""
20050if test "$enable_hdri" = 'yes'; then
20051 MAGICK_HDRI="HDRI"
20052
cristy8b350f62009-11-15 23:12:43 +000020053$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020054
20055fi
20056
cristy3ed852e2009-09-05 21:47:34 +000020057# Build a version of ImageMagick with assert statements.
20058# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020059if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020060 enableval=$enable_assert; enable_assert=$enableval
20061else
20062 enable_assert='yes'
20063fi
20064
20065
20066if test "$enable_assert" = 'no'; then
20067
cristy8b350f62009-11-15 23:12:43 +000020068$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020069
20070fi
20071
20072# Add configure option --enable-maintainer-mode which enables dependency
20073# checking and generation useful to package maintainers. This is made an
20074# option to avoid confusing end users.
20075
cristy8b350f62009-11-15 23:12:43 +000020076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020077$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20078 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020079if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020080 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20081else
20082 USE_MAINTAINER_MODE=no
20083fi
20084
cristy8b350f62009-11-15 23:12:43 +000020085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020086$as_echo "$USE_MAINTAINER_MODE" >&6; }
20087 if test $USE_MAINTAINER_MODE = yes; then
20088 MAINTAINER_MODE_TRUE=
20089 MAINTAINER_MODE_FALSE='#'
20090else
20091 MAINTAINER_MODE_TRUE='#'
20092 MAINTAINER_MODE_FALSE=
20093fi
20094
20095 MAINT=$MAINTAINER_MODE_TRUE
20096
20097
20098
20099
20100# Enable ccmalloc memory debugging support
20101# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020102if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020103 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20104else
20105 enable_ccmalloc='no'
20106fi
20107
20108
20109# Enable Electric Fence memory debugging support
20110# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020111if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020112 enableval=$enable_efence; enable_efence=$enableval
20113else
20114 enable_efence='no'
20115fi
20116
20117
20118# Enable prof-based profiling support
20119# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020120if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020121 enableval=$enable_prof; enable_prof=$enableval
20122else
20123 enable_prof='no'
20124fi
20125
20126
20127# Enable gprof-based profiling support
20128# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020129if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020130 enableval=$enable_gprof; enable_gprof=$enableval
20131else
20132 enable_gprof='no'
20133fi
20134
20135
20136# Enable gcov-based profiling support
20137# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020138if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020139 enableval=$enable_gcov; enable_gcov=$enableval
20140else
20141 enable_gcov='no'
20142fi
20143
20144
20145enable_profiling='no'
20146if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20147 enable_profiling='yes'
20148 if test "$libtool_build_shared_libs" = 'yes'; then
20149 echo "Warning: Can not profile code using shared libraries"
20150 fi
20151fi
20152
20153# Magick API method prefix
20154
20155# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020156if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020157 withval=$with_method_prefix; with_method_prefix=$enableval
20158else
20159 with_method_prefix=''
20160fi
20161
20162
20163if test "$with_method_prefix" != ''; then
20164
20165cat >>confdefs.h <<_ACEOF
20166#define NAMESPACE_PREFIX $with_method_prefix
20167_ACEOF
20168
20169fi
20170
20171# Number of bits in a Quantum
20172
20173# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020174if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020175 withval=$with_quantum_depth; with_quantum_depth=$withval
20176else
20177 with_quantum_depth=16
20178fi
20179
20180
20181if test "$with_quantum_depth" != '8'; then
20182 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20183fi
20184
20185case "${with_quantum_depth}" in
20186 8 ) ;;
20187 16 ) ;;
20188 32 ) ;;
20189 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000020190 * ) { as_fn_set_status 16
20191as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000020192esac
20193QUANTUM_DEPTH="$with_quantum_depth"
20194
20195cat >>confdefs.h <<_ACEOF
20196#define QUANTUM_DEPTH $QUANTUM_DEPTH
20197_ACEOF
20198
20199
20200# Set pixel cache threshold
20201
20202# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020203if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020204 withval=$with_cache; with_cache=$withval
20205else
20206 with_cache=''
20207fi
20208
20209
20210if test "$with_cache" != ''; then
20211
20212cat >>confdefs.h <<_ACEOF
20213#define PixelCacheThreshold $with_cache
20214_ACEOF
20215
20216 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20217fi
20218
20219# Disable/Enable support for full delegate paths
20220
20221# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020222if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020223 withval=$with_frozenpaths; with_frozenpaths=$withval
20224else
20225 with_frozenpaths='no'
20226fi
20227
20228
20229# Enable build/install of Magick++
20230
20231# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020232if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020233 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20234else
20235 with_magick_plus_plus='yes'
20236fi
20237
20238
20239# Disable build/install of PerlMagick.
20240
20241# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020242if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020243 withval=$with_perl; with_perl=$withval
20244else
cristyb5f4e2f2010-04-25 00:49:11 +000020245 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020246fi
20247
20248
20249# Options to pass when configuring PerlMagick
20250
20251# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020252if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020253 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020254fi
20255
20256
cristy3ed852e2009-09-05 21:47:34 +000020257
20258# Enable umem, object-caching memory allocation library.
20259
20260# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020261if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020262 withval=$with_umem; with_umem=$withval
20263else
20264 with_umem='no'
20265fi
20266
20267if test "$with_umem" != 'yes' ; then
20268 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20269fi
20270
20271#
20272# Specify path to shared libstdc++ if not in normal location
20273#
20274
20275# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020276if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020277 withval=$with_libstdc; with_libstdc=$withval
20278else
20279 with_libstdc=''
20280fi
20281
20282
20283if test "$with_libstdc" != ''; then
20284 if test -d "$with_libstdc"; then
20285 LIBSTDCLDFLAGS="-L$with_libstdc"
20286 fi
20287fi
20288
20289
20290# Does gcc required -traditional?
20291if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020293$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020294if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020295 $as_echo_n "(cached) " >&6
20296else
20297 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020299/* end confdefs.h. */
20300#include <sgtty.h>
20301Autoconf TIOCGETP
20302_ACEOF
20303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020304 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020305 ac_cv_prog_gcc_traditional=yes
20306else
20307 ac_cv_prog_gcc_traditional=no
20308fi
20309rm -f conftest*
20310
20311
20312 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020314/* end confdefs.h. */
20315#include <termio.h>
20316Autoconf TCGETA
20317_ACEOF
20318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020319 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020320 ac_cv_prog_gcc_traditional=yes
20321fi
20322rm -f conftest*
20323
20324 fi
20325fi
cristy8b350f62009-11-15 23:12:43 +000020326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020327$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20328 if test $ac_cv_prog_gcc_traditional = yes; then
20329 CC="$CC -traditional"
20330 fi
20331fi
20332
20333
20334########
20335#
20336# Set defines required to build DLLs and modules using MinGW
20337#
20338########
20339# These options are set for multi-thread DLL module build
20340# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20341# module: _DLL
20342# executable/Magick++: _DLL _MAGICKMOD_
20343MODULE_EXTRA_CPPFLAGS=''
20344LIBRARY_EXTRA_CPPFLAGS=''
20345if test "${native_win32_build}" = 'yes'; then
20346 if test "${libtool_build_shared_libs}" = 'yes'; then
20347 CPPFLAGS="$CPPFLAGS -D_DLL"
20348 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20349 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20350 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20351 if test "$with_modules" = 'yes'; then
20352 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20353 else
20354 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20355 fi
20356 else
20357 CPPFLAGS="$CPPFLAGS -D_LIB"
20358 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20359 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20360 fi
20361 if test "$with_threads" = 'yes'; then
20362 CPPFLAGS="$CPPFLAGS -D_MT"
20363 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20364 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20365 fi
20366fi
20367
20368
20369
20370# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020372$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020373if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020374 $as_echo_n "(cached) " >&6
20375else
cristy8b350f62009-11-15 23:12:43 +000020376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020377/* end confdefs.h. */
20378#include <stdlib.h>
20379#include <stdarg.h>
20380#include <string.h>
20381#include <float.h>
20382
20383int
20384main ()
20385{
20386
20387 ;
20388 return 0;
20389}
20390_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020391if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020392 ac_cv_header_stdc=yes
20393else
cristy8b350f62009-11-15 23:12:43 +000020394 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020395fi
cristy3ed852e2009-09-05 21:47:34 +000020396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20397
20398if test $ac_cv_header_stdc = yes; then
20399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020401/* end confdefs.h. */
20402#include <string.h>
20403
20404_ACEOF
20405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020406 $EGREP "memchr" >/dev/null 2>&1; then :
20407
cristy3ed852e2009-09-05 21:47:34 +000020408else
20409 ac_cv_header_stdc=no
20410fi
20411rm -f conftest*
20412
20413fi
20414
20415if test $ac_cv_header_stdc = yes; then
20416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020418/* end confdefs.h. */
20419#include <stdlib.h>
20420
20421_ACEOF
20422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020423 $EGREP "free" >/dev/null 2>&1; then :
20424
cristy3ed852e2009-09-05 21:47:34 +000020425else
20426 ac_cv_header_stdc=no
20427fi
20428rm -f conftest*
20429
20430fi
20431
20432if test $ac_cv_header_stdc = yes; then
20433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020434 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020435 :
20436else
cristy8b350f62009-11-15 23:12:43 +000020437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020438/* end confdefs.h. */
20439#include <ctype.h>
20440#include <stdlib.h>
20441#if ((' ' & 0x0FF) == 0x020)
20442# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20443# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20444#else
20445# define ISLOWER(c) \
20446 (('a' <= (c) && (c) <= 'i') \
20447 || ('j' <= (c) && (c) <= 'r') \
20448 || ('s' <= (c) && (c) <= 'z'))
20449# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20450#endif
20451
20452#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20453int
20454main ()
20455{
20456 int i;
20457 for (i = 0; i < 256; i++)
20458 if (XOR (islower (i), ISLOWER (i))
20459 || toupper (i) != TOUPPER (i))
20460 return 2;
20461 return 0;
20462}
20463_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020464if ac_fn_c_try_run "$LINENO"; then :
20465
cristy3ed852e2009-09-05 21:47:34 +000020466else
cristy8b350f62009-11-15 23:12:43 +000020467 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020468fi
cristy8b350f62009-11-15 23:12:43 +000020469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20470 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020471fi
20472
cristy3ed852e2009-09-05 21:47:34 +000020473fi
20474fi
cristy8b350f62009-11-15 23:12:43 +000020475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020476$as_echo "$ac_cv_header_stdc" >&6; }
20477if test $ac_cv_header_stdc = yes; then
20478
cristy8b350f62009-11-15 23:12:43 +000020479$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020480
20481fi
20482
20483if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020484 { $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 +000020485 header files. Compilation cannot proceed. Please install the ANSI C
20486 headers and rerun this script." >&5
20487$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20488 header files. Compilation cannot proceed. Please install the ANSI C
20489 headers and rerun this script." >&2;};
20490fi
cristya0b81c32010-01-22 02:54:33 +000020491
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20493$as_echo_n "checking whether to enable assertions... " >&6; }
20494 # Check whether --enable-assert was given.
20495if test "${enable_assert+set}" = set; then :
20496 enableval=$enable_assert; ac_enable_assert=$enableval
20497 if test "x$enableval" = xno; then :
20498
20499$as_echo "#define NDEBUG 1" >>confdefs.h
20500
20501elif test "x$enableval" != xyes; then :
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20503$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20504 ac_enable_assert=yes
20505fi
20506else
20507 ac_enable_assert=yes
20508fi
20509
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20511$as_echo "$ac_enable_assert" >&6; }
20512
cristy3ed852e2009-09-05 21:47:34 +000020513ac_header_dirent=no
20514for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20515 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020517$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020519 $as_echo_n "(cached) " >&6
20520else
cristy8b350f62009-11-15 23:12:43 +000020521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020522/* end confdefs.h. */
20523#include <sys/types.h>
20524#include <$ac_hdr>
20525
20526int
20527main ()
20528{
20529if ((DIR *) 0)
20530return 0;
20531 ;
20532 return 0;
20533}
20534_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020535if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020536 eval "$as_ac_Header=yes"
20537else
cristy8b350f62009-11-15 23:12:43 +000020538 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020539fi
cristy3ed852e2009-09-05 21:47:34 +000020540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20541fi
cristy8b350f62009-11-15 23:12:43 +000020542eval ac_res=\$$as_ac_Header
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020544$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020545eval as_val=\$$as_ac_Header
20546 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020547 cat >>confdefs.h <<_ACEOF
20548#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20549_ACEOF
20550
20551ac_header_dirent=$ac_hdr; break
20552fi
20553
20554done
20555# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20556if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020558$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020559if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020560 $as_echo_n "(cached) " >&6
20561else
20562 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020564/* end confdefs.h. */
20565
20566/* Override any GCC internal prototype to avoid an error.
20567 Use char because int might match the return type of a GCC
20568 builtin and then its argument prototype would still apply. */
20569#ifdef __cplusplus
20570extern "C"
20571#endif
20572char opendir ();
20573int
20574main ()
20575{
20576return opendir ();
20577 ;
20578 return 0;
20579}
20580_ACEOF
20581for ac_lib in '' dir; do
20582 if test -z "$ac_lib"; then
20583 ac_res="none required"
20584 else
20585 ac_res=-l$ac_lib
20586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20587 fi
cristy8b350f62009-11-15 23:12:43 +000020588 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020589 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020590fi
cristy8b350f62009-11-15 23:12:43 +000020591rm -f core conftest.err conftest.$ac_objext \
20592 conftest$ac_exeext
20593 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020594 break
20595fi
20596done
cristy8b350f62009-11-15 23:12:43 +000020597if test "${ac_cv_search_opendir+set}" = set; then :
20598
cristy3ed852e2009-09-05 21:47:34 +000020599else
20600 ac_cv_search_opendir=no
20601fi
20602rm conftest.$ac_ext
20603LIBS=$ac_func_search_save_LIBS
20604fi
cristy8b350f62009-11-15 23:12:43 +000020605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020606$as_echo "$ac_cv_search_opendir" >&6; }
20607ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020608if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20610
20611fi
20612
20613else
cristy8b350f62009-11-15 23:12:43 +000020614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020615$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020616if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020617 $as_echo_n "(cached) " >&6
20618else
20619 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020621/* end confdefs.h. */
20622
20623/* Override any GCC internal prototype to avoid an error.
20624 Use char because int might match the return type of a GCC
20625 builtin and then its argument prototype would still apply. */
20626#ifdef __cplusplus
20627extern "C"
20628#endif
20629char opendir ();
20630int
20631main ()
20632{
20633return opendir ();
20634 ;
20635 return 0;
20636}
20637_ACEOF
20638for ac_lib in '' x; do
20639 if test -z "$ac_lib"; then
20640 ac_res="none required"
20641 else
20642 ac_res=-l$ac_lib
20643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20644 fi
cristy8b350f62009-11-15 23:12:43 +000020645 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020646 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020647fi
cristy8b350f62009-11-15 23:12:43 +000020648rm -f core conftest.err conftest.$ac_objext \
20649 conftest$ac_exeext
20650 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020651 break
20652fi
20653done
cristy8b350f62009-11-15 23:12:43 +000020654if test "${ac_cv_search_opendir+set}" = set; then :
20655
cristy3ed852e2009-09-05 21:47:34 +000020656else
20657 ac_cv_search_opendir=no
20658fi
20659rm conftest.$ac_ext
20660LIBS=$ac_func_search_save_LIBS
20661fi
cristy8b350f62009-11-15 23:12:43 +000020662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020663$as_echo "$ac_cv_search_opendir" >&6; }
20664ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020665if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20667
20668fi
20669
20670fi
20671
20672
20673# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020674for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h
cristy8b350f62009-11-15 23:12:43 +000020675do :
20676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20677ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20678eval as_val=\$$as_ac_Header
20679 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020680 cat >>confdefs.h <<_ACEOF
20681#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20682_ACEOF
20683
20684fi
20685
20686done
20687
20688
20689########
20690#
20691# Checks for typedefs, structures, and compiler characteristics.
20692#
20693########
20694
cristy8b350f62009-11-15 23:12:43 +000020695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020696$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020697if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020698 $as_echo_n "(cached) " >&6
20699else
cristy8b350f62009-11-15 23:12:43 +000020700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020701/* end confdefs.h. */
20702
20703#include <stdbool.h>
20704#ifndef bool
20705 "error: bool is not defined"
20706#endif
20707#ifndef false
20708 "error: false is not defined"
20709#endif
20710#if false
20711 "error: false is not 0"
20712#endif
20713#ifndef true
20714 "error: true is not defined"
20715#endif
20716#if true != 1
20717 "error: true is not 1"
20718#endif
20719#ifndef __bool_true_false_are_defined
20720 "error: __bool_true_false_are_defined is not defined"
20721#endif
20722
20723 struct s { _Bool s: 1; _Bool t; } s;
20724
20725 char a[true == 1 ? 1 : -1];
20726 char b[false == 0 ? 1 : -1];
20727 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20728 char d[(bool) 0.5 == true ? 1 : -1];
20729 bool e = &s;
20730 char f[(_Bool) 0.0 == false ? 1 : -1];
20731 char g[true];
20732 char h[sizeof (_Bool)];
20733 char i[sizeof s.t];
20734 enum { j = false, k = true, l = false * true, m = true * 256 };
20735 /* The following fails for
20736 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20737 _Bool n[m];
20738 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20739 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20740# if defined __xlc__ || defined __GNUC__
20741 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20742 reported by James Lemley on 2005-10-05; see
20743 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20744 This test is not quite right, since xlc is allowed to
20745 reject this program, as the initializer for xlcbug is
20746 not one of the forms that C requires support for.
20747 However, doing the test right would require a runtime
20748 test, and that would make cross-compilation harder.
20749 Let us hope that IBM fixes the xlc bug, and also adds
20750 support for this kind of constant expression. In the
20751 meantime, this test will reject xlc, which is OK, since
20752 our stdbool.h substitute should suffice. We also test
20753 this with GCC, where it should work, to detect more
20754 quickly whether someone messes up the test in the
20755 future. */
20756 char digs[] = "0123456789";
20757 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20758# endif
20759 /* Catch a bug in an HP-UX C compiler. See
20760 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20761 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20762 */
20763 _Bool q = true;
20764 _Bool *pq = &q;
20765
20766int
20767main ()
20768{
20769
20770 *pq |= q;
20771 *pq |= ! q;
20772 /* Refer to every declared value, to avoid compiler optimizations. */
20773 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20774 + !m + !n + !o + !p + !q + !pq);
20775
20776 ;
20777 return 0;
20778}
20779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020780if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020781 ac_cv_header_stdbool_h=yes
20782else
cristy8b350f62009-11-15 23:12:43 +000020783 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020784fi
cristy3ed852e2009-09-05 21:47:34 +000020785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20786fi
cristy8b350f62009-11-15 23:12:43 +000020787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020788$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020789ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20790if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020791
20792cat >>confdefs.h <<_ACEOF
20793#define HAVE__BOOL 1
20794_ACEOF
20795
20796
20797fi
20798
20799if test $ac_cv_header_stdbool_h = yes; then
20800
cristy8b350f62009-11-15 23:12:43 +000020801$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020802
20803fi
20804
cristy8b350f62009-11-15 23:12:43 +000020805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020806$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020807if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020808 $as_echo_n "(cached) " >&6
20809else
cristy8b350f62009-11-15 23:12:43 +000020810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020811/* end confdefs.h. */
20812
20813int
20814main ()
20815{
20816
20817volatile int x;
20818int * volatile y = (int *) 0;
20819return !x && !y;
20820 ;
20821 return 0;
20822}
20823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020824if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020825 ac_cv_c_volatile=yes
20826else
cristy8b350f62009-11-15 23:12:43 +000020827 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020828fi
cristy3ed852e2009-09-05 21:47:34 +000020829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20830fi
cristy8b350f62009-11-15 23:12:43 +000020831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020832$as_echo "$ac_cv_c_volatile" >&6; }
20833if test $ac_cv_c_volatile = no; then
20834
cristy8b350f62009-11-15 23:12:43 +000020835$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020836
20837fi
20838
cristy8b350f62009-11-15 23:12:43 +000020839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020840$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020841if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020842 $as_echo_n "(cached) " >&6
20843else
cristy8b350f62009-11-15 23:12:43 +000020844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020845/* end confdefs.h. */
20846#define x(y) #y
20847
20848char *s = x(teststring);
20849_ACEOF
20850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020851 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020852 ac_cv_c_stringize=no
20853else
20854 ac_cv_c_stringize=yes
20855fi
20856rm -f conftest*
20857
20858fi
cristy8b350f62009-11-15 23:12:43 +000020859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020860$as_echo "$ac_cv_c_stringize" >&6; }
20861if test $ac_cv_c_stringize = yes; then
20862
cristy8b350f62009-11-15 23:12:43 +000020863$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020864
20865fi
20866
cristy8b350f62009-11-15 23:12:43 +000020867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020868$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020869if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020870 $as_echo_n "(cached) " >&6
20871else
cristy8b350f62009-11-15 23:12:43 +000020872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020873/* end confdefs.h. */
20874#include <sys/types.h>
20875#include <sys/stat.h>
20876
20877#if defined S_ISBLK && defined S_IFDIR
20878extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20879#endif
20880
20881#if defined S_ISBLK && defined S_IFCHR
20882extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20883#endif
20884
20885#if defined S_ISLNK && defined S_IFREG
20886extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20887#endif
20888
20889#if defined S_ISSOCK && defined S_IFREG
20890extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20891#endif
20892
20893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020894if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020895 ac_cv_header_stat_broken=no
20896else
cristy8b350f62009-11-15 23:12:43 +000020897 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020898fi
cristy3ed852e2009-09-05 21:47:34 +000020899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20900fi
cristy8b350f62009-11-15 23:12:43 +000020901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020902$as_echo "$ac_cv_header_stat_broken" >&6; }
20903if test $ac_cv_header_stat_broken = yes; then
20904
cristy8b350f62009-11-15 23:12:43 +000020905$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020906
20907fi
20908
cristy8b350f62009-11-15 23:12:43 +000020909{ $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 +000020910$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020911if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020912 $as_echo_n "(cached) " >&6
20913else
cristy8b350f62009-11-15 23:12:43 +000020914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020915/* end confdefs.h. */
20916#include <sys/types.h>
20917#include <sys/time.h>
20918#include <time.h>
20919
20920int
20921main ()
20922{
20923if ((struct tm *) 0)
20924return 0;
20925 ;
20926 return 0;
20927}
20928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020929if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020930 ac_cv_header_time=yes
20931else
cristy8b350f62009-11-15 23:12:43 +000020932 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020933fi
cristy3ed852e2009-09-05 21:47:34 +000020934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935fi
cristy8b350f62009-11-15 23:12:43 +000020936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020937$as_echo "$ac_cv_header_time" >&6; }
20938if test $ac_cv_header_time = yes; then
20939
cristy8b350f62009-11-15 23:12:43 +000020940$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020941
20942fi
20943
cristy8b350f62009-11-15 23:12:43 +000020944{ $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 +000020945$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020946if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020947 $as_echo_n "(cached) " >&6
20948else
cristy8b350f62009-11-15 23:12:43 +000020949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020950/* end confdefs.h. */
20951#include <sys/types.h>
20952#include <time.h>
20953
20954int
20955main ()
20956{
20957struct tm tm;
20958 int *p = &tm.tm_sec;
20959 return !p;
20960 ;
20961 return 0;
20962}
20963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020964if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020965 ac_cv_struct_tm=time.h
20966else
cristy8b350f62009-11-15 23:12:43 +000020967 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020968fi
cristy3ed852e2009-09-05 21:47:34 +000020969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20970fi
cristy8b350f62009-11-15 23:12:43 +000020971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020972$as_echo "$ac_cv_struct_tm" >&6; }
20973if test $ac_cv_struct_tm = sys/time.h; then
20974
cristy8b350f62009-11-15 23:12:43 +000020975$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020976
20977fi
20978
cristy92703d82010-04-26 00:18:18 +000020979ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20980#include <$ac_cv_struct_tm>
20981
20982"
20983if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
20984
20985cat >>confdefs.h <<_ACEOF
20986#define HAVE_STRUCT_TM_TM_ZONE 1
20987_ACEOF
20988
20989
20990fi
20991
20992if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20993
20994$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
20995
20996else
20997 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
20998"
20999if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21000 ac_have_decl=1
21001else
21002 ac_have_decl=0
21003fi
21004
21005cat >>confdefs.h <<_ACEOF
21006#define HAVE_DECL_TZNAME $ac_have_decl
21007_ACEOF
21008
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21010$as_echo_n "checking for tzname... " >&6; }
21011if test "${ac_cv_var_tzname+set}" = set; then :
21012 $as_echo_n "(cached) " >&6
21013else
21014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21015/* end confdefs.h. */
21016#include <time.h>
21017#if !HAVE_DECL_TZNAME
21018extern char *tzname[];
21019#endif
21020
21021int
21022main ()
21023{
21024return tzname[0][0];
21025 ;
21026 return 0;
21027}
21028_ACEOF
21029if ac_fn_c_try_link "$LINENO"; then :
21030 ac_cv_var_tzname=yes
21031else
21032 ac_cv_var_tzname=no
21033fi
21034rm -f core conftest.err conftest.$ac_objext \
21035 conftest$ac_exeext conftest.$ac_ext
21036fi
21037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21038$as_echo "$ac_cv_var_tzname" >&6; }
21039 if test $ac_cv_var_tzname = yes; then
21040
21041$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21042
21043 fi
21044fi
21045
cristy8b350f62009-11-15 23:12:43 +000021046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021047$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021048if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021049 $as_echo_n "(cached) " >&6
21050else
21051 echo '#! /bin/cat
21052exit 69
21053' >conftest
21054chmod u+x conftest
21055(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21056if test $? -ne 69; then
21057 ac_cv_sys_interpreter=yes
21058else
21059 ac_cv_sys_interpreter=no
21060fi
21061rm -f conftest
21062fi
cristy8b350f62009-11-15 23:12:43 +000021063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021064$as_echo "$ac_cv_sys_interpreter" >&6; }
21065interpval=$ac_cv_sys_interpreter
21066
21067
cristy3ed852e2009-09-05 21:47:34 +000021068# If the C compiler supports the keyword inline, do nothing. Otherwise
21069# define inline to __inline__ or __inline if it accepts one of those,
21070# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021072$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021073if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021074 $as_echo_n "(cached) " >&6
21075else
21076 ac_cv_c_inline=no
21077for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021079/* end confdefs.h. */
21080#ifndef __cplusplus
21081typedef int foo_t;
21082static $ac_kw foo_t static_foo () {return 0; }
21083$ac_kw foo_t foo () {return 0; }
21084#endif
21085
21086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021087if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021088 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021089fi
cristy3ed852e2009-09-05 21:47:34 +000021090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21091 test "$ac_cv_c_inline" != no && break
21092done
21093
21094fi
cristy8b350f62009-11-15 23:12:43 +000021095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021096$as_echo "$ac_cv_c_inline" >&6; }
21097
cristy3ed852e2009-09-05 21:47:34 +000021098case $ac_cv_c_inline in
21099 inline | yes) ;;
21100 *)
21101 case $ac_cv_c_inline in
21102 no) ac_val=;;
21103 *) ac_val=$ac_cv_c_inline;;
21104 esac
21105 cat >>confdefs.h <<_ACEOF
21106#ifndef __cplusplus
21107#define inline $ac_val
21108#endif
21109_ACEOF
21110 ;;
21111esac
21112
21113
21114# If the C compiler supports the keyword restrict, do nothing. Otherwise
21115# define restrict to __restrict__ or __restrict if it accepts one of those,
21116# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021118$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021119if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021120 $as_echo_n "(cached) " >&6
21121else
21122 ac_cv_c_restrict=no
21123 # The order here caters to the fact that C++ does not require restrict.
21124 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021126/* end confdefs.h. */
21127typedef int * int_ptr;
21128 int foo (int_ptr $ac_kw ip) {
21129 return ip[0];
21130 }
21131int
21132main ()
21133{
21134int s[1];
21135 int * $ac_kw t = s;
21136 t[0] = 0;
21137 return foo(t)
21138 ;
21139 return 0;
21140}
21141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021142if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021143 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021144fi
cristy3ed852e2009-09-05 21:47:34 +000021145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21146 test "$ac_cv_c_restrict" != no && break
21147 done
21148
21149fi
cristy8b350f62009-11-15 23:12:43 +000021150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021151$as_echo "$ac_cv_c_restrict" >&6; }
21152
cristy3ed852e2009-09-05 21:47:34 +000021153 case $ac_cv_c_restrict in
21154 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021155 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021156 ;;
21157 *) cat >>confdefs.h <<_ACEOF
21158#define restrict $ac_cv_c_restrict
21159_ACEOF
21160 ;;
21161 esac
21162
21163
21164# If words are stored with the most significant byte first (like
21165# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021167$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021168if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021169 $as_echo_n "(cached) " >&6
21170else
21171 ac_cv_c_bigendian=unknown
21172 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021174/* end confdefs.h. */
21175#ifndef __APPLE_CC__
21176 not a universal capable compiler
21177 #endif
21178 typedef int dummy;
21179
21180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021181if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021182
21183 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021184 # there are at least two -arch flags with different values.
21185 ac_arch=
21186 ac_prev=
21187 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21188 if test -n "$ac_prev"; then
21189 case $ac_word in
21190 i?86 | x86_64 | ppc | ppc64)
21191 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21192 ac_arch=$ac_word
21193 else
21194 ac_cv_c_bigendian=universal
21195 break
21196 fi
21197 ;;
21198 esac
21199 ac_prev=
21200 elif test "x$ac_word" = "x-arch"; then
21201 ac_prev=arch
21202 fi
21203 done
cristy3ed852e2009-09-05 21:47:34 +000021204fi
cristy3ed852e2009-09-05 21:47:34 +000021205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21206 if test $ac_cv_c_bigendian = unknown; then
21207 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021209/* end confdefs.h. */
21210#include <sys/types.h>
21211 #include <sys/param.h>
21212
21213int
21214main ()
21215{
21216#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21217 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21218 && LITTLE_ENDIAN)
21219 bogus endian macros
21220 #endif
21221
21222 ;
21223 return 0;
21224}
21225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021226if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021227 # It does; now see whether it defined to BIG_ENDIAN or not.
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#include <sys/types.h>
21231 #include <sys/param.h>
21232
21233int
21234main ()
21235{
21236#if BYTE_ORDER != BIG_ENDIAN
21237 not big endian
21238 #endif
21239
21240 ;
21241 return 0;
21242}
21243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021244if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021245 ac_cv_c_bigendian=yes
21246else
cristy8b350f62009-11-15 23:12:43 +000021247 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021248fi
cristy3ed852e2009-09-05 21:47:34 +000021249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021250fi
cristy3ed852e2009-09-05 21:47:34 +000021251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21252 fi
21253 if test $ac_cv_c_bigendian = unknown; then
21254 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021256/* end confdefs.h. */
21257#include <limits.h>
21258
21259int
21260main ()
21261{
21262#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21263 bogus endian macros
21264 #endif
21265
21266 ;
21267 return 0;
21268}
21269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021270if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021271 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021273/* end confdefs.h. */
21274#include <limits.h>
21275
21276int
21277main ()
21278{
21279#ifndef _BIG_ENDIAN
21280 not big endian
21281 #endif
21282
21283 ;
21284 return 0;
21285}
21286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021287if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021288 ac_cv_c_bigendian=yes
21289else
cristy8b350f62009-11-15 23:12:43 +000021290 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021291fi
cristy3ed852e2009-09-05 21:47:34 +000021292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021293fi
cristy3ed852e2009-09-05 21:47:34 +000021294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295 fi
21296 if test $ac_cv_c_bigendian = unknown; then
21297 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021298 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021299 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021301/* end confdefs.h. */
21302short int ascii_mm[] =
21303 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21304 short int ascii_ii[] =
21305 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21306 int use_ascii (int i) {
21307 return ascii_mm[i] + ascii_ii[i];
21308 }
21309 short int ebcdic_ii[] =
21310 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21311 short int ebcdic_mm[] =
21312 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21313 int use_ebcdic (int i) {
21314 return ebcdic_mm[i] + ebcdic_ii[i];
21315 }
21316 extern int foo;
21317
21318int
21319main ()
21320{
21321return use_ascii (foo) == use_ebcdic (foo);
21322 ;
21323 return 0;
21324}
21325_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021326if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021327 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21328 ac_cv_c_bigendian=yes
21329 fi
21330 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21331 if test "$ac_cv_c_bigendian" = unknown; then
21332 ac_cv_c_bigendian=no
21333 else
21334 # finding both strings is unlikely to happen, but who knows?
21335 ac_cv_c_bigendian=unknown
21336 fi
21337 fi
cristy3ed852e2009-09-05 21:47:34 +000021338fi
cristy3ed852e2009-09-05 21:47:34 +000021339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21340else
cristy8b350f62009-11-15 23:12:43 +000021341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021342/* end confdefs.h. */
21343$ac_includes_default
21344int
21345main ()
21346{
21347
21348 /* Are we little or big endian? From Harbison&Steele. */
21349 union
21350 {
21351 long int l;
21352 char c[sizeof (long int)];
21353 } u;
21354 u.l = 1;
21355 return u.c[sizeof (long int) - 1] == 1;
21356
21357 ;
21358 return 0;
21359}
21360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021361if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021362 ac_cv_c_bigendian=no
21363else
cristy8b350f62009-11-15 23:12:43 +000021364 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021365fi
cristy8b350f62009-11-15 23:12:43 +000021366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21367 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021368fi
21369
cristy3ed852e2009-09-05 21:47:34 +000021370 fi
21371fi
cristy8b350f62009-11-15 23:12:43 +000021372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021373$as_echo "$ac_cv_c_bigendian" >&6; }
21374 case $ac_cv_c_bigendian in #(
21375 yes)
cristy8b350f62009-11-15 23:12:43 +000021376 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021377;; #(
21378 no)
21379 ;; #(
21380 universal)
21381
cristy8b350f62009-11-15 23:12:43 +000021382$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021383
21384 ;; #(
21385 *)
cristy8b350f62009-11-15 23:12:43 +000021386 as_fn_error "unknown endianness
21387 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021388 esac
21389
21390
21391# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021392ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21393if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021394
cristy3ed852e2009-09-05 21:47:34 +000021395else
21396
21397cat >>confdefs.h <<_ACEOF
21398#define mode_t int
21399_ACEOF
21400
21401fi
21402
21403
21404# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021405ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21406if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021407
cristy3ed852e2009-09-05 21:47:34 +000021408else
21409
21410cat >>confdefs.h <<_ACEOF
21411#define off_t long int
21412_ACEOF
21413
21414fi
21415
21416
21417# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021418ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21419if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021420
cristy3ed852e2009-09-05 21:47:34 +000021421else
21422
21423cat >>confdefs.h <<_ACEOF
21424#define pid_t int
21425_ACEOF
21426
21427fi
21428
21429
21430# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021431ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21432if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021433
cristy3ed852e2009-09-05 21:47:34 +000021434else
21435
21436cat >>confdefs.h <<_ACEOF
21437#define size_t unsigned int
21438_ACEOF
21439
21440fi
21441
21442
21443# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021444ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21445if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021446
cristy3ed852e2009-09-05 21:47:34 +000021447else
21448
21449cat >>confdefs.h <<_ACEOF
21450#define ssize_t int
21451_ACEOF
21452
21453fi
21454
21455
21456# If the C compiler supports a working long double type with more range
21457# or precision than the double type, define HAVE_LONG_DOUBLE.
21458
cristy8b350f62009-11-15 23:12:43 +000021459 { $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 +000021460$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021461if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021462 $as_echo_n "(cached) " >&6
21463else
cristy8b350f62009-11-15 23:12:43 +000021464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021465/* end confdefs.h. */
21466#include <float.h>
21467 long double const a[] =
21468 {
21469 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21470 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21471 };
21472 long double
21473 f (long double x)
21474 {
21475 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21476 + (x ? f (x) : 'c'));
21477 }
21478
21479int
21480main ()
21481{
21482static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21483 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21484 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21485 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21486 && (int) LDBL_EPSILON == 0
21487 )];
21488test_array [0] = 0
21489
21490 ;
21491 return 0;
21492}
21493_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021494if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021495 ac_cv_type_long_double_wider=yes
21496else
cristy8b350f62009-11-15 23:12:43 +000021497 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021498fi
cristy3ed852e2009-09-05 21:47:34 +000021499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21500fi
cristy8b350f62009-11-15 23:12:43 +000021501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021502$as_echo "$ac_cv_type_long_double_wider" >&6; }
21503 if test $ac_cv_type_long_double_wider = yes; then
21504
cristy8b350f62009-11-15 23:12:43 +000021505$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021506
21507 fi
21508
21509
21510# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21511# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021513$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021514if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021515 $as_echo_n "(cached) " >&6
21516else
cristy8b350f62009-11-15 23:12:43 +000021517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021518/* end confdefs.h. */
21519$ac_includes_default
21520int
21521main ()
21522{
21523static int test_array [1 - 2 * !(((char) -1) < 0)];
21524test_array [0] = 0
21525
21526 ;
21527 return 0;
21528}
21529_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021530if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021531 ac_cv_c_char_unsigned=no
21532else
cristy8b350f62009-11-15 23:12:43 +000021533 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021534fi
cristy3ed852e2009-09-05 21:47:34 +000021535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21536fi
cristy8b350f62009-11-15 23:12:43 +000021537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021538$as_echo "$ac_cv_c_char_unsigned" >&6; }
21539if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021540 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021541
21542fi
21543
21544
21545# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21546# The cast to long int works around a bug in the HP C Compiler
21547# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21548# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21549# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021551$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021552if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021553 $as_echo_n "(cached) " >&6
21554else
cristy8b350f62009-11-15 23:12:43 +000021555 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 +000021556
cristy3ed852e2009-09-05 21:47:34 +000021557else
cristy8b350f62009-11-15 23:12:43 +000021558 if test "$ac_cv_type_signed_short" = yes; then
21559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021561{ as_fn_set_status 77
21562as_fn_error "cannot compute sizeof (signed short)
21563See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021564 else
21565 ac_cv_sizeof_signed_short=0
21566 fi
21567fi
cristy8b350f62009-11-15 23:12:43 +000021568
cristy3ed852e2009-09-05 21:47:34 +000021569fi
cristy8b350f62009-11-15 23:12:43 +000021570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021571$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21572
21573
21574
21575cat >>confdefs.h <<_ACEOF
21576#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21577_ACEOF
21578
21579
21580
21581# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21582# The cast to long int works around a bug in the HP C Compiler
21583# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21584# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21585# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021587$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021588if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021589 $as_echo_n "(cached) " >&6
21590else
cristy8b350f62009-11-15 23:12:43 +000021591 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 +000021592
cristy3ed852e2009-09-05 21:47:34 +000021593else
cristy8b350f62009-11-15 23:12:43 +000021594 if test "$ac_cv_type_unsigned_short" = yes; then
21595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021597{ as_fn_set_status 77
21598as_fn_error "cannot compute sizeof (unsigned short)
21599See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021600 else
21601 ac_cv_sizeof_unsigned_short=0
21602 fi
21603fi
cristy8b350f62009-11-15 23:12:43 +000021604
cristy3ed852e2009-09-05 21:47:34 +000021605fi
cristy8b350f62009-11-15 23:12:43 +000021606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021607$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21608
21609
21610
21611cat >>confdefs.h <<_ACEOF
21612#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21613_ACEOF
21614
21615
21616
21617# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21618# The cast to long int works around a bug in the HP C Compiler
21619# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21620# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21621# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021623$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021624if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021625 $as_echo_n "(cached) " >&6
21626else
cristy8b350f62009-11-15 23:12:43 +000021627 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 +000021628
cristy3ed852e2009-09-05 21:47:34 +000021629else
cristy8b350f62009-11-15 23:12:43 +000021630 if test "$ac_cv_type_signed_int" = yes; then
21631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021633{ as_fn_set_status 77
21634as_fn_error "cannot compute sizeof (signed int)
21635See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021636 else
21637 ac_cv_sizeof_signed_int=0
21638 fi
21639fi
cristy8b350f62009-11-15 23:12:43 +000021640
cristy3ed852e2009-09-05 21:47:34 +000021641fi
cristy8b350f62009-11-15 23:12:43 +000021642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021643$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21644
21645
21646
21647cat >>confdefs.h <<_ACEOF
21648#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21649_ACEOF
21650
21651
21652
21653# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21654# The cast to long int works around a bug in the HP C Compiler
21655# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21656# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21657# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021659$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021660if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021661 $as_echo_n "(cached) " >&6
21662else
cristy8b350f62009-11-15 23:12:43 +000021663 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 +000021664
cristy3ed852e2009-09-05 21:47:34 +000021665else
cristy8b350f62009-11-15 23:12:43 +000021666 if test "$ac_cv_type_unsigned_int" = yes; then
21667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021669{ as_fn_set_status 77
21670as_fn_error "cannot compute sizeof (unsigned int)
21671See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021672 else
21673 ac_cv_sizeof_unsigned_int=0
21674 fi
21675fi
cristy8b350f62009-11-15 23:12:43 +000021676
cristy3ed852e2009-09-05 21:47:34 +000021677fi
cristy8b350f62009-11-15 23:12:43 +000021678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021679$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21680
21681
21682
21683cat >>confdefs.h <<_ACEOF
21684#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21685_ACEOF
21686
21687
21688
21689# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21690# The cast to long int works around a bug in the HP C Compiler
21691# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21692# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21693# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021695$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021696if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021697 $as_echo_n "(cached) " >&6
21698else
cristy8b350f62009-11-15 23:12:43 +000021699 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 +000021700
cristy3ed852e2009-09-05 21:47:34 +000021701else
cristy8b350f62009-11-15 23:12:43 +000021702 if test "$ac_cv_type_signed_long" = yes; then
21703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021705{ as_fn_set_status 77
21706as_fn_error "cannot compute sizeof (signed long)
21707See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021708 else
21709 ac_cv_sizeof_signed_long=0
21710 fi
21711fi
cristy8b350f62009-11-15 23:12:43 +000021712
cristy3ed852e2009-09-05 21:47:34 +000021713fi
cristy8b350f62009-11-15 23:12:43 +000021714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021715$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21716
21717
21718
21719cat >>confdefs.h <<_ACEOF
21720#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21721_ACEOF
21722
21723
21724
21725# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21726# The cast to long int works around a bug in the HP C Compiler
21727# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21728# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21729# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021731$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021732if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021733 $as_echo_n "(cached) " >&6
21734else
cristy8b350f62009-11-15 23:12:43 +000021735 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 +000021736
cristy3ed852e2009-09-05 21:47:34 +000021737else
cristy8b350f62009-11-15 23:12:43 +000021738 if test "$ac_cv_type_unsigned_long" = yes; then
21739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021741{ as_fn_set_status 77
21742as_fn_error "cannot compute sizeof (unsigned long)
21743See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021744 else
21745 ac_cv_sizeof_unsigned_long=0
21746 fi
21747fi
cristy8b350f62009-11-15 23:12:43 +000021748
cristy3ed852e2009-09-05 21:47:34 +000021749fi
cristy8b350f62009-11-15 23:12:43 +000021750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021751$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21752
21753
21754
21755cat >>confdefs.h <<_ACEOF
21756#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21757_ACEOF
21758
21759
21760
21761# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21762# 'signed long long' is not supported then the value defined is zero.
21763# The cast to long int works around a bug in the HP C Compiler
21764# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21765# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21766# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021768$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021769if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021770 $as_echo_n "(cached) " >&6
21771else
cristy8b350f62009-11-15 23:12:43 +000021772 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 +000021773
cristy3ed852e2009-09-05 21:47:34 +000021774else
cristy8b350f62009-11-15 23:12:43 +000021775 if test "$ac_cv_type_signed_long_long" = yes; then
21776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021778{ as_fn_set_status 77
21779as_fn_error "cannot compute sizeof (signed long long)
21780See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021781 else
21782 ac_cv_sizeof_signed_long_long=0
21783 fi
21784fi
cristy8b350f62009-11-15 23:12:43 +000021785
cristy3ed852e2009-09-05 21:47:34 +000021786fi
cristy8b350f62009-11-15 23:12:43 +000021787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021788$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21789
21790
21791
21792cat >>confdefs.h <<_ACEOF
21793#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21794_ACEOF
21795
21796
21797
21798# Obtain size of a 'unsigned long long' and define as
21799# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21800# supported then the value defined is zero.
21801# The cast to long int works around a bug in the HP C Compiler
21802# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21803# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21804# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021806$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021807if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021808 $as_echo_n "(cached) " >&6
21809else
cristy8b350f62009-11-15 23:12:43 +000021810 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 +000021811
cristy3ed852e2009-09-05 21:47:34 +000021812else
cristy8b350f62009-11-15 23:12:43 +000021813 if test "$ac_cv_type_unsigned_long_long" = yes; then
21814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021816{ as_fn_set_status 77
21817as_fn_error "cannot compute sizeof (unsigned long long)
21818See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021819 else
21820 ac_cv_sizeof_unsigned_long_long=0
21821 fi
21822fi
cristy8b350f62009-11-15 23:12:43 +000021823
cristy3ed852e2009-09-05 21:47:34 +000021824fi
cristy8b350f62009-11-15 23:12:43 +000021825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021826$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21827
21828
21829
21830cat >>confdefs.h <<_ACEOF
21831#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21832_ACEOF
21833
21834
21835
21836# Obtain size of off_t and define as SIZEOF_OFF_T
21837# The cast to long int works around a bug in the HP C Compiler
21838# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21839# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21840# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021842$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021843if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021844 $as_echo_n "(cached) " >&6
21845else
cristy8b350f62009-11-15 23:12:43 +000021846 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 +000021847
cristy3ed852e2009-09-05 21:47:34 +000021848else
cristy8b350f62009-11-15 23:12:43 +000021849 if test "$ac_cv_type_off_t" = yes; then
21850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021852{ as_fn_set_status 77
21853as_fn_error "cannot compute sizeof (off_t)
21854See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021855 else
21856 ac_cv_sizeof_off_t=0
21857 fi
21858fi
cristy8b350f62009-11-15 23:12:43 +000021859
cristy3ed852e2009-09-05 21:47:34 +000021860fi
cristy8b350f62009-11-15 23:12:43 +000021861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021862$as_echo "$ac_cv_sizeof_off_t" >&6; }
21863
21864
21865
21866cat >>confdefs.h <<_ACEOF
21867#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21868_ACEOF
21869
21870
21871
21872# Obtain size of size_t and define as SIZEOF_SIZE_T
21873# The cast to long int works around a bug in the HP C Compiler
21874# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21875# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21876# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021878$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021879if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021880 $as_echo_n "(cached) " >&6
21881else
cristy8b350f62009-11-15 23:12:43 +000021882 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 +000021883
cristy3ed852e2009-09-05 21:47:34 +000021884else
cristy8b350f62009-11-15 23:12:43 +000021885 if test "$ac_cv_type_size_t" = yes; then
21886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021888{ as_fn_set_status 77
21889as_fn_error "cannot compute sizeof (size_t)
21890See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021891 else
21892 ac_cv_sizeof_size_t=0
21893 fi
21894fi
cristy8b350f62009-11-15 23:12:43 +000021895
cristy3ed852e2009-09-05 21:47:34 +000021896fi
cristy8b350f62009-11-15 23:12:43 +000021897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021898$as_echo "$ac_cv_sizeof_size_t" >&6; }
21899
21900
21901
21902cat >>confdefs.h <<_ACEOF
21903#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21904_ACEOF
21905
21906
21907
cristy330e9352010-06-01 18:42:49 +000021908# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21909# The cast to long int works around a bug in the HP C Compiler
21910# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21911# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21912# This bug is HP SR number 8606223364.
21913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21914$as_echo_n "checking size of ssize_t... " >&6; }
21915if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21916 $as_echo_n "(cached) " >&6
21917else
21918 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21919
21920else
21921 if test "$ac_cv_type_ssize_t" = yes; then
21922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21924{ as_fn_set_status 77
21925as_fn_error "cannot compute sizeof (ssize_t)
21926See \`config.log' for more details." "$LINENO" 5; }; }
21927 else
21928 ac_cv_sizeof_ssize_t=0
21929 fi
21930fi
21931
21932fi
21933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21934$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21935
21936
21937
21938cat >>confdefs.h <<_ACEOF
21939#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21940_ACEOF
21941
21942
21943
cristy3ed852e2009-09-05 21:47:34 +000021944# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21945# The cast to long int works around a bug in the HP C Compiler
21946# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21947# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21948# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021950$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021951if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021952 $as_echo_n "(cached) " >&6
21953else
cristy8b350f62009-11-15 23:12:43 +000021954 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 +000021955
cristy3ed852e2009-09-05 21:47:34 +000021956else
cristy8b350f62009-11-15 23:12:43 +000021957 if test "$ac_cv_type_unsigned_intp" = yes; then
21958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021960{ as_fn_set_status 77
21961as_fn_error "cannot compute sizeof (unsigned int*)
21962See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021963 else
21964 ac_cv_sizeof_unsigned_intp=0
21965 fi
21966fi
cristy8b350f62009-11-15 23:12:43 +000021967
cristy3ed852e2009-09-05 21:47:34 +000021968fi
cristy8b350f62009-11-15 23:12:43 +000021969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021970$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21971
21972
21973
21974cat >>confdefs.h <<_ACEOF
21975#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21976_ACEOF
21977
21978
21979
21980#
21981# Compute sized types for current CPU and compiler options.
21982#
21983
cristy8b350f62009-11-15 23:12:43 +000021984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021985$as_echo_n "checking for signed 8-bit type... " >&6; }
21986INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021988$as_echo "$INT8_T" >&6; }
21989
21990
cristy8b350f62009-11-15 23:12:43 +000021991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021992$as_echo_n "checking for unsigned 8-bit type... " >&6; }
21993UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000021994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021995$as_echo "$UINT8_T" >&6; }
21996
21997
cristy8b350f62009-11-15 23:12:43 +000021998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021999$as_echo_n "checking for signed 16-bit type... " >&6; }
22000INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022002$as_echo "$INT16_T" >&6; }
22003
22004
cristy8b350f62009-11-15 23:12:43 +000022005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022006$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22007UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022009$as_echo "$UINT16_T" >&6; }
22010
22011
cristy8b350f62009-11-15 23:12:43 +000022012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022013$as_echo_n "checking for signed 32-bit type... " >&6; }
22014INT32_T='none'
22015if test $ac_cv_sizeof_signed_int -eq 4; then
22016 INT32_T='signed int'
22017elif test $ac_cv_sizeof_signed_long -eq 4; then
22018 INT32_T='signed long'
22019fi
cristy8b350f62009-11-15 23:12:43 +000022020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022021$as_echo "$INT32_T" >&6; }
22022
22023
cristy8b350f62009-11-15 23:12:43 +000022024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022025$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22026UINT32_T='none'
22027if test $ac_cv_sizeof_unsigned_int -eq 4; then
22028 UINT32_T='unsigned int'
22029elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22030 UINT32_T='unsigned long'
22031fi
cristy8b350f62009-11-15 23:12:43 +000022032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022033$as_echo "$UINT32_T" >&6; }
22034
22035
cristy8b350f62009-11-15 23:12:43 +000022036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022037$as_echo_n "checking for signed 64-bit type... " >&6; }
22038INT64_T='none'
22039if test $ac_cv_sizeof_signed_long -eq 8; then
22040 INT64_T='signed long'
22041elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22042 INT64_T='signed long long'
22043fi
cristy8b350f62009-11-15 23:12:43 +000022044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022045$as_echo "$INT64_T" >&6; }
22046
22047
cristy8b350f62009-11-15 23:12:43 +000022048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022049$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22050UINT64_T='none'
22051if test $ac_cv_sizeof_unsigned_long -eq 8; then
22052 UINT64_T='unsigned long'
22053elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22054 UINT64_T='unsigned long long'
22055fi
cristy8b350f62009-11-15 23:12:43 +000022056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022057$as_echo "$UINT64_T" >&6; }
22058
22059
cristy8b350f62009-11-15 23:12:43 +000022060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022061$as_echo_n "checking for unsigned maximum type... " >&6; }
22062UINTMAX_T='none'
22063if test "$UINT64_T" != 'none'; then
22064 UINTMAX_T=$UINT64_T
22065elif test "$UINT32_T" != 'none'; then
22066 UINTMAX_T=$UINT32_T
22067fi
cristy8b350f62009-11-15 23:12:43 +000022068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022069$as_echo "$UINTMAX_T" >&6; }
22070
22071
cristy8b350f62009-11-15 23:12:43 +000022072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022073$as_echo_n "checking for pointer difference type... " >&6; }
22074UINTPTR_T='none'
22075if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22076 UINTPTR_T='unsigned long'
22077elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22078 UINTPTR_T='unsigned long long'
22079fi
cristy8b350f62009-11-15 23:12:43 +000022080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022081$as_echo "$UINTPTR_T" >&6; }
22082
22083
cristy8b350f62009-11-15 23:12:43 +000022084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022085$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022087/* end confdefs.h. */
22088
22089int
22090main ()
22091{
22092{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22093 ;
22094 return 0;
22095}
22096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022097if ac_fn_c_try_compile "$LINENO"; then :
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022099$as_echo "yes" >&6; }
22100else
cristy8b350f62009-11-15 23:12:43 +000022101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022102$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022104$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022106/* end confdefs.h. */
22107
22108int
22109main ()
22110{
22111{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22112 ;
22113 return 0;
22114}
22115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022116if ac_fn_c_try_compile "$LINENO"; then :
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022118$as_echo "yes" >&6; }
22119
cristy8b350f62009-11-15 23:12:43 +000022120$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022121
22122else
cristy8b350f62009-11-15 23:12:43 +000022123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022124$as_echo "no" >&6; }
22125
cristy8b350f62009-11-15 23:12:43 +000022126$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022127
22128fi
cristy3ed852e2009-09-05 21:47:34 +000022129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22130fi
cristy3ed852e2009-09-05 21:47:34 +000022131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22132
22133########
22134#
22135# Check for functions
22136#
22137########
cristy3ed852e2009-09-05 21:47:34 +000022138for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022139do :
22140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22141ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22142eval as_val=\$$as_ac_Header
22143 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022144 cat >>confdefs.h <<_ACEOF
22145#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22146_ACEOF
22147
22148fi
22149
22150done
22151
cristy3ed852e2009-09-05 21:47:34 +000022152for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022153do :
22154 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22155if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022156 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022157#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022158_ACEOF
22159
22160fi
22161done
22162
cristy8b350f62009-11-15 23:12:43 +000022163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022164$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022165if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022166 $as_echo_n "(cached) " >&6
22167else
cristy8b350f62009-11-15 23:12:43 +000022168 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022169 magick_cv_func_mmap_fileio=no
22170else
cristy8b350f62009-11-15 23:12:43 +000022171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022172/* end confdefs.h. */
22173$ac_includes_default
22174/* malloc might have been renamed as rpl_malloc. */
22175#undef malloc
22176
22177/*
22178 This test is derived from GNU Autoconf's similar macro.
22179 The purpose of this test is to verify that files may be memory
22180 mapped, and that memory mapping and file I/O are coherent.
22181
22182 The test creates a test file, memory maps the file, updates
22183 the file using the memory map, and then reads the file using
22184 file I/O to verify that the file contains the updates.
22185*/
22186
22187#include <fcntl.h>
22188#include <sys/mman.h>
22189
22190#if !STDC_HEADERS && !HAVE_STDLIB_H
22191char *malloc ();
22192#endif
22193
22194/* This mess was copied from the GNU getpagesize.h. */
22195#if !HAVE_GETPAGESIZE
22196/* Assume that all systems that can run configure have sys/param.h. */
22197# if !HAVE_SYS_PARAM_H
22198# define HAVE_SYS_PARAM_H 1
22199# endif
22200
22201# ifdef _SC_PAGESIZE
22202# define getpagesize() sysconf(_SC_PAGESIZE)
22203# else /* no _SC_PAGESIZE */
22204# if HAVE_SYS_PARAM_H
22205# include <sys/param.h>
22206# ifdef EXEC_PAGESIZE
22207# define getpagesize() EXEC_PAGESIZE
22208# else /* no EXEC_PAGESIZE */
22209# ifdef NBPG
22210# define getpagesize() NBPG * CLSIZE
22211# ifndef CLSIZE
22212# define CLSIZE 1
22213# endif /* no CLSIZE */
22214# else /* no NBPG */
22215# ifdef NBPC
22216# define getpagesize() NBPC
22217# else /* no NBPC */
22218# ifdef PAGESIZE
22219# define getpagesize() PAGESIZE
22220# endif /* PAGESIZE */
22221# endif /* no NBPC */
22222# endif /* no NBPG */
22223# endif /* no EXEC_PAGESIZE */
22224# else /* no HAVE_SYS_PARAM_H */
22225# define getpagesize() 8192 /* punt totally */
22226# endif /* no HAVE_SYS_PARAM_H */
22227# endif /* no _SC_PAGESIZE */
22228
22229#endif /* no HAVE_GETPAGESIZE */
22230
22231int
22232main ()
22233{
22234 char *data, *data2, *data3;
22235 int i, pagesize;
22236 int fd;
22237
22238 pagesize = getpagesize ();
22239
22240 /* First, make a file with some known garbage in it. */
22241 data = (char *) malloc (pagesize);
22242 if (!data)
22243 exit (1);
22244 for (i = 0; i < pagesize; ++i)
22245 *(data + i) = rand ();
22246 umask (0);
22247 fd = creat ("conftest.mmap", 0600);
22248 if (fd < 0)
22249 exit (1);
22250 if (write (fd, data, pagesize) != pagesize)
22251 exit (1);
22252 close (fd);
22253
22254 /* Mmap the file as read/write/shared and verify that we see the
22255 same garbage. */
22256 fd = open ("conftest.mmap", O_RDWR);
22257 if (fd < 0)
22258 exit (1);
22259 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22260 if (data2 == 0)
22261 exit (1);
22262 for (i = 0; i < pagesize; ++i)
22263 if (*(data + i) != *(data2 + i))
22264 exit (1);
22265
22266 /* Finally, make sure that changes to the mapped area
22267 percolate back to the file as seen by read(). */
22268 for (i = 0; i < pagesize; ++i)
22269 *(data2 + i) = *(data2 + i) + 1;
22270 data3 = (char *) malloc (pagesize);
22271 if (!data3)
22272 exit (1);
22273 if (read (fd, data3, pagesize) != pagesize)
22274 exit (1);
22275 for (i = 0; i < pagesize; ++i)
22276 if (*(data2 + i) != *(data3 + i))
22277 exit (1);
22278 close (fd);
22279 exit (0);
22280}
22281_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022282if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022283 magick_cv_func_mmap_fileio=yes
22284else
cristy8b350f62009-11-15 23:12:43 +000022285 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022286fi
cristy8b350f62009-11-15 23:12:43 +000022287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22288 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022289fi
22290
cristy3ed852e2009-09-05 21:47:34 +000022291fi
cristy8b350f62009-11-15 23:12:43 +000022292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022293$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22294if test $magick_cv_func_mmap_fileio = yes; then
22295
cristy8b350f62009-11-15 23:12:43 +000022296$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022297
22298fi
22299rm -f conftest.mmap
22300
cristy8b350f62009-11-15 23:12:43 +000022301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022302$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022303if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022304 $as_echo_n "(cached) " >&6
22305else
cristy8b350f62009-11-15 23:12:43 +000022306 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022307 ac_cv_func_closedir_void=yes
22308else
cristy8b350f62009-11-15 23:12:43 +000022309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022310/* end confdefs.h. */
22311$ac_includes_default
22312#include <$ac_header_dirent>
22313#ifndef __cplusplus
22314int closedir ();
22315#endif
22316
22317int
22318main ()
22319{
22320return closedir (opendir (".")) != 0;
22321 ;
22322 return 0;
22323}
22324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022325if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022326 ac_cv_func_closedir_void=no
22327else
cristy8b350f62009-11-15 23:12:43 +000022328 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022329fi
cristy8b350f62009-11-15 23:12:43 +000022330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22331 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022332fi
22333
cristy3ed852e2009-09-05 21:47:34 +000022334fi
cristy8b350f62009-11-15 23:12:43 +000022335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022336$as_echo "$ac_cv_func_closedir_void" >&6; }
22337if test $ac_cv_func_closedir_void = yes; then
22338
cristy8b350f62009-11-15 23:12:43 +000022339$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022340
22341fi
22342
cristycd4c5312009-11-22 01:19:08 +000022343
22344
22345
22346 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022347do :
22348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022349ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22350"
cristy8b350f62009-11-15 23:12:43 +000022351eval as_val=\$$as_ac_Header
22352 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022353 cat >>confdefs.h <<_ACEOF
22354#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22355_ACEOF
22356
22357fi
22358
22359done
22360
cristycd4c5312009-11-22 01:19:08 +000022361
22362
22363
22364
22365
22366
22367
cristy3ed852e2009-09-05 21:47:34 +000022368for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022369do :
22370 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22371if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022372 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022373#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022374_ACEOF
22375
22376fi
22377done
22378
cristy8b350f62009-11-15 23:12:43 +000022379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022380$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022381if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022382 $as_echo_n "(cached) " >&6
22383else
cristy8b350f62009-11-15 23:12:43 +000022384 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022385 ac_cv_func_mmap_fixed_mapped=no
22386else
cristy8b350f62009-11-15 23:12:43 +000022387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022388/* end confdefs.h. */
22389$ac_includes_default
22390/* malloc might have been renamed as rpl_malloc. */
22391#undef malloc
22392
22393/* Thanks to Mike Haertel and Jim Avera for this test.
22394 Here is a matrix of mmap possibilities:
22395 mmap private not fixed
22396 mmap private fixed at somewhere currently unmapped
22397 mmap private fixed at somewhere already mapped
22398 mmap shared not fixed
22399 mmap shared fixed at somewhere currently unmapped
22400 mmap shared fixed at somewhere already mapped
22401 For private mappings, we should verify that changes cannot be read()
22402 back from the file, nor mmap's back from the file at a different
22403 address. (There have been systems where private was not correctly
22404 implemented like the infamous i386 svr4.0, and systems where the
22405 VM page cache was not coherent with the file system buffer cache
22406 like early versions of FreeBSD and possibly contemporary NetBSD.)
22407 For shared mappings, we should conversely verify that changes get
22408 propagated back to all the places they're supposed to be.
22409
22410 Grep wants private fixed already mapped.
22411 The main things grep needs to know about mmap are:
22412 * does it exist and is it safe to write into the mmap'd area
22413 * how to use it (BSD variants) */
22414
22415#include <fcntl.h>
22416#include <sys/mman.h>
22417
22418#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22419char *malloc ();
22420#endif
22421
22422/* This mess was copied from the GNU getpagesize.h. */
22423#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022424# ifdef _SC_PAGESIZE
22425# define getpagesize() sysconf(_SC_PAGESIZE)
22426# else /* no _SC_PAGESIZE */
22427# ifdef HAVE_SYS_PARAM_H
22428# include <sys/param.h>
22429# ifdef EXEC_PAGESIZE
22430# define getpagesize() EXEC_PAGESIZE
22431# else /* no EXEC_PAGESIZE */
22432# ifdef NBPG
22433# define getpagesize() NBPG * CLSIZE
22434# ifndef CLSIZE
22435# define CLSIZE 1
22436# endif /* no CLSIZE */
22437# else /* no NBPG */
22438# ifdef NBPC
22439# define getpagesize() NBPC
22440# else /* no NBPC */
22441# ifdef PAGESIZE
22442# define getpagesize() PAGESIZE
22443# endif /* PAGESIZE */
22444# endif /* no NBPC */
22445# endif /* no NBPG */
22446# endif /* no EXEC_PAGESIZE */
22447# else /* no HAVE_SYS_PARAM_H */
22448# define getpagesize() 8192 /* punt totally */
22449# endif /* no HAVE_SYS_PARAM_H */
22450# endif /* no _SC_PAGESIZE */
22451
22452#endif /* no HAVE_GETPAGESIZE */
22453
22454int
22455main ()
22456{
22457 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022458 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022459 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022460 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022461
22462 pagesize = getpagesize ();
22463
22464 /* First, make a file with some known garbage in it. */
22465 data = (char *) malloc (pagesize);
22466 if (!data)
22467 return 1;
22468 for (i = 0; i < pagesize; ++i)
22469 *(data + i) = rand ();
22470 umask (0);
22471 fd = creat ("conftest.mmap", 0600);
22472 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022473 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022474 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022475 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022476 close (fd);
22477
cristycd4c5312009-11-22 01:19:08 +000022478 /* Next, check that the tail of a page is zero-filled. File must have
22479 non-zero length, otherwise we risk SIGBUS for entire page. */
22480 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22481 if (fd2 < 0)
22482 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022483 cdata2 = "";
22484 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022485 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022486 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022487 if (data2 == MAP_FAILED)
22488 return 6;
22489 for (i = 0; i < pagesize; ++i)
22490 if (*(data2 + i))
22491 return 7;
22492 close (fd2);
22493 if (munmap (data2, pagesize))
22494 return 8;
22495
cristy3ed852e2009-09-05 21:47:34 +000022496 /* Next, try to mmap the file at a fixed address which already has
22497 something else allocated at it. If we can, also make sure that
22498 we see the same garbage. */
22499 fd = open ("conftest.mmap", O_RDWR);
22500 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022501 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022502 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22503 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022504 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022505 for (i = 0; i < pagesize; ++i)
22506 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022507 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022508
22509 /* Finally, make sure that changes to the mapped area do not
22510 percolate back to the file as seen by read(). (This is a bug on
22511 some variants of i386 svr4.0.) */
22512 for (i = 0; i < pagesize; ++i)
22513 *(data2 + i) = *(data2 + i) + 1;
22514 data3 = (char *) malloc (pagesize);
22515 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022516 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022517 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022518 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022519 for (i = 0; i < pagesize; ++i)
22520 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022521 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022522 close (fd);
22523 return 0;
22524}
22525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022526if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022527 ac_cv_func_mmap_fixed_mapped=yes
22528else
cristy8b350f62009-11-15 23:12:43 +000022529 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022530fi
cristy8b350f62009-11-15 23:12:43 +000022531rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22532 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022533fi
22534
cristy3ed852e2009-09-05 21:47:34 +000022535fi
cristy8b350f62009-11-15 23:12:43 +000022536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022537$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22538if test $ac_cv_func_mmap_fixed_mapped = yes; then
22539
cristy8b350f62009-11-15 23:12:43 +000022540$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022541
22542fi
cristycd4c5312009-11-22 01:19:08 +000022543rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022544
cristy3ed852e2009-09-05 21:47:34 +000022545for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022546do :
22547 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22548if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022549 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022550#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022551_ACEOF
22552
22553fi
22554
22555done
22556
cristy3ed852e2009-09-05 21:47:34 +000022557for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022558do :
22559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22560ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22561eval as_val=\$$as_ac_var
22562 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022563 cat >>confdefs.h <<_ACEOF
22564#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22565_ACEOF
22566
22567fi
22568done
22569
22570if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022572$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022573if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022574 $as_echo_n "(cached) " >&6
22575else
cristy8b350f62009-11-15 23:12:43 +000022576 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022577 ac_cv_func_fork_works=cross
22578else
cristy8b350f62009-11-15 23:12:43 +000022579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022580/* end confdefs.h. */
22581$ac_includes_default
22582int
22583main ()
22584{
22585
22586 /* By Ruediger Kuhlmann. */
22587 return fork () < 0;
22588
22589 ;
22590 return 0;
22591}
22592_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022593if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022594 ac_cv_func_fork_works=yes
22595else
cristy8b350f62009-11-15 23:12:43 +000022596 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022597fi
cristy8b350f62009-11-15 23:12:43 +000022598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22599 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022600fi
22601
cristy3ed852e2009-09-05 21:47:34 +000022602fi
cristy8b350f62009-11-15 23:12:43 +000022603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022604$as_echo "$ac_cv_func_fork_works" >&6; }
22605
22606else
22607 ac_cv_func_fork_works=$ac_cv_func_fork
22608fi
22609if test "x$ac_cv_func_fork_works" = xcross; then
22610 case $host in
22611 *-*-amigaos* | *-*-msdosdjgpp*)
22612 # Override, as these systems have only a dummy fork() stub
22613 ac_cv_func_fork_works=no
22614 ;;
22615 *)
22616 ac_cv_func_fork_works=yes
22617 ;;
22618 esac
cristy8b350f62009-11-15 23:12:43 +000022619 { $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 +000022620$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22621fi
22622ac_cv_func_vfork_works=$ac_cv_func_vfork
22623if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022625$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022626if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022627 $as_echo_n "(cached) " >&6
22628else
cristy8b350f62009-11-15 23:12:43 +000022629 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022630 ac_cv_func_vfork_works=cross
22631else
cristy8b350f62009-11-15 23:12:43 +000022632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022633/* end confdefs.h. */
22634/* Thanks to Paul Eggert for this test. */
22635$ac_includes_default
22636#include <sys/wait.h>
22637#ifdef HAVE_VFORK_H
22638# include <vfork.h>
22639#endif
22640/* On some sparc systems, changes by the child to local and incoming
22641 argument registers are propagated back to the parent. The compiler
22642 is told about this with #include <vfork.h>, but some compilers
22643 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22644 static variable whose address is put into a register that is
22645 clobbered by the vfork. */
22646static void
22647#ifdef __cplusplus
22648sparc_address_test (int arg)
22649# else
22650sparc_address_test (arg) int arg;
22651#endif
22652{
22653 static pid_t child;
22654 if (!child) {
22655 child = vfork ();
22656 if (child < 0) {
22657 perror ("vfork");
22658 _exit(2);
22659 }
22660 if (!child) {
22661 arg = getpid();
22662 write(-1, "", 0);
22663 _exit (arg);
22664 }
22665 }
22666}
22667
22668int
22669main ()
22670{
22671 pid_t parent = getpid ();
22672 pid_t child;
22673
22674 sparc_address_test (0);
22675
22676 child = vfork ();
22677
22678 if (child == 0) {
22679 /* Here is another test for sparc vfork register problems. This
22680 test uses lots of local variables, at least as many local
22681 variables as main has allocated so far including compiler
22682 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22683 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22684 reuse the register of parent for one of the local variables,
22685 since it will think that parent can't possibly be used any more
22686 in this routine. Assigning to the local variable will thus
22687 munge parent in the parent process. */
22688 pid_t
22689 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22690 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22691 /* Convince the compiler that p..p7 are live; otherwise, it might
22692 use the same hardware register for all 8 local variables. */
22693 if (p != p1 || p != p2 || p != p3 || p != p4
22694 || p != p5 || p != p6 || p != p7)
22695 _exit(1);
22696
22697 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22698 from child file descriptors. If the child closes a descriptor
22699 before it execs or exits, this munges the parent's descriptor
22700 as well. Test for this by closing stdout in the child. */
22701 _exit(close(fileno(stdout)) != 0);
22702 } else {
22703 int status;
22704 struct stat st;
22705
22706 while (wait(&status) != child)
22707 ;
22708 return (
22709 /* Was there some problem with vforking? */
22710 child < 0
22711
22712 /* Did the child fail? (This shouldn't happen.) */
22713 || status
22714
22715 /* Did the vfork/compiler bug occur? */
22716 || parent != getpid()
22717
22718 /* Did the file descriptor bug occur? */
22719 || fstat(fileno(stdout), &st) != 0
22720 );
22721 }
22722}
22723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022724if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022725 ac_cv_func_vfork_works=yes
22726else
cristy8b350f62009-11-15 23:12:43 +000022727 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022728fi
cristy8b350f62009-11-15 23:12:43 +000022729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22730 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022731fi
22732
cristy3ed852e2009-09-05 21:47:34 +000022733fi
cristy8b350f62009-11-15 23:12:43 +000022734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022735$as_echo "$ac_cv_func_vfork_works" >&6; }
22736
22737fi;
22738if test "x$ac_cv_func_fork_works" = xcross; then
22739 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022740 { $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 +000022741$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22742fi
22743
22744if test "x$ac_cv_func_vfork_works" = xyes; then
22745
cristy8b350f62009-11-15 23:12:43 +000022746$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022747
22748else
22749
cristy8b350f62009-11-15 23:12:43 +000022750$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022751
22752fi
22753if test "x$ac_cv_func_fork_works" = xyes; then
22754
cristy8b350f62009-11-15 23:12:43 +000022755$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022756
22757fi
22758
cristy8b350f62009-11-15 23:12:43 +000022759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022760$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022761if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022762 $as_echo_n "(cached) " >&6
22763else
cristy8b350f62009-11-15 23:12:43 +000022764 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022765 ac_cv_func_memcmp_working=no
22766else
cristy8b350f62009-11-15 23:12:43 +000022767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022768/* end confdefs.h. */
22769$ac_includes_default
22770int
22771main ()
22772{
22773
22774 /* Some versions of memcmp are not 8-bit clean. */
22775 char c0 = '\100', c1 = '\200', c2 = '\201';
22776 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22777 return 1;
22778
22779 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22780 or more and with at least one buffer not starting on a 4-byte boundary.
22781 William Lewis provided this test program. */
22782 {
22783 char foo[21];
22784 char bar[21];
22785 int i;
22786 for (i = 0; i < 4; i++)
22787 {
22788 char *a = foo + i;
22789 char *b = bar + i;
22790 strcpy (a, "--------01111111");
22791 strcpy (b, "--------10000000");
22792 if (memcmp (a, b, 16) >= 0)
22793 return 1;
22794 }
22795 return 0;
22796 }
22797
22798 ;
22799 return 0;
22800}
22801_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022802if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022803 ac_cv_func_memcmp_working=yes
22804else
cristy8b350f62009-11-15 23:12:43 +000022805 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022806fi
cristy8b350f62009-11-15 23:12:43 +000022807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22808 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022809fi
22810
cristy3ed852e2009-09-05 21:47:34 +000022811fi
cristy8b350f62009-11-15 23:12:43 +000022812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022813$as_echo "$ac_cv_func_memcmp_working" >&6; }
22814test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22815 *" memcmp.$ac_objext "* ) ;;
22816 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22817 ;;
22818esac
22819
22820
cristy3ed852e2009-09-05 21:47:34 +000022821for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022822do :
22823 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22824ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22825eval as_val=\$$as_ac_Header
22826 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022827 cat >>confdefs.h <<_ACEOF
22828#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22829_ACEOF
22830
22831fi
22832
22833done
22834
cristy8b350f62009-11-15 23:12:43 +000022835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022836$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022837if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022838 $as_echo_n "(cached) " >&6
22839else
22840 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22841 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22842 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022844/* end confdefs.h. */
22845$ac_includes_default
22846#ifdef HAVE_SYS_SELECT_H
22847# include <sys/select.h>
22848#endif
22849#ifdef HAVE_SYS_SOCKET_H
22850# include <sys/socket.h>
22851#endif
22852
22853int
22854main ()
22855{
22856extern int select ($ac_arg1,
22857 $ac_arg234, $ac_arg234, $ac_arg234,
22858 $ac_arg5);
22859 ;
22860 return 0;
22861}
22862_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022863if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022864 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022865fi
cristy3ed852e2009-09-05 21:47:34 +000022866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867 done
22868 done
22869done
22870# Provide a safe default value.
22871: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22872
22873fi
cristy8b350f62009-11-15 23:12:43 +000022874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022875$as_echo "$ac_cv_func_select_args" >&6; }
22876ac_save_IFS=$IFS; IFS=','
22877set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22878IFS=$ac_save_IFS
22879shift
22880
22881cat >>confdefs.h <<_ACEOF
22882#define SELECT_TYPE_ARG1 $1
22883_ACEOF
22884
22885
22886cat >>confdefs.h <<_ACEOF
22887#define SELECT_TYPE_ARG234 ($2)
22888_ACEOF
22889
22890
22891cat >>confdefs.h <<_ACEOF
22892#define SELECT_TYPE_ARG5 ($3)
22893_ACEOF
22894
22895rm -f conftest*
22896
cristy8b350f62009-11-15 23:12:43 +000022897if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022898 $as_echo_n "(cached) " >&6
22899else
22900 ac_cv_func_setvbuf_reversed=no
22901fi
22902
22903
cristy8b350f62009-11-15 23:12:43 +000022904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022905$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022906if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022907 $as_echo_n "(cached) " >&6
22908else
cristy8b350f62009-11-15 23:12:43 +000022909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022910/* end confdefs.h. */
22911#include <sys/types.h>
22912#include <signal.h>
22913
22914int
22915main ()
22916{
22917return *(signal (0, 0)) (0) == 1;
22918 ;
22919 return 0;
22920}
22921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022922if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022923 ac_cv_type_signal=int
22924else
cristy8b350f62009-11-15 23:12:43 +000022925 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022926fi
cristy3ed852e2009-09-05 21:47:34 +000022927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22928fi
cristy8b350f62009-11-15 23:12:43 +000022929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022930$as_echo "$ac_cv_type_signal" >&6; }
22931
22932cat >>confdefs.h <<_ACEOF
22933#define RETSIGTYPE $ac_cv_type_signal
22934_ACEOF
22935
22936
cristy8b350f62009-11-15 23:12:43 +000022937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022938$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022939if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022940 $as_echo_n "(cached) " >&6
22941else
cristy8b350f62009-11-15 23:12:43 +000022942 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022943 ac_cv_func_strtod=no
22944else
cristy8b350f62009-11-15 23:12:43 +000022945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022946/* end confdefs.h. */
22947
22948$ac_includes_default
22949#ifndef strtod
22950double strtod ();
22951#endif
22952int
22953main()
22954{
22955 {
22956 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22957 char *string = " +69";
22958 char *term;
22959 double value;
22960 value = strtod (string, &term);
22961 if (value != 69 || term != (string + 4))
22962 return 1;
22963 }
22964
22965 {
22966 /* Under Solaris 2.4, strtod returns the wrong value for the
22967 terminating character under some conditions. */
22968 char *string = "NaN";
22969 char *term;
22970 strtod (string, &term);
22971 if (term != string && *(term - 1) == 0)
22972 return 1;
22973 }
22974 return 0;
22975}
22976
22977_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022978if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022979 ac_cv_func_strtod=yes
22980else
cristy8b350f62009-11-15 23:12:43 +000022981 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022982fi
cristy8b350f62009-11-15 23:12:43 +000022983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22984 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022985fi
22986
cristy3ed852e2009-09-05 21:47:34 +000022987fi
cristy8b350f62009-11-15 23:12:43 +000022988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022989$as_echo "$ac_cv_func_strtod" >&6; }
22990if test $ac_cv_func_strtod = no; then
22991 case " $LIBOBJS " in
22992 *" strtod.$ac_objext "* ) ;;
22993 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22994 ;;
22995esac
22996
cristy8b350f62009-11-15 23:12:43 +000022997ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22998if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022999
cristy3ed852e2009-09-05 21:47:34 +000023000fi
23001
cristy3ed852e2009-09-05 21:47:34 +000023002if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023004$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023005if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023006 $as_echo_n "(cached) " >&6
23007else
23008 ac_check_lib_save_LIBS=$LIBS
23009LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023011/* end confdefs.h. */
23012
23013/* Override any GCC internal prototype to avoid an error.
23014 Use char because int might match the return type of a GCC
23015 builtin and then its argument prototype would still apply. */
23016#ifdef __cplusplus
23017extern "C"
23018#endif
23019char pow ();
23020int
23021main ()
23022{
23023return pow ();
23024 ;
23025 return 0;
23026}
23027_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023028if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023029 ac_cv_lib_m_pow=yes
23030else
cristy8b350f62009-11-15 23:12:43 +000023031 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023032fi
cristy8b350f62009-11-15 23:12:43 +000023033rm -f core conftest.err conftest.$ac_objext \
23034 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023035LIBS=$ac_check_lib_save_LIBS
23036fi
cristy8b350f62009-11-15 23:12:43 +000023037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023038$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023039if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023040 POW_LIB=-lm
23041else
cristy8b350f62009-11-15 23:12:43 +000023042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023043$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23044fi
23045
23046fi
23047
23048fi
23049
cristy3ed852e2009-09-05 21:47:34 +000023050for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023051do :
23052 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23053if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023054 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023055#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023056_ACEOF
23057
cristy8b350f62009-11-15 23:12:43 +000023058ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23059if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023060
cristy8b350f62009-11-15 23:12:43 +000023061$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023062
23063fi
23064
23065fi
23066done
23067
23068
23069
cristy161b9262010-03-20 19:34:32 +000023070#
23071# Find math library
23072#
23073MATH_LIBS=''
23074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23075$as_echo_n "checking for sqrt in -lm... " >&6; }
23076if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23077 $as_echo_n "(cached) " >&6
23078else
23079 ac_check_lib_save_LIBS=$LIBS
23080LIBS="-lm $LIBS"
23081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23082/* end confdefs.h. */
23083
23084/* Override any GCC internal prototype to avoid an error.
23085 Use char because int might match the return type of a GCC
23086 builtin and then its argument prototype would still apply. */
23087#ifdef __cplusplus
23088extern "C"
23089#endif
23090char sqrt ();
23091int
23092main ()
23093{
23094return sqrt ();
23095 ;
23096 return 0;
23097}
23098_ACEOF
23099if ac_fn_c_try_link "$LINENO"; then :
23100 ac_cv_lib_m_sqrt=yes
23101else
23102 ac_cv_lib_m_sqrt=no
23103fi
23104rm -f core conftest.err conftest.$ac_objext \
23105 conftest$ac_exeext conftest.$ac_ext
23106LIBS=$ac_check_lib_save_LIBS
23107fi
23108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23109$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23110if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23111 MATH_LIBS="-lm"
23112fi
23113
23114LIBS="$MATH_LIBS $LIBS"
23115
23116
cristy56ed31c2010-03-22 00:46:21 +000023117for ac_func in _exit atexit cimag clock directio execvp fchmod floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 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 strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023118do :
23119 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23120ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23121eval as_val=\$$as_ac_var
23122 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023123 cat >>confdefs.h <<_ACEOF
23124#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23125_ACEOF
23126
23127fi
23128done
23129
23130
cristye43a45e2009-09-28 14:49:00 +000023131#
23132# Check for clock_gettime().
23133#
cristy8b350f62009-11-15 23:12:43 +000023134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023135$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023136if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023137 $as_echo_n "(cached) " >&6
23138else
23139 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023141/* end confdefs.h. */
23142
23143/* Override any GCC internal prototype to avoid an error.
23144 Use char because int might match the return type of a GCC
23145 builtin and then its argument prototype would still apply. */
23146#ifdef __cplusplus
23147extern "C"
23148#endif
23149char clock_gettime ();
23150int
23151main ()
23152{
23153return clock_gettime ();
23154 ;
23155 return 0;
23156}
23157_ACEOF
23158for ac_lib in '' rt; do
23159 if test -z "$ac_lib"; then
23160 ac_res="none required"
23161 else
23162 ac_res=-l$ac_lib
23163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23164 fi
cristy8b350f62009-11-15 23:12:43 +000023165 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023166 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023167fi
cristy8b350f62009-11-15 23:12:43 +000023168rm -f core conftest.err conftest.$ac_objext \
23169 conftest$ac_exeext
23170 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023171 break
23172fi
23173done
cristy8b350f62009-11-15 23:12:43 +000023174if test "${ac_cv_search_clock_gettime+set}" = set; then :
23175
cristye43a45e2009-09-28 14:49:00 +000023176else
23177 ac_cv_search_clock_gettime=no
23178fi
23179rm conftest.$ac_ext
23180LIBS=$ac_func_search_save_LIBS
23181fi
cristy8b350f62009-11-15 23:12:43 +000023182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023183$as_echo "$ac_cv_search_clock_gettime" >&6; }
23184ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023185if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023186 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23187
23188
cristy8b350f62009-11-15 23:12:43 +000023189$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023190
cristy8b350f62009-11-15 23:12:43 +000023191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023192$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023194/* end confdefs.h. */
23195#include <time.h>
23196int
23197main ()
23198{
23199clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023200 ;
23201 return 0;
23202}
23203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023204if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023205
cristy8b350f62009-11-15 23:12:43 +000023206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023207$as_echo "yes" >&6; }
23208
cristy8b350f62009-11-15 23:12:43 +000023209$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023210
23211
23212else
cristy8b350f62009-11-15 23:12:43 +000023213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023214$as_echo "no" >&6; }
23215
23216fi
cristye43a45e2009-09-28 14:49:00 +000023217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23218
23219else
23220
cristy8b350f62009-11-15 23:12:43 +000023221 for ac_func in gettimeofday ftime
23222do :
23223 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23224ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23225eval as_val=\$$as_ac_var
23226 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000023227 cat >>confdefs.h <<_ACEOF
23228#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23229_ACEOF
23230 break
23231fi
23232done
23233
23234
23235
23236fi
23237
23238
cristy3ed852e2009-09-05 21:47:34 +000023239########
23240#
23241# Check for function prototypes
23242#
23243########
23244
cristy8b350f62009-11-15 23:12:43 +000023245ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023246#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023247"
23248if test "x$ac_cv_have_decl_pread" = x""yes; then :
23249 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023250else
cristy8b350f62009-11-15 23:12:43 +000023251 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023252fi
23253
cristy3ed852e2009-09-05 21:47:34 +000023254cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023255#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023257ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023258#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023259"
23260if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23261 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023262else
cristy8b350f62009-11-15 23:12:43 +000023263 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023264fi
23265
cristy3ed852e2009-09-05 21:47:34 +000023266cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023267#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023268_ACEOF
23269
23270
cristy8b350f62009-11-15 23:12:43 +000023271ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023272#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023273"
23274if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23275 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023276else
cristy8b350f62009-11-15 23:12:43 +000023277 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023278fi
23279
cristy3ed852e2009-09-05 21:47:34 +000023280cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023281#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023282_ACEOF
23283
23284
cristy8b350f62009-11-15 23:12:43 +000023285ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023286#include <stdio.h>
23287#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023288"
23289if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23290 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023291else
cristy8b350f62009-11-15 23:12:43 +000023292 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023293fi
23294
cristy3ed852e2009-09-05 21:47:34 +000023295cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023296#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023297_ACEOF
23298
23299
cristy3ed852e2009-09-05 21:47:34 +000023300########
23301#
23302# C++ Support Tests (For Magick++)
23303#
23304########
23305have_magick_plus_plus='no'
23306if test "$with_magick_plus_plus" = 'yes'; then
23307 OLIBS="$LIBS"
23308 LIBS=''
23309 ac_ext=cpp
23310ac_cpp='$CXXCPP $CPPFLAGS'
23311ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23312ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23313ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23314
23315
23316 # Full set of headers used...
23317 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23318 # functional iomanip iosfwd iostream iterator list string strstream utility
23319 ac_ext=cpp
23320ac_cpp='$CXXCPP $CPPFLAGS'
23321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23324
23325 ac_ext=cpp
23326ac_cpp='$CXXCPP $CPPFLAGS'
23327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23330if test -z "$CXX"; then
23331 if test -n "$CCC"; then
23332 CXX=$CCC
23333 else
23334 if test -n "$ac_tool_prefix"; then
23335 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23336 do
23337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23338set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023340$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023341if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023342 $as_echo_n "(cached) " >&6
23343else
23344 if test -n "$CXX"; then
23345 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23346else
23347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23348for as_dir in $PATH
23349do
23350 IFS=$as_save_IFS
23351 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023352 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23354 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023356 break 2
23357 fi
23358done
cristy8b350f62009-11-15 23:12:43 +000023359 done
cristy3ed852e2009-09-05 21:47:34 +000023360IFS=$as_save_IFS
23361
23362fi
23363fi
23364CXX=$ac_cv_prog_CXX
23365if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023367$as_echo "$CXX" >&6; }
23368else
cristy8b350f62009-11-15 23:12:43 +000023369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023370$as_echo "no" >&6; }
23371fi
23372
23373
23374 test -n "$CXX" && break
23375 done
23376fi
23377if test -z "$CXX"; then
23378 ac_ct_CXX=$CXX
23379 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23380do
23381 # Extract the first word of "$ac_prog", so it can be a program name with args.
23382set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023384$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023385if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023386 $as_echo_n "(cached) " >&6
23387else
23388 if test -n "$ac_ct_CXX"; then
23389 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23390else
23391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23392for as_dir in $PATH
23393do
23394 IFS=$as_save_IFS
23395 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023396 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23398 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023400 break 2
23401 fi
23402done
cristy8b350f62009-11-15 23:12:43 +000023403 done
cristy3ed852e2009-09-05 21:47:34 +000023404IFS=$as_save_IFS
23405
23406fi
23407fi
23408ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23409if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023411$as_echo "$ac_ct_CXX" >&6; }
23412else
cristy8b350f62009-11-15 23:12:43 +000023413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023414$as_echo "no" >&6; }
23415fi
23416
23417
23418 test -n "$ac_ct_CXX" && break
23419done
23420
23421 if test "x$ac_ct_CXX" = x; then
23422 CXX="g++"
23423 else
23424 case $cross_compiling:$ac_tool_warned in
23425yes:)
cristy8b350f62009-11-15 23:12:43 +000023426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23428ac_tool_warned=yes ;;
23429esac
23430 CXX=$ac_ct_CXX
23431 fi
23432fi
23433
23434 fi
23435fi
23436# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023437$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023438set X $ac_compile
23439ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023440for ac_option in --version -v -V -qversion; do
23441 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023442case "(($ac_try" in
23443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444 *) ac_try_echo=$ac_try;;
23445esac
cristy8b350f62009-11-15 23:12:43 +000023446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23447$as_echo "$ac_try_echo"; } >&5
23448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023449 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023450 if test -s conftest.err; then
23451 sed '10a\
23452... rest of stderr output deleted ...
23453 10q' conftest.err >conftest.er1
23454 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023455 fi
cristycd4c5312009-11-22 01:19:08 +000023456 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23458 test $ac_status = 0; }
23459done
cristy3ed852e2009-09-05 21:47:34 +000023460
cristy8b350f62009-11-15 23:12:43 +000023461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023462$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023463if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023464 $as_echo_n "(cached) " >&6
23465else
cristy8b350f62009-11-15 23:12:43 +000023466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023467/* end confdefs.h. */
23468
23469int
23470main ()
23471{
23472#ifndef __GNUC__
23473 choke me
23474#endif
23475
23476 ;
23477 return 0;
23478}
23479_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023480if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023481 ac_compiler_gnu=yes
23482else
cristy8b350f62009-11-15 23:12:43 +000023483 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023484fi
cristy3ed852e2009-09-05 21:47:34 +000023485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23486ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23487
23488fi
cristy8b350f62009-11-15 23:12:43 +000023489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023490$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23491if test $ac_compiler_gnu = yes; then
23492 GXX=yes
23493else
23494 GXX=
23495fi
23496ac_test_CXXFLAGS=${CXXFLAGS+set}
23497ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023499$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023500if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023501 $as_echo_n "(cached) " >&6
23502else
23503 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23504 ac_cxx_werror_flag=yes
23505 ac_cv_prog_cxx_g=no
23506 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023508/* end confdefs.h. */
23509
23510int
23511main ()
23512{
23513
23514 ;
23515 return 0;
23516}
23517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023518if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023519 ac_cv_prog_cxx_g=yes
23520else
cristy8b350f62009-11-15 23:12:43 +000023521 CXXFLAGS=""
23522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023523/* end confdefs.h. */
23524
23525int
23526main ()
23527{
23528
23529 ;
23530 return 0;
23531}
23532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023533if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023534
cristy8b350f62009-11-15 23:12:43 +000023535else
23536 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023537 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023539/* end confdefs.h. */
23540
23541int
23542main ()
23543{
23544
23545 ;
23546 return 0;
23547}
23548_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023549if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023550 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023551fi
cristy3ed852e2009-09-05 21:47:34 +000023552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23553fi
cristy3ed852e2009-09-05 21:47:34 +000023554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23555fi
cristy3ed852e2009-09-05 21:47:34 +000023556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23558fi
cristy8b350f62009-11-15 23:12:43 +000023559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023560$as_echo "$ac_cv_prog_cxx_g" >&6; }
23561if test "$ac_test_CXXFLAGS" = set; then
23562 CXXFLAGS=$ac_save_CXXFLAGS
23563elif test $ac_cv_prog_cxx_g = yes; then
23564 if test "$GXX" = yes; then
23565 CXXFLAGS="-g -O2"
23566 else
23567 CXXFLAGS="-g"
23568 fi
23569else
23570 if test "$GXX" = yes; then
23571 CXXFLAGS="-O2"
23572 else
23573 CXXFLAGS=
23574 fi
23575fi
23576ac_ext=cpp
23577ac_cpp='$CXXCPP $CPPFLAGS'
23578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23581
23582depcc="$CXX" am_compiler_list=
23583
cristy8b350f62009-11-15 23:12:43 +000023584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023585$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023586if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023587 $as_echo_n "(cached) " >&6
23588else
23589 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23590 # We make a subdir and do the tests there. Otherwise we can end up
23591 # making bogus files that we don't know about and never remove. For
23592 # instance it was reported that on HP-UX the gcc test will end up
23593 # making a dummy file named `D' -- because `-MD' means `put the output
23594 # in D'.
23595 mkdir conftest.dir
23596 # Copy depcomp to subdir because otherwise we won't find it if we're
23597 # using a relative directory.
23598 cp "$am_depcomp" conftest.dir
23599 cd conftest.dir
23600 # We will build objects and dependencies in a subdirectory because
23601 # it helps to detect inapplicable dependency modes. For instance
23602 # both Tru64's cc and ICC support -MD to output dependencies as a
23603 # side effect of compilation, but ICC will put the dependencies in
23604 # the current directory while Tru64 will put them in the object
23605 # directory.
23606 mkdir sub
23607
23608 am_cv_CXX_dependencies_compiler_type=none
23609 if test "$am_compiler_list" = ""; then
23610 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23611 fi
23612 am__universal=false
23613 case " $depcc " in #(
23614 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23615 esac
23616
23617 for depmode in $am_compiler_list; do
23618 # Setup a source with many dependencies, because some compilers
23619 # like to wrap large dependency lists on column 80 (with \), and
23620 # we should not choose a depcomp mode which is confused by this.
23621 #
23622 # We need to recreate these files for each test, as the compiler may
23623 # overwrite some of them when testing with obscure command lines.
23624 # This happens at least with the AIX C compiler.
23625 : > sub/conftest.c
23626 for i in 1 2 3 4 5 6; do
23627 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23628 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23629 # Solaris 8's {/usr,}/bin/sh.
23630 touch sub/conftst$i.h
23631 done
23632 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23633
23634 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23635 # mode. It turns out that the SunPro C++ compiler does not properly
23636 # handle `-M -o', and we need to detect this. Also, some Intel
23637 # versions had trouble with output in subdirs
23638 am__obj=sub/conftest.${OBJEXT-o}
23639 am__minus_obj="-o $am__obj"
23640 case $depmode in
23641 gcc)
23642 # This depmode causes a compiler race in universal mode.
23643 test "$am__universal" = false || continue
23644 ;;
23645 nosideeffect)
23646 # after this tag, mechanisms are not by side-effect, so they'll
23647 # only be used when explicitly requested
23648 if test "x$enable_dependency_tracking" = xyes; then
23649 continue
23650 else
23651 break
23652 fi
23653 ;;
23654 msvisualcpp | msvcmsys)
23655 # This compiler won't grok `-c -o', but also, the minuso test has
23656 # not run yet. These depmodes are late enough in the game, and
23657 # so weak that their functioning should not be impacted.
23658 am__obj=conftest.${OBJEXT-o}
23659 am__minus_obj=
23660 ;;
23661 none) break ;;
23662 esac
23663 if depmode=$depmode \
23664 source=sub/conftest.c object=$am__obj \
23665 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23666 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23667 >/dev/null 2>conftest.err &&
23668 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23669 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23670 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23671 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23672 # icc doesn't choke on unknown options, it will just issue warnings
23673 # or remarks (even with -Werror). So we grep stderr for any message
23674 # that says an option was ignored or not supported.
23675 # When given -MP, icc 7.0 and 7.1 complain thusly:
23676 # icc: Command line warning: ignoring option '-M'; no argument required
23677 # The diagnosis changed in icc 8.0:
23678 # icc: Command line remark: option '-MP' not supported
23679 if (grep 'ignoring option' conftest.err ||
23680 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23681 am_cv_CXX_dependencies_compiler_type=$depmode
23682 break
23683 fi
23684 fi
23685 done
23686
23687 cd ..
23688 rm -rf conftest.dir
23689else
23690 am_cv_CXX_dependencies_compiler_type=none
23691fi
23692
23693fi
cristy8b350f62009-11-15 23:12:43 +000023694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023695$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23696CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23697
23698 if
23699 test "x$enable_dependency_tracking" != xno \
23700 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23701 am__fastdepCXX_TRUE=
23702 am__fastdepCXX_FALSE='#'
23703else
23704 am__fastdepCXX_TRUE='#'
23705 am__fastdepCXX_FALSE=
23706fi
23707
23708
cristy8b350f62009-11-15 23:12:43 +000023709 { $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 +000023710$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023711if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023712 $as_echo_n "(cached) " >&6
23713else
23714
23715 ac_ext=cpp
23716ac_cpp='$CXXCPP $CPPFLAGS'
23717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23720
cristy8b350f62009-11-15 23:12:43 +000023721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023722/* end confdefs.h. */
23723
23724int f(int x){return 1;}
23725int f(char x){return 1;}
23726int f(bool x){return 1;}
23727
23728int
23729main ()
23730{
23731bool b = true; return f(b);
23732 ;
23733 return 0;
23734}
23735_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023736if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023737 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023738else
cristy964cb7f2010-04-25 23:18:00 +000023739 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023740fi
cristy3ed852e2009-09-05 21:47:34 +000023741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742 ac_ext=cpp
23743ac_cpp='$CXXCPP $CPPFLAGS'
23744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23747
23748
23749fi
cristy964cb7f2010-04-25 23:18:00 +000023750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23751$as_echo "$ax_cv_cxx_bool" >&6; }
23752if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023753
cristy8b350f62009-11-15 23:12:43 +000023754$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023755
23756fi
23757
cristy8b350f62009-11-15 23:12:43 +000023758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023759$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023760if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023761 $as_echo_n "(cached) " >&6
23762else
23763
23764 ac_ext=cpp
23765ac_cpp='$CXXCPP $CPPFLAGS'
23766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23769
cristy8b350f62009-11-15 23:12:43 +000023770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023771/* end confdefs.h. */
23772namespace Outer { namespace Inner { int i = 0; }}
23773int
23774main ()
23775{
23776using namespace Outer::Inner; return i;
23777 ;
23778 return 0;
23779}
23780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023781if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023782 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023783else
cristy964cb7f2010-04-25 23:18:00 +000023784 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023785fi
cristy3ed852e2009-09-05 21:47:34 +000023786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23787 ac_ext=cpp
23788ac_cpp='$CXXCPP $CPPFLAGS'
23789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23792
23793
23794fi
cristy964cb7f2010-04-25 23:18:00 +000023795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23796$as_echo "$ax_cv_cxx_namespaces" >&6; }
23797if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023798
cristy8b350f62009-11-15 23:12:43 +000023799$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023800
23801fi
23802
cristy964cb7f2010-04-25 23:18:00 +000023803
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23805$as_echo_n "checking if g++ supports namespace std... " >&6; }
23806if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023807 $as_echo_n "(cached) " >&6
23808else
23809
cristy964cb7f2010-04-25 23:18:00 +000023810 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023811ac_cpp='$CXXCPP $CPPFLAGS'
23812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23815
cristy964cb7f2010-04-25 23:18:00 +000023816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023817/* end confdefs.h. */
23818#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000023819 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000023820int
23821main ()
23822{
cristy964cb7f2010-04-25 23:18:00 +000023823
cristy3ed852e2009-09-05 21:47:34 +000023824 ;
23825 return 0;
23826}
23827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023828if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023829 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000023830else
cristy964cb7f2010-04-25 23:18:00 +000023831 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023832fi
cristy3ed852e2009-09-05 21:47:34 +000023833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000023834 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023835ac_cpp='$CXXCPP $CPPFLAGS'
23836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23839
23840
23841fi
cristy964cb7f2010-04-25 23:18:00 +000023842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23843$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23844 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023845
cristy964cb7f2010-04-25 23:18:00 +000023846$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023847
cristy964cb7f2010-04-25 23:18:00 +000023848 fi
cristy3ed852e2009-09-05 21:47:34 +000023849
cristy8b350f62009-11-15 23:12:43 +000023850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023851$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023852if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023853 $as_echo_n "(cached) " >&6
23854else
23855
23856
23857 ac_ext=cpp
23858ac_cpp='$CXXCPP $CPPFLAGS'
23859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23862
cristy8b350f62009-11-15 23:12:43 +000023863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023864/* end confdefs.h. */
23865#include <iostream>
23866#include <map>
23867#include <iomanip>
23868#include <cmath>
23869#ifdef HAVE_NAMESPACES
23870using namespace std;
23871#endif
23872int
23873main ()
23874{
23875return 0;
23876 ;
23877 return 0;
23878}
23879_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023880if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023881 ac_cv_cxx_have_std_libs=yes
23882else
cristy8b350f62009-11-15 23:12:43 +000023883 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023884fi
cristy3ed852e2009-09-05 21:47:34 +000023885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23886 ac_ext=cpp
23887ac_cpp='$CXXCPP $CPPFLAGS'
23888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23891
23892
23893fi
cristy8b350f62009-11-15 23:12:43 +000023894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023895$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23896if test "$ac_cv_cxx_have_std_libs" = yes; then
23897
cristy8b350f62009-11-15 23:12:43 +000023898$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023899
23900fi
23901
cristy8b350f62009-11-15 23:12:43 +000023902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023903$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023904if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023905 $as_echo_n "(cached) " >&6
23906else
23907
23908 ac_ext=cpp
23909ac_cpp='$CXXCPP $CPPFLAGS'
23910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23913
cristy8b350f62009-11-15 23:12:43 +000023914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023915/* end confdefs.h. */
23916const wchar_t* s=L"wide string";
23917_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023918if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023919 ac_cv_cxx_have_lstring=yes
23920else
cristy8b350f62009-11-15 23:12:43 +000023921 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023922fi
cristy3ed852e2009-09-05 21:47:34 +000023923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23924 ac_ext=cpp
23925ac_cpp='$CXXCPP $CPPFLAGS'
23926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23929
23930
23931fi
cristy8b350f62009-11-15 23:12:43 +000023932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023933$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23934if test "$ac_cv_cxx_have_lstring" = yes; then
23935
cristy8b350f62009-11-15 23:12:43 +000023936$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023937
23938fi
23939
23940
23941 OPENMP_CXXFLAGS=
23942 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023943if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023944 enableval=$enable_openmp;
23945fi
23946
23947 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23949$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023950if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023951 $as_echo_n "(cached) " >&6
23952else
cristy8b350f62009-11-15 23:12:43 +000023953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23954/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023955
23956#ifndef _OPENMP
23957 choke me
23958#endif
23959#include <omp.h>
23960int main () { return omp_get_num_threads (); }
23961
23962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023963if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023964 ac_cv_prog_cxx_openmp='none needed'
23965else
cristy8b350f62009-11-15 23:12:43 +000023966 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023967 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23968 ac_save_CXXFLAGS=$CXXFLAGS
23969 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23971/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023972
23973#ifndef _OPENMP
23974 choke me
23975#endif
23976#include <omp.h>
23977int main () { return omp_get_num_threads (); }
23978
23979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023980if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023981 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023982fi
cristy8b350f62009-11-15 23:12:43 +000023983rm -f core conftest.err conftest.$ac_objext \
23984 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023985 CXXFLAGS=$ac_save_CXXFLAGS
23986 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23987 break
23988 fi
23989 done
23990fi
cristy8b350f62009-11-15 23:12:43 +000023991rm -f core conftest.err conftest.$ac_objext \
23992 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023993fi
cristy8b350f62009-11-15 23:12:43 +000023994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023995$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23996 case $ac_cv_prog_cxx_openmp in #(
23997 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000023998 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000023999 *)
cristy8b350f62009-11-15 23:12:43 +000024000 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024001 esac
24002 fi
24003
24004
24005 ac_ext=c
24006ac_cpp='$CPP $CPPFLAGS'
24007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24009ac_compiler_gnu=$ac_cv_c_compiler_gnu
24010
24011
cristy8b350f62009-11-15 23:12:43 +000024012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024013$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24014 if \
cristy964cb7f2010-04-25 23:18:00 +000024015 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024016 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024017 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024018 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024019 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024020 have_magick_plus_plus='yes'
24021 else
24022 have_magick_plus_plus='no (failed tests)'
24023 fi
cristy8b350f62009-11-15 23:12:43 +000024024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024025$as_echo "$have_magick_plus_plus" >&6; }
24026 LIBS="$OLIBS"
24027fi
24028 if test "$have_magick_plus_plus" = 'yes'; then
24029 WITH_MAGICK_PLUS_PLUS_TRUE=
24030 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24031else
24032 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24033 WITH_MAGICK_PLUS_PLUS_FALSE=
24034fi
24035
24036
24037# Only check for delegate libraries in subdirectories if requested.
24038if test "$enable_delegate_build" != 'no'; then
24039 # Check for delegate sub-directories and add -I & -L options as required.
24040 # This presumes that delegates are installed as detailed in the ImageMagick
24041 # README. If delegates are installed in a standard location where the
24042 # compiler will automatically find them then these options should not be
24043 # required.
24044
24045 #
24046 # Most delegates have includes in the same directory as the library, but not all...
24047 #
24048 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024049 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024050 if test -d "$builddir/$dir"; then
24051 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24052 else
24053 if test -d "$srcdirfull/$dir"; then
24054 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24055 fi
24056 fi
24057 done
24058
24059 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024060 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024061 if test -d "$builddir/$dir/.libs"; then
24062 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24063 else
24064 if test -d "$srcdirfull/$dir/.libs"; then
24065 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24066 fi
24067 fi
24068 if test -d "$builddir/$dir"; then
24069 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24070 else
24071 if test -d "$srcdirfull/$dir"; then
24072 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24073 fi
24074 fi
24075 done
24076fi
24077
24078# Assume that delegate headers reside under same directory as ImageMagick
24079# installation prefix.
24080MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24081
24082#
24083# Find the X11 RGB database
24084#
cristy8b350f62009-11-15 23:12:43 +000024085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024086$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024087if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024088 $as_echo_n "(cached) " >&6
24089else
24090 # Look for the header file in a standard set of common directories.
24091# Check X11 before X11Rn because it is often a symlink to the current release.
24092 for ac_dir in \
24093 /lib/usr/lib/X11 \
24094 /usr/X11/lib \
24095 /usr/X11R4/lib \
24096 /usr/X11R5/lib \
24097 /usr/X11R6/lib \
24098 /usr/X11R7/lib \
24099 /usr/X386/lib \
24100 /usr/XFree86/lib/X11 \
24101 /usr/athena/lib \
24102 /usr/lib \
24103 /usr/lib/X11 \
24104 /usr/lib/X11R4 \
24105 /usr/lib/X11R5 \
24106 /usr/lib/X11R6 \
24107 /usr/lib/X11R7 \
24108 /usr/local/X11/lib \
24109 /usr/local/X11R4/lib \
24110 /usr/local/X11R5/lib \
24111 /usr/local/X11R6/lib \
24112 /usr/local/lib \
24113 /usr/local/lib/X11 \
24114 /usr/local/lib/X11R4 \
24115 /usr/local/lib/X11R5 \
24116 /usr/local/lib/X11R6 \
24117 /usr/local/lib/X11R7 \
24118 /usr/local/x11r5/lib \
24119 /usr/lpp/Xamples/lib \
24120 /usr/openwin/lib \
24121 /usr/openwin/share/lib \
24122 /usr/unsupported/lib \
24123 /usr/x386/lib \
24124 ; do
24125 if test -f "$ac_dir/X11/rgb.txt"; then
24126 im_cv_x_configure="$ac_dir/X11/"
24127 break
24128 elif test -f "$ac_dir/rgb.txt"; then
24129 im_cv_x_configure="$ac_dir/"
24130 break
24131 fi
24132
24133 done
24134fi
cristy8b350f62009-11-15 23:12:43 +000024135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024136$as_echo "$im_cv_x_configure" >&6; }
24137X11_CONFIGURE_PATH="$im_cv_x_configure"
24138case "${build_os}" in
24139 mingw* )
24140 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24141 ;;
24142esac
24143
24144cat >>confdefs.h <<_ACEOF
24145#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24146_ACEOF
24147
24148
24149#
24150# Find OpenMP library
24151#
24152GOMP_LIBS=''
24153if test "$enable_openmp" != 'no'; then
24154 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024156$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024157if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024158 $as_echo_n "(cached) " >&6
24159else
24160 ac_check_lib_save_LIBS=$LIBS
24161LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024163/* end confdefs.h. */
24164
24165/* Override any GCC internal prototype to avoid an error.
24166 Use char because int might match the return type of a GCC
24167 builtin and then its argument prototype would still apply. */
24168#ifdef __cplusplus
24169extern "C"
24170#endif
24171char GOMP_parallel_start ();
24172int
24173main ()
24174{
24175return GOMP_parallel_start ();
24176 ;
24177 return 0;
24178}
24179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024180if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024181 ac_cv_lib_gomp_GOMP_parallel_start=yes
24182else
cristy8b350f62009-11-15 23:12:43 +000024183 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024184fi
cristy8b350f62009-11-15 23:12:43 +000024185rm -f core conftest.err conftest.$ac_objext \
24186 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024187LIBS=$ac_check_lib_save_LIBS
24188fi
cristy8b350f62009-11-15 23:12:43 +000024189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024190$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024191if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024192 GOMP_LIBS="-lgomp"
24193fi
24194 # gcc
24195 else
cristy8b350f62009-11-15 23:12:43 +000024196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024197$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024198if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024199 $as_echo_n "(cached) " >&6
24200else
24201 ac_check_lib_save_LIBS=$LIBS
24202LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024204/* end confdefs.h. */
24205
24206/* Override any GCC internal prototype to avoid an error.
24207 Use char because int might match the return type of a GCC
24208 builtin and then its argument prototype would still apply. */
24209#ifdef __cplusplus
24210extern "C"
24211#endif
24212char sunw_mp_register_warn ();
24213int
24214main ()
24215{
24216return sunw_mp_register_warn ();
24217 ;
24218 return 0;
24219}
24220_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024221if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024222 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24223else
cristy8b350f62009-11-15 23:12:43 +000024224 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024225fi
cristy8b350f62009-11-15 23:12:43 +000024226rm -f core conftest.err conftest.$ac_objext \
24227 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024228LIBS=$ac_check_lib_save_LIBS
24229fi
cristy8b350f62009-11-15 23:12:43 +000024230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024231$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024232if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024233 GOMP_LIBS="-lmtsk"
24234fi
24235 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024237$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024238if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024239 $as_echo_n "(cached) " >&6
24240else
24241 ac_check_lib_save_LIBS=$LIBS
24242LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024244/* end confdefs.h. */
24245
24246/* Override any GCC internal prototype to avoid an error.
24247 Use char because int might match the return type of a GCC
24248 builtin and then its argument prototype would still apply. */
24249#ifdef __cplusplus
24250extern "C"
24251#endif
24252char _xlsmpFlush ();
24253int
24254main ()
24255{
24256return _xlsmpFlush ();
24257 ;
24258 return 0;
24259}
24260_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024261if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024262 ac_cv_lib_xlsmp__xlsmpFlush=yes
24263else
cristy8b350f62009-11-15 23:12:43 +000024264 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024265fi
cristy8b350f62009-11-15 23:12:43 +000024266rm -f core conftest.err conftest.$ac_objext \
24267 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024268LIBS=$ac_check_lib_save_LIBS
24269fi
cristy8b350f62009-11-15 23:12:43 +000024270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024271$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024272if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024273 GOMP_LIBS="-lxlsmp"
24274fi
24275 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024277$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024278if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024279 $as_echo_n "(cached) " >&6
24280else
24281 ac_check_lib_save_LIBS=$LIBS
24282LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024284/* end confdefs.h. */
24285
24286/* Override any GCC internal prototype to avoid an error.
24287 Use char because int might match the return type of a GCC
24288 builtin and then its argument prototype would still apply. */
24289#ifdef __cplusplus
24290extern "C"
24291#endif
24292char mp_destroy ();
24293int
24294main ()
24295{
24296return mp_destroy ();
24297 ;
24298 return 0;
24299}
24300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024301if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024302 ac_cv_lib_mp_mp_destroy=yes
24303else
cristy8b350f62009-11-15 23:12:43 +000024304 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024305fi
cristy8b350f62009-11-15 23:12:43 +000024306rm -f core conftest.err conftest.$ac_objext \
24307 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024308LIBS=$ac_check_lib_save_LIBS
24309fi
cristy8b350f62009-11-15 23:12:43 +000024310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024311$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024312if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024313 GOMP_LIBS="-lmp"
24314fi
24315 # SGI IRIX 6.5 MIPSpro C/C++
24316 fi
24317 LIBS="$GOMP_LIBS $LIBS"
24318fi
24319
24320
24321#
24322# Find Posix threads library
24323#
24324THREAD_LIBS=''
24325if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24326
24327 if test "x$PTHREAD_LIBS" = "x"; then
24328 case "${host_cpu}-${host_os}" in
24329 *-freebsd*)
24330
24331
24332
24333ac_ext=c
24334ac_cpp='$CPP $CPPFLAGS'
24335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24337ac_compiler_gnu=$ac_cv_c_compiler_gnu
24338
24339magick_pthread_lib_ok=no
24340
24341LIB=-lc_r
24342save_LIBS="$LIBS"
24343LIBS="$LIBS $LIB"
24344
cristy8b350f62009-11-15 23:12:43 +000024345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024346$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024348/* end confdefs.h. */
24349#include <pthread.h>
24350int
24351main ()
24352{
24353 pthread_t th;
24354 pthread_join(th, 0);
24355 pthread_attr_init(0);
24356 pthread_cleanup_push(0, 0);
24357 pthread_create(0,0,0,0);
24358 pthread_cleanup_pop(0);
24359 ;
24360 return 0;
24361}
24362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024363if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024364 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024365fi
cristy8b350f62009-11-15 23:12:43 +000024366rm -f core conftest.err conftest.$ac_objext \
24367 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024368
cristy8b350f62009-11-15 23:12:43 +000024369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024370$as_echo "${magick_pthread_lib_ok}" >&6; }
24371if test "$magick_pthread_lib_ok" = yes
24372then
24373 PTHREAD_LIBS=-lc_r
24374 :
24375else
24376
24377 :
24378fi
24379
24380LIBS="$save_LIBS"
24381
24382ac_ext=c
24383ac_cpp='$CPP $CPPFLAGS'
24384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24386ac_compiler_gnu=$ac_cv_c_compiler_gnu
24387
24388 ;;
24389 esac
24390 fi
24391
24392 for lib in pthread pthreads; do
24393 if test "x$PTHREAD_LIBS" = "x"; then
24394
24395
24396
24397ac_ext=c
24398ac_cpp='$CPP $CPPFLAGS'
24399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24401ac_compiler_gnu=$ac_cv_c_compiler_gnu
24402
24403magick_pthread_lib_ok=no
24404
24405LIB=-l$lib
24406save_LIBS="$LIBS"
24407LIBS="$LIBS $LIB"
24408
cristy8b350f62009-11-15 23:12:43 +000024409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024410$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024412/* end confdefs.h. */
24413#include <pthread.h>
24414int
24415main ()
24416{
24417 pthread_t th;
24418 pthread_join(th, 0);
24419 pthread_attr_init(0);
24420 pthread_cleanup_push(0, 0);
24421 pthread_create(0,0,0,0);
24422 pthread_cleanup_pop(0);
24423 ;
24424 return 0;
24425}
24426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024427if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024428 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024429fi
cristy8b350f62009-11-15 23:12:43 +000024430rm -f core conftest.err conftest.$ac_objext \
24431 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024432
cristy8b350f62009-11-15 23:12:43 +000024433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024434$as_echo "${magick_pthread_lib_ok}" >&6; }
24435if test "$magick_pthread_lib_ok" = yes
24436then
24437 PTHREAD_LIBS=-l$lib
24438 :
24439else
24440
24441 :
24442fi
24443
24444LIBS="$save_LIBS"
24445
24446ac_ext=c
24447ac_cpp='$CPP $CPPFLAGS'
24448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24450ac_compiler_gnu=$ac_cv_c_compiler_gnu
24451
24452
24453 fi
24454 done
24455
24456 THREAD_LIBS="$PTHREAD_LIBS"
24457 LIBS="$LIBS $THREAD_LIBS"
24458fi
24459
24460
24461#
24462# Check for umem.
24463#
24464have_umem='no'
24465UMEM_LIBS=''
24466if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024468$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024470$as_echo "" >&6; }
24471 failed=0
24472 passed=0
cristy8b350f62009-11-15 23:12:43 +000024473 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24474if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024475 passed=`expr $passed + 1`
24476else
24477 failed=`expr $failed + 1`
24478fi
24479
24480
cristy8b350f62009-11-15 23:12:43 +000024481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024482$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024483if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024484 $as_echo_n "(cached) " >&6
24485else
24486 ac_check_lib_save_LIBS=$LIBS
24487LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024489/* end confdefs.h. */
24490
24491/* Override any GCC internal prototype to avoid an error.
24492 Use char because int might match the return type of a GCC
24493 builtin and then its argument prototype would still apply. */
24494#ifdef __cplusplus
24495extern "C"
24496#endif
24497char umem_alloc ();
24498int
24499main ()
24500{
24501return umem_alloc ();
24502 ;
24503 return 0;
24504}
24505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024506if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024507 ac_cv_lib_umem_umem_alloc=yes
24508else
cristy8b350f62009-11-15 23:12:43 +000024509 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024510fi
cristy8b350f62009-11-15 23:12:43 +000024511rm -f core conftest.err conftest.$ac_objext \
24512 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024513LIBS=$ac_check_lib_save_LIBS
24514fi
cristy8b350f62009-11-15 23:12:43 +000024515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024516$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024517if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024518 passed=`expr $passed + 1`
24519else
24520 failed=`expr $failed + 1`
24521fi
24522
cristy8b350f62009-11-15 23:12:43 +000024523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024524$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024525if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024526 $as_echo_n "(cached) " >&6
24527else
24528 ac_check_lib_save_LIBS=$LIBS
24529LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024531/* end confdefs.h. */
24532
24533/* Override any GCC internal prototype to avoid an error.
24534 Use char because int might match the return type of a GCC
24535 builtin and then its argument prototype would still apply. */
24536#ifdef __cplusplus
24537extern "C"
24538#endif
24539char umem_free ();
24540int
24541main ()
24542{
24543return umem_free ();
24544 ;
24545 return 0;
24546}
24547_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024548if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024549 ac_cv_lib_umem_umem_free=yes
24550else
cristy8b350f62009-11-15 23:12:43 +000024551 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024552fi
cristy8b350f62009-11-15 23:12:43 +000024553rm -f core conftest.err conftest.$ac_objext \
24554 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024555LIBS=$ac_check_lib_save_LIBS
24556fi
cristy8b350f62009-11-15 23:12:43 +000024557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024558$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024559if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024560 passed=`expr $passed + 1`
24561else
24562 failed=`expr $failed + 1`
24563fi
24564
cristy8b350f62009-11-15 23:12:43 +000024565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024566$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24567 if test $passed -gt 0; then
24568 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024570$as_echo "no -- some components failed test" >&6; }
24571 have_umem='no (failed tests)'
24572 else
24573 UMEM_LIBS='-lumem'
24574 LIBS="$UMEM_LIBS $LIBS"
24575
cristy8b350f62009-11-15 23:12:43 +000024576$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024577
cristy8b350f62009-11-15 23:12:43 +000024578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024579$as_echo "yes" >&6; }
24580 have_umem='yes'
24581 fi
24582 else
cristy8b350f62009-11-15 23:12:43 +000024583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024584$as_echo "no" >&6; }
24585 fi
24586fi
24587 if test "$have_umem" = 'yes'; then
24588 HasUMEM_TRUE=
24589 HasUMEM_FALSE='#'
24590else
24591 HasUMEM_TRUE='#'
24592 HasUMEM_FALSE=
24593fi
24594
24595
24596
24597#
24598# Add support for ccmalloc memory debugging library if requested
24599#
24600have_ccmalloc='no'
24601CCMALLOC_LIBS=''
24602if test "$enable_ccmalloc" = 'yes'; then
24603 # Extract the first word of "ccmalloc", so it can be a program name with args.
24604set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024606$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024607if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024608 $as_echo_n "(cached) " >&6
24609else
24610 case $CCMALLOCDelegate in
24611 [\\/]* | ?:[\\/]*)
24612 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24613 ;;
24614 *)
24615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24616for as_dir in $PATH
24617do
24618 IFS=$as_save_IFS
24619 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024620 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24622 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024624 break 2
24625 fi
24626done
cristy8b350f62009-11-15 23:12:43 +000024627 done
cristy3ed852e2009-09-05 21:47:34 +000024628IFS=$as_save_IFS
24629
24630 ;;
24631esac
24632fi
24633CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24634if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024636$as_echo "$CCMALLOCDelegate" >&6; }
24637else
cristy8b350f62009-11-15 23:12:43 +000024638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024639$as_echo "no" >&6; }
24640fi
24641
24642
24643 if test -n "$CCMALLOCDelegate"; then
24644 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24645 OLIBS="$LIBS"
24646 # Assume that gcc is used with ccmalloc.
24647 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024649$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024650if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024651 $as_echo_n "(cached) " >&6
24652else
24653 ac_check_lib_save_LIBS=$LIBS
24654LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024656/* end confdefs.h. */
24657
24658/* Override any GCC internal prototype to avoid an error.
24659 Use char because int might match the return type of a GCC
24660 builtin and then its argument prototype would still apply. */
24661#ifdef __cplusplus
24662extern "C"
24663#endif
24664char ccmalloc_malloc ();
24665int
24666main ()
24667{
24668return ccmalloc_malloc ();
24669 ;
24670 return 0;
24671}
24672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024673if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024674 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24675else
cristy8b350f62009-11-15 23:12:43 +000024676 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024677fi
cristy8b350f62009-11-15 23:12:43 +000024678rm -f core conftest.err conftest.$ac_objext \
24679 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024680LIBS=$ac_check_lib_save_LIBS
24681fi
cristy8b350f62009-11-15 23:12:43 +000024682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024683$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024684if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024685 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24686fi
24687
24688 if test -n "$CCMALLOC_LIBS"; then
24689 LIBS="$OLIBS"
24690 LIBS="$LIBS $CCMALLOC_LIBS"
24691 have_ccmalloc='yes'
24692 else
24693 LIBS="$OLIBS"
24694 fi
24695 fi
24696fi
24697
24698#
24699# Add support for efence memory debugging library if requested
24700#
24701if test "$enable_efence" = 'yes'; then
24702 EFENCE_LIBS='-lefence'
24703 LIBS="$EFENCE_LIBS $LIBS"
24704fi
24705
cristy3ed852e2009-09-05 21:47:34 +000024706
24707#
24708# Check for BZLIB
24709#
24710
24711
24712# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024713if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024714 withval=$with_bzlib; with_bzlib=$withval
24715else
24716 with_bzlib='yes'
24717fi
24718
24719
24720if test "$with_bzlib" != 'yes'; then
24721 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24722fi
24723
24724have_bzlib='no'
24725if test "$with_bzlib" != 'no'; then
24726 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024728$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024730$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024732$as_echo "" >&6; }
24733 failed=0
24734 passed=0
24735 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024736 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24737if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024738 passed=`expr $passed + 1`
24739else
24740 failed=`expr $failed + 1`
24741fi
24742
24743
cristy8b350f62009-11-15 23:12:43 +000024744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024745$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024746if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024747 $as_echo_n "(cached) " >&6
24748else
24749 ac_check_lib_save_LIBS=$LIBS
24750LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024752/* end confdefs.h. */
24753
24754/* Override any GCC internal prototype to avoid an error.
24755 Use char because int might match the return type of a GCC
24756 builtin and then its argument prototype would still apply. */
24757#ifdef __cplusplus
24758extern "C"
24759#endif
24760char BZ2_bzDecompress ();
24761int
24762main ()
24763{
24764return BZ2_bzDecompress ();
24765 ;
24766 return 0;
24767}
24768_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024769if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024770 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24771else
cristy8b350f62009-11-15 23:12:43 +000024772 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024773fi
cristy8b350f62009-11-15 23:12:43 +000024774rm -f core conftest.err conftest.$ac_objext \
24775 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024776LIBS=$ac_check_lib_save_LIBS
24777fi
cristy8b350f62009-11-15 23:12:43 +000024778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024779$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024780if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024781 found_libbz=`expr $found_libbz + 1`
24782fi
24783
24784 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024786$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024787if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024788 $as_echo_n "(cached) " >&6
24789else
24790 ac_check_lib_save_LIBS=$LIBS
24791LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024793/* end confdefs.h. */
24794
24795/* Override any GCC internal prototype to avoid an error.
24796 Use char because int might match the return type of a GCC
24797 builtin and then its argument prototype would still apply. */
24798#ifdef __cplusplus
24799extern "C"
24800#endif
24801char _imp__BZ2_decompress ();
24802int
24803main ()
24804{
24805return _imp__BZ2_decompress ();
24806 ;
24807 return 0;
24808}
24809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024810if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024811 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24812else
cristy8b350f62009-11-15 23:12:43 +000024813 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024814fi
cristy8b350f62009-11-15 23:12:43 +000024815rm -f core conftest.err conftest.$ac_objext \
24816 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024817LIBS=$ac_check_lib_save_LIBS
24818fi
cristy8b350f62009-11-15 23:12:43 +000024819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024820$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024821if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024822 found_libbz=`expr $found_libbz + 1`
24823fi
24824
24825 fi
24826 if test $found_libbz -gt 0; then
24827 passed=`expr $passed + 1`
24828 else
24829 failed=`expr $failed + 1`
24830 fi
cristy8b350f62009-11-15 23:12:43 +000024831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024832$as_echo_n "checking if BZLIB package is complete... " >&6; }
24833 if test $passed -gt 0; then
24834 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024836$as_echo "no -- some components failed test" >&6; }
24837 have_bzlib='no (failed tests)'
24838 else
24839 BZLIB_LIBS='-lbz2'
24840 LIBS="$BZLIB_LIBS $LIBS"
24841
cristy8b350f62009-11-15 23:12:43 +000024842$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024843
cristy8b350f62009-11-15 23:12:43 +000024844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024845$as_echo "yes" >&6; }
24846 have_bzlib='yes'
24847 fi
24848 else
cristy8b350f62009-11-15 23:12:43 +000024849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024850$as_echo "no" >&6; }
24851 fi
24852fi
24853 if test "$have_bzlib" = 'yes'; then
24854 BZLIB_DELEGATE_TRUE=
24855 BZLIB_DELEGATE_FALSE='#'
24856else
24857 BZLIB_DELEGATE_TRUE='#'
24858 BZLIB_DELEGATE_FALSE=
24859fi
24860
24861
24862
24863#
24864# Find the X11 include and library directories.
24865#
24866IPC_LIBS=''
24867X11_LIBS=''
24868XEXT_LIBS=''
24869XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024871$as_echo_n "checking for X... " >&6; }
24872
24873
24874# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024875if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024876 withval=$with_x;
24877fi
24878
24879# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24880if test "x$with_x" = xno; then
24881 # The user explicitly disabled X.
24882 have_x=disabled
24883else
24884 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000024885 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24886 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024887 $as_echo_n "(cached) " >&6
24888else
24889 # One or both of the vars are not set, and there is no cached value.
24890ac_x_includes=no ac_x_libraries=no
24891rm -f -r conftest.dir
24892if mkdir conftest.dir; then
24893 cd conftest.dir
24894 cat >Imakefile <<'_ACEOF'
24895incroot:
24896 @echo incroot='${INCROOT}'
24897usrlibdir:
24898 @echo usrlibdir='${USRLIBDIR}'
24899libdir:
24900 @echo libdir='${LIBDIR}'
24901_ACEOF
24902 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24903 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24904 for ac_var in incroot usrlibdir libdir; do
24905 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24906 done
24907 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24908 for ac_extension in a so sl dylib la dll; do
24909 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24910 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24911 ac_im_usrlibdir=$ac_im_libdir; break
24912 fi
24913 done
24914 # Screen out bogus values from the imake configuration. They are
24915 # bogus both because they are the default anyway, and because
24916 # using them would break gcc on systems where it needs fixed includes.
24917 case $ac_im_incroot in
24918 /usr/include) ac_x_includes= ;;
24919 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24920 esac
24921 case $ac_im_usrlibdir in
24922 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24923 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24924 esac
24925 fi
24926 cd ..
24927 rm -f -r conftest.dir
24928fi
24929
24930# Standard set of common directories for X headers.
24931# Check X11 before X11Rn because it is often a symlink to the current release.
24932ac_x_header_dirs='
24933/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024934/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024935/usr/X11R6/include
24936/usr/X11R5/include
24937/usr/X11R4/include
24938
24939/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024940/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024941/usr/include/X11R6
24942/usr/include/X11R5
24943/usr/include/X11R4
24944
24945/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024946/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024947/usr/local/X11R6/include
24948/usr/local/X11R5/include
24949/usr/local/X11R4/include
24950
24951/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024952/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024953/usr/local/include/X11R6
24954/usr/local/include/X11R5
24955/usr/local/include/X11R4
24956
24957/usr/X386/include
24958/usr/x386/include
24959/usr/XFree86/include/X11
24960
24961/usr/include
24962/usr/local/include
24963/usr/unsupported/include
24964/usr/athena/include
24965/usr/local/x11r5/include
24966/usr/lpp/Xamples/include
24967
24968/usr/openwin/include
24969/usr/openwin/share/include'
24970
24971if test "$ac_x_includes" = no; then
24972 # Guess where to find include files, by looking for Xlib.h.
24973 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024975/* end confdefs.h. */
24976#include <X11/Xlib.h>
24977_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024978if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024979 # We can compile using X headers with no special include directory.
24980ac_x_includes=
24981else
cristyc7083c12009-10-14 03:16:55 +000024982 for ac_dir in $ac_x_header_dirs; do
24983 if test -r "$ac_dir/X11/Xlib.h"; then
24984 ac_x_includes=$ac_dir
24985 break
24986 fi
24987done
24988fi
cristyc7083c12009-10-14 03:16:55 +000024989rm -f conftest.err conftest.$ac_ext
24990fi # $ac_x_includes = no
24991
24992if test "$ac_x_libraries" = no; then
24993 # Check for the libraries.
24994 # See if we find them without any special options.
24995 # Don't add to $LIBS permanently.
24996 ac_save_LIBS=$LIBS
24997 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024999/* end confdefs.h. */
25000#include <X11/Xlib.h>
25001int
25002main ()
25003{
25004XrmInitialize ()
25005 ;
25006 return 0;
25007}
25008_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025009if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025010 LIBS=$ac_save_LIBS
25011# We can link X programs with no special library path.
25012ac_x_libraries=
25013else
cristy8b350f62009-11-15 23:12:43 +000025014 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025015for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25016do
25017 # Don't even attempt the hair of trying to link an X program!
25018 for ac_extension in a so sl dylib la dll; do
25019 if test -r "$ac_dir/libX11.$ac_extension"; then
25020 ac_x_libraries=$ac_dir
25021 break 2
25022 fi
25023 done
25024done
25025fi
cristy8b350f62009-11-15 23:12:43 +000025026rm -f core conftest.err conftest.$ac_objext \
25027 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025028fi # $ac_x_libraries = no
25029
25030case $ac_x_includes,$ac_x_libraries in #(
25031 no,* | *,no | *\'*)
25032 # Didn't find X, or a directory has "'" in its name.
25033 ac_cv_have_x="have_x=no";; #(
25034 *)
25035 # Record where we found X for the cache.
25036 ac_cv_have_x="have_x=yes\
25037 ac_x_includes='$ac_x_includes'\
25038 ac_x_libraries='$ac_x_libraries'"
25039esac
25040fi
25041;; #(
25042 *) have_x=yes;;
25043 esac
25044 eval "$ac_cv_have_x"
25045fi # $with_x != no
25046
25047if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025049$as_echo "$have_x" >&6; }
25050 no_x=yes
25051else
25052 # If each of the values was on the command line, it overrides each guess.
25053 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25054 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25055 # Update the cache value to reflect the command line values.
25056 ac_cv_have_x="have_x=yes\
25057 ac_x_includes='$x_includes'\
25058 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025060$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25061fi
25062
cristy3ed852e2009-09-05 21:47:34 +000025063if test "$no_x" = yes; then
25064 # Not all programs may use this symbol, but it does not hurt to define it.
25065
cristy8b350f62009-11-15 23:12:43 +000025066$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025067
25068 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25069else
25070 if test -n "$x_includes"; then
25071 X_CFLAGS="$X_CFLAGS -I$x_includes"
25072 fi
25073
25074 # It would also be nice to do this for all -L options, not just this one.
25075 if test -n "$x_libraries"; then
25076 X_LIBS="$X_LIBS -L$x_libraries"
25077 # For Solaris; some versions of Sun CC require a space after -R and
25078 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025080$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25081 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25082 ac_xsave_c_werror_flag=$ac_c_werror_flag
25083 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025085/* end confdefs.h. */
25086
25087int
25088main ()
25089{
25090
25091 ;
25092 return 0;
25093}
25094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025095if ac_fn_c_try_link "$LINENO"; then :
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025097$as_echo "no" >&6; }
25098 X_LIBS="$X_LIBS -R$x_libraries"
25099else
cristy8b350f62009-11-15 23:12:43 +000025100 LIBS="$ac_xsave_LIBS -R $x_libraries"
25101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025102/* end confdefs.h. */
25103
25104int
25105main ()
25106{
25107
25108 ;
25109 return 0;
25110}
25111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025112if ac_fn_c_try_link "$LINENO"; then :
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025114$as_echo "yes" >&6; }
25115 X_LIBS="$X_LIBS -R $x_libraries"
25116else
cristy8b350f62009-11-15 23:12:43 +000025117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025118$as_echo "neither works" >&6; }
25119fi
cristy8b350f62009-11-15 23:12:43 +000025120rm -f core conftest.err conftest.$ac_objext \
25121 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025122fi
cristy8b350f62009-11-15 23:12:43 +000025123rm -f core conftest.err conftest.$ac_objext \
25124 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025125 ac_c_werror_flag=$ac_xsave_c_werror_flag
25126 LIBS=$ac_xsave_LIBS
25127 fi
25128
25129 # Check for system-dependent libraries X programs must link with.
25130 # Do this before checking for the system-independent R6 libraries
25131 # (-lICE), since we may need -lsocket or whatever for X linking.
25132
25133 if test "$ISC" = yes; then
25134 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25135 else
25136 # Martyn Johnson says this is needed for Ultrix, if the X
25137 # libraries were built with DECnet support. And Karl Berry says
25138 # the Alpha needs dnet_stub (dnet does not exist).
25139 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025141/* end confdefs.h. */
25142
25143/* Override any GCC internal prototype to avoid an error.
25144 Use char because int might match the return type of a GCC
25145 builtin and then its argument prototype would still apply. */
25146#ifdef __cplusplus
25147extern "C"
25148#endif
25149char XOpenDisplay ();
25150int
25151main ()
25152{
25153return XOpenDisplay ();
25154 ;
25155 return 0;
25156}
25157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025158if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025159
cristy8b350f62009-11-15 23:12:43 +000025160else
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025162$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025163if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025164 $as_echo_n "(cached) " >&6
25165else
25166 ac_check_lib_save_LIBS=$LIBS
25167LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025169/* end confdefs.h. */
25170
25171/* Override any GCC internal prototype to avoid an error.
25172 Use char because int might match the return type of a GCC
25173 builtin and then its argument prototype would still apply. */
25174#ifdef __cplusplus
25175extern "C"
25176#endif
25177char dnet_ntoa ();
25178int
25179main ()
25180{
25181return dnet_ntoa ();
25182 ;
25183 return 0;
25184}
25185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025186if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025187 ac_cv_lib_dnet_dnet_ntoa=yes
25188else
cristy8b350f62009-11-15 23:12:43 +000025189 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025190fi
cristy8b350f62009-11-15 23:12:43 +000025191rm -f core conftest.err conftest.$ac_objext \
25192 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025193LIBS=$ac_check_lib_save_LIBS
25194fi
cristy8b350f62009-11-15 23:12:43 +000025195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025196$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025197if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025198 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25199fi
25200
25201 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025203$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025204if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025205 $as_echo_n "(cached) " >&6
25206else
25207 ac_check_lib_save_LIBS=$LIBS
25208LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025210/* end confdefs.h. */
25211
25212/* Override any GCC internal prototype to avoid an error.
25213 Use char because int might match the return type of a GCC
25214 builtin and then its argument prototype would still apply. */
25215#ifdef __cplusplus
25216extern "C"
25217#endif
25218char dnet_ntoa ();
25219int
25220main ()
25221{
25222return dnet_ntoa ();
25223 ;
25224 return 0;
25225}
25226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025227if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025228 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25229else
cristy8b350f62009-11-15 23:12:43 +000025230 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025231fi
cristy8b350f62009-11-15 23:12:43 +000025232rm -f core conftest.err conftest.$ac_objext \
25233 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025234LIBS=$ac_check_lib_save_LIBS
25235fi
cristy8b350f62009-11-15 23:12:43 +000025236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025237$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025238if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025239 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25240fi
25241
25242 fi
25243fi
cristy8b350f62009-11-15 23:12:43 +000025244rm -f core conftest.err conftest.$ac_objext \
25245 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025246 LIBS="$ac_xsave_LIBS"
25247
25248 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25249 # to get the SysV transport functions.
25250 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25251 # needs -lnsl.
25252 # The nsl library prevents programs from opening the X display
25253 # on Irix 5.2, according to T.E. Dickey.
25254 # The functions gethostbyname, getservbyname, and inet_addr are
25255 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025256 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25257if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025258
cristy3ed852e2009-09-05 21:47:34 +000025259fi
25260
cristy3ed852e2009-09-05 21:47:34 +000025261 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025263$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025264if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025265 $as_echo_n "(cached) " >&6
25266else
25267 ac_check_lib_save_LIBS=$LIBS
25268LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025270/* end confdefs.h. */
25271
25272/* Override any GCC internal prototype to avoid an error.
25273 Use char because int might match the return type of a GCC
25274 builtin and then its argument prototype would still apply. */
25275#ifdef __cplusplus
25276extern "C"
25277#endif
25278char gethostbyname ();
25279int
25280main ()
25281{
25282return gethostbyname ();
25283 ;
25284 return 0;
25285}
25286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025287if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025288 ac_cv_lib_nsl_gethostbyname=yes
25289else
cristy8b350f62009-11-15 23:12:43 +000025290 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025291fi
cristy8b350f62009-11-15 23:12:43 +000025292rm -f core conftest.err conftest.$ac_objext \
25293 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025294LIBS=$ac_check_lib_save_LIBS
25295fi
cristy8b350f62009-11-15 23:12:43 +000025296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025297$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025298if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025299 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25300fi
25301
25302 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025304$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025305if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025306 $as_echo_n "(cached) " >&6
25307else
25308 ac_check_lib_save_LIBS=$LIBS
25309LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025311/* end confdefs.h. */
25312
25313/* Override any GCC internal prototype to avoid an error.
25314 Use char because int might match the return type of a GCC
25315 builtin and then its argument prototype would still apply. */
25316#ifdef __cplusplus
25317extern "C"
25318#endif
25319char gethostbyname ();
25320int
25321main ()
25322{
25323return gethostbyname ();
25324 ;
25325 return 0;
25326}
25327_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025328if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025329 ac_cv_lib_bsd_gethostbyname=yes
25330else
cristy8b350f62009-11-15 23:12:43 +000025331 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025332fi
cristy8b350f62009-11-15 23:12:43 +000025333rm -f core conftest.err conftest.$ac_objext \
25334 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025335LIBS=$ac_check_lib_save_LIBS
25336fi
cristy8b350f62009-11-15 23:12:43 +000025337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025338$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025339if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025340 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25341fi
25342
25343 fi
25344 fi
25345
25346 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25347 # socket/setsockopt and other routines are undefined under SCO ODT
25348 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25349 # on later versions), says Simon Leinen: it contains gethostby*
25350 # variants that don't use the name server (or something). -lsocket
25351 # must be given before -lnsl if both are needed. We assume that
25352 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025353 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25354if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025355
cristy3ed852e2009-09-05 21:47:34 +000025356fi
25357
cristy3ed852e2009-09-05 21:47:34 +000025358 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025360$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025361if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025362 $as_echo_n "(cached) " >&6
25363else
25364 ac_check_lib_save_LIBS=$LIBS
25365LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025367/* end confdefs.h. */
25368
25369/* Override any GCC internal prototype to avoid an error.
25370 Use char because int might match the return type of a GCC
25371 builtin and then its argument prototype would still apply. */
25372#ifdef __cplusplus
25373extern "C"
25374#endif
25375char connect ();
25376int
25377main ()
25378{
25379return connect ();
25380 ;
25381 return 0;
25382}
25383_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025384if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025385 ac_cv_lib_socket_connect=yes
25386else
cristy8b350f62009-11-15 23:12:43 +000025387 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025388fi
cristy8b350f62009-11-15 23:12:43 +000025389rm -f core conftest.err conftest.$ac_objext \
25390 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025391LIBS=$ac_check_lib_save_LIBS
25392fi
cristy8b350f62009-11-15 23:12:43 +000025393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025394$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025395if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025396 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25397fi
25398
25399 fi
25400
25401 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025402 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25403if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025404
cristy3ed852e2009-09-05 21:47:34 +000025405fi
25406
cristy3ed852e2009-09-05 21:47:34 +000025407 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025409$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025410if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025411 $as_echo_n "(cached) " >&6
25412else
25413 ac_check_lib_save_LIBS=$LIBS
25414LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025416/* end confdefs.h. */
25417
25418/* Override any GCC internal prototype to avoid an error.
25419 Use char because int might match the return type of a GCC
25420 builtin and then its argument prototype would still apply. */
25421#ifdef __cplusplus
25422extern "C"
25423#endif
25424char remove ();
25425int
25426main ()
25427{
25428return remove ();
25429 ;
25430 return 0;
25431}
25432_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025433if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025434 ac_cv_lib_posix_remove=yes
25435else
cristy8b350f62009-11-15 23:12:43 +000025436 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025437fi
cristy8b350f62009-11-15 23:12:43 +000025438rm -f core conftest.err conftest.$ac_objext \
25439 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025440LIBS=$ac_check_lib_save_LIBS
25441fi
cristy8b350f62009-11-15 23:12:43 +000025442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025443$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025444if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025445 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25446fi
25447
25448 fi
25449
25450 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025451 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25452if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025453
cristy3ed852e2009-09-05 21:47:34 +000025454fi
25455
cristy3ed852e2009-09-05 21:47:34 +000025456 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025458$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025459if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025460 $as_echo_n "(cached) " >&6
25461else
25462 ac_check_lib_save_LIBS=$LIBS
25463LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025465/* end confdefs.h. */
25466
25467/* Override any GCC internal prototype to avoid an error.
25468 Use char because int might match the return type of a GCC
25469 builtin and then its argument prototype would still apply. */
25470#ifdef __cplusplus
25471extern "C"
25472#endif
25473char shmat ();
25474int
25475main ()
25476{
25477return shmat ();
25478 ;
25479 return 0;
25480}
25481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025482if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025483 ac_cv_lib_ipc_shmat=yes
25484else
cristy8b350f62009-11-15 23:12:43 +000025485 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025486fi
cristy8b350f62009-11-15 23:12:43 +000025487rm -f core conftest.err conftest.$ac_objext \
25488 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025489LIBS=$ac_check_lib_save_LIBS
25490fi
cristy8b350f62009-11-15 23:12:43 +000025491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025492$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025493if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025494 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25495fi
25496
25497 fi
25498 fi
25499
25500 # Check for libraries that X11R6 Xt/Xaw programs need.
25501 ac_save_LDFLAGS=$LDFLAGS
25502 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25503 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25504 # check for ICE first), but we must link in the order -lSM -lICE or
25505 # we get undefined symbols. So assume we have SM if we have ICE.
25506 # These have to be linked with before -lX11, unlike the other
25507 # libraries we check for below, so use a different variable.
25508 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025510$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025511if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025512 $as_echo_n "(cached) " >&6
25513else
25514 ac_check_lib_save_LIBS=$LIBS
25515LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025517/* end confdefs.h. */
25518
25519/* Override any GCC internal prototype to avoid an error.
25520 Use char because int might match the return type of a GCC
25521 builtin and then its argument prototype would still apply. */
25522#ifdef __cplusplus
25523extern "C"
25524#endif
25525char IceConnectionNumber ();
25526int
25527main ()
25528{
25529return IceConnectionNumber ();
25530 ;
25531 return 0;
25532}
25533_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025534if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025535 ac_cv_lib_ICE_IceConnectionNumber=yes
25536else
cristy8b350f62009-11-15 23:12:43 +000025537 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025538fi
cristy8b350f62009-11-15 23:12:43 +000025539rm -f core conftest.err conftest.$ac_objext \
25540 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025541LIBS=$ac_check_lib_save_LIBS
25542fi
cristy8b350f62009-11-15 23:12:43 +000025543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025544$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025545if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025546 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25547fi
25548
25549 LDFLAGS=$ac_save_LDFLAGS
25550
25551fi
25552
25553if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025555$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025557$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025559$as_echo "" >&6; }
25560 LDFLAGS="$LDFLAGS $X_LIBS"
25561 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25562 LIBS="$X11_LIBS $LIBS"
25563 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25564
25565
cristy8b350f62009-11-15 23:12:43 +000025566$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025567
25568 #
25569 # Check for X11 shared memory extension
25570 #
25571 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025572 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25573if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025574 have_shmctl='yes'
25575fi
25576
25577 if test "$have_shmctl" != 'yes'; then
25578 PERSIST_LIBS=$LIBS
25579 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025581/* end confdefs.h. */
25582
25583/* Override any GCC internal prototype to avoid an error.
25584 Use char because int might match the return type of a GCC
25585 builtin and then its argument prototype would still apply. */
25586#ifdef __cplusplus
25587extern "C"
25588#endif
25589char shmctl ();
25590int
25591main ()
25592{
25593return shmctl ();
25594 ;
25595 return 0;
25596}
25597_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025598if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025599 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025600fi
cristy8b350f62009-11-15 23:12:43 +000025601rm -f core conftest.err conftest.$ac_objext \
25602 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025603 LIBS=$PERSIST_LIBS
25604 fi
25605
25606 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025608$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025609if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025610 $as_echo_n "(cached) " >&6
25611else
25612 ac_check_lib_save_LIBS=$LIBS
25613LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025615/* end confdefs.h. */
25616
25617/* Override any GCC internal prototype to avoid an error.
25618 Use char because int might match the return type of a GCC
25619 builtin and then its argument prototype would still apply. */
25620#ifdef __cplusplus
25621extern "C"
25622#endif
25623char XShmAttach ();
25624int
25625main ()
25626{
25627return XShmAttach ();
25628 ;
25629 return 0;
25630}
25631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025632if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025633 ac_cv_lib_Xext_XShmAttach=yes
25634else
cristy8b350f62009-11-15 23:12:43 +000025635 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025636fi
cristy8b350f62009-11-15 23:12:43 +000025637rm -f core conftest.err conftest.$ac_objext \
25638 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025639LIBS=$ac_check_lib_save_LIBS
25640fi
cristy8b350f62009-11-15 23:12:43 +000025641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025642$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025643if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025644 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025645$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025646
25647fi
25648
25649 fi
25650
25651 #
25652 # Check for X11 shape extension
25653 #
cristy8b350f62009-11-15 23:12:43 +000025654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025655$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025656if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025657 $as_echo_n "(cached) " >&6
25658else
25659 ac_check_lib_save_LIBS=$LIBS
25660LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025662/* end confdefs.h. */
25663
25664/* Override any GCC internal prototype to avoid an error.
25665 Use char because int might match the return type of a GCC
25666 builtin and then its argument prototype would still apply. */
25667#ifdef __cplusplus
25668extern "C"
25669#endif
25670char XShapeCombineMask ();
25671int
25672main ()
25673{
25674return XShapeCombineMask ();
25675 ;
25676 return 0;
25677}
25678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025679if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025680 ac_cv_lib_Xext_XShapeCombineMask=yes
25681else
cristy8b350f62009-11-15 23:12:43 +000025682 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025683fi
cristy8b350f62009-11-15 23:12:43 +000025684rm -f core conftest.err conftest.$ac_objext \
25685 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025686LIBS=$ac_check_lib_save_LIBS
25687fi
cristy8b350f62009-11-15 23:12:43 +000025688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025689$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025690if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025691 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025692$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025693
25694fi
25695
cristy8b350f62009-11-15 23:12:43 +000025696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025697$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025698if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025699 $as_echo_n "(cached) " >&6
25700else
25701 ac_check_lib_save_LIBS=$LIBS
25702LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025704/* end confdefs.h. */
25705
25706/* Override any GCC internal prototype to avoid an error.
25707 Use char because int might match the return type of a GCC
25708 builtin and then its argument prototype would still apply. */
25709#ifdef __cplusplus
25710extern "C"
25711#endif
25712char XtSetEventDispatcher ();
25713int
25714main ()
25715{
25716return XtSetEventDispatcher ();
25717 ;
25718 return 0;
25719}
25720_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025721if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025722 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25723else
cristy8b350f62009-11-15 23:12:43 +000025724 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025725fi
cristy8b350f62009-11-15 23:12:43 +000025726rm -f core conftest.err conftest.$ac_objext \
25727 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025728LIBS=$ac_check_lib_save_LIBS
25729fi
cristy8b350f62009-11-15 23:12:43 +000025730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025731$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025732if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025733 XT_LIBS='-lXt'
25734fi
25735
25736 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25737fi
25738if test "$no_x" != 'yes'; then
25739 have_x='yes'
25740else
25741 have_x='no'
25742fi
25743 if test "$have_x" = 'yes'; then
25744 X11_DELEGATE_TRUE=
25745 X11_DELEGATE_FALSE='#'
25746else
25747 X11_DELEGATE_TRUE='#'
25748 X11_DELEGATE_FALSE=
25749fi
25750
25751
25752
25753
25754
25755#
25756# Check for ZLIB
25757#
25758
25759# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025760if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025761 withval=$with_zlib; with_zlib=$withval
25762else
25763 with_zlib='yes'
25764fi
25765
25766
25767if test "$with_zlib" != 'yes'; then
25768 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25769fi
25770
25771have_zlib='no'
25772ZLIB_LIBS=''
25773if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025775$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025777$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025779$as_echo "" >&6; }
25780 ZLIB_LIBS=''
25781 failed=0
25782 passed=0
cristy8b350f62009-11-15 23:12:43 +000025783 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25784if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025785 passed=`expr $passed + 1`
25786else
25787 failed=`expr $failed + 1`
25788fi
25789
25790
cristy8b350f62009-11-15 23:12:43 +000025791 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25792if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025793 passed=`expr $passed + 1`
25794else
25795 failed=`expr $failed + 1`
25796fi
25797
25798
cristy8b350f62009-11-15 23:12:43 +000025799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025800$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025801if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025802 $as_echo_n "(cached) " >&6
25803else
25804 ac_check_lib_save_LIBS=$LIBS
25805LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025807/* end confdefs.h. */
25808
25809/* Override any GCC internal prototype to avoid an error.
25810 Use char because int might match the return type of a GCC
25811 builtin and then its argument prototype would still apply. */
25812#ifdef __cplusplus
25813extern "C"
25814#endif
25815char compress ();
25816int
25817main ()
25818{
25819return compress ();
25820 ;
25821 return 0;
25822}
25823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025824if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025825 ac_cv_lib_z_compress=yes
25826else
cristy8b350f62009-11-15 23:12:43 +000025827 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025828fi
cristy8b350f62009-11-15 23:12:43 +000025829rm -f core conftest.err conftest.$ac_objext \
25830 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025831LIBS=$ac_check_lib_save_LIBS
25832fi
cristy8b350f62009-11-15 23:12:43 +000025833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025834$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025835if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025836 passed=`expr $passed + 1`
25837else
25838 failed=`expr $failed + 1`
25839fi
25840
cristy8b350f62009-11-15 23:12:43 +000025841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025842$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025843if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025844 $as_echo_n "(cached) " >&6
25845else
25846 ac_check_lib_save_LIBS=$LIBS
25847LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025849/* end confdefs.h. */
25850
25851/* Override any GCC internal prototype to avoid an error.
25852 Use char because int might match the return type of a GCC
25853 builtin and then its argument prototype would still apply. */
25854#ifdef __cplusplus
25855extern "C"
25856#endif
25857char uncompress ();
25858int
25859main ()
25860{
25861return uncompress ();
25862 ;
25863 return 0;
25864}
25865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025866if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025867 ac_cv_lib_z_uncompress=yes
25868else
cristy8b350f62009-11-15 23:12:43 +000025869 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025870fi
cristy8b350f62009-11-15 23:12:43 +000025871rm -f core conftest.err conftest.$ac_objext \
25872 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025873LIBS=$ac_check_lib_save_LIBS
25874fi
cristy8b350f62009-11-15 23:12:43 +000025875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025876$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025877if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025878 passed=`expr $passed + 1`
25879else
25880 failed=`expr $failed + 1`
25881fi
25882
cristy8b350f62009-11-15 23:12:43 +000025883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025884$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025885if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025886 $as_echo_n "(cached) " >&6
25887else
25888 ac_check_lib_save_LIBS=$LIBS
25889LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025891/* end confdefs.h. */
25892
25893/* Override any GCC internal prototype to avoid an error.
25894 Use char because int might match the return type of a GCC
25895 builtin and then its argument prototype would still apply. */
25896#ifdef __cplusplus
25897extern "C"
25898#endif
25899char deflate ();
25900int
25901main ()
25902{
25903return deflate ();
25904 ;
25905 return 0;
25906}
25907_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025908if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025909 ac_cv_lib_z_deflate=yes
25910else
cristy8b350f62009-11-15 23:12:43 +000025911 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025912fi
cristy8b350f62009-11-15 23:12:43 +000025913rm -f core conftest.err conftest.$ac_objext \
25914 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025915LIBS=$ac_check_lib_save_LIBS
25916fi
cristy8b350f62009-11-15 23:12:43 +000025917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025918$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025919if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025920 passed=`expr $passed + 1`
25921else
25922 failed=`expr $failed + 1`
25923fi
25924
cristy8b350f62009-11-15 23:12:43 +000025925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025926$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025927if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025928 $as_echo_n "(cached) " >&6
25929else
25930 ac_check_lib_save_LIBS=$LIBS
25931LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025933/* end confdefs.h. */
25934
25935/* Override any GCC internal prototype to avoid an error.
25936 Use char because int might match the return type of a GCC
25937 builtin and then its argument prototype would still apply. */
25938#ifdef __cplusplus
25939extern "C"
25940#endif
25941char inflate ();
25942int
25943main ()
25944{
25945return inflate ();
25946 ;
25947 return 0;
25948}
25949_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025950if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025951 ac_cv_lib_z_inflate=yes
25952else
cristy8b350f62009-11-15 23:12:43 +000025953 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025954fi
cristy8b350f62009-11-15 23:12:43 +000025955rm -f core conftest.err conftest.$ac_objext \
25956 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025957LIBS=$ac_check_lib_save_LIBS
25958fi
cristy8b350f62009-11-15 23:12:43 +000025959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025960$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025961if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025962 passed=`expr $passed + 1`
25963else
25964 failed=`expr $failed + 1`
25965fi
25966
cristy8b350f62009-11-15 23:12:43 +000025967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025968$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025969if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025970 $as_echo_n "(cached) " >&6
25971else
25972 ac_check_lib_save_LIBS=$LIBS
25973LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025975/* end confdefs.h. */
25976
25977/* Override any GCC internal prototype to avoid an error.
25978 Use char because int might match the return type of a GCC
25979 builtin and then its argument prototype would still apply. */
25980#ifdef __cplusplus
25981extern "C"
25982#endif
25983char gzseek ();
25984int
25985main ()
25986{
25987return gzseek ();
25988 ;
25989 return 0;
25990}
25991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025992if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025993 ac_cv_lib_z_gzseek=yes
25994else
cristy8b350f62009-11-15 23:12:43 +000025995 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025996fi
cristy8b350f62009-11-15 23:12:43 +000025997rm -f core conftest.err conftest.$ac_objext \
25998 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025999LIBS=$ac_check_lib_save_LIBS
26000fi
cristy8b350f62009-11-15 23:12:43 +000026001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026002$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026003if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026004 passed=`expr $passed + 1`
26005else
26006 failed=`expr $failed + 1`
26007fi
26008
cristy8b350f62009-11-15 23:12:43 +000026009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026010$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026011if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026012 $as_echo_n "(cached) " >&6
26013else
26014 ac_check_lib_save_LIBS=$LIBS
26015LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026017/* end confdefs.h. */
26018
26019/* Override any GCC internal prototype to avoid an error.
26020 Use char because int might match the return type of a GCC
26021 builtin and then its argument prototype would still apply. */
26022#ifdef __cplusplus
26023extern "C"
26024#endif
26025char gztell ();
26026int
26027main ()
26028{
26029return gztell ();
26030 ;
26031 return 0;
26032}
26033_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026034if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026035 ac_cv_lib_z_gztell=yes
26036else
cristy8b350f62009-11-15 23:12:43 +000026037 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026038fi
cristy8b350f62009-11-15 23:12:43 +000026039rm -f core conftest.err conftest.$ac_objext \
26040 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026041LIBS=$ac_check_lib_save_LIBS
26042fi
cristy8b350f62009-11-15 23:12:43 +000026043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026044$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026045if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026046 passed=`expr $passed + 1`
26047else
26048 failed=`expr $failed + 1`
26049fi
26050
cristy8b350f62009-11-15 23:12:43 +000026051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026052$as_echo_n "checking if ZLIB package is complete... " >&6; }
26053 if test $passed -gt 0; then
26054 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026056$as_echo "no -- some components failed test" >&6; }
26057 have_zlib='no (failed tests)'
26058 else
26059 ZLIB_LIBS='-lz'
26060 LIBS="$ZLIB_LIBS $LIBS"
26061
cristy8b350f62009-11-15 23:12:43 +000026062$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026063
cristy8b350f62009-11-15 23:12:43 +000026064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026065$as_echo "yes" >&6; }
26066 have_zlib='yes'
26067 fi
26068 else
cristy8b350f62009-11-15 23:12:43 +000026069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026070$as_echo "no" >&6; }
26071 fi
26072fi
26073 if test "$have_zlib" = 'yes'; then
26074 ZLIB_DELEGATE_TRUE=
26075 ZLIB_DELEGATE_FALSE='#'
26076else
26077 ZLIB_DELEGATE_TRUE='#'
26078 ZLIB_DELEGATE_FALSE=
26079fi
26080
26081
26082
26083#
26084# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26085#
26086LIB_DL=''
26087if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026089$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026090if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026091 $as_echo_n "(cached) " >&6
26092else
26093 ac_check_lib_save_LIBS=$LIBS
26094LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026096/* end confdefs.h. */
26097
26098/* Override any GCC internal prototype to avoid an error.
26099 Use char because int might match the return type of a GCC
26100 builtin and then its argument prototype would still apply. */
26101#ifdef __cplusplus
26102extern "C"
26103#endif
26104char dlopen ();
26105int
26106main ()
26107{
26108return dlopen ();
26109 ;
26110 return 0;
26111}
26112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026113if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026114 ac_cv_lib_dl_dlopen=yes
26115else
cristy8b350f62009-11-15 23:12:43 +000026116 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026117fi
cristy8b350f62009-11-15 23:12:43 +000026118rm -f core conftest.err conftest.$ac_objext \
26119 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026120LIBS=$ac_check_lib_save_LIBS
26121fi
cristy8b350f62009-11-15 23:12:43 +000026122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026123$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026124if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026125 LIB_DL='-ldl'
26126fi
26127
26128 LIBS="$LIB_DL $LIBS"
26129fi
26130
26131
26132
26133#
26134# Check for Autotrace delegate library.
26135#
26136
26137# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026138if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026139 withval=$with_autotrace; with_autotrace=$withval
26140else
26141 with_autotrace='no'
26142fi
26143
26144
26145if test "$with_autotrace" != 'yes'; then
26146 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26147fi
26148
26149have_autotrace='no'
26150AUTOTRACE_CFLAGS=""
26151AUTOTRACE_LIBS=""
26152AUTOTRACE_PKG=""
26153if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026155$as_echo "-------------------------------------------------------------" >&6; }
26156
26157pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026159$as_echo_n "checking for AUTOTRACE... " >&6; }
26160
26161if test -n "$AUTOTRACE_CFLAGS"; then
26162 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26163 elif test -n "$PKG_CONFIG"; then
26164 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026165 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026166 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26167 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26169 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026170 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26171else
26172 pkg_failed=yes
26173fi
26174 else
26175 pkg_failed=untried
26176fi
26177if test -n "$AUTOTRACE_LIBS"; then
26178 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26179 elif test -n "$PKG_CONFIG"; then
26180 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026182 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26183 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26185 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026186 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26187else
26188 pkg_failed=yes
26189fi
26190 else
26191 pkg_failed=untried
26192fi
26193
26194
26195
26196if test $pkg_failed = yes; then
26197
26198if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26199 _pkg_short_errors_supported=yes
26200else
26201 _pkg_short_errors_supported=no
26202fi
26203 if test $_pkg_short_errors_supported = yes; then
26204 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26205 else
26206 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26207 fi
26208 # Put the nasty error message in config.log where it belongs
26209 echo "$AUTOTRACE_PKG_ERRORS" >&5
26210
cristy8b350f62009-11-15 23:12:43 +000026211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026212$as_echo "no" >&6; }
26213 have_autotrace=no
26214elif test $pkg_failed = untried; then
26215 have_autotrace=no
26216else
26217 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26218 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026220$as_echo "yes" >&6; }
26221 have_autotrace=yes
26222fi
cristy8b350f62009-11-15 23:12:43 +000026223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026224$as_echo "" >&6; }
26225fi
26226
26227if test "$have_autotrace" = 'yes'; then
26228 failed=0
26229
cristy8b350f62009-11-15 23:12:43 +000026230$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026231
26232 if test "$with_modules" = 'no'; then
26233 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26234 fi
26235fi
26236
26237 if test "$have_autotrace" = 'yes'; then
26238 AUTOTRACE_DELEGATE_TRUE=
26239 AUTOTRACE_DELEGATE_FALSE='#'
26240else
26241 AUTOTRACE_DELEGATE_TRUE='#'
26242 AUTOTRACE_DELEGATE_FALSE=
26243fi
26244
26245
26246
26247
26248
26249#
26250# Check for Display Postscript delegate library.
26251#
26252
26253# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026254if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026255 withval=$with_dps; with_dps=$withval
26256else
26257 with_dps='yes'
26258fi
26259
26260
26261if test "$with_dps" != 'yes'; then
26262 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26263fi
26264
26265have_dps='no'
26266DPS_LIBS=''
26267if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026269$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026271$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026273$as_echo "" >&6; }
26274 failed=0
26275 passed=0
26276 PERSIST_CPPFLAGS="$CPPFLAGS"
26277 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026278 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26279if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026280 passed=`expr $passed + 1`
26281else
26282 failed=`expr $failed + 1`
26283fi
26284
26285
26286 # DPS issues:
26287 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26288 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26289 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26290 # ImageMagick itself doesn't use -lXt.
26291 have_libdps='no'
26292 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026294$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026295if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026296 $as_echo_n "(cached) " >&6
26297else
26298 ac_check_lib_save_LIBS=$LIBS
26299LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026301/* end confdefs.h. */
26302
26303/* Override any GCC internal prototype to avoid an error.
26304 Use char because int might match the return type of a GCC
26305 builtin and then its argument prototype would still apply. */
26306#ifdef __cplusplus
26307extern "C"
26308#endif
26309char DPSInitialize ();
26310int
26311main ()
26312{
26313return DPSInitialize ();
26314 ;
26315 return 0;
26316}
26317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026319 ac_cv_lib_dps_DPSInitialize=yes
26320else
cristy8b350f62009-11-15 23:12:43 +000026321 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026322fi
cristy8b350f62009-11-15 23:12:43 +000026323rm -f core conftest.err conftest.$ac_objext \
26324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026325LIBS=$ac_check_lib_save_LIBS
26326fi
cristy8b350f62009-11-15 23:12:43 +000026327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026328$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026329if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026330 have_libdps='yes'
26331else
26332 have_libdps='no'
26333fi
26334
26335 if test "$have_libdps" != 'yes'; then
26336 # Unset cache variable so we can try again.
26337 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026339$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026340if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026341 $as_echo_n "(cached) " >&6
26342else
26343 ac_check_lib_save_LIBS=$LIBS
26344LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026346/* end confdefs.h. */
26347
26348/* Override any GCC internal prototype to avoid an error.
26349 Use char because int might match the return type of a GCC
26350 builtin and then its argument prototype would still apply. */
26351#ifdef __cplusplus
26352extern "C"
26353#endif
26354char DPSInitialize ();
26355int
26356main ()
26357{
26358return DPSInitialize ();
26359 ;
26360 return 0;
26361}
26362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026363if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026364 ac_cv_lib_dps_DPSInitialize=yes
26365else
cristy8b350f62009-11-15 23:12:43 +000026366 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026367fi
cristy8b350f62009-11-15 23:12:43 +000026368rm -f core conftest.err conftest.$ac_objext \
26369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026370LIBS=$ac_check_lib_save_LIBS
26371fi
cristy8b350f62009-11-15 23:12:43 +000026372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026373$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026374if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026375 have_libdps='yes'
26376else
26377 have_libdps='no'
26378fi
26379
26380 if test "$have_libdps" = 'yes'; then
26381 LIBDPS_XT='-lXt'
26382 fi
26383 fi
26384 if test "$have_libdps" = 'yes'; then
26385 passed=`expr $passed + 1`
26386 else
26387 failed=`expr $failed + 1`
26388 fi
cristy8b350f62009-11-15 23:12:43 +000026389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026390$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026391if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026392 $as_echo_n "(cached) " >&6
26393else
26394 ac_check_lib_save_LIBS=$LIBS
26395LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026397/* end confdefs.h. */
26398
26399/* Override any GCC internal prototype to avoid an error.
26400 Use char because int might match the return type of a GCC
26401 builtin and then its argument prototype would still apply. */
26402#ifdef __cplusplus
26403extern "C"
26404#endif
26405char XDPSPixelsPerPoint ();
26406int
26407main ()
26408{
26409return XDPSPixelsPerPoint ();
26410 ;
26411 return 0;
26412}
26413_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026414if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026415 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26416else
cristy8b350f62009-11-15 23:12:43 +000026417 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026418fi
cristy8b350f62009-11-15 23:12:43 +000026419rm -f core conftest.err conftest.$ac_objext \
26420 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026421LIBS=$ac_check_lib_save_LIBS
26422fi
cristy8b350f62009-11-15 23:12:43 +000026423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026424$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026425if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026426 passed=`expr $passed + 1`
26427else
26428 failed=`expr $failed + 1`
26429fi
26430
cristy8b350f62009-11-15 23:12:43 +000026431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026432$as_echo_n "checking if DPS package is complete... " >&6; }
26433 if test $passed -gt 0; then
26434 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026436$as_echo "no -- some components failed test" >&6; }
26437 have_dps='no (failed tests)'
26438 CPPFLAGS="$PERSIST_CPPFLAGS"
26439 else
26440 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26441 LIBS="$DPS_LIBS $LIBS"
26442
cristy8b350f62009-11-15 23:12:43 +000026443$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026444
cristy8b350f62009-11-15 23:12:43 +000026445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026446$as_echo "yes" >&6; }
26447 have_dps='yes'
26448 fi
26449 else
cristy8b350f62009-11-15 23:12:43 +000026450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026451$as_echo "no" >&6; }
26452 CPPFLAGS=$PERSIST_CPPFLAGS
26453 fi
26454fi
26455 if test "$have_dps" = 'yes'; then
26456 DPS_DELEGATE_TRUE=
26457 DPS_DELEGATE_FALSE='#'
26458else
26459 DPS_DELEGATE_TRUE='#'
26460 DPS_DELEGATE_FALSE=
26461fi
26462
26463
26464
26465
26466#
26467# Check for DJVU delegate library.
26468#
26469
26470# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026471if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026472 withval=$with_djvu; with_djvu=$withval
26473else
26474 with_djvu='yes'
26475fi
26476
26477
26478if test "$with_djvu" != 'yes'; then
26479 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26480fi
26481
26482have_djvu='no'
26483DJVU_LIBS=''
26484if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026486$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026488$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026490$as_echo "" >&6; }
26491 failed=0
26492 passed=0
cristy8b350f62009-11-15 23:12:43 +000026493 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26494if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026495 passed=`expr $passed + 1`
26496else
26497 failed=`expr $failed + 1`
26498fi
26499
26500
cristy8b350f62009-11-15 23:12:43 +000026501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026502$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026503if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026504 $as_echo_n "(cached) " >&6
26505else
26506 ac_check_lib_save_LIBS=$LIBS
26507LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026509/* end confdefs.h. */
26510
26511/* Override any GCC internal prototype to avoid an error.
26512 Use char because int might match the return type of a GCC
26513 builtin and then its argument prototype would still apply. */
26514#ifdef __cplusplus
26515extern "C"
26516#endif
26517char ddjvu_context_create ();
26518int
26519main ()
26520{
26521return ddjvu_context_create ();
26522 ;
26523 return 0;
26524}
26525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026527 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26528else
cristy8b350f62009-11-15 23:12:43 +000026529 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026530fi
cristy8b350f62009-11-15 23:12:43 +000026531rm -f core conftest.err conftest.$ac_objext \
26532 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026533LIBS=$ac_check_lib_save_LIBS
26534fi
cristy8b350f62009-11-15 23:12:43 +000026535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026536$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026537if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026538 passed=`expr $passed + 1`
26539else
26540 failed=`expr $failed + 1`
26541fi
26542
cristy8b350f62009-11-15 23:12:43 +000026543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026544$as_echo_n "checking if DJVU package is complete... " >&6; }
26545 if test $passed -gt 0; then
26546 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026548$as_echo "no -- some components failed test" >&6; }
26549 have_djvu='no (failed tests)'
26550 else
26551 DJVU_LIBS='-ldjvulibre'
26552 LIBS="$DJVU_LIBS $LIBS"
26553
cristy8b350f62009-11-15 23:12:43 +000026554$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026555
cristy8b350f62009-11-15 23:12:43 +000026556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026557$as_echo "yes" >&6; }
26558 have_djvu='yes'
26559 fi
26560 else
cristy8b350f62009-11-15 23:12:43 +000026561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026562$as_echo "no" >&6; }
26563 fi
26564fi
26565 if test "$have_djvu" = 'yes'; then
26566 DJVU_DELEGATE_TRUE=
26567 DJVU_DELEGATE_FALSE='#'
26568else
26569 DJVU_DELEGATE_TRUE='#'
26570 DJVU_DELEGATE_FALSE=
26571fi
26572
26573
26574
26575
26576#
cristy430a7312010-01-21 20:44:04 +000026577# Set DejaVu font directory.
26578#
26579
26580# Check whether --with-dejavu-font-dir was given.
26581if test "${with_dejavu_font_dir+set}" = set; then :
26582 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26583else
26584 with_dejavu_font_dir='default'
26585fi
26586
26587
26588if test "$with_dejavu_font_dir" != 'default'; then
26589 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26590fi
26591
26592
26593#
cristy3ed852e2009-09-05 21:47:34 +000026594# Check for FFTW delegate library.
26595#
26596
26597# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026598if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026599 withval=$with_fftw; with_fftw=$withval
26600else
26601 with_fftw='yes'
26602fi
26603
26604
26605if test "$with_fftw" != 'yes'; then
26606 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26607fi
26608
26609have_fftw='no'
26610FFTW_LIBS=''
26611if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026613$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026615$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026617$as_echo "" >&6; }
26618 failed=0
26619 passed=0
cristy8b350f62009-11-15 23:12:43 +000026620 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26621if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026622 passed=`expr $passed + 1`
26623else
26624 failed=`expr $failed + 1`
26625fi
26626
26627
cristy8b350f62009-11-15 23:12:43 +000026628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026629$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026630if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026631 $as_echo_n "(cached) " >&6
26632else
26633 ac_check_lib_save_LIBS=$LIBS
26634LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026636/* end confdefs.h. */
26637
26638/* Override any GCC internal prototype to avoid an error.
26639 Use char because int might match the return type of a GCC
26640 builtin and then its argument prototype would still apply. */
26641#ifdef __cplusplus
26642extern "C"
26643#endif
26644char fftw_execute ();
26645int
26646main ()
26647{
26648return fftw_execute ();
26649 ;
26650 return 0;
26651}
26652_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026653if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026654 ac_cv_lib_fftw3_fftw_execute=yes
26655else
cristy8b350f62009-11-15 23:12:43 +000026656 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026657fi
cristy8b350f62009-11-15 23:12:43 +000026658rm -f core conftest.err conftest.$ac_objext \
26659 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026660LIBS=$ac_check_lib_save_LIBS
26661fi
cristy8b350f62009-11-15 23:12:43 +000026662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026663$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026664if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026665 passed=`expr $passed + 1`
26666else
26667 failed=`expr $failed + 1`
26668fi
26669
cristy8b350f62009-11-15 23:12:43 +000026670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026671$as_echo_n "checking if FFTW package is complete... " >&6; }
26672 if test $passed -gt 0; then
26673 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026675$as_echo "no -- some components failed test" >&6; }
26676 have_fftw='no (failed tests)'
26677 else
26678 FFTW_LIBS='-lfftw3'
26679 LIBS="$FFTW_LIBS $LIBS"
26680
cristy8b350f62009-11-15 23:12:43 +000026681$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026682
cristy8b350f62009-11-15 23:12:43 +000026683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026684$as_echo "yes" >&6; }
26685 have_fftw='yes'
26686 fi
26687 else
cristy8b350f62009-11-15 23:12:43 +000026688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026689$as_echo "no" >&6; }
26690 fi
26691fi
26692 if test "$have_fftw" = 'yes'; then
26693 FFTW_DELEGATE_TRUE=
26694 FFTW_DELEGATE_FALSE='#'
26695else
26696 FFTW_DELEGATE_TRUE='#'
26697 FFTW_DELEGATE_FALSE=
26698fi
26699
26700
26701
26702
26703#
26704# Check for FlashPIX delegate library.
26705#
26706
26707# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026708if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026709 withval=$with_fpx; with_fpx=$withval
26710else
26711 with_fpx='yes'
26712fi
26713
26714
26715if test "$with_fpx" != 'yes'; then
26716 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26717fi
26718
26719have_fpx='no'
26720FPX_LIBS=''
26721if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026723$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026725$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026727$as_echo "" >&6; }
26728 failed=0
26729 passed=0
26730 ac_ext=cpp
26731ac_cpp='$CXXCPP $CPPFLAGS'
26732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26735
26736
cristy8b350f62009-11-15 23:12:43 +000026737ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26738if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026739 passed=`expr $passed + 1`
26740else
26741 failed=`expr $failed + 1`
26742fi
26743
26744
cristy8b350f62009-11-15 23:12:43 +000026745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026746$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026747if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026748 $as_echo_n "(cached) " >&6
26749else
26750 ac_check_lib_save_LIBS=$LIBS
26751LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026753/* end confdefs.h. */
26754
26755/* Override any GCC internal prototype to avoid an error.
26756 Use char because int might match the return type of a GCC
26757 builtin and then its argument prototype would still apply. */
26758#ifdef __cplusplus
26759extern "C"
26760#endif
26761char FPX_OpenImageByFilename ();
26762int
26763main ()
26764{
26765return FPX_OpenImageByFilename ();
26766 ;
26767 return 0;
26768}
26769_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026770if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026771 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26772else
cristy8b350f62009-11-15 23:12:43 +000026773 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026774fi
cristy8b350f62009-11-15 23:12:43 +000026775rm -f core conftest.err conftest.$ac_objext \
26776 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026777LIBS=$ac_check_lib_save_LIBS
26778fi
cristy8b350f62009-11-15 23:12:43 +000026779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026780$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026781if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026782 passed=`expr $passed + 1`
26783else
26784 failed=`expr $failed + 1`
26785fi
26786
26787 ac_ext=c
26788ac_cpp='$CPP $CPPFLAGS'
26789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26791ac_compiler_gnu=$ac_cv_c_compiler_gnu
26792
cristy8b350f62009-11-15 23:12:43 +000026793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026794$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26795 if test $passed -gt 0; then
26796 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026798$as_echo "no -- some components failed test" >&6; }
26799 have_fpx='no (failed tests)'
26800 else
26801 FPX_LIBS='-lfpx'
26802
cristy8b350f62009-11-15 23:12:43 +000026803$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026804
cristy8b350f62009-11-15 23:12:43 +000026805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026806$as_echo "yes" >&6; }
26807 have_fpx='yes'
26808 PERLMAINCC="$CXX"
26809 fi
26810 else
cristy8b350f62009-11-15 23:12:43 +000026811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026812$as_echo "no" >&6; }
26813 fi
26814fi
26815 if test "$have_fpx" = 'yes'; then
26816 FPX_DELEGATE_TRUE=
26817 FPX_DELEGATE_FALSE='#'
26818else
26819 FPX_DELEGATE_TRUE='#'
26820 FPX_DELEGATE_FALSE=
26821fi
26822
26823
26824
26825
26826#
26827# Check for fontconfig delegate library.
26828#
26829
26830# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026831if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026832 withval=$with_fontconfig; with_fontconfig=$withval
26833else
26834 with_fontconfig=$have_x
26835fi
26836
26837
26838if test "$with_fontconfig" != 'yes'; then
26839 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26840fi
26841
26842have_fontconfig='no'
26843FONTCONFIG_CFLAGS=""
26844FONTCONFIG_LIBS=""
26845FONTCONFIG_PKG=""
26846if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026848$as_echo "-------------------------------------------------------------" >&6; }
26849
26850pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026852$as_echo_n "checking for FONTCONFIG... " >&6; }
26853
26854if test -n "$FONTCONFIG_CFLAGS"; then
26855 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26856 elif test -n "$PKG_CONFIG"; then
26857 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026858 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026859 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26860 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26862 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026863 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26864else
26865 pkg_failed=yes
26866fi
26867 else
26868 pkg_failed=untried
26869fi
26870if test -n "$FONTCONFIG_LIBS"; then
26871 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26872 elif test -n "$PKG_CONFIG"; then
26873 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026874 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026875 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26876 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26878 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026879 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26880else
26881 pkg_failed=yes
26882fi
26883 else
26884 pkg_failed=untried
26885fi
26886
26887
26888
26889if test $pkg_failed = yes; then
26890
26891if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26892 _pkg_short_errors_supported=yes
26893else
26894 _pkg_short_errors_supported=no
26895fi
26896 if test $_pkg_short_errors_supported = yes; then
26897 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26898 else
26899 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26900 fi
26901 # Put the nasty error message in config.log where it belongs
26902 echo "$FONTCONFIG_PKG_ERRORS" >&5
26903
cristy8b350f62009-11-15 23:12:43 +000026904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026905$as_echo "no" >&6; }
26906 have_fontconfig=no
26907elif test $pkg_failed = untried; then
26908 have_fontconfig=no
26909else
26910 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26911 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026913$as_echo "yes" >&6; }
26914 have_fontconfig=yes
26915fi
cristy8b350f62009-11-15 23:12:43 +000026916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026917$as_echo "" >&6; }
26918fi
26919
26920if test "$have_fontconfig" = 'yes'; then
26921
cristy8b350f62009-11-15 23:12:43 +000026922$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026923
cristyd09bcf92010-03-25 03:04:45 +000026924 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026925 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026926 fi
cristy3ed852e2009-09-05 21:47:34 +000026927fi
26928
26929 if test "$have_fontconfig" = 'yes'; then
26930 FONTCONFIG_DELEGATE_TRUE=
26931 FONTCONFIG_DELEGATE_FALSE='#'
26932else
26933 FONTCONFIG_DELEGATE_TRUE='#'
26934 FONTCONFIG_DELEGATE_FALSE=
26935fi
26936
26937
26938
26939
26940
26941#
26942# Check for freetype delegate library.
26943#
26944
26945# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026946if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026947 withval=$with_freetype; with_freetype=$withval
26948else
26949 with_freetype='yes'
26950fi
26951
26952
26953
26954if test "$with_freetype" != 'yes'; then
26955 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26956fi
26957
26958have_freetype='no'
26959FREETYPE_LIBS=''
26960if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026962$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026964$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026966$as_echo "" >&6; }
26967 failed=0
26968 passed=0
cristy66291112009-10-03 22:44:36 +000026969 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026970 PERSIST_CPPFLAGS="$CPPFLAGS"
26971 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26972 :
26973 else
26974 freetype_config=''
26975 for ac_prog in freetype-config
26976do
26977 # Extract the first word of "$ac_prog", so it can be a program name with args.
26978set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026980$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026981if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026982 $as_echo_n "(cached) " >&6
26983else
26984 if test -n "$freetype_config"; then
26985 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26986else
26987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26988for as_dir in $PATH
26989do
26990 IFS=$as_save_IFS
26991 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26994 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026996 break 2
26997 fi
26998done
cristy8b350f62009-11-15 23:12:43 +000026999 done
cristy3ed852e2009-09-05 21:47:34 +000027000IFS=$as_save_IFS
27001
27002fi
27003fi
27004freetype_config=$ac_cv_prog_freetype_config
27005if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027007$as_echo "$freetype_config" >&6; }
27008else
cristy8b350f62009-11-15 23:12:43 +000027009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027010$as_echo "no" >&6; }
27011fi
27012
27013
27014 test -n "$freetype_config" && break
27015done
27016 if test -n "$freetype_config"; then
27017 freetype_cflags=`$freetype_config --cflags`
27018 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027019 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027020 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27021 fi
27022 fi
27023
27024 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027026$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027027if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027028 $as_echo_n "(cached) " >&6
27029else
27030 ac_check_lib_save_LIBS=$LIBS
27031LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027033/* end confdefs.h. */
27034
27035/* Override any GCC internal prototype to avoid an error.
27036 Use char because int might match the return type of a GCC
27037 builtin and then its argument prototype would still apply. */
27038#ifdef __cplusplus
27039extern "C"
27040#endif
27041char FT_Init_FreeType ();
27042int
27043main ()
27044{
27045return FT_Init_FreeType ();
27046 ;
27047 return 0;
27048}
27049_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027050if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027051 ac_cv_lib_freetype_FT_Init_FreeType=yes
27052else
cristy8b350f62009-11-15 23:12:43 +000027053 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027054fi
cristy8b350f62009-11-15 23:12:43 +000027055rm -f core conftest.err conftest.$ac_objext \
27056 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027057LIBS=$ac_check_lib_save_LIBS
27058fi
cristy8b350f62009-11-15 23:12:43 +000027059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027060$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027061if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027062 FREETYPE_LIBS='-lfreetype'
27063fi
27064
27065 if test "$FREETYPE_LIBS" != ''; then
27066 passed=`expr $passed + 1`
27067 else
27068 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027069 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027070 fi
27071 fi
27072
cristy8b350f62009-11-15 23:12:43 +000027073 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27074if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027075 FT2BUILD_H='#include <ft2build.h>'
27076else
27077 ft2build=''
27078fi
27079
27080
cristy8b350f62009-11-15 23:12:43 +000027081 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27082"
27083if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027084 have_freetype_h='yes'
27085else
27086 have_freetype_h='no'
27087fi
27088
27089
27090 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27091 passed=`expr $passed + 1`
27092 else
27093 failed=`expr $failed + 1`
27094 CPPFLAGS="$PERSIST_CPPFLAGS"
27095 fi
27096
cristy8b350f62009-11-15 23:12:43 +000027097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027098$as_echo_n "checking if FreeType package is complete... " >&6; }
27099 if test $passed -gt 0; then
27100 if test $failed -gt 0; then
27101 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027103$as_echo "no -- some components failed test" >&6; }
27104 have_freetype='no (failed tests)'
27105 else
27106 LIBS="$FREETYPE_LIBS $LIBS"
27107
cristy8b350f62009-11-15 23:12:43 +000027108$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027109
27110 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27111
cristy8b350f62009-11-15 23:12:43 +000027112$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027113
27114 fi
cristy8b350f62009-11-15 23:12:43 +000027115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027116$as_echo "yes" >&6; }
27117 have_freetype='yes'
27118 fi
27119 else
cristy8b350f62009-11-15 23:12:43 +000027120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027121$as_echo "no" >&6; }
27122 fi
27123fi
27124 if test "$have_freetype" = 'yes'; then
27125 FREETYPE_DELEGATE_TRUE=
27126 FREETYPE_DELEGATE_FALSE='#'
27127else
27128 FREETYPE_DELEGATE_TRUE='#'
27129 FREETYPE_DELEGATE_FALSE=
27130fi
27131
27132
27133
27134
27135
27136#
27137# Check for Ghostscript library or framework.
27138#
27139# Test for iapi.h & test for gsapi_new_instance in -lgs
27140# or -framework Ghostscript
27141
27142
27143# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027144if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027145 withval=$with_gslib; with_gslib=$withval
27146else
27147 with_gslib='no'
27148fi
27149
27150
cristyb7931f12009-09-25 10:22:21 +000027151gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027152if test "$with_gslib" != 'yes'; then
27153 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27154fi
27155
27156have_gslib='no'
27157GS_LIBS=''
27158if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027160$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027162$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027164$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027165 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027166 failed=0
27167 passed=0
cristy8b350f62009-11-15 23:12:43 +000027168 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27169if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027170 passed=`expr $passed + 1`
27171else
27172 failed=`expr $failed + 1`
27173fi
27174
27175
cristy8b350f62009-11-15 23:12:43 +000027176 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27177if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027178 passed=`expr $passed + 1`
27179else
27180 failed=`expr $failed + 1`
27181fi
27182
27183
cristy8b350f62009-11-15 23:12:43 +000027184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027185$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027186if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027187 $as_echo_n "(cached) " >&6
27188else
27189 ac_check_framework_save_LIBS=$LIBS
27190LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027192/* end confdefs.h. */
27193
27194/* Override any GCC internal prototype to avoid an error.
27195 Use char because int might match the return type of a GCC
27196 builtin and then its argument prototype would still apply. */
27197#ifdef __cplusplus
27198extern "C"
27199#endif
27200char gsapi_new_instance ();
27201int
27202main ()
27203{
27204return gsapi_new_instance ();
27205 ;
27206 return 0;
27207}
27208_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027209if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027210 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27211else
cristy8b350f62009-11-15 23:12:43 +000027212 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027213fi
cristy8b350f62009-11-15 23:12:43 +000027214rm -f core conftest.err conftest.$ac_objext \
27215 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027216LIBS=$ac_check_framework_save_LIBS
27217fi
cristy8b350f62009-11-15 23:12:43 +000027218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027219$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027220if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027221 framework=`expr $framework + 1`
27222else
cristy8b350f62009-11-15 23:12:43 +000027223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027224$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027225if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027226 $as_echo_n "(cached) " >&6
27227else
27228 ac_check_lib_save_LIBS=$LIBS
27229LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027231/* end confdefs.h. */
27232
27233/* Override any GCC internal prototype to avoid an error.
27234 Use char because int might match the return type of a GCC
27235 builtin and then its argument prototype would still apply. */
27236#ifdef __cplusplus
27237extern "C"
27238#endif
27239char gsapi_new_instance ();
27240int
27241main ()
27242{
27243return gsapi_new_instance ();
27244 ;
27245 return 0;
27246}
27247_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027248if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027249 ac_cv_lib_gs_gsapi_new_instance=yes
27250else
cristy8b350f62009-11-15 23:12:43 +000027251 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027252fi
cristy8b350f62009-11-15 23:12:43 +000027253rm -f core conftest.err conftest.$ac_objext \
27254 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027255LIBS=$ac_check_lib_save_LIBS
27256fi
cristy8b350f62009-11-15 23:12:43 +000027257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027258$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027259if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027260 passed=`expr $passed + 1`
27261else
27262 failed=`expr $failed + 1`
27263fi
27264
27265fi
cristy8b350f62009-11-15 23:12:43 +000027266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027267$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27268 if test $passed -gt 0; then
27269 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027271$as_echo "no -- some components failed test" >&6; }
27272 have_gslib='no (failed tests)'
27273 else
27274 if test $framework -gt 0; then
27275 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027276 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027278$as_echo "yes, using framework." >&6; }
27279 else
cristy8b350f62009-11-15 23:12:43 +000027280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027281$as_echo "yes, using library." >&6; }
27282 GS_LIBS='-lgs'
27283 fi
27284 LIBS="$GS_LIBS $LIBS"
27285
cristy8b350f62009-11-15 23:12:43 +000027286$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027287
27288 have_gslib='yes'
27289 fi
27290 else
cristy8b350f62009-11-15 23:12:43 +000027291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027292$as_echo "no" >&6; }
27293 fi
27294fi
27295 if test "$have_gslib" = 'yes'; then
27296 GS_DELEGATE_TRUE=
27297 GS_DELEGATE_FALSE='#'
27298else
27299 GS_DELEGATE_TRUE='#'
27300 GS_DELEGATE_FALSE=
27301fi
27302
27303
27304
27305# Set default font search path
27306
27307# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027308if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027309 withval=$with_fontpath; with_fontpath=$withval
27310else
27311 with_fontpath=''
27312fi
27313
27314
27315if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27316 with_fontpath=''
27317else
27318
27319cat >>confdefs.h <<_ACEOF
27320#define MAGICK_FONT_PATH "$with_fontpath"
27321_ACEOF
27322
27323fi
27324if test "$with_fontpath=" != ''; then
27325 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27326fi
27327
27328# Set Ghostscript font directory
27329
27330# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027331if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027332 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27333else
27334 with_gs_font_dir='default'
27335fi
27336
27337
27338if test "$with_gs_font_dir" != 'default'; then
27339 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27340fi
27341
27342
27343#
27344# Check for GVC delegate library.
27345#
27346
27347# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027348if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027349 withval=$with_gvc; with_gvc=$withval
27350else
27351 with_gvc='yes'
27352fi
27353
27354
27355if test "$with_gvc" != 'yes'; then
27356 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27357fi
27358
27359GVC_PKG=""
27360if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027362$as_echo "-------------------------------------------------------------" >&6; }
27363
27364pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027366$as_echo_n "checking for GVC... " >&6; }
27367
27368if test -n "$GVC_CFLAGS"; then
27369 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27370 elif test -n "$PKG_CONFIG"; then
27371 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027373 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27374 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27376 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027377 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27378else
27379 pkg_failed=yes
27380fi
27381 else
27382 pkg_failed=untried
27383fi
27384if test -n "$GVC_LIBS"; then
27385 pkg_cv_GVC_LIBS="$GVC_LIBS"
27386 elif test -n "$PKG_CONFIG"; then
27387 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027388 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027389 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27390 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27392 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027393 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27394else
27395 pkg_failed=yes
27396fi
27397 else
27398 pkg_failed=untried
27399fi
27400
27401
27402
27403if test $pkg_failed = yes; then
27404
27405if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27406 _pkg_short_errors_supported=yes
27407else
27408 _pkg_short_errors_supported=no
27409fi
27410 if test $_pkg_short_errors_supported = yes; then
27411 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27412 else
27413 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27414 fi
27415 # Put the nasty error message in config.log where it belongs
27416 echo "$GVC_PKG_ERRORS" >&5
27417
cristy8b350f62009-11-15 23:12:43 +000027418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027419$as_echo "no" >&6; }
27420 have_gvc=no
27421elif test $pkg_failed = untried; then
27422 have_gvc=no
27423else
27424 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27425 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027427$as_echo "yes" >&6; }
27428 have_gvc=yes
27429fi
cristy8b350f62009-11-15 23:12:43 +000027430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027431$as_echo "" >&6; }
27432fi
27433
27434if test "$have_gvc" = 'yes'; then
27435
cristy8b350f62009-11-15 23:12:43 +000027436$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027437
27438 if test "$with_modules" = 'no'; then
27439 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27440 fi
27441fi
27442
27443 if test "$have_gvc" = 'yes'; then
27444 GVC_DELEGATE_TRUE=
27445 GVC_DELEGATE_FALSE='#'
27446else
27447 GVC_DELEGATE_TRUE='#'
27448 GVC_DELEGATE_FALSE=
27449fi
27450
27451
27452
27453
27454
27455#
27456# Check for JBIG delegate library.
27457#
27458
27459
27460# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027461if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027462 withval=$with_jbig; with_jbig=$withval
27463else
27464 with_jbig='yes'
27465fi
27466
27467
27468have_jbig='no'
27469JBIG_LIBS=''
27470if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027472$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027474$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027476$as_echo "" >&6; }
27477 failed=0
27478 passed=0
cristy8b350f62009-11-15 23:12:43 +000027479 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27480if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027481 passed=`expr $passed + 1`
27482else
27483 failed=`expr $failed + 1`
27484fi
27485
27486
cristy8b350f62009-11-15 23:12:43 +000027487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027488$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027489if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027490 $as_echo_n "(cached) " >&6
27491else
27492 ac_check_lib_save_LIBS=$LIBS
27493LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027495/* end confdefs.h. */
27496
27497/* Override any GCC internal prototype to avoid an error.
27498 Use char because int might match the return type of a GCC
27499 builtin and then its argument prototype would still apply. */
27500#ifdef __cplusplus
27501extern "C"
27502#endif
27503char jbg_dec_init ();
27504int
27505main ()
27506{
27507return jbg_dec_init ();
27508 ;
27509 return 0;
27510}
27511_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027512if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027513 ac_cv_lib_jbig_jbg_dec_init=yes
27514else
cristy8b350f62009-11-15 23:12:43 +000027515 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027516fi
cristy8b350f62009-11-15 23:12:43 +000027517rm -f core conftest.err conftest.$ac_objext \
27518 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027519LIBS=$ac_check_lib_save_LIBS
27520fi
cristy8b350f62009-11-15 23:12:43 +000027521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027522$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027523if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027524 passed=`expr $passed + 1`
27525else
27526 failed=`expr $failed + 1`
27527fi
27528
cristy8b350f62009-11-15 23:12:43 +000027529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027530$as_echo_n "checking if JBIG package is complete... " >&6; }
27531 if test $passed -gt 0; then
27532 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027534$as_echo "no -- some components failed test" >&6; }
27535 have_jbig='no (failed tests)'
27536 else
27537 JBIG_LIBS='-ljbig'
27538 LIBS="$JBIG_LIBS $LIBS"
27539
cristy8b350f62009-11-15 23:12:43 +000027540$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027541
cristy8b350f62009-11-15 23:12:43 +000027542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027543$as_echo "yes" >&6; }
27544 have_jbig='yes'
27545 fi
27546 else
cristy8b350f62009-11-15 23:12:43 +000027547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027548$as_echo "no" >&6; }
27549 fi
27550fi
27551 if test "$have_jbig" = 'yes'; then
27552 JBIG_DELEGATE_TRUE=
27553 JBIG_DELEGATE_FALSE='#'
27554else
27555 JBIG_DELEGATE_TRUE='#'
27556 JBIG_DELEGATE_FALSE=
27557fi
27558
27559
27560
27561
27562#
27563# Check for JPEG delegate library.
27564#
27565
27566# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027567if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027568 withval=$with_jpeg; with_jpeg=$withval
27569else
27570 with_jpeg='yes'
27571fi
27572
27573
27574if test "$with_jpeg" != 'yes'; then
27575 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27576fi
27577
27578have_jpeg='no'
27579JPEG_LIBS=''
27580if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027582$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027584$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027586$as_echo "" >&6; }
27587 failed=0
27588 passed=0
cristy8b350f62009-11-15 23:12:43 +000027589 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27590if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027591 passed=`expr $passed + 1`
27592else
27593 failed=`expr $failed + 1`
27594fi
27595
27596
cristy8b350f62009-11-15 23:12:43 +000027597 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27598if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027599 passed=`expr $passed + 1`
27600else
27601 failed=`expr $failed + 1`
27602fi
27603
27604
cristy8b350f62009-11-15 23:12:43 +000027605 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27606if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027607 passed=`expr $passed + 1`
27608else
27609 failed=`expr $failed + 1`
27610fi
27611
27612
cristy8b350f62009-11-15 23:12:43 +000027613 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27614if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027615 passed=`expr $passed + 1`
27616else
27617 failed=`expr $failed + 1`
27618fi
27619
27620
cristy8b350f62009-11-15 23:12:43 +000027621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027622$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027623if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027624 $as_echo_n "(cached) " >&6
27625else
27626 ac_check_lib_save_LIBS=$LIBS
27627LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027629/* end confdefs.h. */
27630
27631/* Override any GCC internal prototype to avoid an error.
27632 Use char because int might match the return type of a GCC
27633 builtin and then its argument prototype would still apply. */
27634#ifdef __cplusplus
27635extern "C"
27636#endif
27637char jpeg_read_header ();
27638int
27639main ()
27640{
27641return jpeg_read_header ();
27642 ;
27643 return 0;
27644}
27645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027646if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027647 ac_cv_lib_jpeg_jpeg_read_header=yes
27648else
cristy8b350f62009-11-15 23:12:43 +000027649 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027650fi
cristy8b350f62009-11-15 23:12:43 +000027651rm -f core conftest.err conftest.$ac_objext \
27652 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027653LIBS=$ac_check_lib_save_LIBS
27654fi
cristy8b350f62009-11-15 23:12:43 +000027655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027656$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027657if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027658 passed=`expr $passed + 1`
27659else
27660 failed=`expr $failed + 1`
27661fi
27662
27663
27664# Test for compatible JPEG library
27665if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027667$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027668if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027669 $as_echo_n "(cached) " >&6
27670else
cristy8b350f62009-11-15 23:12:43 +000027671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027672/* end confdefs.h. */
27673#include <stdio.h>
27674#include <stdlib.h>
27675#include <jpeglib.h>
27676
27677int
27678main ()
27679{
27680
27681#if JPEG_LIB_VERSION < 62
27682#error IJG JPEG library must be version 6b or newer!
27683#endif
27684return 0;
27685
27686 ;
27687 return 0;
27688}
27689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027690if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027691 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27692else
cristy8b350f62009-11-15 23:12:43 +000027693 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027694fi
cristy3ed852e2009-09-05 21:47:34 +000027695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27696fi
cristy8b350f62009-11-15 23:12:43 +000027697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027698$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27699fi
cristy8b350f62009-11-15 23:12:43 +000027700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027701$as_echo_n "checking if JPEG package is complete... " >&6; }
27702 if test $passed -gt 0; then
27703 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027705$as_echo "no -- some components failed test" >&6; }
27706 have_jpeg='no (failed tests)'
27707 else
27708 JPEG_LIBS='-ljpeg'
27709 LIBS="$JPEG_LIBS $LIBS"
27710
cristy8b350f62009-11-15 23:12:43 +000027711$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027712
cristy8b350f62009-11-15 23:12:43 +000027713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027714$as_echo "yes" >&6; }
27715 have_jpeg='yes'
27716 fi
27717 else
cristy8b350f62009-11-15 23:12:43 +000027718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027719$as_echo "no" >&6; }
27720 fi
27721fi
27722 if test "$have_jpeg" = 'yes'; then
27723 JPEG_DELEGATE_TRUE=
27724 JPEG_DELEGATE_FALSE='#'
27725else
27726 JPEG_DELEGATE_TRUE='#'
27727 JPEG_DELEGATE_FALSE=
27728fi
27729
27730
27731
27732
27733#
27734# Check for JPEG Version 2 delegate library.
27735#
27736
27737# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027738if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027739 withval=$with_jp2; with_jp2=$withval
27740else
27741 with_jp2='yes'
27742fi
27743
27744
27745if test "$with_jp2" != 'yes'; then
27746 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27747fi
27748
27749have_jp2='no'
27750JP2_LIBS=''
27751if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027753$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027755$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027757$as_echo "" >&6; }
27758 failed=0
27759 passed=0
cristy8b350f62009-11-15 23:12:43 +000027760 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27761if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027762 passed=`expr $passed + 1`
27763else
27764 failed=`expr $failed + 1`
27765fi
27766
27767
cristy8b350f62009-11-15 23:12:43 +000027768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027769$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027770if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027771 $as_echo_n "(cached) " >&6
27772else
27773 ac_check_lib_save_LIBS=$LIBS
27774LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027776/* end confdefs.h. */
27777
27778/* Override any GCC internal prototype to avoid an error.
27779 Use char because int might match the return type of a GCC
27780 builtin and then its argument prototype would still apply. */
27781#ifdef __cplusplus
27782extern "C"
27783#endif
27784char jas_stream_fopen ();
27785int
27786main ()
27787{
27788return jas_stream_fopen ();
27789 ;
27790 return 0;
27791}
27792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027793if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027794 ac_cv_lib_jasper_jas_stream_fopen=yes
27795else
cristy8b350f62009-11-15 23:12:43 +000027796 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027797fi
cristy8b350f62009-11-15 23:12:43 +000027798rm -f core conftest.err conftest.$ac_objext \
27799 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027800LIBS=$ac_check_lib_save_LIBS
27801fi
cristy8b350f62009-11-15 23:12:43 +000027802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027803$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027804if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027805 passed=`expr $passed + 1`
27806else
27807 failed=`expr $failed + 1`
27808fi
27809
cristy8b350f62009-11-15 23:12:43 +000027810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027811$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27812 if test $passed -gt 0; then
27813 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027815$as_echo "no -- some components failed test" >&6; }
27816 have_jp2='no (failed tests)'
27817 else
27818 JP2_LIBS='-ljasper'
27819 LIBS="$JP2_LIBS $LIBS"
27820
cristy8b350f62009-11-15 23:12:43 +000027821$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027822
cristy8b350f62009-11-15 23:12:43 +000027823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027824$as_echo "yes" >&6; }
27825 have_jp2='yes'
27826 fi
27827 else
cristy8b350f62009-11-15 23:12:43 +000027828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027829$as_echo "no" >&6; }
27830 fi
27831fi
27832 if test "$have_jp2" = 'yes'; then
27833 JP2_DELEGATE_TRUE=
27834 JP2_DELEGATE_FALSE='#'
27835else
27836 JP2_DELEGATE_TRUE='#'
27837 JP2_DELEGATE_FALSE=
27838fi
27839
27840
27841
27842
27843#
27844# Check for LCMS delegate library.
27845#
cristy71203402010-06-18 13:12:03 +000027846# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000027847
27848# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027849if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027850 withval=$with_lcms; with_lcms=$withval
27851else
27852 with_lcms='yes'
27853fi
27854
cristy71203402010-06-18 13:12:03 +000027855if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000027856 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27857fi
27858
cristy71203402010-06-18 13:12:03 +000027859# Disable LCMS2.
27860
27861# Check whether --with-lcms2 was given.
27862if test "${with_lcms2+set}" = set; then :
27863 withval=$with_lcms2; with_lcms2=$withval
27864else
27865 with_lcms2='yes'
27866fi
27867
27868if test "$with_lcms2" != 'yes' ; then
27869 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27870fi
27871
27872have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000027873LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000027874if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027876$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27878$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027880$as_echo "" >&6; }
27881 failed=0
27882 passed=0
27883 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027884
27885 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000027886 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27887if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27888 have_lcms_header='yes'
27889fi
27890
27891
27892 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000027893
27894$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27895
cristy71203402010-06-18 13:12:03 +000027896 passed=`expr $passed + 1`
27897 fi
27898
27899 # Check for <lcms2/lcms2.h)
27900 if test "$have_lcms_header" != 'yes'; then
27901 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27902if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027903 have_lcms_header='yes'
27904fi
27905
27906
cristy71203402010-06-18 13:12:03 +000027907 if test "$have_lcms_header" = 'yes'; then
27908 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000027909
cristy71203402010-06-18 13:12:03 +000027910$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000027911
cristy71203402010-06-18 13:12:03 +000027912 fi
cristyd09bcf92010-03-25 03:04:45 +000027913 fi
cristy71203402010-06-18 13:12:03 +000027914
27915 # Failed to find lcms header?
27916 if test "$have_lcms_header" != 'yes'; then
27917 failed=`expr $failed + 1`
27918 fi
27919
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27921$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27922if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000027923 $as_echo_n "(cached) " >&6
27924else
27925 ac_check_lib_save_LIBS=$LIBS
27926LIBS="-llcms2 $LIBS"
27927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27928/* end confdefs.h. */
27929
27930/* Override any GCC internal prototype to avoid an error.
27931 Use char because int might match the return type of a GCC
27932 builtin and then its argument prototype would still apply. */
27933#ifdef __cplusplus
27934extern "C"
27935#endif
cristy71203402010-06-18 13:12:03 +000027936char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027937int
27938main ()
27939{
cristy71203402010-06-18 13:12:03 +000027940return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027941 ;
27942 return 0;
27943}
27944_ACEOF
27945if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000027946 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000027947else
cristy71203402010-06-18 13:12:03 +000027948 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000027949fi
27950rm -f core conftest.err conftest.$ac_objext \
27951 conftest$ac_exeext conftest.$ac_ext
27952LIBS=$ac_check_lib_save_LIBS
27953fi
cristy71203402010-06-18 13:12:03 +000027954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27955$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27956if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027957 passed=`expr $passed + 1`
27958else
27959 failed=`expr $failed + 1`
27960fi
27961
cristy71203402010-06-18 13:12:03 +000027962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27963$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027964 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000027965 if test $failed -gt 0; then
27966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000027967$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000027968 have_lcms2='no (failed tests)'
27969 else
27970 LCMS_LIBS='-llcms2'
27971 LIBS="$LCMS_LIBS $LIBS"
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000027973$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000027974 have_lcms2='yes'
27975 fi
cristyd09bcf92010-03-25 03:04:45 +000027976 else
cristy71203402010-06-18 13:12:03 +000027977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000027978$as_echo "no" >&6; }
27979 fi
27980fi
27981
cristy71203402010-06-18 13:12:03 +000027982#
27983# Check for LCMS v1 (1.11 or later)
27984#
27985if test $have_lcms2 = 'yes'; then
27986 with_lcms='no'
27987fi
27988
27989have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000027990if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000027991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27992$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
27994$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27996$as_echo "" >&6; }
27997 failed=0
27998 passed=0
27999 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028000
28001 # Check for <lcms.h>
28002 if test "$have_lcms_header" != 'yes'; then
28003 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028004if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028005 have_lcms_header='yes'
28006fi
28007
28008
cristy71203402010-06-18 13:12:03 +000028009 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028010 passed=`expr $passed + 1`
28011
cristy8b350f62009-11-15 23:12:43 +000028012$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028013
cristy71203402010-06-18 13:12:03 +000028014 fi
28015 fi
28016
28017 # Check for <lcms/lcms.h>
28018 if test "$have_lcms_header" != 'yes'; then
28019 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028020if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028021 have_lcms_header='yes'
28022fi
28023
28024
cristy71203402010-06-18 13:12:03 +000028025 if test "$have_lcms_header" = 'yes'; then
28026 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028027
cristy8b350f62009-11-15 23:12:43 +000028028$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028029
cristy71203402010-06-18 13:12:03 +000028030 fi
cristy3ed852e2009-09-05 21:47:34 +000028031 fi
cristy71203402010-06-18 13:12:03 +000028032
28033 # Failed to find lcms header?
28034 if test "$have_lcms_header" != 'yes'; then
28035 failed=`expr $failed + 1`
28036 fi
28037
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28039$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28040if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028041 $as_echo_n "(cached) " >&6
28042else
28043 ac_check_lib_save_LIBS=$LIBS
28044LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028046/* end confdefs.h. */
28047
28048/* Override any GCC internal prototype to avoid an error.
28049 Use char because int might match the return type of a GCC
28050 builtin and then its argument prototype would still apply. */
28051#ifdef __cplusplus
28052extern "C"
28053#endif
cristy71203402010-06-18 13:12:03 +000028054char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028055int
28056main ()
28057{
cristy71203402010-06-18 13:12:03 +000028058return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028059 ;
28060 return 0;
28061}
28062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028063if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028064 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028065else
cristy71203402010-06-18 13:12:03 +000028066 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028067fi
cristy8b350f62009-11-15 23:12:43 +000028068rm -f core conftest.err conftest.$ac_objext \
28069 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028070LIBS=$ac_check_lib_save_LIBS
28071fi
cristy71203402010-06-18 13:12:03 +000028072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28073$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28074if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028075 passed=`expr $passed + 1`
28076else
28077 failed=`expr $failed + 1`
28078fi
28079
cristy8b350f62009-11-15 23:12:43 +000028080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028081$as_echo_n "checking if LCMS package is complete... " >&6; }
28082 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028083 if test $failed -gt 0; then
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028085$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028086 have_lcms='no (failed tests)'
28087 else
28088 LCMS_LIBS='-llcms'
28089 LIBS="$LCMS_LIBS $LIBS"
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028091$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028092 have_lcms='yes'
28093 fi
cristy3ed852e2009-09-05 21:47:34 +000028094 else
cristy71203402010-06-18 13:12:03 +000028095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028096$as_echo "no" >&6; }
28097 fi
28098fi
cristy71203402010-06-18 13:12:03 +000028099
28100 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028101 LCMS_DELEGATE_TRUE=
28102 LCMS_DELEGATE_FALSE='#'
28103else
28104 LCMS_DELEGATE_TRUE='#'
28105 LCMS_DELEGATE_FALSE=
28106fi
28107
cristy71203402010-06-18 13:12:03 +000028108if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28109
28110$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28111
28112fi
28113
cristy3ed852e2009-09-05 21:47:34 +000028114
28115
28116
28117#
28118# Check for the LQR (Liquid Rescale) delegate library.
28119#
28120
28121# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028122if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028123 withval=$with_lqr; with_lqr=$withval
28124else
28125 with_lqr='yes'
28126fi
28127
28128
28129if test "$with_lqr" != 'yes'; then
28130 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28131fi
28132
28133have_lqr='no'
28134LQR_CFLAGS=""
28135LQR_LIBS=""
28136LQR_PKG=""
28137if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028139$as_echo "-------------------------------------------------------------" >&6; }
28140
28141pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028143$as_echo_n "checking for LQR... " >&6; }
28144
28145if test -n "$LQR_CFLAGS"; then
28146 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28147 elif test -n "$PKG_CONFIG"; then
28148 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028149 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028150 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28151 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28153 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028154 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28155else
28156 pkg_failed=yes
28157fi
28158 else
28159 pkg_failed=untried
28160fi
28161if test -n "$LQR_LIBS"; then
28162 pkg_cv_LQR_LIBS="$LQR_LIBS"
28163 elif test -n "$PKG_CONFIG"; then
28164 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028165 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028166 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28167 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28169 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028170 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28171else
28172 pkg_failed=yes
28173fi
28174 else
28175 pkg_failed=untried
28176fi
28177
28178
28179
28180if test $pkg_failed = yes; then
28181
28182if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28183 _pkg_short_errors_supported=yes
28184else
28185 _pkg_short_errors_supported=no
28186fi
28187 if test $_pkg_short_errors_supported = yes; then
28188 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28189 else
28190 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28191 fi
28192 # Put the nasty error message in config.log where it belongs
28193 echo "$LQR_PKG_ERRORS" >&5
28194
cristy8b350f62009-11-15 23:12:43 +000028195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028196$as_echo "no" >&6; }
28197 have_lqr=no
28198elif test $pkg_failed = untried; then
28199 have_lqr=no
28200else
28201 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28202 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028204$as_echo "yes" >&6; }
28205 have_lqr=yes
28206fi
cristy8b350f62009-11-15 23:12:43 +000028207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028208$as_echo "" >&6; }
28209fi
28210
28211if test "$have_lqr" = 'yes'; then
28212
cristy8b350f62009-11-15 23:12:43 +000028213$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028214
28215 CFLAGS="$LQR_CFLAGS $CFLAGS"
28216fi
28217
28218 if test "$have_lqr" = 'yes'; then
28219 LQR_DELEGATE_TRUE=
28220 LQR_DELEGATE_FALSE='#'
28221else
28222 LQR_DELEGATE_TRUE='#'
28223 LQR_DELEGATE_FALSE=
28224fi
28225
28226
28227
28228
28229
28230#
28231# Check for the OpenEXR delegate library.
28232#
28233
28234# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028235if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028236 withval=$with_openexr; with_openexr=$withval
28237else
28238 with_openexr='yes'
28239fi
28240
28241
28242if test "$with_openexr" != 'yes'; then
28243 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28244fi
28245
28246have_openexr='no'
28247OPENEXR_CFLAGS=""
28248OPENEXR_LIBS=""
28249OPENEXR_PKG=""
28250if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028252$as_echo "-------------------------------------------------------------" >&6; }
28253
28254pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028256$as_echo_n "checking for OPENEXR... " >&6; }
28257
28258if test -n "$OPENEXR_CFLAGS"; then
28259 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28260 elif test -n "$PKG_CONFIG"; then
28261 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028262 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028263 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28264 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28266 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028267 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28268else
28269 pkg_failed=yes
28270fi
28271 else
28272 pkg_failed=untried
28273fi
28274if test -n "$OPENEXR_LIBS"; then
28275 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28276 elif test -n "$PKG_CONFIG"; then
28277 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028278 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028279 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28280 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28282 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028283 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28284else
28285 pkg_failed=yes
28286fi
28287 else
28288 pkg_failed=untried
28289fi
28290
28291
28292
28293if test $pkg_failed = yes; then
28294
28295if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28296 _pkg_short_errors_supported=yes
28297else
28298 _pkg_short_errors_supported=no
28299fi
28300 if test $_pkg_short_errors_supported = yes; then
28301 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28302 else
28303 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28304 fi
28305 # Put the nasty error message in config.log where it belongs
28306 echo "$OPENEXR_PKG_ERRORS" >&5
28307
cristy8b350f62009-11-15 23:12:43 +000028308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028309$as_echo "no" >&6; }
28310 have_openexr=no
28311elif test $pkg_failed = untried; then
28312 have_openexr=no
28313else
28314 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28315 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028317$as_echo "yes" >&6; }
28318 have_openexr=yes
28319fi
cristy8b350f62009-11-15 23:12:43 +000028320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028321$as_echo "" >&6; }
28322fi
28323
28324if test "$have_openexr" = 'yes'; then
28325
cristy8b350f62009-11-15 23:12:43 +000028326$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028327
28328 if test "$with_modules" = 'no'; then
28329 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28330 fi
28331fi
28332
28333 if test "$have_openexr" = 'yes'; then
28334 OPENEXR_DELEGATE_TRUE=
28335 OPENEXR_DELEGATE_FALSE='#'
28336else
28337 OPENEXR_DELEGATE_TRUE='#'
28338 OPENEXR_DELEGATE_FALSE=
28339fi
28340
28341
28342
28343
28344
28345#
28346# Check for PNG delegate library.
28347#
28348
28349# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028350if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028351 withval=$with_png; with_png=$withval
28352else
28353 with_png='yes'
28354fi
28355
28356
28357if test "$with_png" != 'yes'; then
28358 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28359fi
28360
28361have_png='no'
28362PNG_LIBS=''
28363if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028365$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028367$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028369$as_echo "" >&6; }
28370 failed=0
28371 passed=0
cristy8b350f62009-11-15 23:12:43 +000028372 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28373if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028374 passed=`expr $passed + 1`
28375else
28376 failed=`expr $failed + 1`
28377fi
28378
28379
cristy8b350f62009-11-15 23:12:43 +000028380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028381$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028382if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028383 $as_echo_n "(cached) " >&6
28384else
28385 ac_check_lib_save_LIBS=$LIBS
28386LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028388/* end confdefs.h. */
28389
28390/* Override any GCC internal prototype to avoid an error.
28391 Use char because int might match the return type of a GCC
28392 builtin and then its argument prototype would still apply. */
28393#ifdef __cplusplus
28394extern "C"
28395#endif
28396char png_get_io_ptr ();
28397int
28398main ()
28399{
28400return png_get_io_ptr ();
28401 ;
28402 return 0;
28403}
28404_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028405if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028406 ac_cv_lib_png_png_get_io_ptr=yes
28407else
cristy8b350f62009-11-15 23:12:43 +000028408 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028409fi
cristy8b350f62009-11-15 23:12:43 +000028410rm -f core conftest.err conftest.$ac_objext \
28411 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028412LIBS=$ac_check_lib_save_LIBS
28413fi
cristy8b350f62009-11-15 23:12:43 +000028414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028415$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028416if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028417 passed=`expr $passed + 1`
28418else
28419 failed=`expr $failed + 1`
28420fi
28421
cristy8b350f62009-11-15 23:12:43 +000028422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028423$as_echo_n "checking if PNG package is complete... " >&6; }
28424 if test $passed -gt 0; then
28425 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028427$as_echo "no -- some components failed test" >&6; }
28428 have_png='no (failed tests)'
28429 else
28430 PNG_LIBS='-lpng'
28431 LIBS="$PNG_LIBS $LIBS"
28432
cristy8b350f62009-11-15 23:12:43 +000028433$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028434
cristy8b350f62009-11-15 23:12:43 +000028435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028436$as_echo "yes" >&6; }
28437 have_png='yes'
28438 fi
28439 else
cristy8b350f62009-11-15 23:12:43 +000028440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028441$as_echo "no" >&6; }
28442 fi
28443fi
28444 if test "$have_png" = 'yes'; then
28445 PNG_DELEGATE_TRUE=
28446 PNG_DELEGATE_FALSE='#'
28447else
28448 PNG_DELEGATE_TRUE='#'
28449 PNG_DELEGATE_FALSE=
28450fi
28451
28452
28453
28454
28455#
28456# Check for RSVG delegate library.
28457#
28458
28459# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028460if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028461 withval=$with_rsvg; with_rsvg=$withval
28462else
28463 with_rsvg=$have_x
28464fi
28465
28466
28467if test "$with_rsvg" != 'yes'; then
28468 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28469fi
28470
28471have_rsvg='no'
28472have_cairo='no'
28473RSVG_CFLAGS=""
28474RSVG_LIBS=""
28475RSVG_PKG=""
28476if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028478$as_echo "-------------------------------------------------------------" >&6; }
28479
28480pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028482$as_echo_n "checking for RSVG... " >&6; }
28483
28484if test -n "$RSVG_CFLAGS"; then
28485 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28486 elif test -n "$PKG_CONFIG"; then
28487 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028488 { { $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 +000028489 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28490 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28492 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028493 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28494else
28495 pkg_failed=yes
28496fi
28497 else
28498 pkg_failed=untried
28499fi
28500if test -n "$RSVG_LIBS"; then
28501 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28502 elif test -n "$PKG_CONFIG"; then
28503 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028504 { { $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 +000028505 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28506 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28508 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028509 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28510else
28511 pkg_failed=yes
28512fi
28513 else
28514 pkg_failed=untried
28515fi
28516
28517
28518
28519if test $pkg_failed = yes; then
28520
28521if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28522 _pkg_short_errors_supported=yes
28523else
28524 _pkg_short_errors_supported=no
28525fi
28526 if test $_pkg_short_errors_supported = yes; then
28527 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28528 else
28529 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28530 fi
28531 # Put the nasty error message in config.log where it belongs
28532 echo "$RSVG_PKG_ERRORS" >&5
28533
cristy8b350f62009-11-15 23:12:43 +000028534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028535$as_echo "no" >&6; }
28536 have_rsvg=no
28537elif test $pkg_failed = untried; then
28538 have_rsvg=no
28539else
28540 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28541 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028543$as_echo "yes" >&6; }
28544 have_rsvg=yes
28545fi
cristy8b350f62009-11-15 23:12:43 +000028546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028547$as_echo "" >&6; }
28548
28549pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028551$as_echo_n "checking for CAIRO_SVG... " >&6; }
28552
28553if test -n "$CAIRO_SVG_CFLAGS"; then
28554 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28555 elif test -n "$PKG_CONFIG"; then
28556 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028557 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028558 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28559 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28561 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028562 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28563else
28564 pkg_failed=yes
28565fi
28566 else
28567 pkg_failed=untried
28568fi
28569if test -n "$CAIRO_SVG_LIBS"; then
28570 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28571 elif test -n "$PKG_CONFIG"; then
28572 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028574 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28575 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28577 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028578 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28579else
28580 pkg_failed=yes
28581fi
28582 else
28583 pkg_failed=untried
28584fi
28585
28586
28587
28588if test $pkg_failed = yes; then
28589
28590if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28591 _pkg_short_errors_supported=yes
28592else
28593 _pkg_short_errors_supported=no
28594fi
28595 if test $_pkg_short_errors_supported = yes; then
28596 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28597 else
28598 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28599 fi
28600 # Put the nasty error message in config.log where it belongs
28601 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28602
cristy8b350f62009-11-15 23:12:43 +000028603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028604$as_echo "no" >&6; }
28605 have_cairo=no
28606elif test $pkg_failed = untried; then
28607 have_cairo=no
28608else
28609 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28610 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028612$as_echo "yes" >&6; }
28613 have_cairo=yes
28614fi
cristy8b350f62009-11-15 23:12:43 +000028615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028616$as_echo "" >&6; }
28617fi
28618
28619if test "$have_rsvg" = 'yes'; then
28620
cristy8b350f62009-11-15 23:12:43 +000028621$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028622
28623 if test "$with_modules" = 'no'; then
28624 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28625 fi
28626fi
28627
28628if test "$have_cairo" = 'yes'; then
28629
cristy8b350f62009-11-15 23:12:43 +000028630$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028631
28632 if test "$with_modules" = 'no'; then
28633 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28634 fi
28635fi
28636
28637 if test "$have_rsvg" = 'yes'; then
28638 RSVG_DELEGATE_TRUE=
28639 RSVG_DELEGATE_FALSE='#'
28640else
28641 RSVG_DELEGATE_TRUE='#'
28642 RSVG_DELEGATE_FALSE=
28643fi
28644
28645 if test "$have_cairo" = 'yes'; then
28646 CAIRO_DELEGATE_TRUE=
28647 CAIRO_DELEGATE_FALSE='#'
28648else
28649 CAIRO_DELEGATE_TRUE='#'
28650 CAIRO_DELEGATE_FALSE=
28651fi
28652
28653
28654
28655
28656
28657#
28658# Check for TIFF delegate library.
28659#
28660
28661# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028662if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028663 withval=$with_tiff; with_tiff=$withval
28664else
28665 with_tiff='yes'
28666fi
28667
28668
28669if test "$with_tiff" != 'yes'; then
28670 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28671fi
28672
28673have_tiff='no'
28674TIFF_LIBS=''
28675if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028677$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028679$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028681$as_echo "" >&6; }
28682 failed=0
28683 passed=0
cristy8b350f62009-11-15 23:12:43 +000028684 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28685if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028686 passed=`expr $passed + 1`
28687else
28688 failed=`expr $failed + 1`
28689fi
28690
28691
cristy8b350f62009-11-15 23:12:43 +000028692 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28693if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028694 passed=`expr $passed + 1`
28695else
28696 failed=`expr $failed + 1`
28697fi
28698
28699
cristy8b350f62009-11-15 23:12:43 +000028700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028701$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028702if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028703 $as_echo_n "(cached) " >&6
28704else
28705 ac_check_lib_save_LIBS=$LIBS
28706LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028708/* end confdefs.h. */
28709
28710/* Override any GCC internal prototype to avoid an error.
28711 Use char because int might match the return type of a GCC
28712 builtin and then its argument prototype would still apply. */
28713#ifdef __cplusplus
28714extern "C"
28715#endif
28716char TIFFOpen ();
28717int
28718main ()
28719{
28720return TIFFOpen ();
28721 ;
28722 return 0;
28723}
28724_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028725if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028726 ac_cv_lib_tiff_TIFFOpen=yes
28727else
cristy8b350f62009-11-15 23:12:43 +000028728 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028729fi
cristy8b350f62009-11-15 23:12:43 +000028730rm -f core conftest.err conftest.$ac_objext \
28731 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028732LIBS=$ac_check_lib_save_LIBS
28733fi
cristy8b350f62009-11-15 23:12:43 +000028734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028735$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028736if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028737 passed=`expr $passed + 1`
28738else
28739 failed=`expr $failed + 1`
28740fi
28741
cristy8b350f62009-11-15 23:12:43 +000028742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028743$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028744if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028745 $as_echo_n "(cached) " >&6
28746else
28747 ac_check_lib_save_LIBS=$LIBS
28748LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028750/* end confdefs.h. */
28751
28752/* Override any GCC internal prototype to avoid an error.
28753 Use char because int might match the return type of a GCC
28754 builtin and then its argument prototype would still apply. */
28755#ifdef __cplusplus
28756extern "C"
28757#endif
28758char TIFFClientOpen ();
28759int
28760main ()
28761{
28762return TIFFClientOpen ();
28763 ;
28764 return 0;
28765}
28766_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028767if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028768 ac_cv_lib_tiff_TIFFClientOpen=yes
28769else
cristy8b350f62009-11-15 23:12:43 +000028770 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028771fi
cristy8b350f62009-11-15 23:12:43 +000028772rm -f core conftest.err conftest.$ac_objext \
28773 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028774LIBS=$ac_check_lib_save_LIBS
28775fi
cristy8b350f62009-11-15 23:12:43 +000028776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028777$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028778if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028779 passed=`expr $passed + 1`
28780else
28781 failed=`expr $failed + 1`
28782fi
28783
cristy8b350f62009-11-15 23:12:43 +000028784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028785$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028786if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028787 $as_echo_n "(cached) " >&6
28788else
28789 ac_check_lib_save_LIBS=$LIBS
28790LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028792/* end confdefs.h. */
28793
28794/* Override any GCC internal prototype to avoid an error.
28795 Use char because int might match the return type of a GCC
28796 builtin and then its argument prototype would still apply. */
28797#ifdef __cplusplus
28798extern "C"
28799#endif
28800char TIFFIsByteSwapped ();
28801int
28802main ()
28803{
28804return TIFFIsByteSwapped ();
28805 ;
28806 return 0;
28807}
28808_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028809if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028810 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28811else
cristy8b350f62009-11-15 23:12:43 +000028812 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028813fi
cristy8b350f62009-11-15 23:12:43 +000028814rm -f core conftest.err conftest.$ac_objext \
28815 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028816LIBS=$ac_check_lib_save_LIBS
28817fi
cristy8b350f62009-11-15 23:12:43 +000028818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028819$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028820if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028821 passed=`expr $passed + 1`
28822else
28823 failed=`expr $failed + 1`
28824fi
28825
cristy8b350f62009-11-15 23:12:43 +000028826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028827$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028828if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028829 $as_echo_n "(cached) " >&6
28830else
28831 ac_check_lib_save_LIBS=$LIBS
28832LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028834/* end confdefs.h. */
28835
28836/* Override any GCC internal prototype to avoid an error.
28837 Use char because int might match the return type of a GCC
28838 builtin and then its argument prototype would still apply. */
28839#ifdef __cplusplus
28840extern "C"
28841#endif
28842char TIFFReadRGBATile ();
28843int
28844main ()
28845{
28846return TIFFReadRGBATile ();
28847 ;
28848 return 0;
28849}
28850_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028851if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028852 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28853else
cristy8b350f62009-11-15 23:12:43 +000028854 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028855fi
cristy8b350f62009-11-15 23:12:43 +000028856rm -f core conftest.err conftest.$ac_objext \
28857 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028858LIBS=$ac_check_lib_save_LIBS
28859fi
cristy8b350f62009-11-15 23:12:43 +000028860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028861$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028862if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028863 passed=`expr $passed + 1`
28864else
28865 failed=`expr $failed + 1`
28866fi
28867
cristy8b350f62009-11-15 23:12:43 +000028868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028869$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028870if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028871 $as_echo_n "(cached) " >&6
28872else
28873 ac_check_lib_save_LIBS=$LIBS
28874LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028876/* end confdefs.h. */
28877
28878/* Override any GCC internal prototype to avoid an error.
28879 Use char because int might match the return type of a GCC
28880 builtin and then its argument prototype would still apply. */
28881#ifdef __cplusplus
28882extern "C"
28883#endif
28884char TIFFReadRGBAStrip ();
28885int
28886main ()
28887{
28888return TIFFReadRGBAStrip ();
28889 ;
28890 return 0;
28891}
28892_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028893if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028894 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28895else
cristy8b350f62009-11-15 23:12:43 +000028896 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028897fi
cristy8b350f62009-11-15 23:12:43 +000028898rm -f core conftest.err conftest.$ac_objext \
28899 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028900LIBS=$ac_check_lib_save_LIBS
28901fi
cristy8b350f62009-11-15 23:12:43 +000028902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028903$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028904if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028905 passed=`expr $passed + 1`
28906else
28907 failed=`expr $failed + 1`
28908fi
28909
cristy8b350f62009-11-15 23:12:43 +000028910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028911$as_echo_n "checking if TIFF package is complete... " >&6; }
28912 if test $passed -gt 0; then
28913 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028915$as_echo "no -- some components failed test" >&6; }
28916 have_tiff='no (failed tests)'
28917 else
28918 TIFF_LIBS='-ltiff'
28919 LIBS="$TIFF_LIBS $LIBS"
28920
cristy8b350f62009-11-15 23:12:43 +000028921$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028922
cristy8b350f62009-11-15 23:12:43 +000028923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028924$as_echo "yes" >&6; }
28925 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028926 for ac_header in tiffconf.h
28927do :
28928 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28929if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028930 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028931#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028932_ACEOF
28933
28934fi
28935
28936done
28937
cristy8b350f62009-11-15 23:12:43 +000028938 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028939 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28940 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028941do :
28942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28943ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28944eval as_val=\$$as_ac_var
28945 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028946 cat >>confdefs.h <<_ACEOF
28947#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28948_ACEOF
28949
28950fi
28951done
28952
28953 fi
28954 else
cristy8b350f62009-11-15 23:12:43 +000028955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028956$as_echo "no" >&6; }
28957 fi
28958fi
28959 if test "$have_tiff" = 'yes'; then
28960 TIFF_DELEGATE_TRUE=
28961 TIFF_DELEGATE_FALSE='#'
28962else
28963 TIFF_DELEGATE_TRUE='#'
28964 TIFF_DELEGATE_FALSE=
28965fi
28966
28967
28968
28969
28970#
28971# Set Windows font directory.
28972#
28973
28974# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028975if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028976 withval=$with_windows_font_dir; with_windows_font_dir=$withval
28977else
28978 with_windows_font_dir=''
28979fi
28980
28981if test "$with_windows_font_dir" != '' ; then
28982 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
28983fi
28984
28985
28986#
28987# Check for WMF delegate library.
28988#
28989
28990# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000028991if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028992 withval=$with_wmf; with_wmf=$withval
28993else
cristy8d63d1d2010-01-06 20:38:37 +000028994 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000028995fi
28996
28997
28998if test "$with_wmf" != 'yes'; then
28999 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29000fi
29001
29002have_wmf='no'
29003WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029004if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029006$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029008$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029010$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029011 failed=0
29012 passed=0
29013 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29014if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29015 passed=`expr $passed + 1`
29016else
29017 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029018fi
29019
29020
cristy735e8942010-04-02 20:32:57 +000029021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29022$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29023if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029024 $as_echo_n "(cached) " >&6
29025else
29026 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029027LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029029/* end confdefs.h. */
29030
29031/* Override any GCC internal prototype to avoid an error.
29032 Use char because int might match the return type of a GCC
29033 builtin and then its argument prototype would still apply. */
29034#ifdef __cplusplus
29035extern "C"
29036#endif
cristy735e8942010-04-02 20:32:57 +000029037char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029038int
29039main ()
29040{
cristy735e8942010-04-02 20:32:57 +000029041return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029042 ;
29043 return 0;
29044}
29045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029046if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029047 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029048else
cristy735e8942010-04-02 20:32:57 +000029049 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029050fi
cristy8b350f62009-11-15 23:12:43 +000029051rm -f core conftest.err conftest.$ac_objext \
29052 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029053LIBS=$ac_check_lib_save_LIBS
29054fi
cristy735e8942010-04-02 20:32:57 +000029055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29056$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29057if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29058 passed=`expr $passed + 1`
29059else
29060 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029061fi
29062
cristy735e8942010-04-02 20:32:57 +000029063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29064$as_echo_n "checking if WMF package is complete... " >&6; }
29065 if test $passed -gt 0; then
29066 if test $failed -gt 0; then
29067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29068$as_echo "no -- some components failed test" >&6; }
29069 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029070 else
cristy735e8942010-04-02 20:32:57 +000029071 WMF_LIBS='-lwmf -lwmflite'
29072 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029073
cristy8b350f62009-11-15 23:12:43 +000029074$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029075
cristy735e8942010-04-02 20:32:57 +000029076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029077$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029078 have_wmf='yes'
29079 fi
cristy3ed852e2009-09-05 21:47:34 +000029080 else
cristy8b350f62009-11-15 23:12:43 +000029081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029082$as_echo "no" >&6; }
29083 fi
29084fi
29085 if test "$have_wmf" = 'yes'; then
29086 WMF_DELEGATE_TRUE=
29087 WMF_DELEGATE_FALSE='#'
29088else
29089 WMF_DELEGATE_TRUE='#'
29090 WMF_DELEGATE_FALSE=
29091fi
29092
29093
29094
29095
29096
cristy735e8942010-04-02 20:32:57 +000029097
cristy3ed852e2009-09-05 21:47:34 +000029098#
29099# Check for XML delegate library.
29100#
29101
29102# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029103if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029104 withval=$with_xml; with_xml=$withval
29105else
29106 with_xml=$have_x
29107fi
29108
29109
29110if test "$with_xml" != 'yes' ; then
29111 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29112fi
29113
29114have_xml='no'
29115XML_LIBS=''
29116if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029118$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029120$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029122$as_echo "" >&6; }
29123 PERSIST_LDFLAGS=$LDFLAGS
29124 PERSIST_CPPFLAGS=$CPPFLAGS
29125 xml2_config=''
29126 for ac_prog in xml2-config
29127do
29128 # Extract the first word of "$ac_prog", so it can be a program name with args.
29129set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029131$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029132if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029133 $as_echo_n "(cached) " >&6
29134else
29135 if test -n "$xml2_config"; then
29136 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29137else
29138as_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_prog_xml2_config="$ac_prog"
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
29153fi
29154fi
29155xml2_config=$ac_cv_prog_xml2_config
29156if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029158$as_echo "$xml2_config" >&6; }
29159else
cristy8b350f62009-11-15 23:12:43 +000029160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029161$as_echo "no" >&6; }
29162fi
29163
29164
29165 test -n "$xml2_config" && break
29166done
29167 if test -n "$xml2_config"; then
29168 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29169 # the shared library installed under /usr/lib, whereas the package
29170 # installs itself under $prefix/libxml and $prefix/lib.
29171 xml2_prefix=`xml2-config --prefix`
29172 if test -d "${xml2_prefix}/include/libxml2"; then
29173 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29174 fi
29175 if test "${xml2_prefix}" != '/usr'; then
29176 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29177 fi
29178 fi
29179 failed=0
29180 passed=0
cristy8b350f62009-11-15 23:12:43 +000029181 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29182if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029183 passed=`expr $passed + 1`
29184else
29185 failed=`expr $failed + 1`
29186fi
29187
29188
cristy8b350f62009-11-15 23:12:43 +000029189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029190$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029191if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029192 $as_echo_n "(cached) " >&6
29193else
29194 ac_check_lib_save_LIBS=$LIBS
29195LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029197/* end confdefs.h. */
29198
29199/* Override any GCC internal prototype to avoid an error.
29200 Use char because int might match the return type of a GCC
29201 builtin and then its argument prototype would still apply. */
29202#ifdef __cplusplus
29203extern "C"
29204#endif
29205char xmlParseExternalEntity ();
29206int
29207main ()
29208{
29209return xmlParseExternalEntity ();
29210 ;
29211 return 0;
29212}
29213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029214if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029215 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29216else
cristy8b350f62009-11-15 23:12:43 +000029217 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029218fi
cristy8b350f62009-11-15 23:12:43 +000029219rm -f core conftest.err conftest.$ac_objext \
29220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029221LIBS=$ac_check_lib_save_LIBS
29222fi
cristy8b350f62009-11-15 23:12:43 +000029223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029224$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029225if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029226 passed=`expr $passed + 1`
29227else
29228 failed=`expr $failed + 1`
29229fi
29230
cristy8b350f62009-11-15 23:12:43 +000029231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029232$as_echo_n "checking if XML package is complete... " >&6; }
29233 if test $passed -gt 0; then
29234 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029236$as_echo "no -- some components failed test" >&6; }
29237 have_xml='no (failed tests)'
29238 LDFLAGS="$PERSIST_LDFLAGS"
29239 CPPFLAGS="$PERSIST_CPPFLAGS"
29240 else
29241 XML_LIBS='-lxml2'
29242 LIBS="$XML_LIBS $LIBS"
29243
cristy8b350f62009-11-15 23:12:43 +000029244$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029245
cristy8b350f62009-11-15 23:12:43 +000029246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029247$as_echo "yes" >&6; }
29248 have_xml='yes'
29249 fi
29250 else
cristy8b350f62009-11-15 23:12:43 +000029251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029252$as_echo "no" >&6; }
29253 fi
29254fi
29255 if test "$have_xml" = 'yes'; then
29256 XML_DELEGATE_TRUE=
29257 XML_DELEGATE_FALSE='#'
29258else
29259 XML_DELEGATE_TRUE='#'
29260 XML_DELEGATE_FALSE=
29261fi
29262
29263
29264
29265
29266# Substitute compiler name to build/link PerlMagick
29267#
29268
29269
29270#
29271# Configure install Paths
29272#
29273
29274# Subdirectory under lib to place ImageMagick lib files
29275LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29276
29277cat >>confdefs.h <<_ACEOF
29278#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29279_ACEOF
29280
29281
29282# Path to ImageMagick bin directory
29283EXECUTABLE_PATH="${BIN_DIR}"
29284DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29285case "${build_os}" in
29286 mingw* )
29287 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29288 ;;
29289esac
29290
29291cat >>confdefs.h <<_ACEOF
29292#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29293_ACEOF
29294
29295
29296
29297# Path to ImageMagick lib
29298LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29299DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29300case "${build_os}" in
29301 mingw* )
29302 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29303 ;;
29304esac
29305
29306cat >>confdefs.h <<_ACEOF
29307#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29308_ACEOF
29309
29310
29311
29312# Subdirectory under lib to place ImageMagick configuration files
29313CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29314
29315cat >>confdefs.h <<_ACEOF
29316#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29317_ACEOF
29318
29319CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29320DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29321case "${build_os}" in
29322 mingw* )
29323 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29324 ;;
29325esac
29326
29327cat >>confdefs.h <<_ACEOF
29328#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29329_ACEOF
29330
29331
29332
29333#
29334# Subdirectory under lib to place ImageMagick coder module files
29335CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29336
29337cat >>confdefs.h <<_ACEOF
29338#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29339_ACEOF
29340
29341CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29342DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29343case "${build_os}" in
29344 mingw* )
29345 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29346 ;;
29347esac
29348
29349cat >>confdefs.h <<_ACEOF
29350#define CODER_PATH "$DEFINE_CODER_PATH"
29351_ACEOF
29352
29353
29354
29355#
29356# Subdirectory under lib to place ImageMagick filter module files
29357FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29358
29359cat >>confdefs.h <<_ACEOF
29360#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29361_ACEOF
29362
29363FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29364DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29365case "${build_os}" in
29366 mingw* )
29367 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29368 ;;
29369esac
29370
29371cat >>confdefs.h <<_ACEOF
29372#define FILTER_PATH "$DEFINE_FILTER_PATH"
29373_ACEOF
29374
29375
29376
29377#
29378# Path to ImageMagick documentation files
29379DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29380DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29381DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29382case "${build_os}" in
29383 mingw* )
29384 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29385 ;;
29386esac
29387
29388cat >>confdefs.h <<_ACEOF
29389#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29390_ACEOF
29391
29392
29393
29394#
29395# Path to ImageMagick share files
29396SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29397SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29398DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29399case "${build_os}" in
29400 mingw* )
29401 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29402 ;;
29403esac
29404
29405cat >>confdefs.h <<_ACEOF
29406#define SHARE_PATH "$DEFINE_SHARE_PATH"
29407_ACEOF
29408
29409
29410
29411# Subdirectory under share to place ImageMagick configuration files
29412SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29413
29414cat >>confdefs.h <<_ACEOF
29415#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29416_ACEOF
29417
29418SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29419DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29420case "${build_os}" in
29421 mingw* )
29422 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29423 ;;
29424esac
29425
29426cat >>confdefs.h <<_ACEOF
29427#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29428_ACEOF
29429
29430
29431
29432#
29433# program_transform_name is formed for use in a Makefile, so create a
29434# modified version for use in a shell script.
29435configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29436
29437# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029439$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029441$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029443$as_echo "" >&6; }
29444AutotraceDecodeDelegateDefault='autotrace'
29445AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029446BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029447BZIPDelegateDefault='bzip2'
29448BrowseDelegateDefault='xdg-open'
29449CGMDecodeDelegateDefault='ralcgm'
29450CatDelegateDefault='cat'
29451DNGDecodeDelegateDefault='ufraw-batch'
29452GVCDecodeDelegateDefault='dot'
29453DVIDecodeDelegateDefault='dvips'
29454EchoDelegateDefault='echo'
29455EditorDelegateDefault='xterm'
29456FIGDecodeDelegateDefault='fig2dev'
29457ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29458DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29459MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29460GnuplotDecodeDelegateDefault='gnuplot'
29461HDRDecodeDelegateDefault='ra_pfm'
29462HPGLDecodeDelegateDefault='hp2xx'
29463HTMLDecodeDelegateDefault='html2ps'
29464ILBMDecodeDelegateDefault='ilbmtoppm'
29465ILBMEncodeDelegateDefault='ppmtoilbm'
29466LPDelegateDefault='lp'
29467LPRDelegateDefault='lpr'
29468LZWDecodeDelegateDefault='uncompress'
29469LZWEncodeDelegateDefault='compress'
29470LaunchDelegateDefault='gimp'
29471MANDelegateDefault='groff'
29472MPEGDecodeDelegateDefault='ffmpeg'
29473MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029474MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029475MVDelegateDefault='mv'
29476PCLDelegateDefault='pcl6'
29477PGPDecodeDelegateDefault='pgpv'
29478POVDelegateDefault='povray'
29479if test "$native_win32_build" = 'yes'; then
29480 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029481elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029482 PSDelegateDefault='gsc'
29483else
29484 PSDelegateDefault='gs'
29485fi
29486RLEEncodeDelegateDefault='rawtorle'
29487RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029488RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029489SCANDecodeDelegateDefault='scanimage'
29490TXTDelegateDefault='enscript'
29491WMFDecodeDelegateDefault='wmf2eps'
29492WWWDecodeDelegateDefault='curl'
29493XPSDelegateDefault='gxps'
29494ZipDelegateDefault='gzip'
29495
29496# Search for delegates
29497# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29498set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029500$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029501if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029502 $as_echo_n "(cached) " >&6
29503else
29504 case $AutotraceDecodeDelegate in
29505 [\\/]* | ?:[\\/]*)
29506 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29507 ;;
29508 *)
29509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29510for as_dir in $PATH
29511do
29512 IFS=$as_save_IFS
29513 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29516 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029518 break 2
29519 fi
29520done
cristy8b350f62009-11-15 23:12:43 +000029521 done
cristy3ed852e2009-09-05 21:47:34 +000029522IFS=$as_save_IFS
29523
29524 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29525 ;;
29526esac
29527fi
29528AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29529if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029531$as_echo "$AutotraceDecodeDelegate" >&6; }
29532else
cristy8b350f62009-11-15 23:12:43 +000029533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029534$as_echo "no" >&6; }
29535fi
29536
29537
29538# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29539set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029541$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029542if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029543 $as_echo_n "(cached) " >&6
29544else
29545 case $AVIDecodeDelegate in
29546 [\\/]* | ?:[\\/]*)
29547 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29548 ;;
29549 *)
29550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29551for as_dir in $PATH
29552do
29553 IFS=$as_save_IFS
29554 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029555 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29557 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029559 break 2
29560 fi
29561done
cristy8b350f62009-11-15 23:12:43 +000029562 done
cristy3ed852e2009-09-05 21:47:34 +000029563IFS=$as_save_IFS
29564
29565 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29566 ;;
29567esac
29568fi
29569AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29570if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029572$as_echo "$AVIDecodeDelegate" >&6; }
29573else
cristy8b350f62009-11-15 23:12:43 +000029574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029575$as_echo "no" >&6; }
29576fi
29577
29578
29579# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29580set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029582$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029583if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029584 $as_echo_n "(cached) " >&6
29585else
29586 case $BlenderDecodeDelegate in
29587 [\\/]* | ?:[\\/]*)
29588 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29589 ;;
29590 *)
29591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29592for as_dir in $PATH
29593do
29594 IFS=$as_save_IFS
29595 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029596 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29598 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029600 break 2
29601 fi
29602done
cristy8b350f62009-11-15 23:12:43 +000029603 done
cristy3ed852e2009-09-05 21:47:34 +000029604IFS=$as_save_IFS
29605
29606 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29607 ;;
29608esac
29609fi
29610BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29611if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029613$as_echo "$BlenderDecodeDelegate" >&6; }
29614else
cristy8b350f62009-11-15 23:12:43 +000029615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029616$as_echo "no" >&6; }
29617fi
29618
29619
29620# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29621set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029623$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029624if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029625 $as_echo_n "(cached) " >&6
29626else
29627 case $BZIPDelegate in
29628 [\\/]* | ?:[\\/]*)
29629 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29630 ;;
29631 *)
29632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29633for as_dir in $PATH
29634do
29635 IFS=$as_save_IFS
29636 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029637 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29639 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029641 break 2
29642 fi
29643done
cristy8b350f62009-11-15 23:12:43 +000029644 done
cristy3ed852e2009-09-05 21:47:34 +000029645IFS=$as_save_IFS
29646
29647 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29648 ;;
29649esac
29650fi
29651BZIPDelegate=$ac_cv_path_BZIPDelegate
29652if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029654$as_echo "$BZIPDelegate" >&6; }
29655else
cristy8b350f62009-11-15 23:12:43 +000029656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029657$as_echo "no" >&6; }
29658fi
29659
29660
29661# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29662set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029664$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029665if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029666 $as_echo_n "(cached) " >&6
29667else
29668 case $BrowseDelegate in
29669 [\\/]* | ?:[\\/]*)
29670 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29671 ;;
29672 *)
29673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29674for as_dir in $PATH
29675do
29676 IFS=$as_save_IFS
29677 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029678 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29680 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029682 break 2
29683 fi
29684done
cristy8b350f62009-11-15 23:12:43 +000029685 done
cristy3ed852e2009-09-05 21:47:34 +000029686IFS=$as_save_IFS
29687
29688 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29689 ;;
29690esac
29691fi
29692BrowseDelegate=$ac_cv_path_BrowseDelegate
29693if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029695$as_echo "$BrowseDelegate" >&6; }
29696else
cristy8b350f62009-11-15 23:12:43 +000029697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029698$as_echo "no" >&6; }
29699fi
29700
29701
29702# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29703set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029705$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029706if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029707 $as_echo_n "(cached) " >&6
29708else
29709 case $CGMDecodeDelegate in
29710 [\\/]* | ?:[\\/]*)
29711 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29712 ;;
29713 *)
29714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29715for as_dir in $PATH
29716do
29717 IFS=$as_save_IFS
29718 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029719 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29721 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029723 break 2
29724 fi
29725done
cristy8b350f62009-11-15 23:12:43 +000029726 done
cristy3ed852e2009-09-05 21:47:34 +000029727IFS=$as_save_IFS
29728
29729 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29730 ;;
29731esac
29732fi
29733CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29734if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029736$as_echo "$CGMDecodeDelegate" >&6; }
29737else
cristy8b350f62009-11-15 23:12:43 +000029738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029739$as_echo "no" >&6; }
29740fi
29741
29742
29743# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29744set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029746$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029747if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029748 $as_echo_n "(cached) " >&6
29749else
29750 case $CatDelegate in
29751 [\\/]* | ?:[\\/]*)
29752 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29753 ;;
29754 *)
29755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29756for as_dir in $PATH
29757do
29758 IFS=$as_save_IFS
29759 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029760 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29762 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029764 break 2
29765 fi
29766done
cristy8b350f62009-11-15 23:12:43 +000029767 done
cristy3ed852e2009-09-05 21:47:34 +000029768IFS=$as_save_IFS
29769
29770 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29771 ;;
29772esac
29773fi
29774CatDelegate=$ac_cv_path_CatDelegate
29775if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029777$as_echo "$CatDelegate" >&6; }
29778else
cristy8b350f62009-11-15 23:12:43 +000029779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029780$as_echo "no" >&6; }
29781fi
29782
29783
29784# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29785set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029787$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029788if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029789 $as_echo_n "(cached) " >&6
29790else
29791 case $DNGDecodeDelegate in
29792 [\\/]* | ?:[\\/]*)
29793 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29794 ;;
29795 *)
29796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29797for as_dir in $PATH
29798do
29799 IFS=$as_save_IFS
29800 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029801 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29803 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029805 break 2
29806 fi
29807done
cristy8b350f62009-11-15 23:12:43 +000029808 done
cristy3ed852e2009-09-05 21:47:34 +000029809IFS=$as_save_IFS
29810
29811 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29812 ;;
29813esac
29814fi
29815DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29816if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029818$as_echo "$DNGDecodeDelegate" >&6; }
29819else
cristy8b350f62009-11-15 23:12:43 +000029820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029821$as_echo "no" >&6; }
29822fi
29823
29824
29825# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29826set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029828$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029829if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029830 $as_echo_n "(cached) " >&6
29831else
29832 case $GVCDecodeDelegate in
29833 [\\/]* | ?:[\\/]*)
29834 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29835 ;;
29836 *)
29837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29838for as_dir in $PATH
29839do
29840 IFS=$as_save_IFS
29841 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029842 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29844 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029846 break 2
29847 fi
29848done
cristy8b350f62009-11-15 23:12:43 +000029849 done
cristy3ed852e2009-09-05 21:47:34 +000029850IFS=$as_save_IFS
29851
29852 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29853 ;;
29854esac
29855fi
29856GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29857if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029859$as_echo "$GVCDecodeDelegate" >&6; }
29860else
cristy8b350f62009-11-15 23:12:43 +000029861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029862$as_echo "no" >&6; }
29863fi
29864
29865
29866# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29867set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029869$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029870if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029871 $as_echo_n "(cached) " >&6
29872else
29873 case $DVIDecodeDelegate in
29874 [\\/]* | ?:[\\/]*)
29875 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29876 ;;
29877 *)
29878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29879for as_dir in $PATH
29880do
29881 IFS=$as_save_IFS
29882 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29885 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029887 break 2
29888 fi
29889done
cristy8b350f62009-11-15 23:12:43 +000029890 done
cristy3ed852e2009-09-05 21:47:34 +000029891IFS=$as_save_IFS
29892
29893 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29894 ;;
29895esac
29896fi
29897DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29898if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029900$as_echo "$DVIDecodeDelegate" >&6; }
29901else
cristy8b350f62009-11-15 23:12:43 +000029902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029903$as_echo "no" >&6; }
29904fi
29905
29906
29907# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29908set dummy "$EchoDelegateDefault"; 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_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029912 $as_echo_n "(cached) " >&6
29913else
29914 case $EchoDelegate in
29915 [\\/]* | ?:[\\/]*)
29916 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29917 ;;
29918 *)
29919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29920for as_dir in $PATH
29921do
29922 IFS=$as_save_IFS
29923 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029924 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29926 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029928 break 2
29929 fi
29930done
cristy8b350f62009-11-15 23:12:43 +000029931 done
cristy3ed852e2009-09-05 21:47:34 +000029932IFS=$as_save_IFS
29933
29934 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29935 ;;
29936esac
29937fi
29938EchoDelegate=$ac_cv_path_EchoDelegate
29939if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029941$as_echo "$EchoDelegate" >&6; }
29942else
cristy8b350f62009-11-15 23:12:43 +000029943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029944$as_echo "no" >&6; }
29945fi
29946
29947
29948# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29949set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029951$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029952if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029953 $as_echo_n "(cached) " >&6
29954else
29955 case $EditorDelegate in
29956 [\\/]* | ?:[\\/]*)
29957 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29958 ;;
29959 *)
29960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29961for as_dir in $PATH
29962do
29963 IFS=$as_save_IFS
29964 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029965 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29967 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029969 break 2
29970 fi
29971done
cristy8b350f62009-11-15 23:12:43 +000029972 done
cristy3ed852e2009-09-05 21:47:34 +000029973IFS=$as_save_IFS
29974
29975 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
29976 ;;
29977esac
29978fi
29979EditorDelegate=$ac_cv_path_EditorDelegate
29980if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029982$as_echo "$EditorDelegate" >&6; }
29983else
cristy8b350f62009-11-15 23:12:43 +000029984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029985$as_echo "no" >&6; }
29986fi
29987
29988
29989# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
29990set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029992$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029993if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029994 $as_echo_n "(cached) " >&6
29995else
29996 case $FIGDecodeDelegate in
29997 [\\/]* | ?:[\\/]*)
29998 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
29999 ;;
30000 *)
30001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30002for as_dir in $PATH
30003do
30004 IFS=$as_save_IFS
30005 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030006 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30008 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030010 break 2
30011 fi
30012done
cristy8b350f62009-11-15 23:12:43 +000030013 done
cristy3ed852e2009-09-05 21:47:34 +000030014IFS=$as_save_IFS
30015
30016 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30017 ;;
30018esac
30019fi
30020FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30021if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030023$as_echo "$FIGDecodeDelegate" >&6; }
30024else
cristy8b350f62009-11-15 23:12:43 +000030025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030026$as_echo "no" >&6; }
30027fi
30028
30029
30030# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30031set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030033$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030034if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030035 $as_echo_n "(cached) " >&6
30036else
30037 case $ConvertDelegate in
30038 [\\/]* | ?:[\\/]*)
30039 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30040 ;;
30041 *)
30042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30043for as_dir in $PATH
30044do
30045 IFS=$as_save_IFS
30046 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30049 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030051 break 2
30052 fi
30053done
cristy8b350f62009-11-15 23:12:43 +000030054 done
cristy3ed852e2009-09-05 21:47:34 +000030055IFS=$as_save_IFS
30056
30057 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30058 ;;
30059esac
30060fi
30061ConvertDelegate=$ac_cv_path_ConvertDelegate
30062if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030064$as_echo "$ConvertDelegate" >&6; }
30065else
cristy8b350f62009-11-15 23:12:43 +000030066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030067$as_echo "no" >&6; }
30068fi
30069
30070
30071# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30072set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030074$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030075if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030076 $as_echo_n "(cached) " >&6
30077else
30078 case $DisplayDelegate in
30079 [\\/]* | ?:[\\/]*)
30080 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30081 ;;
30082 *)
30083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30084for as_dir in $PATH
30085do
30086 IFS=$as_save_IFS
30087 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030088 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30090 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030092 break 2
30093 fi
30094done
cristy8b350f62009-11-15 23:12:43 +000030095 done
cristy3ed852e2009-09-05 21:47:34 +000030096IFS=$as_save_IFS
30097
30098 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30099 ;;
30100esac
30101fi
30102DisplayDelegate=$ac_cv_path_DisplayDelegate
30103if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030105$as_echo "$DisplayDelegate" >&6; }
30106else
cristy8b350f62009-11-15 23:12:43 +000030107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030108$as_echo "no" >&6; }
30109fi
30110
30111
30112# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30113set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030115$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030116if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030117 $as_echo_n "(cached) " >&6
30118else
30119 case $MogrifyDelegate in
30120 [\\/]* | ?:[\\/]*)
30121 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30122 ;;
30123 *)
30124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30125for as_dir in $PATH
30126do
30127 IFS=$as_save_IFS
30128 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030129 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30131 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030133 break 2
30134 fi
30135done
cristy8b350f62009-11-15 23:12:43 +000030136 done
cristy3ed852e2009-09-05 21:47:34 +000030137IFS=$as_save_IFS
30138
30139 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30140 ;;
30141esac
30142fi
30143MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30144if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030146$as_echo "$MogrifyDelegate" >&6; }
30147else
cristy8b350f62009-11-15 23:12:43 +000030148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030149$as_echo "no" >&6; }
30150fi
30151
30152
30153# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30154set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030156$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030157if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030158 $as_echo_n "(cached) " >&6
30159else
30160 case $GnuplotDecodeDelegate in
30161 [\\/]* | ?:[\\/]*)
30162 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30163 ;;
30164 *)
30165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30166for as_dir in $PATH
30167do
30168 IFS=$as_save_IFS
30169 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30172 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030174 break 2
30175 fi
30176done
cristy8b350f62009-11-15 23:12:43 +000030177 done
cristy3ed852e2009-09-05 21:47:34 +000030178IFS=$as_save_IFS
30179
30180 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30181 ;;
30182esac
30183fi
30184GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30185if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030187$as_echo "$GnuplotDecodeDelegate" >&6; }
30188else
cristy8b350f62009-11-15 23:12:43 +000030189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030190$as_echo "no" >&6; }
30191fi
30192
30193
30194# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30195set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030197$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030198if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030199 $as_echo_n "(cached) " >&6
30200else
30201 case $HDRDecodeDelegate in
30202 [\\/]* | ?:[\\/]*)
30203 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30204 ;;
30205 *)
30206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30207for as_dir in $PATH
30208do
30209 IFS=$as_save_IFS
30210 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030211 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30213 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030215 break 2
30216 fi
30217done
cristy8b350f62009-11-15 23:12:43 +000030218 done
cristy3ed852e2009-09-05 21:47:34 +000030219IFS=$as_save_IFS
30220
30221 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30222 ;;
30223esac
30224fi
30225HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30226if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030228$as_echo "$HDRDecodeDelegate" >&6; }
30229else
cristy8b350f62009-11-15 23:12:43 +000030230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030231$as_echo "no" >&6; }
30232fi
30233
30234
30235# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30236set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030238$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030239if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030240 $as_echo_n "(cached) " >&6
30241else
30242 case $HPGLDecodeDelegate in
30243 [\\/]* | ?:[\\/]*)
30244 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30245 ;;
30246 *)
30247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30248for as_dir in $PATH
30249do
30250 IFS=$as_save_IFS
30251 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030252 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30254 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030256 break 2
30257 fi
30258done
cristy8b350f62009-11-15 23:12:43 +000030259 done
cristy3ed852e2009-09-05 21:47:34 +000030260IFS=$as_save_IFS
30261
30262 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30263 ;;
30264esac
30265fi
30266HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30267if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030269$as_echo "$HPGLDecodeDelegate" >&6; }
30270else
cristy8b350f62009-11-15 23:12:43 +000030271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030272$as_echo "no" >&6; }
30273fi
30274
30275
30276# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30277set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030279$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030280if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030281 $as_echo_n "(cached) " >&6
30282else
30283 case $HTMLDecodeDelegate in
30284 [\\/]* | ?:[\\/]*)
30285 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30286 ;;
30287 *)
30288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30289for as_dir in $PATH
30290do
30291 IFS=$as_save_IFS
30292 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030293 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30295 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030297 break 2
30298 fi
30299done
cristy8b350f62009-11-15 23:12:43 +000030300 done
cristy3ed852e2009-09-05 21:47:34 +000030301IFS=$as_save_IFS
30302
30303 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30304 ;;
30305esac
30306fi
30307HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30308if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030310$as_echo "$HTMLDecodeDelegate" >&6; }
30311else
cristy8b350f62009-11-15 23:12:43 +000030312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030313$as_echo "no" >&6; }
30314fi
30315
30316
30317# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30318set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030320$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030321if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030322 $as_echo_n "(cached) " >&6
30323else
30324 case $ILBMDecodeDelegate in
30325 [\\/]* | ?:[\\/]*)
30326 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30327 ;;
30328 *)
30329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30330for as_dir in $PATH
30331do
30332 IFS=$as_save_IFS
30333 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30336 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030338 break 2
30339 fi
30340done
cristy8b350f62009-11-15 23:12:43 +000030341 done
cristy3ed852e2009-09-05 21:47:34 +000030342IFS=$as_save_IFS
30343
30344 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30345 ;;
30346esac
30347fi
30348ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30349if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030351$as_echo "$ILBMDecodeDelegate" >&6; }
30352else
cristy8b350f62009-11-15 23:12:43 +000030353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030354$as_echo "no" >&6; }
30355fi
30356
30357
30358# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30359set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030361$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030362if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030363 $as_echo_n "(cached) " >&6
30364else
30365 case $ILBMEncodeDelegate in
30366 [\\/]* | ?:[\\/]*)
30367 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30368 ;;
30369 *)
30370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30371for as_dir in $PATH
30372do
30373 IFS=$as_save_IFS
30374 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030375 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30377 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030379 break 2
30380 fi
30381done
cristy8b350f62009-11-15 23:12:43 +000030382 done
cristy3ed852e2009-09-05 21:47:34 +000030383IFS=$as_save_IFS
30384
30385 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30386 ;;
30387esac
30388fi
30389ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30390if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030392$as_echo "$ILBMEncodeDelegate" >&6; }
30393else
cristy8b350f62009-11-15 23:12:43 +000030394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030395$as_echo "no" >&6; }
30396fi
30397
30398
30399# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30400set dummy "$LPDelegateDefault"; 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_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030404 $as_echo_n "(cached) " >&6
30405else
30406 case $LPDelegate in
30407 [\\/]* | ?:[\\/]*)
30408 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30409 ;;
30410 *)
30411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30412for as_dir in $PATH
30413do
30414 IFS=$as_save_IFS
30415 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030416 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30418 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030420 break 2
30421 fi
30422done
cristy8b350f62009-11-15 23:12:43 +000030423 done
cristy3ed852e2009-09-05 21:47:34 +000030424IFS=$as_save_IFS
30425
30426 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30427 ;;
30428esac
30429fi
30430LPDelegate=$ac_cv_path_LPDelegate
30431if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030433$as_echo "$LPDelegate" >&6; }
30434else
cristy8b350f62009-11-15 23:12:43 +000030435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030436$as_echo "no" >&6; }
30437fi
30438
30439
30440# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30441set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030443$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030444if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030445 $as_echo_n "(cached) " >&6
30446else
30447 case $LPRDelegate in
30448 [\\/]* | ?:[\\/]*)
30449 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30450 ;;
30451 *)
30452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30453for as_dir in $PATH
30454do
30455 IFS=$as_save_IFS
30456 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030457 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30459 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030461 break 2
30462 fi
30463done
cristy8b350f62009-11-15 23:12:43 +000030464 done
cristy3ed852e2009-09-05 21:47:34 +000030465IFS=$as_save_IFS
30466
30467 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30468 ;;
30469esac
30470fi
30471LPRDelegate=$ac_cv_path_LPRDelegate
30472if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030474$as_echo "$LPRDelegate" >&6; }
30475else
cristy8b350f62009-11-15 23:12:43 +000030476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030477$as_echo "no" >&6; }
30478fi
30479
30480
30481# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30482set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030484$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030485if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030486 $as_echo_n "(cached) " >&6
30487else
30488 case $LZWDecodeDelegate in
30489 [\\/]* | ?:[\\/]*)
30490 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30491 ;;
30492 *)
30493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30494for as_dir in $PATH
30495do
30496 IFS=$as_save_IFS
30497 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030498 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30500 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030502 break 2
30503 fi
30504done
cristy8b350f62009-11-15 23:12:43 +000030505 done
cristy3ed852e2009-09-05 21:47:34 +000030506IFS=$as_save_IFS
30507
30508 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30509 ;;
30510esac
30511fi
30512LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30513if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030515$as_echo "$LZWDecodeDelegate" >&6; }
30516else
cristy8b350f62009-11-15 23:12:43 +000030517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030518$as_echo "no" >&6; }
30519fi
30520
30521
30522# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30523set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030525$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030526if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030527 $as_echo_n "(cached) " >&6
30528else
30529 case $LZWEncodeDelegate in
30530 [\\/]* | ?:[\\/]*)
30531 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30532 ;;
30533 *)
30534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30535for as_dir in $PATH
30536do
30537 IFS=$as_save_IFS
30538 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30541 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030543 break 2
30544 fi
30545done
cristy8b350f62009-11-15 23:12:43 +000030546 done
cristy3ed852e2009-09-05 21:47:34 +000030547IFS=$as_save_IFS
30548
30549 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30550 ;;
30551esac
30552fi
30553LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30554if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030556$as_echo "$LZWEncodeDelegate" >&6; }
30557else
cristy8b350f62009-11-15 23:12:43 +000030558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030559$as_echo "no" >&6; }
30560fi
30561
30562
30563# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30564set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030566$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030567if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030568 $as_echo_n "(cached) " >&6
30569else
30570 case $LaunchDelegate in
30571 [\\/]* | ?:[\\/]*)
30572 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30573 ;;
30574 *)
30575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30576for as_dir in $PATH
30577do
30578 IFS=$as_save_IFS
30579 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030580 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30582 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030584 break 2
30585 fi
30586done
cristy8b350f62009-11-15 23:12:43 +000030587 done
cristy3ed852e2009-09-05 21:47:34 +000030588IFS=$as_save_IFS
30589
30590 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30591 ;;
30592esac
30593fi
30594LaunchDelegate=$ac_cv_path_LaunchDelegate
30595if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030597$as_echo "$LaunchDelegate" >&6; }
30598else
cristy8b350f62009-11-15 23:12:43 +000030599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030600$as_echo "no" >&6; }
30601fi
30602
30603
30604# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30605set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030607$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030608if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030609 $as_echo_n "(cached) " >&6
30610else
30611 case $MANDelegate in
30612 [\\/]* | ?:[\\/]*)
30613 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30614 ;;
30615 *)
30616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30617for as_dir in $PATH
30618do
30619 IFS=$as_save_IFS
30620 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030621 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30623 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030625 break 2
30626 fi
30627done
cristy8b350f62009-11-15 23:12:43 +000030628 done
cristy3ed852e2009-09-05 21:47:34 +000030629IFS=$as_save_IFS
30630
30631 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30632 ;;
30633esac
30634fi
30635MANDelegate=$ac_cv_path_MANDelegate
30636if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030638$as_echo "$MANDelegate" >&6; }
30639else
cristy8b350f62009-11-15 23:12:43 +000030640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030641$as_echo "no" >&6; }
30642fi
30643
30644
30645# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30646set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030648$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030649if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030650 $as_echo_n "(cached) " >&6
30651else
30652 case $MPEGDecodeDelegate in
30653 [\\/]* | ?:[\\/]*)
30654 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30655 ;;
30656 *)
30657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30658for as_dir in $PATH
30659do
30660 IFS=$as_save_IFS
30661 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030662 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30664 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030666 break 2
30667 fi
30668done
cristy8b350f62009-11-15 23:12:43 +000030669 done
cristy3ed852e2009-09-05 21:47:34 +000030670IFS=$as_save_IFS
30671
30672 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30673 ;;
30674esac
30675fi
30676MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30677if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030679$as_echo "$MPEGDecodeDelegate" >&6; }
30680else
cristy8b350f62009-11-15 23:12:43 +000030681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030682$as_echo "no" >&6; }
30683fi
30684
30685
30686# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30687set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030689$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030690if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030691 $as_echo_n "(cached) " >&6
30692else
30693 case $MPEGEncodeDelegate in
30694 [\\/]* | ?:[\\/]*)
30695 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30696 ;;
30697 *)
30698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30699for as_dir in $PATH
30700do
30701 IFS=$as_save_IFS
30702 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30705 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030707 break 2
30708 fi
30709done
cristy8b350f62009-11-15 23:12:43 +000030710 done
cristy3ed852e2009-09-05 21:47:34 +000030711IFS=$as_save_IFS
30712
30713 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30714 ;;
30715esac
30716fi
30717MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30718if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030720$as_echo "$MPEGEncodeDelegate" >&6; }
30721else
cristy8b350f62009-11-15 23:12:43 +000030722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030723$as_echo "no" >&6; }
30724fi
30725
30726
cristy935c86e2010-06-05 23:50:07 +000030727# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30728set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30730$as_echo_n "checking for $ac_word... " >&6; }
30731if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30732 $as_echo_n "(cached) " >&6
30733else
30734 case $MrSIDDecodeDelegate in
30735 [\\/]* | ?:[\\/]*)
30736 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30737 ;;
30738 *)
30739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30740for as_dir in $PATH
30741do
30742 IFS=$as_save_IFS
30743 test -z "$as_dir" && as_dir=.
30744 for ac_exec_ext in '' $ac_executable_extensions; do
30745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30746 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30748 break 2
30749 fi
30750done
30751 done
30752IFS=$as_save_IFS
30753
30754 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30755 ;;
30756esac
30757fi
30758MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30759if test -n "$MrSIDDecodeDelegate"; then
30760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30761$as_echo "$MrSIDDecodeDelegate" >&6; }
30762else
30763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30764$as_echo "no" >&6; }
30765fi
30766
30767
cristy3ed852e2009-09-05 21:47:34 +000030768# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30769set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030771$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030772if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030773 $as_echo_n "(cached) " >&6
30774else
30775 case $MVDelegate in
30776 [\\/]* | ?:[\\/]*)
30777 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30778 ;;
30779 *)
30780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30781for as_dir in $PATH
30782do
30783 IFS=$as_save_IFS
30784 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030785 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30787 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030789 break 2
30790 fi
30791done
cristy8b350f62009-11-15 23:12:43 +000030792 done
cristy3ed852e2009-09-05 21:47:34 +000030793IFS=$as_save_IFS
30794
30795 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30796 ;;
30797esac
30798fi
30799MVDelegate=$ac_cv_path_MVDelegate
30800if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030802$as_echo "$MVDelegate" >&6; }
30803else
cristy8b350f62009-11-15 23:12:43 +000030804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030805$as_echo "no" >&6; }
30806fi
30807
30808
30809# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30810set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030812$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030813if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030814 $as_echo_n "(cached) " >&6
30815else
30816 case $PCLDelegate in
30817 [\\/]* | ?:[\\/]*)
30818 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30819 ;;
30820 *)
30821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30822for as_dir in $PATH
30823do
30824 IFS=$as_save_IFS
30825 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30828 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030830 break 2
30831 fi
30832done
cristy8b350f62009-11-15 23:12:43 +000030833 done
cristy3ed852e2009-09-05 21:47:34 +000030834IFS=$as_save_IFS
30835
30836 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30837 ;;
30838esac
30839fi
30840PCLDelegate=$ac_cv_path_PCLDelegate
30841if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030843$as_echo "$PCLDelegate" >&6; }
30844else
cristy8b350f62009-11-15 23:12:43 +000030845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030846$as_echo "no" >&6; }
30847fi
30848
30849
30850# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30851set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030853$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030854if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030855 $as_echo_n "(cached) " >&6
30856else
30857 case $PGPDecodeDelegate in
30858 [\\/]* | ?:[\\/]*)
30859 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30860 ;;
30861 *)
30862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30863for as_dir in $PATH
30864do
30865 IFS=$as_save_IFS
30866 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030867 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30869 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030871 break 2
30872 fi
30873done
cristy8b350f62009-11-15 23:12:43 +000030874 done
cristy3ed852e2009-09-05 21:47:34 +000030875IFS=$as_save_IFS
30876
30877 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30878 ;;
30879esac
30880fi
30881PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30882if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030884$as_echo "$PGPDecodeDelegate" >&6; }
30885else
cristy8b350f62009-11-15 23:12:43 +000030886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030887$as_echo "no" >&6; }
30888fi
30889
30890
30891# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30892set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030894$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030895if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030896 $as_echo_n "(cached) " >&6
30897else
30898 case $POVDelegate in
30899 [\\/]* | ?:[\\/]*)
30900 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30901 ;;
30902 *)
30903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30904for as_dir in $PATH
30905do
30906 IFS=$as_save_IFS
30907 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030908 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30910 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030912 break 2
30913 fi
30914done
cristy8b350f62009-11-15 23:12:43 +000030915 done
cristy3ed852e2009-09-05 21:47:34 +000030916IFS=$as_save_IFS
30917
30918 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30919 ;;
30920esac
30921fi
30922POVDelegate=$ac_cv_path_POVDelegate
30923if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030925$as_echo "$POVDelegate" >&6; }
30926else
cristy8b350f62009-11-15 23:12:43 +000030927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030928$as_echo "no" >&6; }
30929fi
30930
30931
30932for ac_prog in gsx gsc "$PSDelegateDefault"
30933do
30934 # Extract the first word of "$ac_prog", so it can be a program name with args.
30935set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030937$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030938if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030939 $as_echo_n "(cached) " >&6
30940else
30941 case $PSDelegate in
30942 [\\/]* | ?:[\\/]*)
30943 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30944 ;;
30945 *)
30946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30947for as_dir in $PATH
30948do
30949 IFS=$as_save_IFS
30950 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030951 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30953 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030955 break 2
30956 fi
30957done
cristy8b350f62009-11-15 23:12:43 +000030958 done
cristy3ed852e2009-09-05 21:47:34 +000030959IFS=$as_save_IFS
30960
30961 ;;
30962esac
30963fi
30964PSDelegate=$ac_cv_path_PSDelegate
30965if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030967$as_echo "$PSDelegate" >&6; }
30968else
cristy8b350f62009-11-15 23:12:43 +000030969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030970$as_echo "no" >&6; }
30971fi
30972
30973
30974 test -n "$PSDelegate" && break
30975done
30976test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
30977
30978# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
30979set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030981$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030982if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030983 $as_echo_n "(cached) " >&6
30984else
30985 case $RLEEncodeDelegate in
30986 [\\/]* | ?:[\\/]*)
30987 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
30988 ;;
30989 *)
30990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30991for as_dir in $PATH
30992do
30993 IFS=$as_save_IFS
30994 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030995 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30997 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030999 break 2
31000 fi
31001done
cristy8b350f62009-11-15 23:12:43 +000031002 done
cristy3ed852e2009-09-05 21:47:34 +000031003IFS=$as_save_IFS
31004
31005 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31006 ;;
31007esac
31008fi
31009RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31010if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031012$as_echo "$RLEEncodeDelegate" >&6; }
31013else
cristy8b350f62009-11-15 23:12:43 +000031014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031015$as_echo "no" >&6; }
31016fi
31017
31018
31019# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31020set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031022$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031023if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031024 $as_echo_n "(cached) " >&6
31025else
31026 case $RMDelegate in
31027 [\\/]* | ?:[\\/]*)
31028 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31029 ;;
31030 *)
31031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31032for as_dir in $PATH
31033do
31034 IFS=$as_save_IFS
31035 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031036 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31038 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031040 break 2
31041 fi
31042done
cristy8b350f62009-11-15 23:12:43 +000031043 done
cristy3ed852e2009-09-05 21:47:34 +000031044IFS=$as_save_IFS
31045
31046 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31047 ;;
31048esac
31049fi
31050RMDelegate=$ac_cv_path_RMDelegate
31051if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031053$as_echo "$RMDelegate" >&6; }
31054else
cristy8b350f62009-11-15 23:12:43 +000031055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031056$as_echo "no" >&6; }
31057fi
31058
31059
cristy4689cf02010-02-17 21:15:45 +000031060# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31061set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31063$as_echo_n "checking for $ac_word... " >&6; }
31064if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31065 $as_echo_n "(cached) " >&6
31066else
31067 case $RSVGDecodeDelegate in
31068 [\\/]* | ?:[\\/]*)
31069 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31070 ;;
31071 *)
31072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31073for as_dir in $PATH
31074do
31075 IFS=$as_save_IFS
31076 test -z "$as_dir" && as_dir=.
31077 for ac_exec_ext in '' $ac_executable_extensions; do
31078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31079 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31081 break 2
31082 fi
31083done
31084 done
31085IFS=$as_save_IFS
31086
31087 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31088 ;;
31089esac
31090fi
31091RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31092if test -n "$RSVGDecodeDelegate"; then
31093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31094$as_echo "$RSVGDecodeDelegate" >&6; }
31095else
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31097$as_echo "no" >&6; }
31098fi
31099
31100
cristy3ed852e2009-09-05 21:47:34 +000031101# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31102set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031104$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031105if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031106 $as_echo_n "(cached) " >&6
31107else
31108 case $SCANDecodeDelegate in
31109 [\\/]* | ?:[\\/]*)
31110 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31111 ;;
31112 *)
31113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31114for as_dir in $PATH
31115do
31116 IFS=$as_save_IFS
31117 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031118 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31120 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031122 break 2
31123 fi
31124done
cristy8b350f62009-11-15 23:12:43 +000031125 done
cristy3ed852e2009-09-05 21:47:34 +000031126IFS=$as_save_IFS
31127
31128 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31129 ;;
31130esac
31131fi
31132SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31133if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031135$as_echo "$SCANDecodeDelegate" >&6; }
31136else
cristy8b350f62009-11-15 23:12:43 +000031137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031138$as_echo "no" >&6; }
31139fi
31140
31141
31142# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31143set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031145$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031146if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031147 $as_echo_n "(cached) " >&6
31148else
31149 case $TXTDelegate in
31150 [\\/]* | ?:[\\/]*)
31151 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31152 ;;
31153 *)
31154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31155for as_dir in $PATH
31156do
31157 IFS=$as_save_IFS
31158 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031159 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31161 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031163 break 2
31164 fi
31165done
cristy8b350f62009-11-15 23:12:43 +000031166 done
cristy3ed852e2009-09-05 21:47:34 +000031167IFS=$as_save_IFS
31168
31169 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31170 ;;
31171esac
31172fi
31173TXTDelegate=$ac_cv_path_TXTDelegate
31174if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031176$as_echo "$TXTDelegate" >&6; }
31177else
cristy8b350f62009-11-15 23:12:43 +000031178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031179$as_echo "no" >&6; }
31180fi
31181
31182
31183# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31184set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031186$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031187if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031188 $as_echo_n "(cached) " >&6
31189else
31190 case $WMFDecodeDelegate in
31191 [\\/]* | ?:[\\/]*)
31192 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31193 ;;
31194 *)
31195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31196for as_dir in $PATH
31197do
31198 IFS=$as_save_IFS
31199 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031200 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31202 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031204 break 2
31205 fi
31206done
cristy8b350f62009-11-15 23:12:43 +000031207 done
cristy3ed852e2009-09-05 21:47:34 +000031208IFS=$as_save_IFS
31209
31210 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31211 ;;
31212esac
31213fi
31214WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31215if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031217$as_echo "$WMFDecodeDelegate" >&6; }
31218else
cristy8b350f62009-11-15 23:12:43 +000031219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031220$as_echo "no" >&6; }
31221fi
31222
31223
31224# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31225set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031227$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031228if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031229 $as_echo_n "(cached) " >&6
31230else
31231 case $WWWDecodeDelegate in
31232 [\\/]* | ?:[\\/]*)
31233 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31234 ;;
31235 *)
31236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31237for as_dir in $PATH
31238do
31239 IFS=$as_save_IFS
31240 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031241 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31243 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031245 break 2
31246 fi
31247done
cristy8b350f62009-11-15 23:12:43 +000031248 done
cristy3ed852e2009-09-05 21:47:34 +000031249IFS=$as_save_IFS
31250
31251 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31252 ;;
31253esac
31254fi
31255WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31256if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031258$as_echo "$WWWDecodeDelegate" >&6; }
31259else
cristy8b350f62009-11-15 23:12:43 +000031260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031261$as_echo "no" >&6; }
31262fi
31263
31264
31265# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31266set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031268$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031269if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031270 $as_echo_n "(cached) " >&6
31271else
31272 case $XPSDelegate in
31273 [\\/]* | ?:[\\/]*)
31274 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31275 ;;
31276 *)
31277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31278for as_dir in $PATH
31279do
31280 IFS=$as_save_IFS
31281 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031282 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31284 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031286 break 2
31287 fi
31288done
cristy8b350f62009-11-15 23:12:43 +000031289 done
cristy3ed852e2009-09-05 21:47:34 +000031290IFS=$as_save_IFS
31291
31292 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31293 ;;
31294esac
31295fi
31296XPSDelegate=$ac_cv_path_XPSDelegate
31297if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031299$as_echo "$XPSDelegate" >&6; }
31300else
cristy8b350f62009-11-15 23:12:43 +000031301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031302$as_echo "no" >&6; }
31303fi
31304
31305
31306# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31307set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031309$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031310if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031311 $as_echo_n "(cached) " >&6
31312else
31313 case $ZipDelegate in
31314 [\\/]* | ?:[\\/]*)
31315 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31316 ;;
31317 *)
31318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31319for as_dir in $PATH
31320do
31321 IFS=$as_save_IFS
31322 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31325 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031327 break 2
31328 fi
31329done
cristy8b350f62009-11-15 23:12:43 +000031330 done
cristy3ed852e2009-09-05 21:47:34 +000031331IFS=$as_save_IFS
31332
31333 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31334 ;;
31335esac
31336fi
31337ZipDelegate=$ac_cv_path_ZipDelegate
31338if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031340$as_echo "$ZipDelegate" >&6; }
31341else
cristy8b350f62009-11-15 23:12:43 +000031342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031343$as_echo "no" >&6; }
31344fi
31345
31346
31347
31348# Prefer lpr to lp; lp needs options tacked on.
31349if test "$LPRDelegate" != no; then
31350 PrintDelegate="$LPRDelegate"
31351else
31352 PrintDelegate="$LPDelegate -c -s"
31353fi
31354
31355
31356# Installed ImageMagick utiltity paths
31357ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31358DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31359MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31360
31361# Set delegate booleans
31362have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31363have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31364have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31365have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31366have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31367have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031368have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031369have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31370have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31371have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31372have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31373have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31374
31375#
31376# Test for font directories
31377#
31378type_include_files=''
31379
cristy430a7312010-01-21 20:44:04 +000031380# Dejavu fonts.
31381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31382$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31383dejavu_font_dir=''
31384if test "${with_dejavu_font_dir}" != 'default'; then
31385 dejavu_font_dir="${with_dejavu_font_dir}/"
31386else
31387 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31388 if test -f "${font_dir}DejaVuSerif.ttf"; then
31389 dejavu_font_dir="${font_dir}"
31390 break 1
31391 fi
31392 done
31393fi
31394if test "${dejavu_font_dir}x" != 'x'; then
31395 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31397$as_echo "$dejavu_font_dir" >&6; }
31398else
31399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31400$as_echo "not found!" >&6; };
31401fi
31402
31403
cristy3ed852e2009-09-05 21:47:34 +000031404# Windows
31405windows_font_dir=''
31406if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31407 windows_font_dir="${with_windows_font_dir}/"
31408fi
cristy430a7312010-01-21 20:44:04 +000031409if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031410 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31411 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31412 fi
31413 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31414 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31415 fi
31416 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31417 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31418 fi
31419fi
cristy430a7312010-01-21 20:44:04 +000031420if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031421 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31422fi
31423
31424
31425# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031427$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31428ghostscript_font_dir=''
31429if test "${with_gs_font_dir}" != 'default'; then
31430 ghostscript_font_dir="${with_gs_font_dir}/"
31431else
31432 if test "${native_win32_build}" = 'yes'; then
31433 # Native Windows Build
31434 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31435 if test -f "${font_dir}a010013l.pfb"; then
31436 ghostscript_font_dir="$font_dir"
31437 break 1
31438 fi
31439 done
31440 if test "${PSDelegate}" != 'gswin32c'; then
31441 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31442 fi
31443 else
31444 # Linux / Mac OS X / Unix Build
31445 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
31446 if test -f "${font_dir}a010013l.pfb"; then
31447 ghostscript_font_dir="${font_dir}"
31448 break 1
31449 fi
31450 done
31451 if test "${ghostscript_font_dir}x" = 'x'; then
31452 if test "$PSDelegate" != 'gs'; then
31453 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31454 fi
31455 fi
31456 fi
31457fi
31458if test "${ghostscript_font_dir}x" != 'x'; then
31459 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031461$as_echo "$ghostscript_font_dir" >&6; }
31462else
cristy8b350f62009-11-15 23:12:43 +000031463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031464$as_echo "not found!" >&6; };
31465fi
31466
31467case "${build_os}" in
31468 mingw* )
31469 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31470 ;;
31471esac
31472
31473
31474
31475#
31476# Handle case where user doesn't want frozen paths
31477#
31478if test "$with_frozenpaths" != 'yes'; then
31479 # Re-set delegate definitions to default (no paths)
31480 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31481 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31482 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31483 BZIPDelegate="$BZIPDelegateDefault"
31484 BrowseDelegate="$BrowseDelegateDefault"
31485 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31486 CatDelegate="$CatDelegateDefault"
31487 ConvertDelegate="$ConvertDelegateDefault"
31488 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31489 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31490 EchoDelegate="$EchoDelegateDefault"
31491 EditorDelegate="$EditorDelegateDefault"
31492 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31493 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31494 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31495 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31496 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31497 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31498 LPDelegate="$LPDelegateDefault"
31499 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31500 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31501 LaunchDelegate="$LaunchDelegateDefault"
31502 MANDelegate="$MANDelegateDefault"
31503 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31504 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031505 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031506 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31507 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031508 PCLDelegate="$PCLDelegateDefault"
31509 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31510 POVDelegate="$POVDelegateDefault"
31511 PSDelegate="$PSDelegateDefault"
31512 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31513 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31514 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031515 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031516 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31517 ShowImageDelegate="$ShowImageDelegateDefault"
31518 TXTDelegate="$TXTDelegateDefault"
31519 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31520 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31521 XPSDelegate="$XPSDelegateDefault"
31522 ZipDelegate="$ZipDelegateDefault"
31523fi
31524
31525# Delegate substitutions
31526
31527
31528
31529
31530
31531
31532
31533
31534
31535
31536
31537
31538
31539
31540
31541
31542
31543
31544
31545
31546
31547
31548
31549
31550
31551
31552
31553
31554
31555
31556
31557
31558
31559
31560
31561
31562
31563
31564
31565
31566
31567
cristy935c86e2010-06-05 23:50:07 +000031568
cristy3ed852e2009-09-05 21:47:34 +000031569#
31570# RPM support.
31571#
31572RPM=''
31573for ac_prog in gnutar gtar tar
31574do
31575 # Extract the first word of "$ac_prog", so it can be a program name with args.
31576set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031578$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031579if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031580 $as_echo_n "(cached) " >&6
31581else
31582 if test -n "$TAR"; then
31583 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31584else
31585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31586for as_dir in $PATH
31587do
31588 IFS=$as_save_IFS
31589 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031590 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31592 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031594 break 2
31595 fi
31596done
cristy8b350f62009-11-15 23:12:43 +000031597 done
cristy3ed852e2009-09-05 21:47:34 +000031598IFS=$as_save_IFS
31599
31600fi
31601fi
31602TAR=$ac_cv_prog_TAR
31603if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031605$as_echo "$TAR" >&6; }
31606else
cristy8b350f62009-11-15 23:12:43 +000031607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031608$as_echo "no" >&6; }
31609fi
31610
31611
31612 test -n "$TAR" && break
31613done
31614
31615for ac_prog in perl
31616do
31617 # Extract the first word of "$ac_prog", so it can be a program name with args.
31618set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031620$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031621if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031622 $as_echo_n "(cached) " >&6
31623else
31624 if test -n "$PERL"; then
31625 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31626else
31627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31628for as_dir in $PATH
31629do
31630 IFS=$as_save_IFS
31631 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031632 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31634 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031636 break 2
31637 fi
31638done
cristy8b350f62009-11-15 23:12:43 +000031639 done
cristy3ed852e2009-09-05 21:47:34 +000031640IFS=$as_save_IFS
31641
31642fi
31643fi
31644PERL=$ac_cv_prog_PERL
31645if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031647$as_echo "$PERL" >&6; }
31648else
cristy8b350f62009-11-15 23:12:43 +000031649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031650$as_echo "no" >&6; }
31651fi
31652
31653
31654 test -n "$PERL" && break
31655done
31656
31657for ac_prog in rpmbuild rpm
31658do
31659 # Extract the first word of "$ac_prog", so it can be a program name with args.
31660set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031662$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031663if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031664 $as_echo_n "(cached) " >&6
31665else
31666 if test -n "$RPM"; then
31667 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31668else
31669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31670for as_dir in $PATH
31671do
31672 IFS=$as_save_IFS
31673 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031674 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31676 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031678 break 2
31679 fi
31680done
cristy8b350f62009-11-15 23:12:43 +000031681 done
cristy3ed852e2009-09-05 21:47:34 +000031682IFS=$as_save_IFS
31683
31684fi
31685fi
31686RPM=$ac_cv_prog_RPM
31687if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031689$as_echo "$RPM" >&6; }
31690else
cristy8b350f62009-11-15 23:12:43 +000031691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031692$as_echo "no" >&6; }
31693fi
31694
31695
31696 test -n "$RPM" && break
31697done
31698
31699
31700ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31701
31702
31703AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31704
31705
31706AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31707
31708
31709AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31710
31711
31712 if test "x$RPM" != "x" ; then
31713 RPM_DELEGATE_TRUE=
31714 RPM_DELEGATE_FALSE='#'
31715else
31716 RPM_DELEGATE_TRUE='#'
31717 RPM_DELEGATE_FALSE=
31718fi
31719
31720
31721#
31722# 7ZIP support (http://p7zip.sourceforge.net/)
31723#
31724P7ZIP=''
31725for ac_prog in 7za
31726do
31727 # Extract the first word of "$ac_prog", so it can be a program name with args.
31728set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031730$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031731if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031732 $as_echo_n "(cached) " >&6
31733else
31734 if test -n "$P7ZIP"; then
31735 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31736else
31737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31738for as_dir in $PATH
31739do
31740 IFS=$as_save_IFS
31741 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031742 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31744 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031746 break 2
31747 fi
31748done
cristy8b350f62009-11-15 23:12:43 +000031749 done
cristy3ed852e2009-09-05 21:47:34 +000031750IFS=$as_save_IFS
31751
31752fi
31753fi
31754P7ZIP=$ac_cv_prog_P7ZIP
31755if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031757$as_echo "$P7ZIP" >&6; }
31758else
cristy8b350f62009-11-15 23:12:43 +000031759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031760$as_echo "no" >&6; }
31761fi
31762
31763
31764 test -n "$P7ZIP" && break
31765done
31766
31767
31768 if test "x$P7ZIP" != "x" ; then
31769 P7ZIP_DELEGATE_TRUE=
31770 P7ZIP_DELEGATE_FALSE='#'
31771else
31772 P7ZIP_DELEGATE_TRUE='#'
31773 P7ZIP_DELEGATE_FALSE=
31774fi
31775
31776
31777#
31778# ZIP support (http://www.info-zip.org/Zip.html)
31779#
31780ZIP=''
31781for ac_prog in zip
31782do
31783 # Extract the first word of "$ac_prog", so it can be a program name with args.
31784set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031786$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031787if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031788 $as_echo_n "(cached) " >&6
31789else
31790 if test -n "$ZIP"; then
31791 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31792else
31793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31794for as_dir in $PATH
31795do
31796 IFS=$as_save_IFS
31797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31800 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031802 break 2
31803 fi
31804done
cristy8b350f62009-11-15 23:12:43 +000031805 done
cristy3ed852e2009-09-05 21:47:34 +000031806IFS=$as_save_IFS
31807
31808fi
31809fi
31810ZIP=$ac_cv_prog_ZIP
31811if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031813$as_echo "$ZIP" >&6; }
31814else
cristy8b350f62009-11-15 23:12:43 +000031815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031816$as_echo "no" >&6; }
31817fi
31818
31819
31820 test -n "$ZIP" && break
31821done
31822
31823
31824 if test "x$ZIP" != "x" ; then
31825 ZIP_DELEGATE_TRUE=
31826 ZIP_DELEGATE_FALSE='#'
31827else
31828 ZIP_DELEGATE_TRUE='#'
31829 ZIP_DELEGATE_FALSE=
31830fi
31831
31832
31833#
31834# GhostPCL related configuration.
31835#
31836PCLColorDevice=ppmraw
31837PCLCMYKDevice=bmpsep8
31838PCLMonoDevice=pbmraw
31839if test -z "$PCLVersion"; then
31840 PCLVersion='unknown'
31841fi
31842if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031844$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031846$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031848$as_echo "" >&6; }
31849 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031851$as_echo_n "checking for pcl color device... " >&6; }
31852 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31853 :
31854 else
31855 PCLColorDevice=ppmraw
31856 fi
cristy8b350f62009-11-15 23:12:43 +000031857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031858$as_echo "$PCLColorDevice" >&6; }
31859
31860 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031862$as_echo_n "checking for pcl CMYK device... " >&6; }
31863 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31864 :
31865 else
31866 PCLCMYKDevice=$PCLColorDevice
31867 fi
cristy8b350f62009-11-15 23:12:43 +000031868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031869$as_echo "$PCLCMYKDevice" >&6; }
31870
31871 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031873$as_echo_n "checking for pcl mono device... " >&6; }
31874 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31875 :
31876 else
31877 PCLMonoDevice=$PCLColorDevice
31878 fi
cristy8b350f62009-11-15 23:12:43 +000031879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031880$as_echo "$PCLMonoDevice" >&6; }
31881fi
31882
31883
31884
31885
31886
31887
31888#
31889# GhostXPS related configuration.
31890#
31891XPSColorDevice=ppmraw
31892XPSCMYKDevice=bmpsep8
31893XPSMonoDevice=pbmraw
31894if test -z "$XPSVersion"; then
31895 XPSVersion='unknown'
31896fi
31897if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031899$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031901$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031903$as_echo "" >&6; }
31904 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031906$as_echo_n "checking for xps color device... " >&6; }
31907 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31908 :
31909 else
31910 XPSColorDevice=ppmraw
31911 fi
cristy8b350f62009-11-15 23:12:43 +000031912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031913$as_echo "$XPSColorDevice" >&6; }
31914
31915 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031917$as_echo_n "checking for xps CMYK device... " >&6; }
31918 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31919 :
31920 else
31921 XPSCMYKDevice=$XPSColorDevice
31922 fi
cristy8b350f62009-11-15 23:12:43 +000031923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031924$as_echo "$XPSCMYKDevice" >&6; }
31925
31926 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031928$as_echo_n "checking for xps mono device... " >&6; }
31929 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31930 :
31931 else
31932 XPSMonoDevice=$XPSColorDevice
31933 fi
cristy8b350f62009-11-15 23:12:43 +000031934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031935$as_echo "$XPSMonoDevice" >&6; }
31936fi
31937
31938
31939
31940
31941
31942
31943#
31944# Ghostscript related configuration.
31945#
31946if test "$have_png" = 'yes'; then
31947 GSAlphaDevice=pngalpha
31948else
31949 GSAlphaDevice=pnmraw
31950fi
31951GSColorDevice=pnmraw
31952GSCMYKDevice=pam
31953GSMonoDevice=pbmraw
31954GSPDFDevice=pdfwrite
31955GSPSDevice=pswrite
31956GSEPSDevice=epswrite
31957GSVersion='unknown'
31958if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031960$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000031962$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031964$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000031966$as_echo_n "checking for Ghostscript version... " >&6; }
31967 if GSVersion=`$PSDelegate --version`; then
31968 :
31969 else
31970 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
31971 fi
cristy8b350f62009-11-15 23:12:43 +000031972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000031973$as_echo "$GSVersion" >&6; }
31974
31975 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000031976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031977$as_echo_n "checking for gs alpha device... " >&6; }
31978 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31979 :
31980 else
31981 GSAlphaDevice=pnmraw
31982 fi
cristy8b350f62009-11-15 23:12:43 +000031983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031984$as_echo "$GSAlphaDevice" >&6; }
31985
31986 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031988$as_echo_n "checking for gs color device... " >&6; }
31989 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31990 :
31991 else
31992 GSColorDevice=pnmraw
31993 fi
cristy8b350f62009-11-15 23:12:43 +000031994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031995$as_echo "$GSColorDevice" >&6; }
31996
31997 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031999$as_echo_n "checking for gs CMYK device... " >&6; }
32000 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32001 :
32002 else
32003 GSCMYKDevice=bmpsep8
32004 fi
cristy8b350f62009-11-15 23:12:43 +000032005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032006$as_echo "$GSCMYKDevice" >&6; }
32007
32008 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032010$as_echo_n "checking for gs mono device... " >&6; }
32011 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32012 :
32013 else
32014 GSMonoDevice=$GSColorDevice
32015 fi
cristy8b350f62009-11-15 23:12:43 +000032016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032017$as_echo "$GSMonoDevice" >&6; }
32018
32019 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032021$as_echo_n "checking for gs PDF writing device... " >&6; }
32022 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32023 :
32024 else
32025 GSPDFDevice=nodevice
32026 fi
cristy8b350f62009-11-15 23:12:43 +000032027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032028$as_echo "$GSPDFDevice" >&6; }
32029
32030 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032032$as_echo_n "checking for gs PS writing device... " >&6; }
32033 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32034 :
32035 else
32036 GSPSDevice=nodevice
32037 fi
cristy8b350f62009-11-15 23:12:43 +000032038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032039$as_echo "$GSPSDevice" >&6; }
32040
32041 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032043$as_echo_n "checking for gs EPS writing device... " >&6; }
32044 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32045 :
32046 else
32047 GSEPSDevice=nodevice
32048 fi
cristy8b350f62009-11-15 23:12:43 +000032049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032050$as_echo "$GSEPSDevice" >&6; }
32051fi
32052
32053
32054
32055
32056
32057
32058
32059
32060
32061
32062#
32063# PerlMagick-related configuration
32064#
32065
32066# Look for PERL if PerlMagick requested
32067# If name/path of desired PERL interpreter is specified, look for that one first
32068have_perl='no'
32069if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032071$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032073$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032075$as_echo "" >&6; }
32076 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032078$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032079if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032080 $as_echo_n "(cached) " >&6
32081else
32082 ac_cv_path_PERL="$with_perl"
32083fi
cristy8b350f62009-11-15 23:12:43 +000032084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032085$as_echo "$ac_cv_path_PERL" >&6; };
32086 PERL=$ac_cv_path_PERL
32087 have_perl="$ac_cv_path_PERL"
32088 else
32089 for ac_prog in perl perl5
32090do
32091 # Extract the first word of "$ac_prog", so it can be a program name with args.
32092set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032094$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032095if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032096 $as_echo_n "(cached) " >&6
32097else
32098 case $PERL in
32099 [\\/]* | ?:[\\/]*)
32100 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32101 ;;
32102 *)
32103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32104for as_dir in $PATH
32105do
32106 IFS=$as_save_IFS
32107 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032108 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32110 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032112 break 2
32113 fi
32114done
cristy8b350f62009-11-15 23:12:43 +000032115 done
cristy3ed852e2009-09-05 21:47:34 +000032116IFS=$as_save_IFS
32117
32118 ;;
32119esac
32120fi
32121PERL=$ac_cv_path_PERL
32122if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032124$as_echo "$PERL" >&6; }
32125else
cristy8b350f62009-11-15 23:12:43 +000032126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032127$as_echo "no" >&6; }
32128fi
32129
32130
32131 test -n "$PERL" && break
32132done
32133 if test "$ac_cv_path_PERL"; then
32134 have_perl="$ac_cv_path_PERL"
32135 fi
32136 fi
32137fi
32138
cristy949301e2010-01-06 01:38:40 +000032139if test "$with_perl" != 'yes' ; then
32140 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32141fi
32142
32143PERL_SUPPORTS_DESTDIR='no'
32144
cristy3ed852e2009-09-05 21:47:34 +000032145with_perl_static='no'
32146with_perl_dynamic='no'
32147if test "$have_perl" != 'no'; then
32148 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32149 with_perl_static='yes'
32150 fi
32151 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32152 with_perl_dynamic='yes'
32153 fi
32154 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032155
32156
32157
32158
32159 if test -n "$PERL"; then :
32160
32161 ax_perl_version="5.8.1"
32162
32163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32164$as_echo_n "checking for perl version... " >&6; }
32165
32166 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32167
32168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32169$as_echo "$perl_version" >&6; }
32170
32171 PERL_VERSION=$perl_version
32172
32173
32174
32175
32176
32177 # Used to indicate true or false condition
32178 ax_compare_version=false
32179
32180 # Convert the two version strings to be compared into a format that
32181 # allows a simple string comparison. The end result is that a version
32182 # string of the form 1.12.5-r617 will be converted to the form
32183 # 0001001200050617. In other words, each number is zero padded to four
32184 # digits, and non digits are removed.
32185
32186 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32187 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32188 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32189 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32190 -e 's/[^0-9]//g'`
32191
32192
32193 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32194 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32195 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32196 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32197 -e 's/[^0-9]//g'`
32198
32199
32200 ax_compare_version=`echo "x$ax_compare_version_A
32201x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32202
32203
32204
32205 if test "$ax_compare_version" = "true" ; then
32206
32207 :
32208 PERL_SUPPORTS_DESTDIR='yes'
32209
32210 else
32211 :
32212 PERL_SUPPORTS_DESTDIR='no'
32213
cristy3ed852e2009-09-05 21:47:34 +000032214 fi
cristy3ed852e2009-09-05 21:47:34 +000032215
cristy964cb7f2010-04-25 23:18:00 +000032216
cristy3ed852e2009-09-05 21:47:34 +000032217else
cristy3ed852e2009-09-05 21:47:34 +000032218
cristy964cb7f2010-04-25 23:18:00 +000032219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32220$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32221 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032222
32223fi
32224
cristy3ed852e2009-09-05 21:47:34 +000032225fi
32226 if test "$have_perl" != 'no'; then
32227 WITH_PERL_TRUE=
32228 WITH_PERL_FALSE='#'
32229else
32230 WITH_PERL_TRUE='#'
32231 WITH_PERL_FALSE=
32232fi
32233
32234 if test $with_perl_static = 'yes'; then
32235 WITH_PERL_STATIC_TRUE=
32236 WITH_PERL_STATIC_FALSE='#'
32237else
32238 WITH_PERL_STATIC_TRUE='#'
32239 WITH_PERL_STATIC_FALSE=
32240fi
32241
32242 if test $with_perl_dynamic = 'yes'; then
32243 WITH_PERL_DYNAMIC_TRUE=
32244 WITH_PERL_DYNAMIC_FALSE='#'
32245else
32246 WITH_PERL_DYNAMIC_TRUE='#'
32247 WITH_PERL_DYNAMIC_FALSE=
32248fi
32249
32250
32251
32252# Determine path to pick up MagickCore library from for use with building PerlMagick
32253MAGICKCORE_PATH="${LIB_DIR}"
32254if test $with_perl_static = 'yes'; then
32255 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32256 libtool_objdir=$objdir
32257
32258 # Linker search path to library, followed by -lMagickCore
32259 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32260fi
32261
32262
32263# Create a simple string containing format names for all delegate libraries
32264DELEGATES=''
32265if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32266if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32267if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32268if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32269if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32270if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32271if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32272if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32273if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32274if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32275if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32276if test "$have_jpeg" = 'yes'; then
32277 DELEGATES="$DELEGATES jpeg";
32278 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32279fi
32280if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032281if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032282if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32283if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32284if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32285if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32286if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32287if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32288if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32289if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32290if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32291if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32292if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32293
32294
32295
32296#
32297# Handle special compiler flags
32298#
32299
32300# Add '-p' if prof source profiling support enabled
32301if test "$enable_prof" = 'yes'; then
32302 CFLAGS="-p $CFLAGS"
32303 CXXFLAGS="-p $CXXFLAGS"
32304 LDFLAGS="-p $LDFLAGS"
32305fi
32306
32307# Add '-pg' if gprof source profiling support enabled
32308if test "$enable_gprof" = 'yes'; then
32309 CFLAGS="-pg $CFLAGS"
32310 CXXFLAGS="-pg $CXXFLAGS"
32311 LDFLAGS="-pg $LDFLAGS"
32312fi
32313
32314# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32315# This is a gcc-specific feature
32316if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032318$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032319if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032320 $as_echo_n "(cached) " >&6
32321else
32322 ac_check_lib_save_LIBS=$LIBS
32323LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032325/* end confdefs.h. */
32326
32327/* Override any GCC internal prototype to avoid an error.
32328 Use char because int might match the return type of a GCC
32329 builtin and then its argument prototype would still apply. */
32330#ifdef __cplusplus
32331extern "C"
32332#endif
32333char _gcov_init ();
32334int
32335main ()
32336{
32337return _gcov_init ();
32338 ;
32339 return 0;
32340}
32341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032342if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032343 ac_cv_lib_gcov__gcov_init=yes
32344else
cristy8b350f62009-11-15 23:12:43 +000032345 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032346fi
cristy8b350f62009-11-15 23:12:43 +000032347rm -f core conftest.err conftest.$ac_objext \
32348 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032349LIBS=$ac_check_lib_save_LIBS
32350fi
cristy8b350f62009-11-15 23:12:43 +000032351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032352$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032353if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032354 cat >>confdefs.h <<_ACEOF
32355#define HAVE_LIBGCOV 1
32356_ACEOF
32357
32358 LIBS="-lgcov $LIBS"
32359
32360fi
32361
cristy8b350f62009-11-15 23:12:43 +000032362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032363$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032364if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032365 $as_echo_n "(cached) " >&6
32366else
32367 ac_check_lib_save_LIBS=$LIBS
32368LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032370/* end confdefs.h. */
32371
32372/* Override any GCC internal prototype to avoid an error.
32373 Use char because int might match the return type of a GCC
32374 builtin and then its argument prototype would still apply. */
32375#ifdef __cplusplus
32376extern "C"
32377#endif
32378char __gcov_init ();
32379int
32380main ()
32381{
32382return __gcov_init ();
32383 ;
32384 return 0;
32385}
32386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032387if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032388 ac_cv_lib_gcov___gcov_init=yes
32389else
cristy8b350f62009-11-15 23:12:43 +000032390 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032391fi
cristy8b350f62009-11-15 23:12:43 +000032392rm -f core conftest.err conftest.$ac_objext \
32393 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032394LIBS=$ac_check_lib_save_LIBS
32395fi
cristy8b350f62009-11-15 23:12:43 +000032396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032397$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032398if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032399 cat >>confdefs.h <<_ACEOF
32400#define HAVE_LIBGCOV 1
32401_ACEOF
32402
32403 LIBS="-lgcov $LIBS"
32404
32405fi
32406
32407 case "$target_os" in
32408 darwin*)
32409 OSX_GCOV_LDFLAG="-Wl,-single_module"
32410 ;;
32411 *)
32412 OSX_GCOV_LDFLAG=""
32413 ;;
32414 esac
32415
32416 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32417 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32418 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32419fi
32420
32421#
32422# Build library dependency list for libMagickCore
32423#
32424
32425MAGICK_LIBLTDL='' # Libltdl for build
32426MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32427MAGICK_LTDLDEPS='' # extra libltdl dependencies
32428if test "$with_ltdl" != 'no'
32429then
32430 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32431 MAGICK_API_LIBLTDL='-lltdl'
32432 fi
32433 MAGICK_LIBLTDL=${LIBLTDL}
32434 MAGICK_LTDLDEPS=${LTDLDEPS}
32435fi
32436
32437
32438
32439if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032440 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 +000032441else
cristy2e8b51d2009-10-17 18:26:15 +000032442 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 +000032443fi
32444
32445
32446#
32447# Remove extraneous spaces from output variables (asthetic)
32448#
32449X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32450X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32451X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32452X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32453
32454CC=`echo $CC | sed -e 's/ */ /g'`
32455CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32456CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32457CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32458DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32459DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32460LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32461TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32462MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32463#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32464
32465# Pass only user-provided LIBS as "global" libraries
32466LIBS=$USER_LIBS
32467
32468#AC_SUBST(CPPFLAGS)
32469
32470#AC_SUBST(LDFLAGS)
32471#AC_SUBST(X_PRE_LIBS)
32472#AC_SUBST(X_LIBS)
32473#AC_SUBST(X_EXTRA_LIBS)
32474
32475MAGICK_CFLAGS=$CFLAGS
32476MAGICK_CXXFLAGS="$CXXFLAGS"
32477MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32478MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32479MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32480MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32481
32482
32483
32484
32485
32486
32487
32488
32489# Set configured scripts to executable.
32490ac_config_commands="$ac_config_commands default"
32491
32492ac_config_commands="$ac_config_commands MagickCore-config.in"
32493
32494ac_config_commands="$ac_config_commands Magick-config.in"
32495
32496ac_config_commands="$ac_config_commands MagickWand-config.in"
32497
32498ac_config_commands="$ac_config_commands Wand-config.in"
32499
32500ac_config_commands="$ac_config_commands Magick++-config.in"
32501
32502ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32503
32504
cristy8b350f62009-11-15 23:12:43 +000032505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032506$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032508$as_echo "Update ImageMagick configuration" >&6; }
32509cat >confcache <<\_ACEOF
32510# This file is a shell script that caches the results of configure
32511# tests run on this system so they can be shared between configure
32512# scripts and configure runs, see configure's option --config-cache.
32513# It is not useful on other systems. If it contains results you don't
32514# want to keep, you may remove or edit it.
32515#
32516# config.status only pays attention to the cache file if you give it
32517# the --recheck option to rerun configure.
32518#
32519# `ac_cv_env_foo' variables (set or unset) will be overridden when
32520# loading this file, other *unset* `ac_cv_foo' will be assigned the
32521# following values.
32522
32523_ACEOF
32524
32525# The following way of writing the cache mishandles newlines in values,
32526# but we know of no workaround that is simple, portable, and efficient.
32527# So, we kill variables containing newlines.
32528# Ultrix sh set writes to stderr and can't be redirected directly,
32529# and sets the high bit in the cache file unless we assign to the vars.
32530(
32531 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32532 eval ac_val=\$$ac_var
32533 case $ac_val in #(
32534 *${as_nl}*)
32535 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032536 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032537$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32538 esac
32539 case $ac_var in #(
32540 _ | IFS | as_nl) ;; #(
32541 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032542 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032543 esac ;;
32544 esac
32545 done
32546
32547 (set) 2>&1 |
32548 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32549 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032550 # `set' does not quote correctly, so add quotes: double-quote
32551 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032552 sed -n \
32553 "s/'/'\\\\''/g;
32554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32555 ;; #(
32556 *)
32557 # `set' quotes correctly as required by POSIX, so do not add quotes.
32558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32559 ;;
32560 esac |
32561 sort
32562) |
32563 sed '
32564 /^ac_cv_env_/b end
32565 t clear
32566 :clear
32567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32568 t end
32569 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32570 :end' >>confcache
32571if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32572 if test -w "$cache_file"; then
32573 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032574 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032575$as_echo "$as_me: updating cache $cache_file" >&6;}
32576 cat confcache >$cache_file
32577 else
cristy8b350f62009-11-15 23:12:43 +000032578 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032579$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32580 fi
32581fi
32582rm -f confcache
32583
32584test "x$prefix" = xNONE && prefix=$ac_default_prefix
32585# Let make expand exec_prefix.
32586test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32587
32588DEFS=-DHAVE_CONFIG_H
32589
32590ac_libobjs=
32591ac_ltlibobjs=
32592for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32593 # 1. Remove the extension, and $U if already installed.
32594 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32595 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32596 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32597 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032598 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32599 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032600done
32601LIBOBJS=$ac_libobjs
32602
32603LTLIBOBJS=$ac_ltlibobjs
32604
32605
32606 if test -n "$EXEEXT"; then
32607 am__EXEEXT_TRUE=
32608 am__EXEEXT_FALSE='#'
32609else
32610 am__EXEEXT_TRUE='#'
32611 am__EXEEXT_FALSE=
32612fi
32613
32614if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032615 as_fn_error "conditional \"AMDEP\" was never defined.
32616Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032617fi
32618if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032619 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32620Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032621fi
cristya0b81c32010-01-22 02:54:33 +000032622if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32623 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32624Usually this means the macro was only invoked conditionally." "$LINENO" 5
32625fi
cristy3ed852e2009-09-05 21:47:34 +000032626if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032627 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32628Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032629fi
32630if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032631 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32632Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032633fi
32634if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032635 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32636Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032637fi
32638if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032639 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32640Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032641fi
32642if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032643 as_fn_error "conditional \"USING_CL\" was never defined.
32644Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032645fi
cristy3ed852e2009-09-05 21:47:34 +000032646if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032647 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32648Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032649fi
32650if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032651 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
32652Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032653fi
32654LT_CONFIG_H=config/config.h
32655
32656 _ltdl_libobjs=
32657 _ltdl_ltlibobjs=
32658 if test -n "$_LT_LIBOBJS"; then
32659 # Remove the extension.
32660 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32661 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32662 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32663 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32664 done
32665 fi
32666 ltdl_LIBOBJS=$_ltdl_libobjs
32667
32668 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32669
32670
cristyfa112112010-01-04 17:48:07 +000032671if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32672 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
32673Usually this means the macro was only invoked conditionally." "$LINENO" 5
32674fi
cristy3ed852e2009-09-05 21:47:34 +000032675if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032676 as_fn_error "conditional \"WITH_MODULES\" was never defined.
32677Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032678fi
32679if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032680 as_fn_error "conditional \"WITH_LTDL\" was never defined.
32681Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032682fi
32683if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032684 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
32685Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032686fi
32687
32688if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032689 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32690Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032691fi
32692if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032693 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32694Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032695fi
32696if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032697 as_fn_error "conditional \"HasUMEM\" was never defined.
32698Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032699fi
32700if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032701 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
32702Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032703fi
32704if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032705 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
32706Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032707fi
32708if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032709 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
32710Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032711fi
32712if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032713 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32714Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032715fi
32716if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032717 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
32718Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032719fi
32720if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032721 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
32722Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032723fi
32724if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032725 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
32726Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032727fi
32728if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032729 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
32730Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032731fi
32732if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032733 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32734Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032735fi
32736if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032737 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32738Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032739fi
32740if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032741 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32742Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032743fi
32744if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032745 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32746Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032747fi
32748if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032749 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32750Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032751fi
32752if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032753 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32754Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032755fi
32756if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032757 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32758Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032759fi
32760if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032761 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32762Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032763fi
32764if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032765 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32766Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032767fi
32768if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032769 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32770Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032771fi
32772if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032773 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32774Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032775fi
32776if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032777 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32778Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032779fi
32780if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032781 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32782Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032783fi
32784if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032785 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32786Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032787fi
32788if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032789 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32790Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032791fi
32792if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032793 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32794Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032795fi
32796if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032797 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32798Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032799fi
32800if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032801 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
32802Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032803fi
32804if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032805 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
32806Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032807fi
32808if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032809 as_fn_error "conditional \"WITH_PERL\" was never defined.
32810Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032811fi
32812if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032813 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
32814Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032815fi
32816if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032817 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32818Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032819fi
32820
32821: ${CONFIG_STATUS=./config.status}
32822ac_write_fail=0
32823ac_clean_files_save=$ac_clean_files
32824ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032825{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032826$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032827as_write_fail=0
32828cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032829#! $SHELL
32830# Generated by $as_me.
32831# Run this file to recreate the current configuration.
32832# Compiler output produced by configure, useful for debugging
32833# configure, is in config.log if it exists.
32834
32835debug=false
32836ac_cs_recheck=false
32837ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032838
cristy8b350f62009-11-15 23:12:43 +000032839SHELL=\${CONFIG_SHELL-$SHELL}
32840export SHELL
32841_ASEOF
32842cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32843## -------------------- ##
32844## M4sh Initialization. ##
32845## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032846
32847# Be more Bourne compatible
32848DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032849if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032850 emulate sh
32851 NULLCMD=:
32852 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32853 # is contrary to our usage. Disable this feature.
32854 alias -g '${1+"$@"}'='"$@"'
32855 setopt NO_GLOB_SUBST
32856else
cristy8b350f62009-11-15 23:12:43 +000032857 case `(set -o) 2>/dev/null` in #(
32858 *posix*) :
32859 set -o posix ;; #(
32860 *) :
32861 ;;
cristy3ed852e2009-09-05 21:47:34 +000032862esac
cristy3ed852e2009-09-05 21:47:34 +000032863fi
32864
32865
cristy3ed852e2009-09-05 21:47:34 +000032866as_nl='
32867'
32868export as_nl
32869# Printing a long string crashes Solaris 7 /usr/bin/printf.
32870as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32871as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32872as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032873# Prefer a ksh shell builtin over an external printf program on Solaris,
32874# but without wasting forks for bash or zsh.
32875if test -z "$BASH_VERSION$ZSH_VERSION" \
32876 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32877 as_echo='print -r --'
32878 as_echo_n='print -rn --'
32879elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032880 as_echo='printf %s\n'
32881 as_echo_n='printf %s'
32882else
32883 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32884 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32885 as_echo_n='/usr/ucb/echo -n'
32886 else
32887 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32888 as_echo_n_body='eval
32889 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032890 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032891 *"$as_nl"*)
32892 expr "X$arg" : "X\\(.*\\)$as_nl";
32893 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32894 esac;
32895 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32896 '
32897 export as_echo_n_body
32898 as_echo_n='sh -c $as_echo_n_body as_echo'
32899 fi
32900 export as_echo_body
32901 as_echo='sh -c $as_echo_body as_echo'
32902fi
32903
32904# The user is always right.
32905if test "${PATH_SEPARATOR+set}" != set; then
32906 PATH_SEPARATOR=:
32907 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32908 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32909 PATH_SEPARATOR=';'
32910 }
32911fi
32912
cristy3ed852e2009-09-05 21:47:34 +000032913
32914# IFS
32915# We need space, tab and new line, in precisely that order. Quoting is
32916# there to prevent editors from complaining about space-tab.
32917# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32918# splitting by setting IFS to empty value.)
32919IFS=" "" $as_nl"
32920
32921# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000032922case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000032923 *[\\/]* ) as_myself=$0 ;;
32924 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32925for as_dir in $PATH
32926do
32927 IFS=$as_save_IFS
32928 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032929 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32930 done
cristy3ed852e2009-09-05 21:47:34 +000032931IFS=$as_save_IFS
32932
32933 ;;
32934esac
32935# We did not find ourselves, most probably we were run as `sh COMMAND'
32936# in which case we are not to be found in the path.
32937if test "x$as_myself" = x; then
32938 as_myself=$0
32939fi
32940if test ! -f "$as_myself"; then
32941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000032942 exit 1
cristy3ed852e2009-09-05 21:47:34 +000032943fi
32944
cristy8b350f62009-11-15 23:12:43 +000032945# Unset variables that we do not need and which cause bugs (e.g. in
32946# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32947# suppresses any "Segmentation fault" message there. '((' could
32948# trigger a bug in pdksh 5.2.14.
32949for as_var in BASH_ENV ENV MAIL MAILPATH
32950do eval test x\${$as_var+set} = xset \
32951 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000032952done
32953PS1='$ '
32954PS2='> '
32955PS4='+ '
32956
32957# NLS nuisances.
32958LC_ALL=C
32959export LC_ALL
32960LANGUAGE=C
32961export LANGUAGE
32962
cristy8b350f62009-11-15 23:12:43 +000032963# CDPATH.
32964(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32965
32966
32967# as_fn_error ERROR [LINENO LOG_FD]
32968# ---------------------------------
32969# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32970# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32971# script with status $?, using 1 if that was 0.
32972as_fn_error ()
32973{
32974 as_status=$?; test $as_status -eq 0 && as_status=1
32975 if test "$3"; then
32976 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32977 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
32978 fi
32979 $as_echo "$as_me: error: $1" >&2
32980 as_fn_exit $as_status
32981} # as_fn_error
32982
32983
32984# as_fn_set_status STATUS
32985# -----------------------
32986# Set $? to STATUS, without forking.
32987as_fn_set_status ()
32988{
32989 return $1
32990} # as_fn_set_status
32991
32992# as_fn_exit STATUS
32993# -----------------
32994# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32995as_fn_exit ()
32996{
32997 set +e
32998 as_fn_set_status $1
32999 exit $1
33000} # as_fn_exit
33001
33002# as_fn_unset VAR
33003# ---------------
33004# Portably unset VAR.
33005as_fn_unset ()
33006{
33007 { eval $1=; unset $1;}
33008}
33009as_unset=as_fn_unset
33010# as_fn_append VAR VALUE
33011# ----------------------
33012# Append the text in VALUE to the end of the definition contained in VAR. Take
33013# advantage of any shell optimizations that allow amortized linear growth over
33014# repeated appends, instead of the typical quadratic growth present in naive
33015# implementations.
33016if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33017 eval 'as_fn_append ()
33018 {
33019 eval $1+=\$2
33020 }'
33021else
33022 as_fn_append ()
33023 {
33024 eval $1=\$$1\$2
33025 }
33026fi # as_fn_append
33027
33028# as_fn_arith ARG...
33029# ------------------
33030# Perform arithmetic evaluation on the ARGs, and store the result in the
33031# global $as_val. Take advantage of shells that can avoid forks. The arguments
33032# must be portable across $(()) and expr.
33033if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33034 eval 'as_fn_arith ()
33035 {
33036 as_val=$(( $* ))
33037 }'
33038else
33039 as_fn_arith ()
33040 {
33041 as_val=`expr "$@" || test $? -eq 1`
33042 }
33043fi # as_fn_arith
33044
33045
cristy3ed852e2009-09-05 21:47:34 +000033046if expr a : '\(a\)' >/dev/null 2>&1 &&
33047 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33048 as_expr=expr
33049else
33050 as_expr=false
33051fi
33052
33053if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33054 as_basename=basename
33055else
33056 as_basename=false
33057fi
33058
cristy8b350f62009-11-15 23:12:43 +000033059if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33060 as_dirname=dirname
33061else
33062 as_dirname=false
33063fi
cristy3ed852e2009-09-05 21:47:34 +000033064
cristy3ed852e2009-09-05 21:47:34 +000033065as_me=`$as_basename -- "$0" ||
33066$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33067 X"$0" : 'X\(//\)$' \| \
33068 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33069$as_echo X/"$0" |
33070 sed '/^.*\/\([^/][^/]*\)\/*$/{
33071 s//\1/
33072 q
33073 }
33074 /^X\/\(\/\/\)$/{
33075 s//\1/
33076 q
33077 }
33078 /^X\/\(\/\).*/{
33079 s//\1/
33080 q
33081 }
33082 s/.*/./; q'`
33083
cristy8b350f62009-11-15 23:12:43 +000033084# Avoid depending upon Character Ranges.
33085as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33086as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33087as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33088as_cr_digits='0123456789'
33089as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033090
33091ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033092case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033093-n*)
cristy8b350f62009-11-15 23:12:43 +000033094 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033095 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033096 xy) ECHO_C='\c';;
33097 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33098 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033099 esac;;
33100*)
33101 ECHO_N='-n';;
33102esac
cristy3ed852e2009-09-05 21:47:34 +000033103
33104rm -f conf$$ conf$$.exe conf$$.file
33105if test -d conf$$.dir; then
33106 rm -f conf$$.dir/conf$$.file
33107else
33108 rm -f conf$$.dir
33109 mkdir conf$$.dir 2>/dev/null
33110fi
33111if (echo >conf$$.file) 2>/dev/null; then
33112 if ln -s conf$$.file conf$$ 2>/dev/null; then
33113 as_ln_s='ln -s'
33114 # ... but there are two gotchas:
33115 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33116 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33117 # In both cases, we have to default to `cp -p'.
33118 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33119 as_ln_s='cp -p'
33120 elif ln conf$$.file conf$$ 2>/dev/null; then
33121 as_ln_s=ln
33122 else
33123 as_ln_s='cp -p'
33124 fi
33125else
33126 as_ln_s='cp -p'
33127fi
33128rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33129rmdir conf$$.dir 2>/dev/null
33130
cristy8b350f62009-11-15 23:12:43 +000033131
33132# as_fn_mkdir_p
33133# -------------
33134# Create "$as_dir" as a directory, including parents if necessary.
33135as_fn_mkdir_p ()
33136{
33137
33138 case $as_dir in #(
33139 -*) as_dir=./$as_dir;;
33140 esac
33141 test -d "$as_dir" || eval $as_mkdir_p || {
33142 as_dirs=
33143 while :; do
33144 case $as_dir in #(
33145 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33146 *) as_qdir=$as_dir;;
33147 esac
33148 as_dirs="'$as_qdir' $as_dirs"
33149 as_dir=`$as_dirname -- "$as_dir" ||
33150$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33151 X"$as_dir" : 'X\(//\)[^/]' \| \
33152 X"$as_dir" : 'X\(//\)$' \| \
33153 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33154$as_echo X"$as_dir" |
33155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33156 s//\1/
33157 q
33158 }
33159 /^X\(\/\/\)[^/].*/{
33160 s//\1/
33161 q
33162 }
33163 /^X\(\/\/\)$/{
33164 s//\1/
33165 q
33166 }
33167 /^X\(\/\).*/{
33168 s//\1/
33169 q
33170 }
33171 s/.*/./; q'`
33172 test -d "$as_dir" && break
33173 done
33174 test -z "$as_dirs" || eval "mkdir $as_dirs"
33175 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
33176
33177
33178} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033179if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033180 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033181else
33182 test -d ./-p && rmdir ./-p
33183 as_mkdir_p=false
33184fi
33185
33186if test -x / >/dev/null 2>&1; then
33187 as_test_x='test -x'
33188else
33189 if ls -dL / >/dev/null 2>&1; then
33190 as_ls_L_option=L
33191 else
33192 as_ls_L_option=
33193 fi
33194 as_test_x='
33195 eval sh -c '\''
33196 if test -d "$1"; then
33197 test -d "$1/.";
33198 else
cristy8b350f62009-11-15 23:12:43 +000033199 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033200 -*)set "./$1";;
33201 esac;
cristy8b350f62009-11-15 23:12:43 +000033202 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033203 ???[sx]*):;;*)false;;esac;fi
33204 '\'' sh
33205 '
33206fi
33207as_executable_p=$as_test_x
33208
33209# Sed expression to map a string onto a valid CPP name.
33210as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33211
33212# Sed expression to map a string onto a valid variable name.
33213as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33214
33215
33216exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033217## ----------------------------------- ##
33218## Main body of $CONFIG_STATUS script. ##
33219## ----------------------------------- ##
33220_ASEOF
33221test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033222
cristy8b350f62009-11-15 23:12:43 +000033223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33224# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033225# report actual input values of CONFIG_FILES etc. instead of their
33226# values after options handling.
33227ac_log="
cristyfbb4a972010-06-30 17:42:22 +000033228This file was extended by ImageMagick $as_me 6.6.3, which was
cristycd4c5312009-11-22 01:19:08 +000033229generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033230
33231 CONFIG_FILES = $CONFIG_FILES
33232 CONFIG_HEADERS = $CONFIG_HEADERS
33233 CONFIG_LINKS = $CONFIG_LINKS
33234 CONFIG_COMMANDS = $CONFIG_COMMANDS
33235 $ $0 $@
33236
33237on `(hostname || uname -n) 2>/dev/null | sed 1q`
33238"
33239
33240_ACEOF
33241
33242case $ac_config_files in *"
33243"*) set x $ac_config_files; shift; ac_config_files=$*;;
33244esac
33245
33246case $ac_config_headers in *"
33247"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33248esac
33249
33250
33251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33252# Files that config.status was made for.
33253config_files="$ac_config_files"
33254config_headers="$ac_config_headers"
33255config_commands="$ac_config_commands"
33256
33257_ACEOF
33258
33259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33260ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033261\`$as_me' instantiates files and other configuration actions
33262from templates according to the current configuration. Unless the files
33263and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033264
cristy8b350f62009-11-15 23:12:43 +000033265Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033266
33267 -h, --help print this help, then exit
33268 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033269 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033270 -q, --quiet, --silent
33271 do not print progress messages
33272 -d, --debug don't remove temporary files
33273 --recheck update $as_me by reconfiguring in the same conditions
33274 --file=FILE[:TEMPLATE]
33275 instantiate the configuration file FILE
33276 --header=FILE[:TEMPLATE]
33277 instantiate the configuration header FILE
33278
33279Configuration files:
33280$config_files
33281
33282Configuration headers:
33283$config_headers
33284
33285Configuration commands:
33286$config_commands
33287
cristy8b350f62009-11-15 23:12:43 +000033288Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033289
33290_ACEOF
33291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033292ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033293ac_cs_version="\\
cristyfbb4a972010-06-30 17:42:22 +000033294ImageMagick config.status 6.6.3
cristycd4c5312009-11-22 01:19:08 +000033295configured by $0, generated by GNU Autoconf 2.65,
33296 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033297
cristy8b350f62009-11-15 23:12:43 +000033298Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033299This config.status script is free software; the Free Software Foundation
33300gives unlimited permission to copy, distribute and modify it."
33301
33302ac_pwd='$ac_pwd'
33303srcdir='$srcdir'
33304INSTALL='$INSTALL'
33305MKDIR_P='$MKDIR_P'
33306AWK='$AWK'
33307test -n "\$AWK" || AWK=awk
33308_ACEOF
33309
33310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33311# The default lists apply if the user does not specify any file.
33312ac_need_defaults=:
33313while test $# != 0
33314do
33315 case $1 in
33316 --*=*)
33317 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33318 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33319 ac_shift=:
33320 ;;
33321 *)
33322 ac_option=$1
33323 ac_optarg=$2
33324 ac_shift=shift
33325 ;;
33326 esac
33327
33328 case $ac_option in
33329 # Handling of the options.
33330 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33331 ac_cs_recheck=: ;;
33332 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33333 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033334 --config | --confi | --conf | --con | --co | --c )
33335 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033336 --debug | --debu | --deb | --de | --d | -d )
33337 debug=: ;;
33338 --file | --fil | --fi | --f )
33339 $ac_shift
33340 case $ac_optarg in
33341 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33342 esac
cristy8b350f62009-11-15 23:12:43 +000033343 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033344 ac_need_defaults=false;;
33345 --header | --heade | --head | --hea )
33346 $ac_shift
33347 case $ac_optarg in
33348 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33349 esac
cristy8b350f62009-11-15 23:12:43 +000033350 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033351 ac_need_defaults=false;;
33352 --he | --h)
33353 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000033354 as_fn_error "ambiguous option: \`$1'
33355Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033356 --help | --hel | -h )
33357 $as_echo "$ac_cs_usage"; exit ;;
33358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33359 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33360 ac_cs_silent=: ;;
33361
33362 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000033363 -*) as_fn_error "unrecognized option: \`$1'
33364Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033365
cristy8b350f62009-11-15 23:12:43 +000033366 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033367 ac_need_defaults=false ;;
33368
33369 esac
33370 shift
33371done
33372
33373ac_configure_extra_args=
33374
33375if $ac_cs_silent; then
33376 exec 6>/dev/null
33377 ac_configure_extra_args="$ac_configure_extra_args --silent"
33378fi
33379
33380_ACEOF
33381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33382if \$ac_cs_recheck; then
33383 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33384 shift
33385 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33386 CONFIG_SHELL='$SHELL'
33387 export CONFIG_SHELL
33388 exec "\$@"
33389fi
33390
33391_ACEOF
33392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33393exec 5>>config.log
33394{
33395 echo
33396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33397## Running $as_me. ##
33398_ASBOX
33399 $as_echo "$ac_log"
33400} >&5
33401
33402_ACEOF
33403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33404#
33405# INIT-COMMANDS
33406#
33407PACKAGE="$PACKAGE"
33408AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33409
33410
33411# The HP-UX ksh and POSIX shell print the target directory to stdout
33412# if CDPATH is set.
33413(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33414
33415sed_quote_subst='$sed_quote_subst'
33416double_quote_subst='$double_quote_subst'
33417delay_variable_subst='$delay_variable_subst'
cristy232a9ab2010-06-26 01:02:54 +000033418SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33419Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33420GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33421EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33422FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33423SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33424ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33425LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33426macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33427macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33428AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33429DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33430OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33431enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33432enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33433pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33434enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33435host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33436host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33437host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33438build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33439build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33440build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33441NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33442LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33443max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33444ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33445exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33446lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33447lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33448lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33449reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33450reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33451deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33452file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33453AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33454AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33455STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33456RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33457old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33458old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33459old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33460lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33461CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33462CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33463compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33464GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33465lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33466lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33467lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33468lt_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"`'
33469objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33470MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33471lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33472lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33473lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33474lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33475lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33476need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33477DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33478NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33479LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33480OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33481OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33482libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33483shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33484extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33485archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33486enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33487export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33488whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33489compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33490old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33491old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33492archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33493archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33494module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33495module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33496with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33497allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33498no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33499hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33500hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33501hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33502hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33503hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33504hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33505hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33506hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33507inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33508link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33509fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33510always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33511export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33512exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33513include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33514prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33515file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33516variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33517need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33518need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33519version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33520runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33521shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33522shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33523libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33524library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33525soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33526install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33527postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33528postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33529finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33530finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33531hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33532sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33533sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33534hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33535enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33536enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33537enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33538old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33539striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33540compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33541predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33542postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33543predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33544postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33545compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33546LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33547reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33548reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33549old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33550compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33551GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33552lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33553lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33554lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33555lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33556lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33557archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33558enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33559export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33560whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33561compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33562old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33563old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33564archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33565archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33566module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33567module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33568with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33569allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33570no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33571hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33572hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33573hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33574hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33575hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33576hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33577hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33578hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33579inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33580link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33581fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33582always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33583export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33584exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33585include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33586prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33587file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33588hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33589compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33590predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33591postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33592predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33593postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33594compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033595
33596LTCC='$LTCC'
33597LTCFLAGS='$LTCFLAGS'
33598compiler='$compiler_DEFAULT'
33599
cristy232a9ab2010-06-26 01:02:54 +000033600# A function that is used when there is no print builtin or printf.
33601func_fallback_echo ()
33602{
33603 eval 'cat <<_LTECHO_EOF
33604\$1
33605_LTECHO_EOF'
33606}
33607
cristy3ed852e2009-09-05 21:47:34 +000033608# Quote evaled strings.
33609for var in SED \
33610GREP \
33611EGREP \
33612FGREP \
cristy232a9ab2010-06-26 01:02:54 +000033613SHELL \
33614ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033615LD \
cristy232a9ab2010-06-26 01:02:54 +000033616AS \
33617DLLTOOL \
33618OBJDUMP \
cristy3ed852e2009-09-05 21:47:34 +000033619NM \
33620LN_S \
33621lt_SP2NL \
33622lt_NL2SP \
33623reload_flag \
33624deplibs_check_method \
33625file_magic_cmd \
33626AR \
33627AR_FLAGS \
33628STRIP \
33629RANLIB \
33630CC \
33631CFLAGS \
33632compiler \
33633lt_cv_sys_global_symbol_pipe \
33634lt_cv_sys_global_symbol_to_cdecl \
33635lt_cv_sys_global_symbol_to_c_name_address \
33636lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy3ed852e2009-09-05 21:47:34 +000033637lt_prog_compiler_no_builtin_flag \
33638lt_prog_compiler_wl \
33639lt_prog_compiler_pic \
33640lt_prog_compiler_static \
33641lt_cv_prog_compiler_c_o \
33642need_locks \
33643DSYMUTIL \
33644NMEDIT \
33645LIPO \
33646OTOOL \
33647OTOOL64 \
33648shrext_cmds \
33649export_dynamic_flag_spec \
33650whole_archive_flag_spec \
33651compiler_needs_object \
33652with_gnu_ld \
33653allow_undefined_flag \
33654no_undefined_flag \
33655hardcode_libdir_flag_spec \
33656hardcode_libdir_flag_spec_ld \
33657hardcode_libdir_separator \
33658fix_srcfile_path \
33659exclude_expsyms \
33660include_expsyms \
33661file_list_spec \
33662variables_saved_for_relink \
33663libname_spec \
33664library_names_spec \
33665soname_spec \
cristy232a9ab2010-06-26 01:02:54 +000033666install_override_mode \
cristy3ed852e2009-09-05 21:47:34 +000033667finish_eval \
33668old_striplib \
33669striplib \
33670compiler_lib_search_dirs \
33671predep_objects \
33672postdep_objects \
33673predeps \
33674postdeps \
33675compiler_lib_search_path \
33676LD_CXX \
cristy232a9ab2010-06-26 01:02:54 +000033677reload_flag_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033678compiler_CXX \
33679lt_prog_compiler_no_builtin_flag_CXX \
33680lt_prog_compiler_wl_CXX \
33681lt_prog_compiler_pic_CXX \
33682lt_prog_compiler_static_CXX \
33683lt_cv_prog_compiler_c_o_CXX \
33684export_dynamic_flag_spec_CXX \
33685whole_archive_flag_spec_CXX \
33686compiler_needs_object_CXX \
33687with_gnu_ld_CXX \
33688allow_undefined_flag_CXX \
33689no_undefined_flag_CXX \
33690hardcode_libdir_flag_spec_CXX \
33691hardcode_libdir_flag_spec_ld_CXX \
33692hardcode_libdir_separator_CXX \
33693fix_srcfile_path_CXX \
33694exclude_expsyms_CXX \
33695include_expsyms_CXX \
33696file_list_spec_CXX \
33697compiler_lib_search_dirs_CXX \
33698predep_objects_CXX \
33699postdep_objects_CXX \
33700predeps_CXX \
33701postdeps_CXX \
33702compiler_lib_search_path_CXX; do
cristy232a9ab2010-06-26 01:02:54 +000033703 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033704 *[\\\\\\\`\\"\\\$]*)
cristy232a9ab2010-06-26 01:02:54 +000033705 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033706 ;;
33707 *)
33708 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33709 ;;
33710 esac
33711done
33712
33713# Double-quote double-evaled strings.
33714for var in reload_cmds \
33715old_postinstall_cmds \
33716old_postuninstall_cmds \
33717old_archive_cmds \
33718extract_expsyms_cmds \
33719old_archive_from_new_cmds \
33720old_archive_from_expsyms_cmds \
33721archive_cmds \
33722archive_expsym_cmds \
33723module_cmds \
33724module_expsym_cmds \
33725export_symbols_cmds \
33726prelink_cmds \
33727postinstall_cmds \
33728postuninstall_cmds \
33729finish_cmds \
33730sys_lib_search_path_spec \
33731sys_lib_dlsearch_path_spec \
cristy232a9ab2010-06-26 01:02:54 +000033732reload_cmds_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033733old_archive_cmds_CXX \
33734old_archive_from_new_cmds_CXX \
33735old_archive_from_expsyms_cmds_CXX \
33736archive_cmds_CXX \
33737archive_expsym_cmds_CXX \
33738module_cmds_CXX \
33739module_expsym_cmds_CXX \
33740export_symbols_cmds_CXX \
33741prelink_cmds_CXX; do
cristy232a9ab2010-06-26 01:02:54 +000033742 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033743 *[\\\\\\\`\\"\\\$]*)
cristy232a9ab2010-06-26 01:02:54 +000033744 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033745 ;;
33746 *)
33747 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33748 ;;
33749 esac
33750done
33751
cristy3ed852e2009-09-05 21:47:34 +000033752ac_aux_dir='$ac_aux_dir'
33753xsi_shell='$xsi_shell'
33754lt_shell_append='$lt_shell_append'
33755
33756# See if we are running on zsh, and set the options which allow our
33757# commands through without removal of \ escapes INIT.
33758if test -n "\${ZSH_VERSION+set}" ; then
33759 setopt NO_GLOB_SUBST
33760fi
33761
33762
33763 PACKAGE='$PACKAGE'
33764 VERSION='$VERSION'
33765 TIMESTAMP='$TIMESTAMP'
33766 RM='$RM'
33767 ofile='$ofile'
33768
33769
33770
33771
33772
33773
33774_ACEOF
33775
33776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33777
33778# Handling of arguments.
33779for ac_config_target in $ac_config_targets
33780do
33781 case $ac_config_target in
33782 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33783 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33784 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33785 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33786 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33787 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33788 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033789 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033790 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33791 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33792 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33793 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33794 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33795 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33796 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33797 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33798 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33799 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33800 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33801 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33802 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33803 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33804 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33805 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33806 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33807 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33808 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33809 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33810 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33811 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33812 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33813 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33814 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33815 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33816 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33817 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33818 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33819 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33820 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33821 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33822 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33823 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33824 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33825 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33826 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33827 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33828 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33829 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33830 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33831 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33832
cristy8b350f62009-11-15 23:12:43 +000033833 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033834 esac
33835done
33836
33837
33838# If the user did not use the arguments to specify the items to instantiate,
33839# then the envvar interface is used. Set only those that are not.
33840# We use the long form for the default assignment because of an extremely
33841# bizarre bug on SunOS 4.1.3.
33842if $ac_need_defaults; then
33843 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33844 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33845 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33846fi
33847
33848# Have a temporary directory for convenience. Make it in the build tree
33849# simply because there is no reason against having it here, and in addition,
33850# creating and moving files from /tmp can sometimes cause problems.
33851# Hook for its removal unless debugging.
33852# Note that there is a small window in which the directory will not be cleaned:
33853# after its creation but before its name has been assigned to `$tmp'.
33854$debug ||
33855{
33856 tmp=
33857 trap 'exit_status=$?
33858 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33859' 0
cristy8b350f62009-11-15 23:12:43 +000033860 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033861}
33862# Create a (secure) tmp directory for tmp files.
33863
33864{
33865 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33866 test -n "$tmp" && test -d "$tmp"
33867} ||
33868{
33869 tmp=./conf$$-$RANDOM
33870 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000033871} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033872
33873# Set up the scripts for CONFIG_FILES section.
33874# No need to generate them if there are no CONFIG_FILES.
33875# This happens for instance with `./config.status config.h'.
33876if test -n "$CONFIG_FILES"; then
33877
33878
cristy8b350f62009-11-15 23:12:43 +000033879ac_cr=`echo X | tr X '\015'`
33880# On cygwin, bash can eat \r inside `` if the user requested igncr.
33881# But we know of no other shell where ac_cr would be empty at this
33882# point, so we can use a bashism as a fallback.
33883if test "x$ac_cr" = x; then
33884 eval ac_cr=\$\'\\r\'
33885fi
cristy3ed852e2009-09-05 21:47:34 +000033886ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33887if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000033888 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000033889else
33890 ac_cs_awk_cr=$ac_cr
33891fi
33892
33893echo 'BEGIN {' >"$tmp/subs1.awk" &&
33894_ACEOF
33895
33896
33897{
33898 echo "cat >conf$$subs.awk <<_ACEOF" &&
33899 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33900 echo "_ACEOF"
33901} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033902 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033903ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33904ac_delim='%!_!# '
33905for ac_last_try in false false false false false :; do
33906 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033907 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033908
33909 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33910 if test $ac_delim_n = $ac_delim_num; then
33911 break
33912 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033913 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033914 else
33915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33916 fi
33917done
33918rm -f conf$$subs.sh
33919
33920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33921cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33922_ACEOF
33923sed -n '
33924h
33925s/^/S["/; s/!.*/"]=/
33926p
33927g
33928s/^[^!]*!//
33929:repl
33930t repl
33931s/'"$ac_delim"'$//
33932t delim
33933:nl
33934h
cristycd4c5312009-11-22 01:19:08 +000033935s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033936t more1
33937s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33938p
33939n
33940b repl
33941:more1
33942s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33943p
33944g
33945s/.\{148\}//
33946t nl
33947:delim
33948h
cristycd4c5312009-11-22 01:19:08 +000033949s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033950t more2
33951s/["\\]/\\&/g; s/^/"/; s/$/"/
33952p
33953b
33954:more2
33955s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33956p
33957g
33958s/.\{148\}//
33959t delim
33960' <conf$$subs.awk | sed '
33961/^[^""]/{
33962 N
33963 s/\n//
33964}
33965' >>$CONFIG_STATUS || ac_write_fail=1
33966rm -f conf$$subs.awk
33967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33968_ACAWK
33969cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33970 for (key in S) S_is_set[key] = 1
33971 FS = ""
33972
33973}
33974{
33975 line = $ 0
33976 nfields = split(line, field, "@")
33977 substed = 0
33978 len = length(field[1])
33979 for (i = 2; i < nfields; i++) {
33980 key = field[i]
33981 keylen = length(key)
33982 if (S_is_set[key]) {
33983 value = S[key]
33984 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33985 len += length(value) + length(field[++i])
33986 substed = 1
33987 } else
33988 len += 1 + keylen
33989 }
33990
33991 print line
33992}
33993
33994_ACAWK
33995_ACEOF
33996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33997if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33998 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33999else
34000 cat
34001fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000034002 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034003_ACEOF
34004
34005# VPATH may cause trouble with some makes, so we remove $(srcdir),
34006# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34007# trailing colons and then remove the whole line if VPATH becomes empty
34008# (actually we leave an empty line to preserve line numbers).
34009if test "x$srcdir" = x.; then
34010 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34011s/:*\$(srcdir):*/:/
34012s/:*\${srcdir}:*/:/
34013s/:*@srcdir@:*/:/
34014s/^\([^=]*=[ ]*\):*/\1/
34015s/:*$//
34016s/^[^=]*=[ ]*$//
34017}'
34018fi
34019
34020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34021fi # test -n "$CONFIG_FILES"
34022
34023# Set up the scripts for CONFIG_HEADERS section.
34024# No need to generate them if there are no CONFIG_HEADERS.
34025# This happens for instance with `./config.status Makefile'.
34026if test -n "$CONFIG_HEADERS"; then
34027cat >"$tmp/defines.awk" <<\_ACAWK ||
34028BEGIN {
34029_ACEOF
34030
34031# Transform confdefs.h into an awk script `defines.awk', embedded as
34032# here-document in config.status, that substitutes the proper values into
34033# config.h.in to produce config.h.
34034
34035# Create a delimiter string that does not exist in confdefs.h, to ease
34036# handling of long lines.
34037ac_delim='%!_!# '
34038for ac_last_try in false false :; do
34039 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34040 if test -z "$ac_t"; then
34041 break
34042 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000034043 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034044 else
34045 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34046 fi
34047done
34048
34049# For the awk script, D is an array of macro values keyed by name,
34050# likewise P contains macro parameters if any. Preserve backslash
34051# newline sequences.
34052
34053ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34054sed -n '
34055s/.\{148\}/&'"$ac_delim"'/g
34056t rset
34057:rset
34058s/^[ ]*#[ ]*define[ ][ ]*/ /
34059t def
34060d
34061:def
34062s/\\$//
34063t bsnl
34064s/["\\]/\\&/g
34065s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34066D["\1"]=" \3"/p
34067s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34068d
34069:bsnl
34070s/["\\]/\\&/g
34071s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34072D["\1"]=" \3\\\\\\n"\\/p
34073t cont
34074s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34075t cont
34076d
34077:cont
34078n
34079s/.\{148\}/&'"$ac_delim"'/g
34080t clear
34081:clear
34082s/\\$//
34083t bsnlc
34084s/["\\]/\\&/g; s/^/"/; s/$/"/p
34085d
34086:bsnlc
34087s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34088b cont
34089' <confdefs.h | sed '
34090s/'"$ac_delim"'/"\\\
34091"/g' >>$CONFIG_STATUS || ac_write_fail=1
34092
34093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34094 for (key in D) D_is_set[key] = 1
34095 FS = ""
34096}
34097/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34098 line = \$ 0
34099 split(line, arg, " ")
34100 if (arg[1] == "#") {
34101 defundef = arg[2]
34102 mac1 = arg[3]
34103 } else {
34104 defundef = substr(arg[1], 2)
34105 mac1 = arg[2]
34106 }
34107 split(mac1, mac2, "(") #)
34108 macro = mac2[1]
34109 prefix = substr(line, 1, index(line, defundef) - 1)
34110 if (D_is_set[macro]) {
34111 # Preserve the white space surrounding the "#".
34112 print prefix "define", macro P[macro] D[macro]
34113 next
34114 } else {
34115 # Replace #undef with comments. This is necessary, for example,
34116 # in the case of _POSIX_SOURCE, which is predefined and required
34117 # on some systems where configure will not decide to define it.
34118 if (defundef == "undef") {
34119 print "/*", prefix defundef, macro, "*/"
34120 next
34121 }
34122 }
34123}
34124{ print }
34125_ACAWK
34126_ACEOF
34127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000034128 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034129fi # test -n "$CONFIG_HEADERS"
34130
34131
34132eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34133shift
34134for ac_tag
34135do
34136 case $ac_tag in
34137 :[FHLC]) ac_mode=$ac_tag; continue;;
34138 esac
34139 case $ac_mode$ac_tag in
34140 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000034141 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034142 :[FH]-) ac_tag=-:-;;
34143 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34144 esac
34145 ac_save_IFS=$IFS
34146 IFS=:
34147 set x $ac_tag
34148 IFS=$ac_save_IFS
34149 shift
34150 ac_file=$1
34151 shift
34152
34153 case $ac_mode in
34154 :L) ac_source=$1;;
34155 :[FH])
34156 ac_file_inputs=
34157 for ac_f
34158 do
34159 case $ac_f in
34160 -) ac_f="$tmp/stdin";;
34161 *) # Look for the file first in the build tree, then in the source tree
34162 # (if the path is not absolute). The absolute path cannot be DOS-style,
34163 # because $ac_f cannot contain `:'.
34164 test -f "$ac_f" ||
34165 case $ac_f in
34166 [\\/$]*) false;;
34167 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34168 esac ||
cristy8b350f62009-11-15 23:12:43 +000034169 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034170 esac
34171 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034172 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034173 done
34174
34175 # Let's still pretend it is `configure' which instantiates (i.e., don't
34176 # use $as_me), people would be surprised to read:
34177 # /* config.h. Generated by config.status. */
34178 configure_input='Generated from '`
34179 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34180 `' by configure.'
34181 if test x"$ac_file" != x-; then
34182 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034183 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034184$as_echo "$as_me: creating $ac_file" >&6;}
34185 fi
34186 # Neutralize special characters interpreted by sed in replacement strings.
34187 case $configure_input in #(
34188 *\&* | *\|* | *\\* )
34189 ac_sed_conf_input=`$as_echo "$configure_input" |
34190 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34191 *) ac_sed_conf_input=$configure_input;;
34192 esac
34193
34194 case $ac_tag in
34195 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000034196 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034197 esac
34198 ;;
34199 esac
34200
34201 ac_dir=`$as_dirname -- "$ac_file" ||
34202$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34203 X"$ac_file" : 'X\(//\)[^/]' \| \
34204 X"$ac_file" : 'X\(//\)$' \| \
34205 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34206$as_echo X"$ac_file" |
34207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34208 s//\1/
34209 q
34210 }
34211 /^X\(\/\/\)[^/].*/{
34212 s//\1/
34213 q
34214 }
34215 /^X\(\/\/\)$/{
34216 s//\1/
34217 q
34218 }
34219 /^X\(\/\).*/{
34220 s//\1/
34221 q
34222 }
34223 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034224 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034225 ac_builddir=.
34226
34227case "$ac_dir" in
34228.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34229*)
34230 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34231 # A ".." for each directory in $ac_dir_suffix.
34232 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34233 case $ac_top_builddir_sub in
34234 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34235 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34236 esac ;;
34237esac
34238ac_abs_top_builddir=$ac_pwd
34239ac_abs_builddir=$ac_pwd$ac_dir_suffix
34240# for backward compatibility:
34241ac_top_builddir=$ac_top_build_prefix
34242
34243case $srcdir in
34244 .) # We are building in place.
34245 ac_srcdir=.
34246 ac_top_srcdir=$ac_top_builddir_sub
34247 ac_abs_top_srcdir=$ac_pwd ;;
34248 [\\/]* | ?:[\\/]* ) # Absolute name.
34249 ac_srcdir=$srcdir$ac_dir_suffix;
34250 ac_top_srcdir=$srcdir
34251 ac_abs_top_srcdir=$srcdir ;;
34252 *) # Relative name.
34253 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34254 ac_top_srcdir=$ac_top_build_prefix$srcdir
34255 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34256esac
34257ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34258
34259
34260 case $ac_mode in
34261 :F)
34262 #
34263 # CONFIG_FILE
34264 #
34265
34266 case $INSTALL in
34267 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34268 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34269 esac
34270 ac_MKDIR_P=$MKDIR_P
34271 case $MKDIR_P in
34272 [\\/$]* | ?:[\\/]* ) ;;
34273 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34274 esac
34275_ACEOF
34276
34277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34278# If the template does not know about datarootdir, expand it.
34279# FIXME: This hack should be removed a few years after 2.60.
34280ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034281ac_sed_dataroot='
34282/datarootdir/ {
34283 p
34284 q
34285}
34286/@datadir@/p
34287/@docdir@/p
34288/@infodir@/p
34289/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034290/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034291case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34292*datarootdir*) ac_datarootdir_seen=yes;;
34293*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034295$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34296_ACEOF
34297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34298 ac_datarootdir_hack='
34299 s&@datadir@&$datadir&g
34300 s&@docdir@&$docdir&g
34301 s&@infodir@&$infodir&g
34302 s&@localedir@&$localedir&g
34303 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034304 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034305esac
34306_ACEOF
34307
34308# Neutralize VPATH when `$srcdir' = `.'.
34309# Shell code in configure.ac might set extrasub.
34310# FIXME: do we really want to maintain this feature?
34311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34312ac_sed_extra="$ac_vpsub
34313$extrasub
34314_ACEOF
34315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34316:t
34317/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34318s|@configure_input@|$ac_sed_conf_input|;t t
34319s&@top_builddir@&$ac_top_builddir_sub&;t t
34320s&@top_build_prefix@&$ac_top_build_prefix&;t t
34321s&@srcdir@&$ac_srcdir&;t t
34322s&@abs_srcdir@&$ac_abs_srcdir&;t t
34323s&@top_srcdir@&$ac_top_srcdir&;t t
34324s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34325s&@builddir@&$ac_builddir&;t t
34326s&@abs_builddir@&$ac_abs_builddir&;t t
34327s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34328s&@INSTALL@&$ac_INSTALL&;t t
34329s&@MKDIR_P@&$ac_MKDIR_P&;t t
34330$ac_datarootdir_hack
34331"
34332eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000034333 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034334
34335test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34336 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34337 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000034339which seems to be undefined. Please make sure it is defined." >&5
34340$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34341which seems to be undefined. Please make sure it is defined." >&2;}
34342
34343 rm -f "$tmp/stdin"
34344 case $ac_file in
34345 -) cat "$tmp/out" && rm -f "$tmp/out";;
34346 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34347 esac \
cristy8b350f62009-11-15 23:12:43 +000034348 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034349 ;;
34350 :H)
34351 #
34352 # CONFIG_HEADER
34353 #
34354 if test x"$ac_file" != x-; then
34355 {
34356 $as_echo "/* $configure_input */" \
34357 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34358 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000034359 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034360 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034361 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034362$as_echo "$as_me: $ac_file is unchanged" >&6;}
34363 else
34364 rm -f "$ac_file"
34365 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000034366 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034367 fi
34368 else
34369 $as_echo "/* $configure_input */" \
34370 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000034371 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034372 fi
34373# Compute "$ac_file"'s index in $config_headers.
34374_am_arg="$ac_file"
34375_am_stamp_count=1
34376for _am_header in $config_headers :; do
34377 case $_am_header in
34378 $_am_arg | $_am_arg:* )
34379 break ;;
34380 * )
34381 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34382 esac
34383done
34384echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34385$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34386 X"$_am_arg" : 'X\(//\)[^/]' \| \
34387 X"$_am_arg" : 'X\(//\)$' \| \
34388 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34389$as_echo X"$_am_arg" |
34390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34391 s//\1/
34392 q
34393 }
34394 /^X\(\/\/\)[^/].*/{
34395 s//\1/
34396 q
34397 }
34398 /^X\(\/\/\)$/{
34399 s//\1/
34400 q
34401 }
34402 /^X\(\/\).*/{
34403 s//\1/
34404 q
34405 }
34406 s/.*/./; q'`/stamp-h$_am_stamp_count
34407 ;;
34408
cristy8b350f62009-11-15 23:12:43 +000034409 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034410$as_echo "$as_me: executing $ac_file commands" >&6;}
34411 ;;
34412 esac
34413
34414
34415 case $ac_file$ac_mode in
34416 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34417ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34418ac_prefix_conf_PKG=`echo MagickCore`
34419ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34420ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34421ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34422if test ".$ac_prefix_conf_INP" = "."; then
34423 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34424 case "$ac_file" in
34425 *.h) ac_prefix_conf_INP=$ac_file ;;
34426 *)
34427 esac
34428 test ".$ac_prefix_conf_INP" != "." && break
34429 done
34430fi
34431if test ".$ac_prefix_conf_INP" = "."; then
34432 case "$ac_prefix_conf_OUT" in
34433 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34434 ;;
34435 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34436 ;;
34437 *) ac_prefix_conf_INP=config.h
34438 ;;
34439 esac
34440fi
34441if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000034442 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034443else
34444 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34445 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34446 fi fi
cristy8b350f62009-11-15 23:12:43 +000034447 { $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 +000034448$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34449 if test -f $ac_prefix_conf_INP ; then
34450 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34451 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034452 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34453 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034454 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034455 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34456 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034457 echo "#endif/" >> conftest.prefix
34458 # now executing _script on _DEF input to create _OUT output file
34459 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34460 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34461 echo ' ' >>$tmp/pconfig.h
34462 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34463
34464 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34465 echo ' ' >>$tmp/pconfig.h
34466 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34467 echo "#endif" >>$tmp/pconfig.h
34468 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034469 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034470$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34471 else
34472 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34473$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34474 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34475 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34476 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34477$as_echo X"$ac_prefix_conf_OUT" |
34478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34479 s//\1/
34480 q
34481 }
34482 /^X\(\/\/\)[^/].*/{
34483 s//\1/
34484 q
34485 }
34486 /^X\(\/\/\)$/{
34487 s//\1/
34488 q
34489 }
34490 /^X\(\/\).*/{
34491 s//\1/
34492 q
34493 }
34494 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034495 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034496 rm -f "$ac_prefix_conf_OUT"
34497 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34498 fi
34499 cp conftest.prefix _configs.sed
34500 else
cristy8b350f62009-11-15 23:12:43 +000034501 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 +000034502 fi
34503 rm -f conftest.*
34504fi
34505 ;;
34506 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34507 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34508 # are listed without --file. Let's play safe and only enable the eval
34509 # if we detect the quoting.
34510 case $CONFIG_FILES in
34511 *\'*) eval set x "$CONFIG_FILES" ;;
34512 *) set x $CONFIG_FILES ;;
34513 esac
34514 shift
34515 for mf
34516 do
34517 # Strip MF so we end up with the name of the file.
34518 mf=`echo "$mf" | sed -e 's/:.*$//'`
34519 # Check whether this is an Automake generated Makefile or not.
34520 # We used to match only the files named `Makefile.in', but
34521 # some people rename them; so instead we look at the file content.
34522 # Grep'ing the first line is not enough: some people post-process
34523 # each Makefile.in and add a new line on top of each file to say so.
34524 # Grep'ing the whole file is not good either: AIX grep has a line
34525 # limit of 2048, but all sed's we know have understand at least 4000.
34526 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34527 dirpart=`$as_dirname -- "$mf" ||
34528$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34529 X"$mf" : 'X\(//\)[^/]' \| \
34530 X"$mf" : 'X\(//\)$' \| \
34531 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34532$as_echo X"$mf" |
34533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34534 s//\1/
34535 q
34536 }
34537 /^X\(\/\/\)[^/].*/{
34538 s//\1/
34539 q
34540 }
34541 /^X\(\/\/\)$/{
34542 s//\1/
34543 q
34544 }
34545 /^X\(\/\).*/{
34546 s//\1/
34547 q
34548 }
34549 s/.*/./; q'`
34550 else
34551 continue
34552 fi
34553 # Extract the definition of DEPDIR, am__include, and am__quote
34554 # from the Makefile without running `make'.
34555 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34556 test -z "$DEPDIR" && continue
34557 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34558 test -z "am__include" && continue
34559 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34560 # When using ansi2knr, U may be empty or an underscore; expand it
34561 U=`sed -n 's/^U = //p' < "$mf"`
34562 # Find all dependency output files, they are included files with
34563 # $(DEPDIR) in their names. We invoke sed twice because it is the
34564 # simplest approach to changing $(DEPDIR) to its actual value in the
34565 # expansion.
34566 for file in `sed -n "
34567 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34568 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34569 # Make sure the directory exists.
34570 test -f "$dirpart/$file" && continue
34571 fdir=`$as_dirname -- "$file" ||
34572$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34573 X"$file" : 'X\(//\)[^/]' \| \
34574 X"$file" : 'X\(//\)$' \| \
34575 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34576$as_echo X"$file" |
34577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34578 s//\1/
34579 q
34580 }
34581 /^X\(\/\/\)[^/].*/{
34582 s//\1/
34583 q
34584 }
34585 /^X\(\/\/\)$/{
34586 s//\1/
34587 q
34588 }
34589 /^X\(\/\).*/{
34590 s//\1/
34591 q
34592 }
34593 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034594 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034595 # echo "creating $dirpart/$file"
34596 echo '# dummy' > "$dirpart/$file"
34597 done
34598 done
34599}
34600 ;;
34601 "libtool":C)
34602
34603 # See if we are running on zsh, and set the options which allow our
34604 # commands through without removal of \ escapes.
34605 if test -n "${ZSH_VERSION+set}" ; then
34606 setopt NO_GLOB_SUBST
34607 fi
34608
34609 cfgfile="${ofile}T"
34610 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34611 $RM "$cfgfile"
34612
34613 cat <<_LT_EOF >> "$cfgfile"
34614#! $SHELL
34615
34616# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34617# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34618# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34619# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34620#
34621# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy232a9ab2010-06-26 01:02:54 +000034622# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34623# Inc.
cristy3ed852e2009-09-05 21:47:34 +000034624# Written by Gordon Matzigkeit, 1996
34625#
34626# This file is part of GNU Libtool.
34627#
34628# GNU Libtool is free software; you can redistribute it and/or
34629# modify it under the terms of the GNU General Public License as
34630# published by the Free Software Foundation; either version 2 of
34631# the License, or (at your option) any later version.
34632#
34633# As a special exception to the GNU General Public License,
34634# if you distribute this file as part of a program or library that
34635# is built using GNU Libtool, you may include this file under the
34636# same distribution terms that you use for the rest of that program.
34637#
34638# GNU Libtool is distributed in the hope that it will be useful,
34639# but WITHOUT ANY WARRANTY; without even the implied warranty of
34640# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34641# GNU General Public License for more details.
34642#
34643# You should have received a copy of the GNU General Public License
34644# along with GNU Libtool; see the file COPYING. If not, a copy
34645# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34646# obtained by writing to the Free Software Foundation, Inc.,
34647# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34648
34649
34650# The names of the tagged configurations supported by this script.
34651available_tags="CXX "
34652
34653# ### BEGIN LIBTOOL CONFIG
34654
34655# A sed program that does not truncate output.
34656SED=$lt_SED
34657
34658# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34659Xsed="\$SED -e 1s/^X//"
34660
34661# A grep program that handles long lines.
34662GREP=$lt_GREP
34663
34664# An ERE matcher.
34665EGREP=$lt_EGREP
34666
34667# A literal string matcher.
34668FGREP=$lt_FGREP
34669
cristy232a9ab2010-06-26 01:02:54 +000034670# Shell to use when invoking shell scripts.
34671SHELL=$lt_SHELL
34672
34673# An echo program that protects backslashes.
34674ECHO=$lt_ECHO
34675
cristy3ed852e2009-09-05 21:47:34 +000034676# Which release of libtool.m4 was used?
34677macro_version=$macro_version
34678macro_revision=$macro_revision
34679
34680# Assembler program.
cristy232a9ab2010-06-26 01:02:54 +000034681AS=$lt_AS
cristy3ed852e2009-09-05 21:47:34 +000034682
34683# DLL creation program.
cristy232a9ab2010-06-26 01:02:54 +000034684DLLTOOL=$lt_DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034685
34686# Object dumper program.
cristy232a9ab2010-06-26 01:02:54 +000034687OBJDUMP=$lt_OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034688
34689# Whether or not to build shared libraries.
34690build_libtool_libs=$enable_shared
34691
34692# Whether or not to build static libraries.
34693build_old_libs=$enable_static
34694
34695# What type of objects to build.
34696pic_mode=$pic_mode
34697
34698# Whether or not to optimize for fast installation.
34699fast_install=$enable_fast_install
34700
34701# The host system.
34702host_alias=$host_alias
34703host=$host
34704host_os=$host_os
34705
34706# The build system.
34707build_alias=$build_alias
34708build=$build
34709build_os=$build_os
34710
34711# A BSD- or MS-compatible name lister.
34712NM=$lt_NM
34713
34714# Whether we need soft or hard links.
34715LN_S=$lt_LN_S
34716
34717# What is the maximum length of a command?
34718max_cmd_len=$max_cmd_len
34719
34720# Object file suffix (normally "o").
34721objext=$ac_objext
34722
34723# Executable file suffix (normally "").
34724exeext=$exeext
34725
34726# whether the shell understands "unset".
34727lt_unset=$lt_unset
34728
34729# turn spaces into newlines.
34730SP2NL=$lt_lt_SP2NL
34731
34732# turn newlines into spaces.
34733NL2SP=$lt_lt_NL2SP
34734
cristy3ed852e2009-09-05 21:47:34 +000034735# Method to check whether dependent libraries are shared objects.
34736deplibs_check_method=$lt_deplibs_check_method
34737
34738# Command to use when deplibs_check_method == "file_magic".
34739file_magic_cmd=$lt_file_magic_cmd
34740
34741# The archiver.
34742AR=$lt_AR
34743AR_FLAGS=$lt_AR_FLAGS
34744
34745# A symbol stripping program.
34746STRIP=$lt_STRIP
34747
34748# Commands used to install an old-style archive.
34749RANLIB=$lt_RANLIB
34750old_postinstall_cmds=$lt_old_postinstall_cmds
34751old_postuninstall_cmds=$lt_old_postuninstall_cmds
34752
cristy232a9ab2010-06-26 01:02:54 +000034753# Whether to use a lock for old archive extraction.
34754lock_old_archive_extraction=$lock_old_archive_extraction
34755
cristy3ed852e2009-09-05 21:47:34 +000034756# A C compiler.
34757LTCC=$lt_CC
34758
34759# LTCC compiler flags.
34760LTCFLAGS=$lt_CFLAGS
34761
34762# Take the output of nm and produce a listing of raw symbols and C names.
34763global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34764
34765# Transform the output of nm in a proper C declaration.
34766global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34767
34768# Transform the output of nm in a C name address pair.
34769global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34770
34771# Transform the output of nm in a C name address pair when lib prefix is needed.
34772global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34773
34774# The name of the directory that contains temporary libtool files.
34775objdir=$objdir
34776
cristy3ed852e2009-09-05 21:47:34 +000034777# Used to examine libraries when file_magic_cmd begins with "file".
34778MAGIC_CMD=$MAGIC_CMD
34779
34780# Must we lock files when doing compilation?
34781need_locks=$lt_need_locks
34782
34783# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34784DSYMUTIL=$lt_DSYMUTIL
34785
34786# Tool to change global to local symbols on Mac OS X.
34787NMEDIT=$lt_NMEDIT
34788
34789# Tool to manipulate fat objects and archives on Mac OS X.
34790LIPO=$lt_LIPO
34791
34792# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34793OTOOL=$lt_OTOOL
34794
34795# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34796OTOOL64=$lt_OTOOL64
34797
34798# Old archive suffix (normally "a").
34799libext=$libext
34800
34801# Shared library suffix (normally ".so").
34802shrext_cmds=$lt_shrext_cmds
34803
34804# The commands to extract the exported symbol list from a shared archive.
34805extract_expsyms_cmds=$lt_extract_expsyms_cmds
34806
34807# Variables whose values should be saved in libtool wrapper scripts and
34808# restored at link time.
34809variables_saved_for_relink=$lt_variables_saved_for_relink
34810
34811# Do we need the "lib" prefix for modules?
34812need_lib_prefix=$need_lib_prefix
34813
34814# Do we need a version for libraries?
34815need_version=$need_version
34816
34817# Library versioning type.
34818version_type=$version_type
34819
34820# Shared library runtime path variable.
34821runpath_var=$runpath_var
34822
34823# Shared library path variable.
34824shlibpath_var=$shlibpath_var
34825
34826# Is shlibpath searched before the hard-coded library search path?
34827shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34828
34829# Format of library name prefix.
34830libname_spec=$lt_libname_spec
34831
34832# List of archive names. First name is the real one, the rest are links.
34833# The last name is the one that the linker finds with -lNAME
34834library_names_spec=$lt_library_names_spec
34835
34836# The coded name of the library, if different from the real name.
34837soname_spec=$lt_soname_spec
34838
cristy232a9ab2010-06-26 01:02:54 +000034839# Permission mode override for installation of shared libraries.
34840install_override_mode=$lt_install_override_mode
34841
cristy3ed852e2009-09-05 21:47:34 +000034842# Command to use after installation of a shared archive.
34843postinstall_cmds=$lt_postinstall_cmds
34844
34845# Command to use after uninstallation of a shared archive.
34846postuninstall_cmds=$lt_postuninstall_cmds
34847
34848# Commands used to finish a libtool library installation in a directory.
34849finish_cmds=$lt_finish_cmds
34850
34851# As "finish_cmds", except a single script fragment to be evaled but
34852# not shown.
34853finish_eval=$lt_finish_eval
34854
34855# Whether we should hardcode library paths into libraries.
34856hardcode_into_libs=$hardcode_into_libs
34857
34858# Compile-time system search path for libraries.
34859sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34860
34861# Run-time system search path for libraries.
34862sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34863
34864# Whether dlopen is supported.
34865dlopen_support=$enable_dlopen
34866
34867# Whether dlopen of programs is supported.
34868dlopen_self=$enable_dlopen_self
34869
34870# Whether dlopen of statically linked programs is supported.
34871dlopen_self_static=$enable_dlopen_self_static
34872
34873# Commands to strip libraries.
34874old_striplib=$lt_old_striplib
34875striplib=$lt_striplib
34876
34877
34878# The linker used to build libraries.
34879LD=$lt_LD
34880
cristy232a9ab2010-06-26 01:02:54 +000034881# How to create reloadable object files.
34882reload_flag=$lt_reload_flag
34883reload_cmds=$lt_reload_cmds
34884
cristy3ed852e2009-09-05 21:47:34 +000034885# Commands used to build an old-style archive.
34886old_archive_cmds=$lt_old_archive_cmds
34887
34888# A language specific compiler.
34889CC=$lt_compiler
34890
34891# Is the compiler the GNU compiler?
34892with_gcc=$GCC
34893
34894# Compiler flag to turn off builtin functions.
34895no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34896
34897# How to pass a linker flag through the compiler.
34898wl=$lt_lt_prog_compiler_wl
34899
34900# Additional compiler flags for building library objects.
34901pic_flag=$lt_lt_prog_compiler_pic
34902
34903# Compiler flag to prevent dynamic linking.
34904link_static_flag=$lt_lt_prog_compiler_static
34905
34906# Does compiler simultaneously support -c and -o options?
34907compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34908
34909# Whether or not to add -lc for building shared libraries.
34910build_libtool_need_lc=$archive_cmds_need_lc
34911
34912# Whether or not to disallow shared libs when runtime libs are static.
34913allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34914
34915# Compiler flag to allow reflexive dlopens.
34916export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34917
34918# Compiler flag to generate shared objects directly from archives.
34919whole_archive_flag_spec=$lt_whole_archive_flag_spec
34920
34921# Whether the compiler copes with passing no objects directly.
34922compiler_needs_object=$lt_compiler_needs_object
34923
34924# Create an old-style archive from a shared archive.
34925old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34926
34927# Create a temporary old-style archive to link instead of a shared archive.
34928old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34929
34930# Commands used to build a shared archive.
34931archive_cmds=$lt_archive_cmds
34932archive_expsym_cmds=$lt_archive_expsym_cmds
34933
34934# Commands used to build a loadable module if different from building
34935# a shared archive.
34936module_cmds=$lt_module_cmds
34937module_expsym_cmds=$lt_module_expsym_cmds
34938
34939# Whether we are building with GNU ld or not.
34940with_gnu_ld=$lt_with_gnu_ld
34941
34942# Flag that allows shared libraries with undefined symbols to be built.
34943allow_undefined_flag=$lt_allow_undefined_flag
34944
34945# Flag that enforces no undefined symbols.
34946no_undefined_flag=$lt_no_undefined_flag
34947
34948# Flag to hardcode \$libdir into a binary during linking.
34949# This must work even if \$libdir does not exist
34950hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34951
34952# If ld is used when linking, flag to hardcode \$libdir into a binary
34953# during linking. This must work even if \$libdir does not exist.
34954hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34955
34956# Whether we need a single "-rpath" flag with a separated argument.
34957hardcode_libdir_separator=$lt_hardcode_libdir_separator
34958
34959# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34960# DIR into the resulting binary.
34961hardcode_direct=$hardcode_direct
34962
34963# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34964# DIR into the resulting binary and the resulting library dependency is
34965# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34966# library is relocated.
34967hardcode_direct_absolute=$hardcode_direct_absolute
34968
34969# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34970# into the resulting binary.
34971hardcode_minus_L=$hardcode_minus_L
34972
34973# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34974# into the resulting binary.
34975hardcode_shlibpath_var=$hardcode_shlibpath_var
34976
34977# Set to "yes" if building a shared library automatically hardcodes DIR
34978# into the library and all subsequent libraries and executables linked
34979# against it.
34980hardcode_automatic=$hardcode_automatic
34981
34982# Set to yes if linker adds runtime paths of dependent libraries
34983# to runtime path list.
34984inherit_rpath=$inherit_rpath
34985
34986# Whether libtool must link a program against all its dependency libraries.
34987link_all_deplibs=$link_all_deplibs
34988
34989# Fix the shell variable \$srcfile for the compiler.
34990fix_srcfile_path=$lt_fix_srcfile_path
34991
34992# Set to "yes" if exported symbols are required.
34993always_export_symbols=$always_export_symbols
34994
34995# The commands to list exported symbols.
34996export_symbols_cmds=$lt_export_symbols_cmds
34997
34998# Symbols that should not be listed in the preloaded symbols.
34999exclude_expsyms=$lt_exclude_expsyms
35000
35001# Symbols that must always be exported.
35002include_expsyms=$lt_include_expsyms
35003
35004# Commands necessary for linking programs (against libraries) with templates.
35005prelink_cmds=$lt_prelink_cmds
35006
35007# Specify filename containing input files.
35008file_list_spec=$lt_file_list_spec
35009
35010# How to hardcode a shared library path into an executable.
35011hardcode_action=$hardcode_action
35012
35013# The directories searched by this compiler when creating a shared library.
35014compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35015
35016# Dependencies to place before and after the objects being linked to
35017# create a shared library.
35018predep_objects=$lt_predep_objects
35019postdep_objects=$lt_postdep_objects
35020predeps=$lt_predeps
35021postdeps=$lt_postdeps
35022
35023# The library search path used internally by the compiler when linking
35024# a shared library.
35025compiler_lib_search_path=$lt_compiler_lib_search_path
35026
35027# ### END LIBTOOL CONFIG
35028
35029_LT_EOF
35030
35031 case $host_os in
35032 aix3*)
35033 cat <<\_LT_EOF >> "$cfgfile"
35034# AIX sometimes has problems with the GCC collect2 program. For some
35035# reason, if we set the COLLECT_NAMES environment variable, the problems
35036# vanish in a puff of smoke.
35037if test "X${COLLECT_NAMES+set}" != Xset; then
35038 COLLECT_NAMES=
35039 export COLLECT_NAMES
35040fi
35041_LT_EOF
35042 ;;
35043 esac
35044
35045
35046ltmain="$ac_aux_dir/ltmain.sh"
35047
35048
35049 # We use sed instead of cat because bash on DJGPP gets confused if
35050 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35051 # text mode, it properly converts lines to CR/LF. This bash problem
35052 # is reportedly fixed, but why not run on old versions too?
35053 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35054 || (rm -f "$cfgfile"; exit 1)
35055
35056 case $xsi_shell in
35057 yes)
35058 cat << \_LT_EOF >> "$cfgfile"
35059
35060# func_dirname file append nondir_replacement
35061# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35062# otherwise set result to NONDIR_REPLACEMENT.
35063func_dirname ()
35064{
35065 case ${1} in
35066 */*) func_dirname_result="${1%/*}${2}" ;;
35067 * ) func_dirname_result="${3}" ;;
35068 esac
35069}
35070
35071# func_basename file
35072func_basename ()
35073{
35074 func_basename_result="${1##*/}"
35075}
35076
35077# func_dirname_and_basename file append nondir_replacement
35078# perform func_basename and func_dirname in a single function
35079# call:
35080# dirname: Compute the dirname of FILE. If nonempty,
35081# add APPEND to the result, otherwise set result
35082# to NONDIR_REPLACEMENT.
35083# value returned in "$func_dirname_result"
35084# basename: Compute filename of FILE.
35085# value retuned in "$func_basename_result"
35086# Implementation must be kept synchronized with func_dirname
35087# and func_basename. For efficiency, we do not delegate to
35088# those functions but instead duplicate the functionality here.
35089func_dirname_and_basename ()
35090{
35091 case ${1} in
35092 */*) func_dirname_result="${1%/*}${2}" ;;
35093 * ) func_dirname_result="${3}" ;;
35094 esac
35095 func_basename_result="${1##*/}"
35096}
35097
35098# func_stripname prefix suffix name
35099# strip PREFIX and SUFFIX off of NAME.
35100# PREFIX and SUFFIX must not contain globbing or regex special
35101# characters, hashes, percent signs, but SUFFIX may contain a leading
35102# dot (in which case that matches only a dot).
35103func_stripname ()
35104{
35105 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35106 # positional parameters, so assign one to ordinary parameter first.
35107 func_stripname_result=${3}
35108 func_stripname_result=${func_stripname_result#"${1}"}
35109 func_stripname_result=${func_stripname_result%"${2}"}
35110}
35111
35112# func_opt_split
35113func_opt_split ()
35114{
35115 func_opt_split_opt=${1%%=*}
35116 func_opt_split_arg=${1#*=}
35117}
35118
35119# func_lo2o object
35120func_lo2o ()
35121{
35122 case ${1} in
35123 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35124 *) func_lo2o_result=${1} ;;
35125 esac
35126}
35127
35128# func_xform libobj-or-source
35129func_xform ()
35130{
35131 func_xform_result=${1%.*}.lo
35132}
35133
35134# func_arith arithmetic-term...
35135func_arith ()
35136{
35137 func_arith_result=$(( $* ))
35138}
35139
35140# func_len string
35141# STRING may not start with a hyphen.
35142func_len ()
35143{
35144 func_len_result=${#1}
35145}
35146
35147_LT_EOF
35148 ;;
35149 *) # Bourne compatible functions.
35150 cat << \_LT_EOF >> "$cfgfile"
35151
35152# func_dirname file append nondir_replacement
35153# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35154# otherwise set result to NONDIR_REPLACEMENT.
35155func_dirname ()
35156{
35157 # Extract subdirectory from the argument.
cristy232a9ab2010-06-26 01:02:54 +000035158 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035159 if test "X$func_dirname_result" = "X${1}"; then
35160 func_dirname_result="${3}"
35161 else
35162 func_dirname_result="$func_dirname_result${2}"
35163 fi
35164}
35165
35166# func_basename file
35167func_basename ()
35168{
cristy232a9ab2010-06-26 01:02:54 +000035169 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035170}
35171
35172
35173# func_stripname prefix suffix name
35174# strip PREFIX and SUFFIX off of NAME.
35175# PREFIX and SUFFIX must not contain globbing or regex special
35176# characters, hashes, percent signs, but SUFFIX may contain a leading
35177# dot (in which case that matches only a dot).
35178# func_strip_suffix prefix name
35179func_stripname ()
35180{
35181 case ${2} in
cristy232a9ab2010-06-26 01:02:54 +000035182 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35183 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035184 esac
35185}
35186
35187# sed scripts:
35188my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35189my_sed_long_arg='1s/^-[^=]*=//'
35190
35191# func_opt_split
35192func_opt_split ()
35193{
cristy232a9ab2010-06-26 01:02:54 +000035194 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35195 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035196}
35197
35198# func_lo2o object
35199func_lo2o ()
35200{
cristy232a9ab2010-06-26 01:02:54 +000035201 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035202}
35203
35204# func_xform libobj-or-source
35205func_xform ()
35206{
cristy232a9ab2010-06-26 01:02:54 +000035207 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035208}
35209
35210# func_arith arithmetic-term...
35211func_arith ()
35212{
35213 func_arith_result=`expr "$@"`
35214}
35215
35216# func_len string
35217# STRING may not start with a hyphen.
35218func_len ()
35219{
35220 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35221}
35222
35223_LT_EOF
35224esac
35225
35226case $lt_shell_append in
35227 yes)
35228 cat << \_LT_EOF >> "$cfgfile"
35229
35230# func_append var value
35231# Append VALUE to the end of shell variable VAR.
35232func_append ()
35233{
35234 eval "$1+=\$2"
35235}
35236_LT_EOF
35237 ;;
35238 *)
35239 cat << \_LT_EOF >> "$cfgfile"
35240
35241# func_append var value
35242# Append VALUE to the end of shell variable VAR.
35243func_append ()
35244{
35245 eval "$1=\$$1\$2"
35246}
35247
35248_LT_EOF
35249 ;;
35250 esac
35251
35252
35253 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35254 || (rm -f "$cfgfile"; exit 1)
35255
35256 mv -f "$cfgfile" "$ofile" ||
35257 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35258 chmod +x "$ofile"
35259
35260
35261 cat <<_LT_EOF >> "$ofile"
35262
35263# ### BEGIN LIBTOOL TAG CONFIG: CXX
35264
35265# The linker used to build libraries.
35266LD=$lt_LD_CXX
35267
cristy232a9ab2010-06-26 01:02:54 +000035268# How to create reloadable object files.
35269reload_flag=$lt_reload_flag_CXX
35270reload_cmds=$lt_reload_cmds_CXX
35271
cristy3ed852e2009-09-05 21:47:34 +000035272# Commands used to build an old-style archive.
35273old_archive_cmds=$lt_old_archive_cmds_CXX
35274
35275# A language specific compiler.
35276CC=$lt_compiler_CXX
35277
35278# Is the compiler the GNU compiler?
35279with_gcc=$GCC_CXX
35280
35281# Compiler flag to turn off builtin functions.
35282no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35283
35284# How to pass a linker flag through the compiler.
35285wl=$lt_lt_prog_compiler_wl_CXX
35286
35287# Additional compiler flags for building library objects.
35288pic_flag=$lt_lt_prog_compiler_pic_CXX
35289
35290# Compiler flag to prevent dynamic linking.
35291link_static_flag=$lt_lt_prog_compiler_static_CXX
35292
35293# Does compiler simultaneously support -c and -o options?
35294compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35295
35296# Whether or not to add -lc for building shared libraries.
35297build_libtool_need_lc=$archive_cmds_need_lc_CXX
35298
35299# Whether or not to disallow shared libs when runtime libs are static.
35300allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35301
35302# Compiler flag to allow reflexive dlopens.
35303export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35304
35305# Compiler flag to generate shared objects directly from archives.
35306whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35307
35308# Whether the compiler copes with passing no objects directly.
35309compiler_needs_object=$lt_compiler_needs_object_CXX
35310
35311# Create an old-style archive from a shared archive.
35312old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35313
35314# Create a temporary old-style archive to link instead of a shared archive.
35315old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35316
35317# Commands used to build a shared archive.
35318archive_cmds=$lt_archive_cmds_CXX
35319archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35320
35321# Commands used to build a loadable module if different from building
35322# a shared archive.
35323module_cmds=$lt_module_cmds_CXX
35324module_expsym_cmds=$lt_module_expsym_cmds_CXX
35325
35326# Whether we are building with GNU ld or not.
35327with_gnu_ld=$lt_with_gnu_ld_CXX
35328
35329# Flag that allows shared libraries with undefined symbols to be built.
35330allow_undefined_flag=$lt_allow_undefined_flag_CXX
35331
35332# Flag that enforces no undefined symbols.
35333no_undefined_flag=$lt_no_undefined_flag_CXX
35334
35335# Flag to hardcode \$libdir into a binary during linking.
35336# This must work even if \$libdir does not exist
35337hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35338
35339# If ld is used when linking, flag to hardcode \$libdir into a binary
35340# during linking. This must work even if \$libdir does not exist.
35341hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35342
35343# Whether we need a single "-rpath" flag with a separated argument.
35344hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35345
35346# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35347# DIR into the resulting binary.
35348hardcode_direct=$hardcode_direct_CXX
35349
35350# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35351# DIR into the resulting binary and the resulting library dependency is
35352# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35353# library is relocated.
35354hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35355
35356# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35357# into the resulting binary.
35358hardcode_minus_L=$hardcode_minus_L_CXX
35359
35360# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35361# into the resulting binary.
35362hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35363
35364# Set to "yes" if building a shared library automatically hardcodes DIR
35365# into the library and all subsequent libraries and executables linked
35366# against it.
35367hardcode_automatic=$hardcode_automatic_CXX
35368
35369# Set to yes if linker adds runtime paths of dependent libraries
35370# to runtime path list.
35371inherit_rpath=$inherit_rpath_CXX
35372
35373# Whether libtool must link a program against all its dependency libraries.
35374link_all_deplibs=$link_all_deplibs_CXX
35375
35376# Fix the shell variable \$srcfile for the compiler.
35377fix_srcfile_path=$lt_fix_srcfile_path_CXX
35378
35379# Set to "yes" if exported symbols are required.
35380always_export_symbols=$always_export_symbols_CXX
35381
35382# The commands to list exported symbols.
35383export_symbols_cmds=$lt_export_symbols_cmds_CXX
35384
35385# Symbols that should not be listed in the preloaded symbols.
35386exclude_expsyms=$lt_exclude_expsyms_CXX
35387
35388# Symbols that must always be exported.
35389include_expsyms=$lt_include_expsyms_CXX
35390
35391# Commands necessary for linking programs (against libraries) with templates.
35392prelink_cmds=$lt_prelink_cmds_CXX
35393
35394# Specify filename containing input files.
35395file_list_spec=$lt_file_list_spec_CXX
35396
35397# How to hardcode a shared library path into an executable.
35398hardcode_action=$hardcode_action_CXX
35399
35400# The directories searched by this compiler when creating a shared library.
35401compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35402
35403# Dependencies to place before and after the objects being linked to
35404# create a shared library.
35405predep_objects=$lt_predep_objects_CXX
35406postdep_objects=$lt_postdep_objects_CXX
35407predeps=$lt_predeps_CXX
35408postdeps=$lt_postdeps_CXX
35409
35410# The library search path used internally by the compiler when linking
35411# a shared library.
35412compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35413
35414# ### END LIBTOOL TAG CONFIG: CXX
35415_LT_EOF
35416
35417 ;;
35418 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35419 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35420 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35421 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35422 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35423 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35424
35425 esac
35426done # for ac_tag
35427
35428
cristy8b350f62009-11-15 23:12:43 +000035429as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035430_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035431ac_clean_files=$ac_clean_files_save
35432
35433test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000035434 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035435
35436
35437# configure is writing to config.log, and then calls config.status.
35438# config.status does its own redirection, appending to config.log.
35439# Unfortunately, on DOS this fails, as config.log is still kept open
35440# by configure, so config.status won't be able to write to it; its
35441# output is simply discarded. So we exec the FD to /dev/null,
35442# effectively closing config.log, so it can be properly (re)opened and
35443# appended to by config.status. When coming back to configure, we
35444# need to make the FD available again.
35445if test "$no_create" != yes; then
35446 ac_cs_success=:
35447 ac_config_status_args=
35448 test "$silent" = yes &&
35449 ac_config_status_args="$ac_config_status_args --quiet"
35450 exec 5>/dev/null
35451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35452 exec 5>>config.log
35453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35454 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000035455 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000035456fi
35457if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035459$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35460fi
35461
35462
35463rm -f magick-version
35464
cristy430a7312010-01-21 20:44:04 +000035465result_dejavu_font_dir='none'
35466if test "${dejavu_font_dir}x" != 'x'; then
35467 result_dejavu_font_dir=$dejavu_font_dir
35468fi
35469
cristy3ed852e2009-09-05 21:47:34 +000035470result_ghostscript_font_dir='none'
35471if test "${ghostscript_font_dir}x" != 'x'; then
35472 result_ghostscript_font_dir=$ghostscript_font_dir
35473fi
35474
35475result_windows_font_dir='none'
35476if test "${windows_font_dir}x" != 'x'; then
35477 result_windows_font_dir=${windows_font_dir}
35478fi
35479
cristy8b350f62009-11-15 23:12:43 +000035480{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035481ImageMagick is configured as follows. Please verify that this configuration
35482matches your expectations.
35483
35484Host system type: $host
35485Build system type: $build
35486
35487 Option Value
35488-------------------------------------------------------------------------------
35489Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35490Static libraries --enable-static=$enable_static $libtool_build_static_libs
35491Module support --with-modules=$with_modules $with_modules
35492GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35493Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35494High Dynamic Range Imagery
35495 --enable-hdri=$enable_hdri $enable_hdri
35496
35497Delegate Configuration:
35498BZLIB --with-bzlib=$with_bzlib $have_bzlib
35499Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035500Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035501DJVU --with-djvu=$with_djvu $have_djvu
35502DPS --with-dps=$with_dps $have_dps
35503FFTW --with-fftw=$with_fftw $have_fftw
35504FlashPIX --with-fpx=$with_fpx $have_fpx
35505FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35506FreeType --with-freetype=$with_freetype $have_freetype
35507GhostPCL None $PCLDelegate ($PCLVersion)
35508GhostXPS None $XPSDelegate ($XPSVersion)
35509Ghostscript None $PSDelegate ($GSVersion)
35510Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35511Ghostscript lib --with-gslib=$with_gslib $have_gslib
35512Graphviz --with-gvc=$with_gvc $have_gvc
35513JBIG --with-jbig=$with_jbig $have_jbig
35514JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35515JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035516LCMS v1 --with-lcms=$with_lcms $have_lcms
35517LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035518LQR --with-lqr=$with_lqr $have_lqr
35519Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35520OpenEXR --with-openexr=$with_openexr $have_openexr
35521PERL --with-perl=$with_perl $have_perl
35522PNG --with-png=$with_png $have_png
35523RSVG --with-rsvg=$with_rsvg $have_rsvg
35524TIFF --with-tiff=$with_tiff $have_tiff
35525Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35526WMF --with-wmf=$with_wmf $have_wmf
35527X11 --with-x=$with_x $have_x
35528XML --with-xml=$with_xml $have_xml
35529ZLIB --with-zlib=$with_zlib $have_zlib
35530
35531X11 Configuration:
35532 X_CFLAGS = $X_CFLAGS
35533 X_PRE_LIBS = $X_PRE_LIBS
35534 X_LIBS = $X_LIBS
35535 X_EXTRA_LIBS = $X_EXTRA_LIBS
35536
35537Options used to compile and link:
35538 PREFIX = $PREFIX_DIR
35539 EXEC-PREFIX = $EXEC_PREFIX_DIR
35540 VERSION = $PACKAGE_VERSION
35541 CC = $CC
35542 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035543 CPPFLAGS = $MAGICK_CPPFLAGS
35544 PCFLAGS = $MAGICK_PCFLAGS
35545 DEFS = $DEFS
35546 LDFLAGS = $LDFLAGS
35547 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35548 LIBS = $MAGICK_LIBS
35549 CXX = $CXX
35550 CXXFLAGS = $CXXFLAGS
35551" >&5
35552$as_echo "
35553ImageMagick is configured as follows. Please verify that this configuration
35554matches your expectations.
35555
35556Host system type: $host
35557Build system type: $build
35558
35559 Option Value
35560-------------------------------------------------------------------------------
35561Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35562Static libraries --enable-static=$enable_static $libtool_build_static_libs
35563Module support --with-modules=$with_modules $with_modules
35564GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35565Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35566High Dynamic Range Imagery
35567 --enable-hdri=$enable_hdri $enable_hdri
35568
35569Delegate Configuration:
35570BZLIB --with-bzlib=$with_bzlib $have_bzlib
35571Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035572Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035573DJVU --with-djvu=$with_djvu $have_djvu
35574DPS --with-dps=$with_dps $have_dps
35575FFTW --with-fftw=$with_fftw $have_fftw
35576FlashPIX --with-fpx=$with_fpx $have_fpx
35577FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35578FreeType --with-freetype=$with_freetype $have_freetype
35579GhostPCL None $PCLDelegate ($PCLVersion)
35580GhostXPS None $XPSDelegate ($XPSVersion)
35581Ghostscript None $PSDelegate ($GSVersion)
35582Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35583Ghostscript lib --with-gslib=$with_gslib $have_gslib
35584Graphviz --with-gvc=$with_gvc $have_gvc
35585JBIG --with-jbig=$with_jbig $have_jbig
35586JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35587JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035588LCMS v1 --with-lcms=$with_lcms $have_lcms
35589LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035590LQR --with-lqr=$with_lqr $have_lqr
35591Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35592OpenEXR --with-openexr=$with_openexr $have_openexr
35593PERL --with-perl=$with_perl $have_perl
35594PNG --with-png=$with_png $have_png
35595RSVG --with-rsvg=$with_rsvg $have_rsvg
35596TIFF --with-tiff=$with_tiff $have_tiff
35597Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35598WMF --with-wmf=$with_wmf $have_wmf
35599X11 --with-x=$with_x $have_x
35600XML --with-xml=$with_xml $have_xml
35601ZLIB --with-zlib=$with_zlib $have_zlib
35602
35603X11 Configuration:
35604 X_CFLAGS = $X_CFLAGS
35605 X_PRE_LIBS = $X_PRE_LIBS
35606 X_LIBS = $X_LIBS
35607 X_EXTRA_LIBS = $X_EXTRA_LIBS
35608
35609Options used to compile and link:
35610 PREFIX = $PREFIX_DIR
35611 EXEC-PREFIX = $EXEC_PREFIX_DIR
35612 VERSION = $PACKAGE_VERSION
35613 CC = $CC
35614 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035615 CPPFLAGS = $MAGICK_CPPFLAGS
35616 PCFLAGS = $MAGICK_PCFLAGS
35617 DEFS = $DEFS
35618 LDFLAGS = $LDFLAGS
35619 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35620 LIBS = $MAGICK_LIBS
35621 CXX = $CXX
35622 CXXFLAGS = $CXXFLAGS
35623" >&6; }