blob: 1578d9686c86b4d890c6f53ffd05f0a4d041f6d6 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyb36feb22010-03-26 16:54:37 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.6.1.
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
cristy18304f92009-11-22 15:48:26 +0000176test \$(( 1 + 1 )) = 2 || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: http://www.imagemagick.org about your system, including
235$0: any error possibly output before this message. Then
236$0: install a modern shell, or manually run the script
237$0: under such a shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
cristy3ed852e2009-09-05 21:47:34 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
cristy8b350f62009-11-15 23:12:43 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
cristy3ed852e2009-09-05 21:47:34 +0000396
cristy3ed852e2009-09-05 21:47:34 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
cristy8b350f62009-11-15 23:12:43 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000422
423
cristy8b350f62009-11-15 23:12:43 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000445 { $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 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
cristy3ed852e2009-09-05 21:47:34 +0000455ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000456case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000457-n*)
cristy8b350f62009-11-15 23:12:43 +0000458 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000463 esac;;
464*)
465 ECHO_N='-n';;
466esac
cristy3ed852e2009-09-05 21:47:34 +0000467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
cristy8b350f62009-11-15 23:12:43 +0000515 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000516 -*)set "./$1";;
517 esac;
cristy8b350f62009-11-15 23:12:43 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
cristy18304f92009-11-22 15:48:26 +0000531
532
533# Check that we are running under the correct shell.
cristy3ed852e2009-09-05 21:47:34 +0000534SHELL=${CONFIG_SHELL-/bin/sh}
535
cristy18304f92009-11-22 15:48:26 +0000536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
cristy3ed852e2009-09-05 21:47:34 +0000681lt_ltdl_dir='ltdl'
682
683lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
684
cristycd4c5312009-11-22 01:19:08 +0000685test -n "$DJDIR" || exec 7<&0 </dev/null
686exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000687
688# Name of the host.
689# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690# so uname gets run too.
691ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
693#
694# Initializations.
695#
696ac_default_prefix=/usr/local
697ac_clean_files=
698ac_config_libobj_dir=.
699LIBOBJS=
700cross_compiling=no
701subdirs=
702MFLAGS=
703MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000704
705# Identity of this package.
706PACKAGE_NAME='ImageMagick'
707PACKAGE_TARNAME='ImageMagick'
cristyb36feb22010-03-26 16:54:37 +0000708PACKAGE_VERSION='6.6.1'
709PACKAGE_STRING='ImageMagick 6.6.1'
cristy3ed852e2009-09-05 21:47:34 +0000710PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000711PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000712
713ac_unique_file="magick/MagickCore.h"
714ac_config_libobj_dir=ltdl
715# Factoring default headers for most tests.
716ac_includes_default="\
717#include <stdio.h>
718#ifdef HAVE_SYS_TYPES_H
719# include <sys/types.h>
720#endif
721#ifdef HAVE_SYS_STAT_H
722# include <sys/stat.h>
723#endif
724#ifdef STDC_HEADERS
725# include <stdlib.h>
726# include <stddef.h>
727#else
728# ifdef HAVE_STDLIB_H
729# include <stdlib.h>
730# endif
731#endif
732#ifdef HAVE_STRING_H
733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734# include <memory.h>
735# endif
736# include <string.h>
737#endif
738#ifdef HAVE_STRINGS_H
739# include <strings.h>
740#endif
741#ifdef HAVE_INTTYPES_H
742# include <inttypes.h>
743#endif
744#ifdef HAVE_STDINT_H
745# include <stdint.h>
746#endif
747#ifdef HAVE_UNISTD_H
748# include <unistd.h>
749#endif"
750
cristycd4c5312009-11-22 01:19:08 +0000751ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000752ac_subst_vars='ltdl_LTLIBOBJS
753ltdl_LIBOBJS
754am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
757MAGICK_LIBS
758MAGICK_LDFLAGS
759MAGICK_PCFLAGS
760MAGICK_CPPFLAGS
761MAGICK_CXXFLAGS
762MAGICK_CFLAGS
763MAGICK_DEP_LIBS
764MAGICK_LTDLDEPS
765MAGICK_LIBLTDL
766OSX_GCOV_LDFLAG
767DELEGATES
768MAGICKCORE_PATH
769PERL_SUPPORTS_DESTDIR
770WITH_PERL_DYNAMIC_FALSE
771WITH_PERL_DYNAMIC_TRUE
772WITH_PERL_STATIC_FALSE
773WITH_PERL_STATIC_TRUE
774WITH_PERL_FALSE
775WITH_PERL_TRUE
cristy964cb7f2010-04-25 23:18:00 +0000776PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000777GSVersion
778GSPSDevice
779GSPDFDevice
780GSMonoDevice
781GSEPSDevice
782GSColorDevice
783GSCMYKDevice
784GSAlphaDevice
785XPSVersion
786XPSCMYKDevice
787XPSColorDevice
788XPSMonoDevice
789PCLVersion
790PCLCMYKDevice
791PCLColorDevice
792PCLMonoDevice
793ZIP_DELEGATE_FALSE
794ZIP_DELEGATE_TRUE
795ZIP
796P7ZIP_DELEGATE_FALSE
797P7ZIP_DELEGATE_TRUE
798P7ZIP
799RPM_DELEGATE_FALSE
800RPM_DELEGATE_TRUE
801RPM
802PERL
803TAR
804ShowImageDelegate
805type_include_files
806ghostscript_font_dir
807windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000808dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000809PrintDelegate
810ZipDelegate
811XPSDelegate
812WWWDecodeDelegate
813WMFDecodeDelegate
814TXTDelegate
815SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000816RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000817RMDelegate
818RLEEncodeDelegate
819PSDelegate
820POVDelegate
821PGPDecodeDelegate
822PCLDelegate
823MVDelegate
824MPEGEncodeDelegate
825MPEGDecodeDelegate
826MANDelegate
827LaunchDelegate
828LZWEncodeDelegate
829LZWDecodeDelegate
830LPRDelegate
831LPDelegate
832ILBMEncodeDelegate
833ILBMDecodeDelegate
834HTMLDecodeDelegate
835HPGLDecodeDelegate
836HDRDecodeDelegate
837GnuplotDecodeDelegate
838MogrifyDelegate
839DisplayDelegate
840ConvertDelegate
841FIGDecodeDelegate
842EditorDelegate
843EchoDelegate
844DVIDecodeDelegate
845GVCDecodeDelegate
846DNGDecodeDelegate
847CatDelegate
848CGMDecodeDelegate
849BrowseDelegate
850BZIPDelegate
851BlenderDecodeDelegate
852AVIDecodeDelegate
853AutotraceDecodeDelegate
854SHARE_CONFIGURE_PATH
855SHARE_PATH
856DOCUMENTATION_PATH
857FILTER_PATH
858CODER_PATH
859CONFIGURE_PATH
860LIBRARY_PATH
861EXECUTABLE_PATH
862PERLMAINCC
863XML_LIBS
864XML_DELEGATE_FALSE
865XML_DELEGATE_TRUE
866xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000867WMF_LIBS
868WMF_DELEGATE_FALSE
869WMF_DELEGATE_TRUE
870TIFF_LIBS
871TIFF_DELEGATE_FALSE
872TIFF_DELEGATE_TRUE
873CAIRO_DELEGATE_FALSE
874CAIRO_DELEGATE_TRUE
875RSVG_DELEGATE_FALSE
876RSVG_DELEGATE_TRUE
877CAIRO_SVG_LIBS
878CAIRO_SVG_CFLAGS
879RSVG_LIBS
880RSVG_CFLAGS
881PNG_LIBS
882PNG_DELEGATE_FALSE
883PNG_DELEGATE_TRUE
884OPENEXR_DELEGATE_FALSE
885OPENEXR_DELEGATE_TRUE
886OPENEXR_LIBS
887OPENEXR_CFLAGS
888LQR_DELEGATE_FALSE
889LQR_DELEGATE_TRUE
890LQR_LIBS
891LQR_CFLAGS
892LCMS_LIBS
893LCMS_DELEGATE_FALSE
894LCMS_DELEGATE_TRUE
895JP2_LIBS
896JP2_DELEGATE_FALSE
897JP2_DELEGATE_TRUE
898JPEG_LIBS
899JPEG_DELEGATE_FALSE
900JPEG_DELEGATE_TRUE
901JBIG_LIBS
902JBIG_DELEGATE_FALSE
903JBIG_DELEGATE_TRUE
904GVC_DELEGATE_FALSE
905GVC_DELEGATE_TRUE
906GVC_LIBS
907GVC_CFLAGS
908GS_LIBS
909GS_DELEGATE_FALSE
910GS_DELEGATE_TRUE
911FREETYPE_LIBS
912FREETYPE_DELEGATE_FALSE
913FREETYPE_DELEGATE_TRUE
914freetype_config
915FONTCONFIG_DELEGATE_FALSE
916FONTCONFIG_DELEGATE_TRUE
917FONTCONFIG_LIBS
918FONTCONFIG_CFLAGS
919FPX_LIBS
920FPX_DELEGATE_FALSE
921FPX_DELEGATE_TRUE
922FFTW_LIBS
923FFTW_DELEGATE_FALSE
924FFTW_DELEGATE_TRUE
925DJVU_LIBS
926DJVU_DELEGATE_FALSE
927DJVU_DELEGATE_TRUE
928DPS_LIBS
929DPS_DELEGATE_FALSE
930DPS_DELEGATE_TRUE
931AUTOTRACE_DELEGATE_FALSE
932AUTOTRACE_DELEGATE_TRUE
933AUTOTRACE_LIBS
934AUTOTRACE_CFLAGS
935LIB_DL
936ZLIB_LIBS
937ZLIB_DELEGATE_FALSE
938ZLIB_DELEGATE_TRUE
939XEXT_LIBS
940X11_LIBS
941X11_DELEGATE_FALSE
942X11_DELEGATE_TRUE
943X_EXTRA_LIBS
944X_LIBS
945X_PRE_LIBS
946X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000947XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000948BZLIB_LIBS
949BZLIB_DELEGATE_FALSE
950BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000951CCMALLOCDelegate
952UMEM_LIBS
953HasUMEM_FALSE
954HasUMEM_TRUE
955THREAD_LIBS
956GOMP_LIBS
957WITH_MAGICK_PLUS_PLUS_FALSE
958WITH_MAGICK_PLUS_PLUS_TRUE
959OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000960MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000961POW_LIB
962LIBOBJS
963UINTPTR_T
964UINTMAX_T
965UINT64_T
966INT64_T
967UINT32_T
968INT32_T
969UINT16_T
970INT16_T
971UINT8_T
972INT8_T
973LIBRARY_EXTRA_CPPFLAGS
974MODULE_EXTRA_CPPFLAGS
975LIBSTDCLDFLAGS
976PERL_MAKE_OPTIONS
977QUANTUM_DEPTH
978MAINT
979MAINTAINER_MODE_FALSE
980MAINTAINER_MODE_TRUE
981MAGICK_HDRI
982DLLDFLAGS
983WITH_LTDL_FALSE
984WITH_LTDL_TRUE
985WITH_MODULES_FALSE
986WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000987WITH_SHARED_LIBS_FALSE
988WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000989LTDLOPEN
990LT_CONFIG_H
991CONVENIENCE_LTDL_FALSE
992CONVENIENCE_LTDL_TRUE
993INSTALL_LTDL_FALSE
994INSTALL_LTDL_TRUE
995ARGZ_H
996sys_symbol_underscore
997LIBADD_DL
998LT_DLPREOPEN
999LIBADD_DLD_LINK
1000LIBADD_SHL_LOAD
1001LIBADD_DLOPEN
1002LT_DLLOADERS
1003INCLTDL
1004LTDLINCL
1005LTDLDEPS
1006LIBLTDL
1007LIBTOOL_DEPS
1008CXXCPP
1009OTOOL64
1010OTOOL
1011LIPO
1012NMEDIT
1013DSYMUTIL
cristy18304f92009-11-22 15:48:26 +00001014lt_ECHO
cristy4dc44432009-12-30 23:30:06 +00001015RANLIB
cristy3ed852e2009-09-05 21:47:34 +00001016AR
1017NM
1018ac_ct_DUMPBIN
1019DUMPBIN
1020LIBTOOL
1021OBJDUMP
1022DLLTOOL
1023AS
1024LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001025CL_LIBS
1026CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001027OPENMP_CFLAGS
1028PTHREAD_CFLAGS
1029PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001030PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +00001031ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +00001032WinPathScript
1033USING_CL_FALSE
1034USING_CL_TRUE
1035CYGWIN_BUILD_FALSE
1036CYGWIN_BUILD_TRUE
1037WIN32_NATIVE_BUILD_FALSE
1038WIN32_NATIVE_BUILD_TRUE
1039WINGDI32_DELEGATE_FALSE
1040WINGDI32_DELEGATE_TRUE
1041GDI32_LIBS
1042PKG_CONFIG
1043LN_S
cristy3ed852e2009-09-05 21:47:34 +00001044LD
1045FGREP
cristy3ed852e2009-09-05 21:47:34 +00001046SED
cristy95646052009-11-28 23:05:30 +00001047am__fastdepCXX_FALSE
1048am__fastdepCXX_TRUE
1049CXXDEPMODE
1050ac_ct_CXX
1051CXXFLAGS
1052CXX
cristya0b81c32010-01-22 02:54:33 +00001053EGREP
1054GREP
1055CPP
cristy3ed852e2009-09-05 21:47:34 +00001056am__fastdepCC_FALSE
1057am__fastdepCC_TRUE
1058CCDEPMODE
1059AMDEPBACKSLASH
1060AMDEP_FALSE
1061AMDEP_TRUE
1062am__quote
1063am__include
1064DEPDIR
1065OBJEXT
1066EXEEXT
1067ac_ct_CC
1068CPPFLAGS
1069LDFLAGS
1070CFLAGS
1071CC
1072DIRSEP
1073MAGICK_FILTER_MODULE_PATH
1074MAGICK_CONFIGURE_BUILD_PATH
1075MAGICK_CONFIGURE_SRC_PATH
1076MAGICK_CODER_MODULE_PATH
1077MAN_DIR
1078INFO_DIR
1079PERSISTINCLUDE_DIR
1080INCLUDE_DIR
1081LIB_DIR
1082LOCALSTATE_DIR
1083SHAREDSTATE_DIR
1084SYSCONF_DIR
1085DATA_DIR
1086LIBEXEC_DIR
1087SBIN_DIR
1088BIN_DIR
1089EXEC_PREFIX_DIR
1090PREFIX_DIR
1091CONFIG_STATUS_DEPENDENCIES
1092MAGICK_LIB_VERSION_NUMBER
1093MAGICK_LIB_VERSION_TEXT
1094MAGICK_LIB_VERSION
1095AM_BACKSLASH
1096AM_DEFAULT_VERBOSITY
1097am__untar
1098am__tar
1099AMTAR
1100am__leading_dot
1101SET_MAKE
1102AWK
1103mkdir_p
1104MKDIR_P
1105INSTALL_STRIP_PROGRAM
1106STRIP
1107install_sh
1108MAKEINFO
1109AUTOHEADER
1110AUTOMAKE
1111AUTOCONF
1112ACLOCAL
1113VERSION
1114PACKAGE
1115CYGPATH_W
1116am__isrc
1117INSTALL_DATA
1118INSTALL_SCRIPT
1119INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001120PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001121PACKAGE_RELEASE_DATE
1122PACKAGE_LIB_VERSION_NUMBER
1123PACKAGE_LIB_VERSION
1124PACKAGE_CHANGE_DATE
1125PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001126MAGICK_LIBRARY_VERSION_INFO
1127MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001128MAGICK_LIBRARY_AGE
1129MAGICK_LIBRARY_REVISION
1130MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001131MAGICK_TARGET_OS
1132MAGICK_TARGET_VENDOR
1133MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001134target_os
1135target_vendor
1136target_cpu
1137target
1138host_os
1139host_vendor
1140host_cpu
1141host
1142build_os
1143build_vendor
1144build_cpu
1145build
1146CONFIGURE_ARGS
1147DISTCHECK_CONFIG_FLAGS
1148target_alias
1149host_alias
1150build_alias
1151LIBS
1152ECHO_T
1153ECHO_N
1154ECHO_C
1155DEFS
1156mandir
1157localedir
1158libdir
1159psdir
1160pdfdir
1161dvidir
1162htmldir
1163infodir
1164docdir
1165oldincludedir
1166includedir
1167localstatedir
1168sharedstatedir
1169sysconfdir
1170datadir
1171datarootdir
1172libexecdir
1173sbindir
1174bindir
1175program_transform_name
1176prefix
1177exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001178PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001179PACKAGE_BUGREPORT
1180PACKAGE_STRING
1181PACKAGE_VERSION
1182PACKAGE_TARNAME
1183PACKAGE_NAME
1184PATH_SEPARATOR
1185SHELL'
1186ac_subst_files=''
1187ac_user_opts='
1188enable_option_checking
1189enable_silent_rules
1190enable_dependency_tracking
1191with_gnu_ld
cristy3ed852e2009-09-05 21:47:34 +00001192with_dmalloc
1193enable_bounds_checking
1194enable_osx_universal_binary
1195with_threads
1196enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001197enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001198enable_largefile
1199enable_shared
1200enable_static
1201with_pic
1202enable_fast_install
1203enable_libtool_lock
1204with_included_ltdl
1205with_ltdl_include
1206with_ltdl_lib
1207enable_ltdl_install
1208with_modules
1209enable_delegate_build
1210enable_deprecated
1211enable_installed
1212enable_cipher
1213enable_embeddable
1214enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001215enable_assert
1216enable_maintainer_mode
1217enable_ccmalloc
1218enable_efence
1219enable_prof
1220enable_gprof
1221enable_gcov
1222with_method_prefix
1223with_quantum_depth
1224with_cache
1225with_frozenpaths
1226with_magick_plus_plus
1227with_perl
1228with_perl_options
1229with_umem
1230with_libstdc
1231with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001232with_x
cristy3ed852e2009-09-05 21:47:34 +00001233with_zlib
1234with_autotrace
1235with_dps
1236with_djvu
cristy430a7312010-01-21 20:44:04 +00001237with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001238with_fftw
1239with_fpx
1240with_fontconfig
1241with_freetype
1242with_gslib
1243with_fontpath
1244with_gs_font_dir
1245with_gvc
1246with_jbig
1247with_jpeg
1248with_jp2
1249with_lcms
1250with_lqr
1251with_openexr
1252with_png
1253with_rsvg
1254with_tiff
1255with_windows_font_dir
1256with_wmf
1257with_xml
1258'
1259 ac_precious_vars='build_alias
1260host_alias
1261target_alias
1262CC
1263CFLAGS
1264LDFLAGS
1265LIBS
1266CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001267CPP
cristy3ed852e2009-09-05 21:47:34 +00001268CXX
1269CXXFLAGS
1270CCC
1271PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001272CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001273XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001274AUTOTRACE_CFLAGS
1275AUTOTRACE_LIBS
1276FONTCONFIG_CFLAGS
1277FONTCONFIG_LIBS
1278GVC_CFLAGS
1279GVC_LIBS
1280LQR_CFLAGS
1281LQR_LIBS
1282OPENEXR_CFLAGS
1283OPENEXR_LIBS
1284RSVG_CFLAGS
1285RSVG_LIBS
1286CAIRO_SVG_CFLAGS
1287CAIRO_SVG_LIBS'
1288
1289
1290# Initialize some variables set by options.
1291ac_init_help=
1292ac_init_version=false
1293ac_unrecognized_opts=
1294ac_unrecognized_sep=
1295# The variables have the same names as the options, with
1296# dashes changed to underlines.
1297cache_file=/dev/null
1298exec_prefix=NONE
1299no_create=
1300no_recursion=
1301prefix=NONE
1302program_prefix=NONE
1303program_suffix=NONE
1304program_transform_name=s,x,x,
1305silent=
1306site=
1307srcdir=
1308verbose=
1309x_includes=NONE
1310x_libraries=NONE
1311
1312# Installation directory options.
1313# These are left unexpanded so users can "make install exec_prefix=/foo"
1314# and all the variables that are supposed to be based on exec_prefix
1315# by default will actually change.
1316# Use braces instead of parens because sh, perl, etc. also accept them.
1317# (The list follows the same order as the GNU Coding Standards.)
1318bindir='${exec_prefix}/bin'
1319sbindir='${exec_prefix}/sbin'
1320libexecdir='${exec_prefix}/libexec'
1321datarootdir='${prefix}/share'
1322datadir='${datarootdir}'
1323sysconfdir='${prefix}/etc'
1324sharedstatedir='${prefix}/com'
1325localstatedir='${prefix}/var'
1326includedir='${prefix}/include'
1327oldincludedir='/usr/include'
1328docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1329infodir='${datarootdir}/info'
1330htmldir='${docdir}'
1331dvidir='${docdir}'
1332pdfdir='${docdir}'
1333psdir='${docdir}'
1334libdir='${exec_prefix}/lib'
1335localedir='${datarootdir}/locale'
1336mandir='${datarootdir}/man'
1337
1338ac_prev=
1339ac_dashdash=
1340for ac_option
1341do
1342 # If the previous option needs an argument, assign it.
1343 if test -n "$ac_prev"; then
1344 eval $ac_prev=\$ac_option
1345 ac_prev=
1346 continue
1347 fi
1348
1349 case $ac_option in
1350 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1351 *) ac_optarg=yes ;;
1352 esac
1353
1354 # Accept the important Cygnus configure options, so we can diagnose typos.
1355
1356 case $ac_dashdash$ac_option in
1357 --)
1358 ac_dashdash=yes ;;
1359
1360 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1361 ac_prev=bindir ;;
1362 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1363 bindir=$ac_optarg ;;
1364
1365 -build | --build | --buil | --bui | --bu)
1366 ac_prev=build_alias ;;
1367 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1368 build_alias=$ac_optarg ;;
1369
1370 -cache-file | --cache-file | --cache-fil | --cache-fi \
1371 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1372 ac_prev=cache_file ;;
1373 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1374 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1375 cache_file=$ac_optarg ;;
1376
1377 --config-cache | -C)
1378 cache_file=config.cache ;;
1379
1380 -datadir | --datadir | --datadi | --datad)
1381 ac_prev=datadir ;;
1382 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1383 datadir=$ac_optarg ;;
1384
1385 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1386 | --dataroo | --dataro | --datar)
1387 ac_prev=datarootdir ;;
1388 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1389 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1390 datarootdir=$ac_optarg ;;
1391
1392 -disable-* | --disable-*)
1393 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001396 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001397 ac_useropt_orig=$ac_useropt
1398 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1399 case $ac_user_opts in
1400 *"
1401"enable_$ac_useropt"
1402"*) ;;
1403 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1404 ac_unrecognized_sep=', ';;
1405 esac
1406 eval enable_$ac_useropt=no ;;
1407
1408 -docdir | --docdir | --docdi | --doc | --do)
1409 ac_prev=docdir ;;
1410 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1411 docdir=$ac_optarg ;;
1412
1413 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1414 ac_prev=dvidir ;;
1415 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1416 dvidir=$ac_optarg ;;
1417
1418 -enable-* | --enable-*)
1419 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1420 # Reject names that are not valid shell variable names.
1421 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001422 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001423 ac_useropt_orig=$ac_useropt
1424 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1425 case $ac_user_opts in
1426 *"
1427"enable_$ac_useropt"
1428"*) ;;
1429 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1430 ac_unrecognized_sep=', ';;
1431 esac
1432 eval enable_$ac_useropt=\$ac_optarg ;;
1433
1434 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1435 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1436 | --exec | --exe | --ex)
1437 ac_prev=exec_prefix ;;
1438 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1439 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1440 | --exec=* | --exe=* | --ex=*)
1441 exec_prefix=$ac_optarg ;;
1442
1443 -gas | --gas | --ga | --g)
1444 # Obsolete; use --with-gas.
1445 with_gas=yes ;;
1446
1447 -help | --help | --hel | --he | -h)
1448 ac_init_help=long ;;
1449 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1450 ac_init_help=recursive ;;
1451 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1452 ac_init_help=short ;;
1453
1454 -host | --host | --hos | --ho)
1455 ac_prev=host_alias ;;
1456 -host=* | --host=* | --hos=* | --ho=*)
1457 host_alias=$ac_optarg ;;
1458
1459 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1460 ac_prev=htmldir ;;
1461 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1462 | --ht=*)
1463 htmldir=$ac_optarg ;;
1464
1465 -includedir | --includedir | --includedi | --included | --include \
1466 | --includ | --inclu | --incl | --inc)
1467 ac_prev=includedir ;;
1468 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1469 | --includ=* | --inclu=* | --incl=* | --inc=*)
1470 includedir=$ac_optarg ;;
1471
1472 -infodir | --infodir | --infodi | --infod | --info | --inf)
1473 ac_prev=infodir ;;
1474 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1475 infodir=$ac_optarg ;;
1476
1477 -libdir | --libdir | --libdi | --libd)
1478 ac_prev=libdir ;;
1479 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1480 libdir=$ac_optarg ;;
1481
1482 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1483 | --libexe | --libex | --libe)
1484 ac_prev=libexecdir ;;
1485 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1486 | --libexe=* | --libex=* | --libe=*)
1487 libexecdir=$ac_optarg ;;
1488
1489 -localedir | --localedir | --localedi | --localed | --locale)
1490 ac_prev=localedir ;;
1491 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1492 localedir=$ac_optarg ;;
1493
1494 -localstatedir | --localstatedir | --localstatedi | --localstated \
1495 | --localstate | --localstat | --localsta | --localst | --locals)
1496 ac_prev=localstatedir ;;
1497 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1498 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1499 localstatedir=$ac_optarg ;;
1500
1501 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1502 ac_prev=mandir ;;
1503 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1504 mandir=$ac_optarg ;;
1505
1506 -nfp | --nfp | --nf)
1507 # Obsolete; use --without-fp.
1508 with_fp=no ;;
1509
1510 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1511 | --no-cr | --no-c | -n)
1512 no_create=yes ;;
1513
1514 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1515 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1516 no_recursion=yes ;;
1517
1518 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1519 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1520 | --oldin | --oldi | --old | --ol | --o)
1521 ac_prev=oldincludedir ;;
1522 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1523 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1524 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1525 oldincludedir=$ac_optarg ;;
1526
1527 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1528 ac_prev=prefix ;;
1529 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1530 prefix=$ac_optarg ;;
1531
1532 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1533 | --program-pre | --program-pr | --program-p)
1534 ac_prev=program_prefix ;;
1535 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1536 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1537 program_prefix=$ac_optarg ;;
1538
1539 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1540 | --program-suf | --program-su | --program-s)
1541 ac_prev=program_suffix ;;
1542 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1543 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1544 program_suffix=$ac_optarg ;;
1545
1546 -program-transform-name | --program-transform-name \
1547 | --program-transform-nam | --program-transform-na \
1548 | --program-transform-n | --program-transform- \
1549 | --program-transform | --program-transfor \
1550 | --program-transfo | --program-transf \
1551 | --program-trans | --program-tran \
1552 | --progr-tra | --program-tr | --program-t)
1553 ac_prev=program_transform_name ;;
1554 -program-transform-name=* | --program-transform-name=* \
1555 | --program-transform-nam=* | --program-transform-na=* \
1556 | --program-transform-n=* | --program-transform-=* \
1557 | --program-transform=* | --program-transfor=* \
1558 | --program-transfo=* | --program-transf=* \
1559 | --program-trans=* | --program-tran=* \
1560 | --progr-tra=* | --program-tr=* | --program-t=*)
1561 program_transform_name=$ac_optarg ;;
1562
1563 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1564 ac_prev=pdfdir ;;
1565 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1566 pdfdir=$ac_optarg ;;
1567
1568 -psdir | --psdir | --psdi | --psd | --ps)
1569 ac_prev=psdir ;;
1570 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1571 psdir=$ac_optarg ;;
1572
1573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1574 | -silent | --silent | --silen | --sile | --sil)
1575 silent=yes ;;
1576
1577 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1578 ac_prev=sbindir ;;
1579 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1580 | --sbi=* | --sb=*)
1581 sbindir=$ac_optarg ;;
1582
1583 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1584 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1585 | --sharedst | --shareds | --shared | --share | --shar \
1586 | --sha | --sh)
1587 ac_prev=sharedstatedir ;;
1588 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1589 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1590 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1591 | --sha=* | --sh=*)
1592 sharedstatedir=$ac_optarg ;;
1593
1594 -site | --site | --sit)
1595 ac_prev=site ;;
1596 -site=* | --site=* | --sit=*)
1597 site=$ac_optarg ;;
1598
1599 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1600 ac_prev=srcdir ;;
1601 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1602 srcdir=$ac_optarg ;;
1603
1604 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1605 | --syscon | --sysco | --sysc | --sys | --sy)
1606 ac_prev=sysconfdir ;;
1607 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1608 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1609 sysconfdir=$ac_optarg ;;
1610
1611 -target | --target | --targe | --targ | --tar | --ta | --t)
1612 ac_prev=target_alias ;;
1613 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1614 target_alias=$ac_optarg ;;
1615
1616 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1617 verbose=yes ;;
1618
1619 -version | --version | --versio | --versi | --vers | -V)
1620 ac_init_version=: ;;
1621
1622 -with-* | --with-*)
1623 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1624 # Reject names that are not valid shell variable names.
1625 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001626 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001627 ac_useropt_orig=$ac_useropt
1628 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1629 case $ac_user_opts in
1630 *"
1631"with_$ac_useropt"
1632"*) ;;
1633 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1634 ac_unrecognized_sep=', ';;
1635 esac
1636 eval with_$ac_useropt=\$ac_optarg ;;
1637
1638 -without-* | --without-*)
1639 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1640 # Reject names that are not valid shell variable names.
1641 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001642 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001643 ac_useropt_orig=$ac_useropt
1644 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1645 case $ac_user_opts in
1646 *"
1647"with_$ac_useropt"
1648"*) ;;
1649 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1650 ac_unrecognized_sep=', ';;
1651 esac
1652 eval with_$ac_useropt=no ;;
1653
1654 --x)
1655 # Obsolete; use --with-x.
1656 with_x=yes ;;
1657
1658 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1659 | --x-incl | --x-inc | --x-in | --x-i)
1660 ac_prev=x_includes ;;
1661 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1662 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1663 x_includes=$ac_optarg ;;
1664
1665 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1666 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1667 ac_prev=x_libraries ;;
1668 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1669 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1670 x_libraries=$ac_optarg ;;
1671
cristy8b350f62009-11-15 23:12:43 +00001672 -*) as_fn_error "unrecognized option: \`$ac_option'
1673Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001674 ;;
1675
1676 *=*)
1677 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1678 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001679 case $ac_envvar in #(
1680 '' | [0-9]* | *[!_$as_cr_alnum]* )
1681 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1682 esac
cristy3ed852e2009-09-05 21:47:34 +00001683 eval $ac_envvar=\$ac_optarg
1684 export $ac_envvar ;;
1685
1686 *)
1687 # FIXME: should be removed in autoconf 3.0.
1688 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1689 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1690 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1691 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1692 ;;
1693
1694 esac
1695done
1696
1697if test -n "$ac_prev"; then
1698 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001699 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001700fi
1701
1702if test -n "$ac_unrecognized_opts"; then
1703 case $enable_option_checking in
1704 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001705 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001706 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1707 esac
1708fi
1709
1710# Check all directory arguments for consistency.
1711for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1712 datadir sysconfdir sharedstatedir localstatedir includedir \
1713 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1714 libdir localedir mandir
1715do
1716 eval ac_val=\$$ac_var
1717 # Remove trailing slashes.
1718 case $ac_val in
1719 */ )
1720 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1721 eval $ac_var=\$ac_val;;
1722 esac
1723 # Be sure to have absolute directory names.
1724 case $ac_val in
1725 [\\/$]* | ?:[\\/]* ) continue;;
1726 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1727 esac
cristy8b350f62009-11-15 23:12:43 +00001728 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001729done
1730
1731# There might be people who depend on the old broken behavior: `$host'
1732# used to hold the argument of --host etc.
1733# FIXME: To remove some day.
1734build=$build_alias
1735host=$host_alias
1736target=$target_alias
1737
1738# FIXME: To remove some day.
1739if test "x$host_alias" != x; then
1740 if test "x$build_alias" = x; then
1741 cross_compiling=maybe
1742 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1743 If a cross compiler is detected then cross compile mode will be used." >&2
1744 elif test "x$build_alias" != "x$host_alias"; then
1745 cross_compiling=yes
1746 fi
1747fi
1748
1749ac_tool_prefix=
1750test -n "$host_alias" && ac_tool_prefix=$host_alias-
1751
1752test "$silent" = yes && exec 6>/dev/null
1753
1754
1755ac_pwd=`pwd` && test -n "$ac_pwd" &&
1756ac_ls_di=`ls -di .` &&
1757ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001758 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001759test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001760 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001761
1762
1763# Find the source files, if location was not specified.
1764if test -z "$srcdir"; then
1765 ac_srcdir_defaulted=yes
1766 # Try the directory containing this script, then the parent directory.
1767 ac_confdir=`$as_dirname -- "$as_myself" ||
1768$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1769 X"$as_myself" : 'X\(//\)[^/]' \| \
1770 X"$as_myself" : 'X\(//\)$' \| \
1771 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1772$as_echo X"$as_myself" |
1773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1774 s//\1/
1775 q
1776 }
1777 /^X\(\/\/\)[^/].*/{
1778 s//\1/
1779 q
1780 }
1781 /^X\(\/\/\)$/{
1782 s//\1/
1783 q
1784 }
1785 /^X\(\/\).*/{
1786 s//\1/
1787 q
1788 }
1789 s/.*/./; q'`
1790 srcdir=$ac_confdir
1791 if test ! -r "$srcdir/$ac_unique_file"; then
1792 srcdir=..
1793 fi
1794else
1795 ac_srcdir_defaulted=no
1796fi
1797if test ! -r "$srcdir/$ac_unique_file"; then
1798 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001799 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001800fi
1801ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1802ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001803 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001804 pwd)`
1805# When building in place, set srcdir=.
1806if test "$ac_abs_confdir" = "$ac_pwd"; then
1807 srcdir=.
1808fi
1809# Remove unnecessary trailing slashes from srcdir.
1810# Double slashes in file names in object file debugging info
1811# mess up M-x gdb in Emacs.
1812case $srcdir in
1813*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1814esac
1815for ac_var in $ac_precious_vars; do
1816 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1817 eval ac_env_${ac_var}_value=\$${ac_var}
1818 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1819 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1820done
1821
1822#
1823# Report the --help message.
1824#
1825if test "$ac_init_help" = "long"; then
1826 # Omit some internal or obsolete options to make the list less imposing.
1827 # This message is too long to be a string in the A/UX 3.1 sh.
1828 cat <<_ACEOF
cristyb36feb22010-03-26 16:54:37 +00001829\`configure' configures ImageMagick 6.6.1 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001830
1831Usage: $0 [OPTION]... [VAR=VALUE]...
1832
1833To assign environment variables (e.g., CC, CFLAGS...), specify them as
1834VAR=VALUE. See below for descriptions of some of the useful variables.
1835
1836Defaults for the options are specified in brackets.
1837
1838Configuration:
1839 -h, --help display this help and exit
1840 --help=short display options specific to this package
1841 --help=recursive display the short help of all the included packages
1842 -V, --version display version information and exit
1843 -q, --quiet, --silent do not print \`checking...' messages
1844 --cache-file=FILE cache test results in FILE [disabled]
1845 -C, --config-cache alias for \`--cache-file=config.cache'
1846 -n, --no-create do not create output files
1847 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1848
1849Installation directories:
1850 --prefix=PREFIX install architecture-independent files in PREFIX
1851 [$ac_default_prefix]
1852 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1853 [PREFIX]
1854
1855By default, \`make install' will install all the files in
1856\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1857an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1858for instance \`--prefix=\$HOME'.
1859
1860For better control, use the options below.
1861
1862Fine tuning of the installation directories:
1863 --bindir=DIR user executables [EPREFIX/bin]
1864 --sbindir=DIR system admin executables [EPREFIX/sbin]
1865 --libexecdir=DIR program executables [EPREFIX/libexec]
1866 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1867 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1868 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1869 --libdir=DIR object code libraries [EPREFIX/lib]
1870 --includedir=DIR C header files [PREFIX/include]
1871 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1872 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1873 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1874 --infodir=DIR info documentation [DATAROOTDIR/info]
1875 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1876 --mandir=DIR man documentation [DATAROOTDIR/man]
1877 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1878 --htmldir=DIR html documentation [DOCDIR]
1879 --dvidir=DIR dvi documentation [DOCDIR]
1880 --pdfdir=DIR pdf documentation [DOCDIR]
1881 --psdir=DIR ps documentation [DOCDIR]
1882_ACEOF
1883
1884 cat <<\_ACEOF
1885
1886Program names:
1887 --program-prefix=PREFIX prepend PREFIX to installed program names
1888 --program-suffix=SUFFIX append SUFFIX to installed program names
1889 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1890
1891X features:
1892 --x-includes=DIR X include files are in DIR
1893 --x-libraries=DIR X library files are in DIR
1894
1895System types:
1896 --build=BUILD configure for building on BUILD [guessed]
1897 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1898 --target=TARGET configure for building compilers for TARGET [HOST]
1899_ACEOF
1900fi
1901
1902if test -n "$ac_init_help"; then
1903 case $ac_init_help in
cristyb36feb22010-03-26 16:54:37 +00001904 short | recursive ) echo "Configuration of ImageMagick 6.6.1:";;
cristy3ed852e2009-09-05 21:47:34 +00001905 esac
1906 cat <<\_ACEOF
1907
1908Optional Features:
1909 --disable-option-checking ignore unrecognized --enable/--with options
1910 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1911 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1912 --enable-silent-rules less verbose build output (undo: `make V=1')
1913 --disable-silent-rules verbose build output (undo: `make V=0')
1914 --disable-dependency-tracking speeds up one-time build
1915 --enable-dependency-tracking do not reject slow dependency extractors
1916 --bounds-checking enable run-time bounds-checking
1917 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001918 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001919 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001920 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001921 --disable-largefile omit support for large files
1922 --enable-shared[=PKGS] build shared libraries [default=yes]
1923 --enable-static[=PKGS] build static libraries [default=yes]
1924 --enable-fast-install[=PKGS]
1925 optimize for fast installation [default=yes]
1926 --disable-libtool-lock avoid locking (might break parallel builds)
1927 --enable-ltdl-install install libltdl
1928 --enable-delegate-build look for delegate libraries in build directory
1929 --disable-deprecated exclude deprecated methods in MagickCore and
1930 MagickWand API's
1931 --disable-installed Formally install ImageMagick under PREFIX
1932 --disable-cipher disable enciphering and deciphering image pixels
1933 --enable-embeddable enable self-contained, embeddable,
1934 zero-configuration ImageMagick
1935 --enable-hdri accurately represent the wide range of intensity
1936 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001937 --disable-assert disable assert() statements in build
1938 --enable-maintainer-mode enable make rules and dependencies not useful
1939 (and sometimes confusing) to the casual installer
1940 --enable-ccmalloc enable 'ccmalloc' memory debug support
1941 --enable-efence enable 'efence' memory debug support
1942 --enable-prof enable 'prof' profiling support
1943 --enable-gprof enable 'gprof' profiling support
1944 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001945 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001946
1947Optional Packages:
1948 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1949 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1950 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy3ed852e2009-09-05 21:47:34 +00001951 --with-dmalloc use dmalloc, as in
1952 http://www.dmalloc.com/dmalloc.tar.gz
1953 --without-threads disable threads support
1954 --with-pic try to use only PIC/non-PIC objects [default=use
1955 both]
1956 --with-included-ltdl use the GNU ltdl sources included here
1957 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1958 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1959 --with-modules enable building dynamically loadable modules
1960 --with-method-prefix=PREFIX
1961 prefix MagickCore API methods
1962 --with-quantum-depth=DEPTH
1963 number of bits in a pixel quantum (default 16)
1964 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1965 memory)
1966 --with-frozenpaths freeze delegate paths
1967 --without-magick-plus-plus
1968 disable build/install of Magick++
1969 --with-perl enable build/install of PerlMagick
1970 --with-perl-options=OPTIONS
1971 options to pass on command-line when generating
1972 PerlMagick's build file
1973 --with-umem enable umem memory allocation library support
1974 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1975 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001976 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001977 --without-zlib disable ZLIB support
1978 --with-autotrace enable autotrace support
1979 --without-dps disable Display Postscript support
1980 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001981 --with-dejavu-font-dir=DIR
1982 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001983 --without-fftw disable FFTW support
1984 --without-fpx disable FlashPIX support
1985 --without-fontconfig disable fontconfig support
1986 --without-freetype disable Freetype support
1987 --without-gslib enable Ghostscript library support
1988 --with-fontpath=DIR prepend to default font search path
1989 --with-gs-font-dir=DIR Ghostscript font directory
1990 --without-gvc disable GVC support
1991 --without-jbig disable JBIG support
1992 --without-jpeg disable JPEG support
1993 --without-jp2 disable JPEG-2000 support
1994 --without-lcms disable LCMS support
cristyf0c78232010-03-15 12:53:40 +00001995 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001996 --without-openexr disable OpenEXR support
1997 --without-png disable PNG support
1998 --without-rsvg disable RSVG support
1999 --without-tiff disable TIFF support
2000 --with-windows-font-dir=DIR
2001 directory containing MS-Windows fonts
2002 --without-wmf disable WMF support
2003 --without-xml disable XML support
2004
2005Some influential environment variables:
2006 CC C compiler command
2007 CFLAGS C compiler flags
2008 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2009 nonstandard directory <lib dir>
2010 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002011 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002012 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002013 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002014 CXX C++ compiler command
2015 CXXFLAGS C++ compiler flags
2016 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002017 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002018 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002019 AUTOTRACE_CFLAGS
2020 C compiler flags for AUTOTRACE, overriding pkg-config
2021 AUTOTRACE_LIBS
2022 linker flags for AUTOTRACE, overriding pkg-config
2023 FONTCONFIG_CFLAGS
2024 C compiler flags for FONTCONFIG, overriding pkg-config
2025 FONTCONFIG_LIBS
2026 linker flags for FONTCONFIG, overriding pkg-config
2027 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2028 GVC_LIBS linker flags for GVC, overriding pkg-config
2029 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2030 LQR_LIBS linker flags for LQR, overriding pkg-config
2031 OPENEXR_CFLAGS
2032 C compiler flags for OPENEXR, overriding pkg-config
2033 OPENEXR_LIBS
2034 linker flags for OPENEXR, overriding pkg-config
2035 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2036 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2037 CAIRO_SVG_CFLAGS
2038 C compiler flags for CAIRO_SVG, overriding pkg-config
2039 CAIRO_SVG_LIBS
2040 linker flags for CAIRO_SVG, overriding pkg-config
2041
2042Use these variables to override the choices made by `configure' or to help
2043it to find libraries and programs with nonstandard names/locations.
2044
2045Report bugs to <http://www.imagemagick.org>.
2046_ACEOF
2047ac_status=$?
2048fi
2049
2050if test "$ac_init_help" = "recursive"; then
2051 # If there are subdirs, report their specific --help.
2052 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2053 test -d "$ac_dir" ||
2054 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2055 continue
2056 ac_builddir=.
2057
2058case "$ac_dir" in
2059.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2060*)
2061 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2062 # A ".." for each directory in $ac_dir_suffix.
2063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2064 case $ac_top_builddir_sub in
2065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2067 esac ;;
2068esac
2069ac_abs_top_builddir=$ac_pwd
2070ac_abs_builddir=$ac_pwd$ac_dir_suffix
2071# for backward compatibility:
2072ac_top_builddir=$ac_top_build_prefix
2073
2074case $srcdir in
2075 .) # We are building in place.
2076 ac_srcdir=.
2077 ac_top_srcdir=$ac_top_builddir_sub
2078 ac_abs_top_srcdir=$ac_pwd ;;
2079 [\\/]* | ?:[\\/]* ) # Absolute name.
2080 ac_srcdir=$srcdir$ac_dir_suffix;
2081 ac_top_srcdir=$srcdir
2082 ac_abs_top_srcdir=$srcdir ;;
2083 *) # Relative name.
2084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2085 ac_top_srcdir=$ac_top_build_prefix$srcdir
2086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2087esac
2088ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2089
2090 cd "$ac_dir" || { ac_status=$?; continue; }
2091 # Check for guested configure.
2092 if test -f "$ac_srcdir/configure.gnu"; then
2093 echo &&
2094 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2095 elif test -f "$ac_srcdir/configure"; then
2096 echo &&
2097 $SHELL "$ac_srcdir/configure" --help=recursive
2098 else
2099 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2100 fi || ac_status=$?
2101 cd "$ac_pwd" || { ac_status=$?; break; }
2102 done
2103fi
2104
2105test -n "$ac_init_help" && exit $ac_status
2106if $ac_init_version; then
2107 cat <<\_ACEOF
cristyb36feb22010-03-26 16:54:37 +00002108ImageMagick configure 6.6.1
cristycd4c5312009-11-22 01:19:08 +00002109generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002110
cristy8b350f62009-11-15 23:12:43 +00002111Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002112This configure script is free software; the Free Software Foundation
2113gives unlimited permission to copy, distribute and modify it.
2114_ACEOF
2115 exit
2116fi
cristy8b350f62009-11-15 23:12:43 +00002117
2118## ------------------------ ##
2119## Autoconf initialization. ##
2120## ------------------------ ##
2121
2122# ac_fn_c_try_compile LINENO
2123# --------------------------
2124# Try to compile conftest.$ac_ext, and return whether this succeeded.
2125ac_fn_c_try_compile ()
2126{
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 rm -f conftest.$ac_objext
2129 if { { ac_try="$ac_compile"
2130case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133esac
2134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135$as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_compile") 2>conftest.err
2137 ac_status=$?
2138 if test -s conftest.err; then
2139 grep -v '^ *+' conftest.err >conftest.er1
2140 cat conftest.er1 >&5
2141 mv -f conftest.er1 conftest.err
2142 fi
2143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144 test $ac_status = 0; } && {
2145 test -z "$ac_c_werror_flag" ||
2146 test ! -s conftest.err
2147 } && test -s conftest.$ac_objext; then :
2148 ac_retval=0
2149else
2150 $as_echo "$as_me: failed program was:" >&5
2151sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 ac_retval=1
2154fi
2155 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002156 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002157
2158} # ac_fn_c_try_compile
2159
cristy95646052009-11-28 23:05:30 +00002160# ac_fn_c_try_cpp LINENO
2161# ----------------------
2162# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2163ac_fn_c_try_cpp ()
2164{
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 if { { ac_try="$ac_cpp conftest.$ac_ext"
2167case "(($ac_try" in
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2170esac
2171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2172$as_echo "$ac_try_echo"; } >&5
2173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2174 ac_status=$?
2175 if test -s conftest.err; then
2176 grep -v '^ *+' conftest.err >conftest.er1
2177 cat conftest.er1 >&5
2178 mv -f conftest.er1 conftest.err
2179 fi
2180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181 test $ac_status = 0; } >/dev/null && {
2182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2183 test ! -s conftest.err
2184 }; then :
2185 ac_retval=0
2186else
2187 $as_echo "$as_me: failed program was:" >&5
2188sed 's/^/| /' conftest.$ac_ext >&5
2189
2190 ac_retval=1
2191fi
2192 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193 as_fn_set_status $ac_retval
2194
2195} # ac_fn_c_try_cpp
2196
cristy8b350f62009-11-15 23:12:43 +00002197# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2198# -------------------------------------------------------
2199# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2200# the include files in INCLUDES and setting the cache variable VAR
2201# accordingly.
2202ac_fn_c_check_header_mongrel ()
2203{
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207$as_echo_n "checking for $2... " >&6; }
2208if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 $as_echo_n "(cached) " >&6
2210fi
2211eval ac_res=\$$3
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213$as_echo "$ac_res" >&6; }
2214else
2215 # Is the header compilable?
2216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2217$as_echo_n "checking $2 usability... " >&6; }
2218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h. */
2220$4
2221#include <$2>
2222_ACEOF
2223if ac_fn_c_try_compile "$LINENO"; then :
2224 ac_header_compiler=yes
2225else
2226 ac_header_compiler=no
2227fi
2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2230$as_echo "$ac_header_compiler" >&6; }
2231
2232# Is the header present?
2233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2234$as_echo_n "checking $2 presence... " >&6; }
2235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h. */
2237#include <$2>
2238_ACEOF
2239if ac_fn_c_try_cpp "$LINENO"; then :
2240 ac_header_preproc=yes
2241else
2242 ac_header_preproc=no
2243fi
2244rm -f conftest.err conftest.$ac_ext
2245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2246$as_echo "$ac_header_preproc" >&6; }
2247
2248# So? What about this header?
2249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2250 yes:no: )
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2252$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2254$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2255 ;;
2256 no:yes:* )
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2258$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2260$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2262$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2264$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2266$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2267( cat <<\_ASBOX
2268## ----------------------------------------- ##
2269## Report this to http://www.imagemagick.org ##
2270## ----------------------------------------- ##
2271_ASBOX
2272 ) | sed "s/^/$as_me: WARNING: /" >&2
2273 ;;
2274esac
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276$as_echo_n "checking for $2... " >&6; }
2277if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2278 $as_echo_n "(cached) " >&6
2279else
2280 eval "$3=\$ac_header_compiler"
2281fi
2282eval ac_res=\$$3
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284$as_echo "$ac_res" >&6; }
2285fi
2286 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2287
2288} # ac_fn_c_check_header_mongrel
2289
2290# ac_fn_c_try_run LINENO
2291# ----------------------
2292# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2293# that executables *can* be run.
2294ac_fn_c_try_run ()
2295{
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 if { { ac_try="$ac_link"
2298case "(($ac_try" in
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2301esac
2302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2303$as_echo "$ac_try_echo"; } >&5
2304 (eval "$ac_link") 2>&5
2305 ac_status=$?
2306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2308 { { case "(($ac_try" in
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2311esac
2312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313$as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_try") 2>&5
2315 ac_status=$?
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; }; }; then :
2318 ac_retval=0
2319else
2320 $as_echo "$as_me: program exited with status $ac_status" >&5
2321 $as_echo "$as_me: failed program was:" >&5
2322sed 's/^/| /' conftest.$ac_ext >&5
2323
2324 ac_retval=$ac_status
2325fi
2326 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2327 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002328 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002329
2330} # ac_fn_c_try_run
2331
2332# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2333# -------------------------------------------------------
2334# Tests whether HEADER exists and can be compiled using the include files in
2335# INCLUDES, setting the cache variable VAR accordingly.
2336ac_fn_c_check_header_compile ()
2337{
2338 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340$as_echo_n "checking for $2... " >&6; }
2341if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2342 $as_echo_n "(cached) " >&6
2343else
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345/* end confdefs.h. */
2346$4
2347#include <$2>
2348_ACEOF
2349if ac_fn_c_try_compile "$LINENO"; then :
2350 eval "$3=yes"
2351else
2352 eval "$3=no"
2353fi
2354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355fi
2356eval ac_res=\$$3
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358$as_echo "$ac_res" >&6; }
2359 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2360
2361} # ac_fn_c_check_header_compile
2362
cristya0b81c32010-01-22 02:54:33 +00002363# ac_fn_cxx_try_compile LINENO
2364# ----------------------------
2365# Try to compile conftest.$ac_ext, and return whether this succeeded.
2366ac_fn_cxx_try_compile ()
2367{
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 rm -f conftest.$ac_objext
2370 if { { ac_try="$ac_compile"
2371case "(($ac_try" in
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2374esac
2375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376$as_echo "$ac_try_echo"; } >&5
2377 (eval "$ac_compile") 2>conftest.err
2378 ac_status=$?
2379 if test -s conftest.err; then
2380 grep -v '^ *+' conftest.err >conftest.er1
2381 cat conftest.er1 >&5
2382 mv -f conftest.er1 conftest.err
2383 fi
2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385 test $ac_status = 0; } && {
2386 test -z "$ac_cxx_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest.$ac_objext; then :
2389 ac_retval=0
2390else
2391 $as_echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 ac_retval=1
2395fi
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2397 as_fn_set_status $ac_retval
2398
2399} # ac_fn_cxx_try_compile
2400
cristy8b350f62009-11-15 23:12:43 +00002401# ac_fn_c_try_link LINENO
2402# -----------------------
2403# Try to link conftest.$ac_ext, and return whether this succeeded.
2404ac_fn_c_try_link ()
2405{
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 rm -f conftest.$ac_objext conftest$ac_exeext
2408 if { { ac_try="$ac_link"
2409case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2412esac
2413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2414$as_echo "$ac_try_echo"; } >&5
2415 (eval "$ac_link") 2>conftest.err
2416 ac_status=$?
2417 if test -s conftest.err; then
2418 grep -v '^ *+' conftest.err >conftest.er1
2419 cat conftest.er1 >&5
2420 mv -f conftest.er1 conftest.err
2421 fi
2422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2423 test $ac_status = 0; } && {
2424 test -z "$ac_c_werror_flag" ||
2425 test ! -s conftest.err
2426 } && test -s conftest$ac_exeext && {
2427 test "$cross_compiling" = yes ||
2428 $as_test_x conftest$ac_exeext
2429 }; then :
2430 ac_retval=0
2431else
2432 $as_echo "$as_me: failed program was:" >&5
2433sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 ac_retval=1
2436fi
2437 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2438 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2439 # interfere with the next link command; also delete a directory that is
2440 # left behind by Apple's compiler. We do this before executing the actions.
2441 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2442 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002443 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002444
2445} # ac_fn_c_try_link
2446
2447# ac_fn_c_check_func LINENO FUNC VAR
2448# ----------------------------------
2449# Tests whether FUNC exists, setting the cache variable VAR accordingly
2450ac_fn_c_check_func ()
2451{
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454$as_echo_n "checking for $2... " >&6; }
2455if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2457else
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459/* end confdefs.h. */
2460/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2462#define $2 innocuous_$2
2463
2464/* System header to define __stub macros and hopefully few prototypes,
2465 which can conflict with char $2 (); below.
2466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2467 <limits.h> exists even on freestanding compilers. */
2468
2469#ifdef __STDC__
2470# include <limits.h>
2471#else
2472# include <assert.h>
2473#endif
2474
2475#undef $2
2476
2477/* Override any GCC internal prototype to avoid an error.
2478 Use char because int might match the return type of a GCC
2479 builtin and then its argument prototype would still apply. */
2480#ifdef __cplusplus
2481extern "C"
2482#endif
2483char $2 ();
2484/* The GNU C library defines this for functions which it implements
2485 to always fail with ENOSYS. Some functions are actually named
2486 something starting with __ and the normal name is an alias. */
2487#if defined __stub_$2 || defined __stub___$2
2488choke me
2489#endif
2490
2491int
2492main ()
2493{
2494return $2 ();
2495 ;
2496 return 0;
2497}
2498_ACEOF
2499if ac_fn_c_try_link "$LINENO"; then :
2500 eval "$3=yes"
2501else
2502 eval "$3=no"
2503fi
2504rm -f core conftest.err conftest.$ac_objext \
2505 conftest$ac_exeext conftest.$ac_ext
2506fi
2507eval ac_res=\$$3
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509$as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511
2512} # ac_fn_c_check_func
2513
2514# ac_fn_cxx_try_cpp LINENO
2515# ------------------------
2516# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2517ac_fn_cxx_try_cpp ()
2518{
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 if { { ac_try="$ac_cpp conftest.$ac_ext"
2521case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524esac
2525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2526$as_echo "$ac_try_echo"; } >&5
2527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2528 ac_status=$?
2529 if test -s conftest.err; then
2530 grep -v '^ *+' conftest.err >conftest.er1
2531 cat conftest.er1 >&5
2532 mv -f conftest.er1 conftest.err
2533 fi
2534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2535 test $ac_status = 0; } >/dev/null && {
2536 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2537 test ! -s conftest.err
2538 }; then :
2539 ac_retval=0
2540else
2541 $as_echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_retval=1
2545fi
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002547 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002548
2549} # ac_fn_cxx_try_cpp
2550
2551# ac_fn_cxx_try_link LINENO
2552# -------------------------
2553# Try to link conftest.$ac_ext, and return whether this succeeded.
2554ac_fn_cxx_try_link ()
2555{
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 rm -f conftest.$ac_objext conftest$ac_exeext
2558 if { { ac_try="$ac_link"
2559case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562esac
2563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564$as_echo "$ac_try_echo"; } >&5
2565 (eval "$ac_link") 2>conftest.err
2566 ac_status=$?
2567 if test -s conftest.err; then
2568 grep -v '^ *+' conftest.err >conftest.er1
2569 cat conftest.er1 >&5
2570 mv -f conftest.er1 conftest.err
2571 fi
2572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2573 test $ac_status = 0; } && {
2574 test -z "$ac_cxx_werror_flag" ||
2575 test ! -s conftest.err
2576 } && test -s conftest$ac_exeext && {
2577 test "$cross_compiling" = yes ||
2578 $as_test_x conftest$ac_exeext
2579 }; then :
2580 ac_retval=0
2581else
2582 $as_echo "$as_me: failed program was:" >&5
2583sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 ac_retval=1
2586fi
2587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2589 # interfere with the next link command; also delete a directory that is
2590 # left behind by Apple's compiler. We do this before executing the actions.
2591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002593 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002594
2595} # ac_fn_cxx_try_link
2596
2597# ac_fn_c_check_decl LINENO SYMBOL VAR
2598# ------------------------------------
2599# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2600ac_fn_c_check_decl ()
2601{
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2604$as_echo_n "checking whether $2 is declared... " >&6; }
2605if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2606 $as_echo_n "(cached) " >&6
2607else
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609/* end confdefs.h. */
2610$4
2611int
2612main ()
2613{
2614#ifndef $2
2615 (void) $2;
2616#endif
2617
2618 ;
2619 return 0;
2620}
2621_ACEOF
2622if ac_fn_c_try_compile "$LINENO"; then :
2623 eval "$3=yes"
2624else
2625 eval "$3=no"
2626fi
2627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628fi
2629eval ac_res=\$$3
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2631$as_echo "$ac_res" >&6; }
2632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2633
2634} # ac_fn_c_check_decl
2635
2636# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2637# -------------------------------------------
2638# Tests whether TYPE exists after having included INCLUDES, setting cache
2639# variable VAR accordingly.
2640ac_fn_c_check_type ()
2641{
2642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2644$as_echo_n "checking for $2... " >&6; }
2645if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2646 $as_echo_n "(cached) " >&6
2647else
2648 eval "$3=no"
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650/* end confdefs.h. */
2651$4
2652int
2653main ()
2654{
2655if (sizeof ($2))
2656 return 0;
2657 ;
2658 return 0;
2659}
2660_ACEOF
2661if ac_fn_c_try_compile "$LINENO"; then :
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663/* end confdefs.h. */
2664$4
2665int
2666main ()
2667{
2668if (sizeof (($2)))
2669 return 0;
2670 ;
2671 return 0;
2672}
2673_ACEOF
2674if ac_fn_c_try_compile "$LINENO"; then :
2675
2676else
2677 eval "$3=yes"
2678fi
2679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680fi
2681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682fi
2683eval ac_res=\$$3
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2685$as_echo "$ac_res" >&6; }
2686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2687
2688} # ac_fn_c_check_type
2689
cristy92703d82010-04-26 00:18:18 +00002690# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2691# ----------------------------------------------------
2692# Tries to find if the field MEMBER exists in type AGGR, after including
2693# INCLUDES, setting cache variable VAR accordingly.
2694ac_fn_c_check_member ()
2695{
2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2698$as_echo_n "checking for $2.$3... " >&6; }
2699if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2700 $as_echo_n "(cached) " >&6
2701else
2702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703/* end confdefs.h. */
2704$5
2705int
2706main ()
2707{
2708static $2 ac_aggr;
2709if (ac_aggr.$3)
2710return 0;
2711 ;
2712 return 0;
2713}
2714_ACEOF
2715if ac_fn_c_try_compile "$LINENO"; then :
2716 eval "$4=yes"
2717else
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719/* end confdefs.h. */
2720$5
2721int
2722main ()
2723{
2724static $2 ac_aggr;
2725if (sizeof ac_aggr.$3)
2726return 0;
2727 ;
2728 return 0;
2729}
2730_ACEOF
2731if ac_fn_c_try_compile "$LINENO"; then :
2732 eval "$4=yes"
2733else
2734 eval "$4=no"
2735fi
2736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737fi
2738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739fi
2740eval ac_res=\$$4
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742$as_echo "$ac_res" >&6; }
2743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2744
2745} # ac_fn_c_check_member
2746
cristy8b350f62009-11-15 23:12:43 +00002747# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2748# --------------------------------------------
2749# Tries to find the compile-time value of EXPR in a program that includes
2750# INCLUDES, setting VAR accordingly. Returns whether the value could be
2751# computed
2752ac_fn_c_compute_int ()
2753{
2754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2755 if test "$cross_compiling" = yes; then
2756 # Depending upon the size, compute the lo and hi bounds.
2757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758/* end confdefs.h. */
2759$4
2760int
2761main ()
2762{
2763static int test_array [1 - 2 * !(($2) >= 0)];
2764test_array [0] = 0
2765
2766 ;
2767 return 0;
2768}
2769_ACEOF
2770if ac_fn_c_try_compile "$LINENO"; then :
2771 ac_lo=0 ac_mid=0
2772 while :; do
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774/* end confdefs.h. */
2775$4
2776int
2777main ()
2778{
2779static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2780test_array [0] = 0
2781
2782 ;
2783 return 0;
2784}
2785_ACEOF
2786if ac_fn_c_try_compile "$LINENO"; then :
2787 ac_hi=$ac_mid; break
2788else
2789 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2790 if test $ac_lo -le $ac_mid; then
2791 ac_lo= ac_hi=
2792 break
2793 fi
2794 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2795fi
2796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797 done
2798else
2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800/* end confdefs.h. */
2801$4
2802int
2803main ()
2804{
2805static int test_array [1 - 2 * !(($2) < 0)];
2806test_array [0] = 0
2807
2808 ;
2809 return 0;
2810}
2811_ACEOF
2812if ac_fn_c_try_compile "$LINENO"; then :
2813 ac_hi=-1 ac_mid=-1
2814 while :; do
2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2816/* end confdefs.h. */
2817$4
2818int
2819main ()
2820{
2821static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2822test_array [0] = 0
2823
2824 ;
2825 return 0;
2826}
2827_ACEOF
2828if ac_fn_c_try_compile "$LINENO"; then :
2829 ac_lo=$ac_mid; break
2830else
2831 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2832 if test $ac_mid -le $ac_hi; then
2833 ac_lo= ac_hi=
2834 break
2835 fi
2836 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2837fi
2838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 done
2840else
2841 ac_lo= ac_hi=
2842fi
2843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844fi
2845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846# Binary search between lo and hi bounds.
2847while test "x$ac_lo" != "x$ac_hi"; do
2848 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850/* end confdefs.h. */
2851$4
2852int
2853main ()
2854{
2855static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2856test_array [0] = 0
2857
2858 ;
2859 return 0;
2860}
2861_ACEOF
2862if ac_fn_c_try_compile "$LINENO"; then :
2863 ac_hi=$ac_mid
2864else
2865 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2866fi
2867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868done
2869case $ac_lo in #((
2870?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2871'') ac_retval=1 ;;
2872esac
2873 else
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875/* end confdefs.h. */
2876$4
2877static long int longval () { return $2; }
2878static unsigned long int ulongval () { return $2; }
2879#include <stdio.h>
2880#include <stdlib.h>
2881int
2882main ()
2883{
2884
2885 FILE *f = fopen ("conftest.val", "w");
2886 if (! f)
2887 return 1;
2888 if (($2) < 0)
2889 {
2890 long int i = longval ();
2891 if (i != ($2))
2892 return 1;
2893 fprintf (f, "%ld", i);
2894 }
2895 else
2896 {
2897 unsigned long int i = ulongval ();
2898 if (i != ($2))
2899 return 1;
2900 fprintf (f, "%lu", i);
2901 }
2902 /* Do not output a trailing newline, as this causes \r\n confusion
2903 on some platforms. */
2904 return ferror (f) || fclose (f) != 0;
2905
2906 ;
2907 return 0;
2908}
2909_ACEOF
2910if ac_fn_c_try_run "$LINENO"; then :
2911 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2912else
2913 ac_retval=1
2914fi
2915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2916 conftest.$ac_objext conftest.beam conftest.$ac_ext
2917rm -f conftest.val
2918
2919 fi
2920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002921 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002922
2923} # ac_fn_c_compute_int
2924
2925# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2926# ---------------------------------------------------------
2927# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2928# the include files in INCLUDES and setting the cache variable VAR
2929# accordingly.
2930ac_fn_cxx_check_header_mongrel ()
2931{
2932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2935$as_echo_n "checking for $2... " >&6; }
2936if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2937 $as_echo_n "(cached) " >&6
2938fi
2939eval ac_res=\$$3
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2941$as_echo "$ac_res" >&6; }
2942else
2943 # Is the header compilable?
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2945$as_echo_n "checking $2 usability... " >&6; }
2946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947/* end confdefs.h. */
2948$4
2949#include <$2>
2950_ACEOF
2951if ac_fn_cxx_try_compile "$LINENO"; then :
2952 ac_header_compiler=yes
2953else
2954 ac_header_compiler=no
2955fi
2956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2958$as_echo "$ac_header_compiler" >&6; }
2959
2960# Is the header present?
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2962$as_echo_n "checking $2 presence... " >&6; }
2963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964/* end confdefs.h. */
2965#include <$2>
2966_ACEOF
2967if ac_fn_cxx_try_cpp "$LINENO"; then :
2968 ac_header_preproc=yes
2969else
2970 ac_header_preproc=no
2971fi
2972rm -f conftest.err conftest.$ac_ext
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2974$as_echo "$ac_header_preproc" >&6; }
2975
2976# So? What about this header?
2977case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2978 yes:no: )
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2980$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2982$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2983 ;;
2984 no:yes:* )
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2986$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2988$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2990$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2992$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2994$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2995( cat <<\_ASBOX
2996## ----------------------------------------- ##
2997## Report this to http://www.imagemagick.org ##
2998## ----------------------------------------- ##
2999_ASBOX
3000 ) | sed "s/^/$as_me: WARNING: /" >&2
3001 ;;
3002esac
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3004$as_echo_n "checking for $2... " >&6; }
3005if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3006 $as_echo_n "(cached) " >&6
3007else
3008 eval "$3=\$ac_header_compiler"
3009fi
3010eval ac_res=\$$3
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3012$as_echo "$ac_res" >&6; }
3013fi
3014 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3015
3016} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003017cat >config.log <<_ACEOF
3018This file contains any messages produced by compilers while
3019running configure, to aid debugging if configure makes a mistake.
3020
cristyb36feb22010-03-26 16:54:37 +00003021It was created by ImageMagick $as_me 6.6.1, which was
cristycd4c5312009-11-22 01:19:08 +00003022generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003023
3024 $ $0 $@
3025
3026_ACEOF
3027exec 5>>config.log
3028{
3029cat <<_ASUNAME
3030## --------- ##
3031## Platform. ##
3032## --------- ##
3033
3034hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3035uname -m = `(uname -m) 2>/dev/null || echo unknown`
3036uname -r = `(uname -r) 2>/dev/null || echo unknown`
3037uname -s = `(uname -s) 2>/dev/null || echo unknown`
3038uname -v = `(uname -v) 2>/dev/null || echo unknown`
3039
3040/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3041/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3042
3043/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3044/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3045/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3046/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3047/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3048/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3049/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3050
3051_ASUNAME
3052
3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003058 $as_echo "PATH: $as_dir"
3059 done
cristy3ed852e2009-09-05 21:47:34 +00003060IFS=$as_save_IFS
3061
3062} >&5
3063
3064cat >&5 <<_ACEOF
3065
3066
3067## ----------- ##
3068## Core tests. ##
3069## ----------- ##
3070
3071_ACEOF
3072
3073
3074# Keep a trace of the command line.
3075# Strip out --no-create and --no-recursion so they do not pile up.
3076# Strip out --silent because we don't want to record it for future runs.
3077# Also quote any args containing shell meta-characters.
3078# Make two passes to allow for proper duplicate-argument suppression.
3079ac_configure_args=
3080ac_configure_args0=
3081ac_configure_args1=
3082ac_must_keep_next=false
3083for ac_pass in 1 2
3084do
3085 for ac_arg
3086 do
3087 case $ac_arg in
3088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3090 | -silent | --silent | --silen | --sile | --sil)
3091 continue ;;
3092 *\'*)
3093 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3094 esac
3095 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003097 2)
cristy8b350f62009-11-15 23:12:43 +00003098 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003099 if test $ac_must_keep_next = true; then
3100 ac_must_keep_next=false # Got value, back to normal.
3101 else
3102 case $ac_arg in
3103 *=* | --config-cache | -C | -disable-* | --disable-* \
3104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3106 | -with-* | --with-* | -without-* | --without-* | --x)
3107 case "$ac_configure_args0 " in
3108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3109 esac
3110 ;;
3111 -* ) ac_must_keep_next=true ;;
3112 esac
3113 fi
cristy8b350f62009-11-15 23:12:43 +00003114 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003115 ;;
3116 esac
3117 done
3118done
cristy8b350f62009-11-15 23:12:43 +00003119{ ac_configure_args0=; unset ac_configure_args0;}
3120{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003121
3122# When interrupted or exit'd, cleanup temporary files, and complete
3123# config.log. We remove comments because anyway the quotes in there
3124# would cause problems or look ugly.
3125# WARNING: Use '\'' to represent an apostrophe within the trap.
3126# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3127trap 'exit_status=$?
3128 # Save into config.log some information that might help in debugging.
3129 {
3130 echo
3131
3132 cat <<\_ASBOX
3133## ---------------- ##
3134## Cache variables. ##
3135## ---------------- ##
3136_ASBOX
3137 echo
3138 # The following way of writing the cache mishandles newlines in values,
3139(
3140 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3141 eval ac_val=\$$ac_var
3142 case $ac_val in #(
3143 *${as_nl}*)
3144 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003145 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003146$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3147 esac
3148 case $ac_var in #(
3149 _ | IFS | as_nl) ;; #(
3150 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003151 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003152 esac ;;
3153 esac
3154 done
3155 (set) 2>&1 |
3156 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3157 *${as_nl}ac_space=\ *)
3158 sed -n \
3159 "s/'\''/'\''\\\\'\'''\''/g;
3160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3161 ;; #(
3162 *)
3163 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3164 ;;
3165 esac |
3166 sort
3167)
3168 echo
3169
3170 cat <<\_ASBOX
3171## ----------------- ##
3172## Output variables. ##
3173## ----------------- ##
3174_ASBOX
3175 echo
3176 for ac_var in $ac_subst_vars
3177 do
3178 eval ac_val=\$$ac_var
3179 case $ac_val in
3180 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3181 esac
3182 $as_echo "$ac_var='\''$ac_val'\''"
3183 done | sort
3184 echo
3185
3186 if test -n "$ac_subst_files"; then
3187 cat <<\_ASBOX
3188## ------------------- ##
3189## File substitutions. ##
3190## ------------------- ##
3191_ASBOX
3192 echo
3193 for ac_var in $ac_subst_files
3194 do
3195 eval ac_val=\$$ac_var
3196 case $ac_val in
3197 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3198 esac
3199 $as_echo "$ac_var='\''$ac_val'\''"
3200 done | sort
3201 echo
3202 fi
3203
3204 if test -s confdefs.h; then
3205 cat <<\_ASBOX
3206## ----------- ##
3207## confdefs.h. ##
3208## ----------- ##
3209_ASBOX
3210 echo
3211 cat confdefs.h
3212 echo
3213 fi
3214 test "$ac_signal" != 0 &&
3215 $as_echo "$as_me: caught signal $ac_signal"
3216 $as_echo "$as_me: exit $exit_status"
3217 } >&5
3218 rm -f core *.core core.conftest.* &&
3219 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3220 exit $exit_status
3221' 0
3222for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003223 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003224done
3225ac_signal=0
3226
3227# confdefs.h avoids OS command line length limits that DEFS can exceed.
3228rm -f -r conftest* confdefs.h
3229
cristy8b350f62009-11-15 23:12:43 +00003230$as_echo "/* confdefs.h */" > confdefs.h
3231
cristy3ed852e2009-09-05 21:47:34 +00003232# Predefined preprocessor variables.
3233
3234cat >>confdefs.h <<_ACEOF
3235#define PACKAGE_NAME "$PACKAGE_NAME"
3236_ACEOF
3237
cristy3ed852e2009-09-05 21:47:34 +00003238cat >>confdefs.h <<_ACEOF
3239#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3240_ACEOF
3241
cristy3ed852e2009-09-05 21:47:34 +00003242cat >>confdefs.h <<_ACEOF
3243#define PACKAGE_VERSION "$PACKAGE_VERSION"
3244_ACEOF
3245
cristy3ed852e2009-09-05 21:47:34 +00003246cat >>confdefs.h <<_ACEOF
3247#define PACKAGE_STRING "$PACKAGE_STRING"
3248_ACEOF
3249
cristy3ed852e2009-09-05 21:47:34 +00003250cat >>confdefs.h <<_ACEOF
3251#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3252_ACEOF
3253
cristy8b350f62009-11-15 23:12:43 +00003254cat >>confdefs.h <<_ACEOF
3255#define PACKAGE_URL "$PACKAGE_URL"
3256_ACEOF
3257
cristy3ed852e2009-09-05 21:47:34 +00003258
3259# Let the site file select an alternate cache file if it wants to.
3260# Prefer an explicitly selected file to automatically selected ones.
3261ac_site_file1=NONE
3262ac_site_file2=NONE
3263if test -n "$CONFIG_SITE"; then
3264 ac_site_file1=$CONFIG_SITE
3265elif test "x$prefix" != xNONE; then
3266 ac_site_file1=$prefix/share/config.site
3267 ac_site_file2=$prefix/etc/config.site
3268else
3269 ac_site_file1=$ac_default_prefix/share/config.site
3270 ac_site_file2=$ac_default_prefix/etc/config.site
3271fi
3272for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3273do
3274 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003275 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003276 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003277$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3278 sed 's/^/| /' "$ac_site_file" >&5
3279 . "$ac_site_file"
3280 fi
3281done
3282
3283if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003284 # Some versions of bash will fail to source /dev/null (special files
3285 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3286 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003288$as_echo "$as_me: loading cache $cache_file" >&6;}
3289 case $cache_file in
3290 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3291 *) . "./$cache_file";;
3292 esac
3293 fi
3294else
cristy8b350f62009-11-15 23:12:43 +00003295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003296$as_echo "$as_me: creating cache $cache_file" >&6;}
3297 >$cache_file
3298fi
3299
cristycd4c5312009-11-22 01:19:08 +00003300as_fn_append ac_header_list " stdlib.h"
3301as_fn_append ac_header_list " unistd.h"
3302as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003303# Check that the precious variables saved in the cache have kept the same
3304# value.
3305ac_cache_corrupted=false
3306for ac_var in $ac_precious_vars; do
3307 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3308 eval ac_new_set=\$ac_env_${ac_var}_set
3309 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3310 eval ac_new_val=\$ac_env_${ac_var}_value
3311 case $ac_old_set,$ac_new_set in
3312 set,)
cristy8b350f62009-11-15 23:12:43 +00003313 { $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 +00003314$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3315 ac_cache_corrupted=: ;;
3316 ,set)
cristy8b350f62009-11-15 23:12:43 +00003317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003318$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3319 ac_cache_corrupted=: ;;
3320 ,);;
3321 *)
3322 if test "x$ac_old_val" != "x$ac_new_val"; then
3323 # differences in whitespace do not lead to failure.
3324 ac_old_val_w=`echo x $ac_old_val`
3325 ac_new_val_w=`echo x $ac_new_val`
3326 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003328$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3329 ac_cache_corrupted=:
3330 else
cristy8b350f62009-11-15 23:12:43 +00003331 { $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 +00003332$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3333 eval $ac_var=\$ac_old_val
3334 fi
cristy8b350f62009-11-15 23:12:43 +00003335 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003336$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003337 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003338$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3339 fi;;
3340 esac
3341 # Pass precious variables to config.status.
3342 if test "$ac_new_set" = set; then
3343 case $ac_new_val in
3344 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3345 *) ac_arg=$ac_var=$ac_new_val ;;
3346 esac
3347 case " $ac_configure_args " in
3348 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003349 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003350 esac
3351 fi
3352done
3353if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003357$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003358 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003359fi
cristy8b350f62009-11-15 23:12:43 +00003360## -------------------- ##
3361## Main body of script. ##
3362## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003363
3364ac_ext=c
3365ac_cpp='$CPP $CPPFLAGS'
3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369
3370
3371
3372ac_aux_dir=
3373for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003374 for ac_t in install-sh install.sh shtool; do
3375 if test -f "$ac_dir/$ac_t"; then
3376 ac_aux_dir=$ac_dir
3377 ac_install_sh="$ac_aux_dir/$ac_t -c"
3378 break 2
3379 fi
3380 done
cristy3ed852e2009-09-05 21:47:34 +00003381done
3382if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003383 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003384fi
3385
3386# These three variables are undocumented and unsupported,
3387# and are intended to be withdrawn in a future Autoconf release.
3388# They can cause serious problems if a builder's source tree is in a directory
3389# whose full name contains unusual characters.
3390ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3391ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3392ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3393
3394
3395
3396
3397ac_config_headers="$ac_config_headers config/config.h"
3398
3399ac_config_commands="$ac_config_commands magick/magick-config.h"
3400
cristy430a7312010-01-21 20:44:04 +00003401ac_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 +00003402
3403
3404#
3405# Save initial user-tunable values
3406#
3407USER_LIBS=$LIBS
3408for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3409 eval isset=\${$var+set}
3410 if test "$isset" = 'set'; then
3411 eval val=$`echo $var`
3412 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3413 fi
3414done
3415
3416
3417CONFIGURE_ARGS="$0 ${ac_configure_args}"
3418
3419
3420# Source file containing package/library versioning information.
3421. ${srcdir}/version.sh
3422
cristy15a88782010-01-31 23:24:49 +00003423echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003424# Make sure we can run config.sub.
3425$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003426 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003427
cristy8b350f62009-11-15 23:12:43 +00003428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003429$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003430if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003431 $as_echo_n "(cached) " >&6
3432else
3433 ac_build_alias=$build_alias
3434test "x$ac_build_alias" = x &&
3435 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3436test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003437 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003438ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003439 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003440
3441fi
cristy8b350f62009-11-15 23:12:43 +00003442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003443$as_echo "$ac_cv_build" >&6; }
3444case $ac_cv_build in
3445*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003446*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003447esac
3448build=$ac_cv_build
3449ac_save_IFS=$IFS; IFS='-'
3450set x $ac_cv_build
3451shift
3452build_cpu=$1
3453build_vendor=$2
3454shift; shift
3455# Remember, the first character of IFS is used to create $*,
3456# except with old shells:
3457build_os=$*
3458IFS=$ac_save_IFS
3459case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3460
3461
cristy8b350f62009-11-15 23:12:43 +00003462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003463$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003464if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003465 $as_echo_n "(cached) " >&6
3466else
3467 if test "x$host_alias" = x; then
3468 ac_cv_host=$ac_cv_build
3469else
3470 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003471 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003472fi
3473
3474fi
cristy8b350f62009-11-15 23:12:43 +00003475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003476$as_echo "$ac_cv_host" >&6; }
3477case $ac_cv_host in
3478*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003479*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003480esac
3481host=$ac_cv_host
3482ac_save_IFS=$IFS; IFS='-'
3483set x $ac_cv_host
3484shift
3485host_cpu=$1
3486host_vendor=$2
3487shift; shift
3488# Remember, the first character of IFS is used to create $*,
3489# except with old shells:
3490host_os=$*
3491IFS=$ac_save_IFS
3492case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3493
3494
cristy8b350f62009-11-15 23:12:43 +00003495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003496$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003497if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003498 $as_echo_n "(cached) " >&6
3499else
3500 if test "x$target_alias" = x; then
3501 ac_cv_target=$ac_cv_host
3502else
3503 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003504 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003505fi
3506
3507fi
cristy8b350f62009-11-15 23:12:43 +00003508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003509$as_echo "$ac_cv_target" >&6; }
3510case $ac_cv_target in
3511*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003512*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003513esac
3514target=$ac_cv_target
3515ac_save_IFS=$IFS; IFS='-'
3516set x $ac_cv_target
3517shift
3518target_cpu=$1
3519target_vendor=$2
3520shift; shift
3521# Remember, the first character of IFS is used to create $*,
3522# except with old shells:
3523target_os=$*
3524IFS=$ac_save_IFS
3525case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3526
3527
3528# The aliases save the names the user supplied, while $host etc.
3529# will get canonicalized.
3530test -n "$target_alias" &&
3531 test "$program_prefix$program_suffix$program_transform_name" = \
3532 NONENONEs,x,x, &&
3533 program_prefix=${target_alias}-
3534
cristy837d6dc2010-02-27 01:16:57 +00003535
3536
3537
3538
cristy3225a072010-04-17 01:47:28 +00003539MAGICK_TARGET_CPU=$target_cpu
3540
3541
3542MAGICK_TARGET_VENDOR=$target_vendor
3543
3544
3545MAGICK_TARGET_OS=$target_os
3546
3547
cristy3ed852e2009-09-05 21:47:34 +00003548# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003549MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3550
3551MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3552
cristy3ed852e2009-09-05 21:47:34 +00003553
3554
3555# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003557$as_echo_n "checking whether build environment is sane... " >&6; }
3558# Just in case
3559sleep 1
3560echo timestamp > conftest.file
3561# Reject unsafe characters in $srcdir or the absolute working directory
3562# name. Accept space and tab only in the latter.
3563am_lf='
3564'
3565case `pwd` in
3566 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003567 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003568esac
3569case $srcdir in
3570 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003571 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003572esac
3573
3574# Do `set' in a subshell so we don't clobber the current shell's
3575# arguments. Must try -L first in case configure is actually a
3576# symlink; some systems play weird games with the mod time of symlinks
3577# (eg FreeBSD returns the mod time of the symlink's containing
3578# directory).
3579if (
3580 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3581 if test "$*" = "X"; then
3582 # -L didn't work.
3583 set X `ls -t "$srcdir/configure" conftest.file`
3584 fi
3585 rm -f conftest.file
3586 if test "$*" != "X $srcdir/configure conftest.file" \
3587 && test "$*" != "X conftest.file $srcdir/configure"; then
3588
3589 # If neither matched, then we have a broken ls. This can happen
3590 # if, for instance, CONFIG_SHELL is bash and it inherits a
3591 # broken ls alias from the environment. This has actually
3592 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003593 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3594alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003595 fi
3596
3597 test "$2" = conftest.file
3598 )
3599then
3600 # Ok.
3601 :
3602else
cristy8b350f62009-11-15 23:12:43 +00003603 as_fn_error "newly created file is older than distributed files!
3604Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003605fi
cristy8b350f62009-11-15 23:12:43 +00003606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003607$as_echo "yes" >&6; }
3608
3609am__api_version='1.11'
3610
3611# Find a good install program. We prefer a C program (faster),
3612# so one script is as good as another. But avoid the broken or
3613# incompatible versions:
3614# SysV /etc/install, /usr/sbin/install
3615# SunOS /usr/etc/install
3616# IRIX /sbin/install
3617# AIX /bin/install
3618# AmigaOS /C/install, which installs bootblocks on floppy discs
3619# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3620# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3621# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3622# OS/2's system install, which has a completely different semantic
3623# ./install, which can be erroneously created by make from ./install.sh.
3624# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003626$as_echo_n "checking for a BSD-compatible install... " >&6; }
3627if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003628if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003629 $as_echo_n "(cached) " >&6
3630else
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003636 # Account for people who put trailing slashes in PATH elements.
3637case $as_dir/ in #((
3638 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003639 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003640 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003641 /usr/ucb/* ) ;;
3642 *)
3643 # OSF1 and SCO ODT 3.0 have their own names for install.
3644 # Don't use installbsd from OSF since it installs stuff as root
3645 # by default.
3646 for ac_prog in ginstall scoinst install; do
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3649 if test $ac_prog = install &&
3650 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3651 # AIX install. It has an incompatible calling convention.
3652 :
3653 elif test $ac_prog = install &&
3654 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3655 # program-specific install script used by HP pwplus--don't use.
3656 :
3657 else
3658 rm -rf conftest.one conftest.two conftest.dir
3659 echo one > conftest.one
3660 echo two > conftest.two
3661 mkdir conftest.dir
3662 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3663 test -s conftest.one && test -s conftest.two &&
3664 test -s conftest.dir/conftest.one &&
3665 test -s conftest.dir/conftest.two
3666 then
3667 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3668 break 3
3669 fi
3670 fi
3671 fi
3672 done
3673 done
3674 ;;
3675esac
3676
cristy8b350f62009-11-15 23:12:43 +00003677 done
cristy3ed852e2009-09-05 21:47:34 +00003678IFS=$as_save_IFS
3679
3680rm -rf conftest.one conftest.two conftest.dir
3681
3682fi
3683 if test "${ac_cv_path_install+set}" = set; then
3684 INSTALL=$ac_cv_path_install
3685 else
3686 # As a last resort, use the slow shell script. Don't cache a
3687 # value for INSTALL within a source directory, because that will
3688 # break other packages using the cache if that directory is
3689 # removed, or if the value is a relative name.
3690 INSTALL=$ac_install_sh
3691 fi
3692fi
cristy8b350f62009-11-15 23:12:43 +00003693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003694$as_echo "$INSTALL" >&6; }
3695
3696# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3697# It thinks the first close brace ends the variable substitution.
3698test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3699
3700test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3701
3702test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3703
3704test "$program_prefix" != NONE &&
3705 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3706# Use a double $ so make ignores it.
3707test "$program_suffix" != NONE &&
3708 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3709# Double any \ or $.
3710# By default was `s,x,x', remove it if useless.
3711ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3712program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3713
3714# expand $ac_aux_dir to an absolute path
3715am_aux_dir=`cd $ac_aux_dir && pwd`
3716
3717if test x"${MISSING+set}" != xset; then
3718 case $am_aux_dir in
3719 *\ * | *\ *)
3720 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3721 *)
3722 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3723 esac
3724fi
3725# Use eval to expand $SHELL
3726if eval "$MISSING --run true"; then
3727 am_missing_run="$MISSING --run "
3728else
3729 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003731$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3732fi
3733
3734if test x"${install_sh}" != xset; then
3735 case $am_aux_dir in
3736 *\ * | *\ *)
3737 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3738 *)
3739 install_sh="\${SHELL} $am_aux_dir/install-sh"
3740 esac
3741fi
3742
3743# Installed binaries are usually stripped using `strip' when the user
3744# run `make install-strip'. However `strip' might not be the right
3745# tool to use in cross-compilation environments, therefore Automake
3746# will honor the `STRIP' environment variable to overrule this program.
3747if test "$cross_compiling" != no; then
3748 if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3750set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003752$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003753if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003754 $as_echo_n "(cached) " >&6
3755else
3756 if test -n "$STRIP"; then
3757 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3758else
3759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760for as_dir in $PATH
3761do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003764 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003768 break 2
3769 fi
3770done
cristy8b350f62009-11-15 23:12:43 +00003771 done
cristy3ed852e2009-09-05 21:47:34 +00003772IFS=$as_save_IFS
3773
3774fi
3775fi
3776STRIP=$ac_cv_prog_STRIP
3777if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003779$as_echo "$STRIP" >&6; }
3780else
cristy8b350f62009-11-15 23:12:43 +00003781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003782$as_echo "no" >&6; }
3783fi
3784
3785
3786fi
3787if test -z "$ac_cv_prog_STRIP"; then
3788 ac_ct_STRIP=$STRIP
3789 # Extract the first word of "strip", so it can be a program name with args.
3790set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003792$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003793if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003794 $as_echo_n "(cached) " >&6
3795else
3796 if test -n "$ac_ct_STRIP"; then
3797 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3798else
3799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800for as_dir in $PATH
3801do
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003804 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003808 break 2
3809 fi
3810done
cristy8b350f62009-11-15 23:12:43 +00003811 done
cristy3ed852e2009-09-05 21:47:34 +00003812IFS=$as_save_IFS
3813
3814fi
3815fi
3816ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3817if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003819$as_echo "$ac_ct_STRIP" >&6; }
3820else
cristy8b350f62009-11-15 23:12:43 +00003821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003822$as_echo "no" >&6; }
3823fi
3824
3825 if test "x$ac_ct_STRIP" = x; then
3826 STRIP=":"
3827 else
3828 case $cross_compiling:$ac_tool_warned in
3829yes:)
cristy8b350f62009-11-15 23:12:43 +00003830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832ac_tool_warned=yes ;;
3833esac
3834 STRIP=$ac_ct_STRIP
3835 fi
3836else
3837 STRIP="$ac_cv_prog_STRIP"
3838fi
3839
3840fi
3841INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3842
cristy8b350f62009-11-15 23:12:43 +00003843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003844$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3845if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003846 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003847 $as_echo_n "(cached) " >&6
3848else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3851do
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003854 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3857 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3858 'mkdir (GNU coreutils) '* | \
3859 'mkdir (coreutils) '* | \
3860 'mkdir (fileutils) '4.1*)
3861 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3862 break 3;;
3863 esac
3864 done
3865 done
cristy8b350f62009-11-15 23:12:43 +00003866 done
cristy3ed852e2009-09-05 21:47:34 +00003867IFS=$as_save_IFS
3868
3869fi
3870
cristycd4c5312009-11-22 01:19:08 +00003871 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003872 if test "${ac_cv_path_mkdir+set}" = set; then
3873 MKDIR_P="$ac_cv_path_mkdir -p"
3874 else
3875 # As a last resort, use the slow shell script. Don't cache a
3876 # value for MKDIR_P within a source directory, because that will
3877 # break other packages using the cache if that directory is
3878 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003879 MKDIR_P="$ac_install_sh -d"
3880 fi
3881fi
cristy8b350f62009-11-15 23:12:43 +00003882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003883$as_echo "$MKDIR_P" >&6; }
3884
3885mkdir_p="$MKDIR_P"
3886case $mkdir_p in
3887 [\\/$]* | ?:[\\/]*) ;;
3888 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3889esac
3890
3891for ac_prog in gawk mawk nawk awk
3892do
3893 # Extract the first word of "$ac_prog", so it can be a program name with args.
3894set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003896$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003897if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003898 $as_echo_n "(cached) " >&6
3899else
3900 if test -n "$AWK"; then
3901 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3902else
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003908 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3910 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003912 break 2
3913 fi
3914done
cristy8b350f62009-11-15 23:12:43 +00003915 done
cristy3ed852e2009-09-05 21:47:34 +00003916IFS=$as_save_IFS
3917
3918fi
3919fi
3920AWK=$ac_cv_prog_AWK
3921if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003923$as_echo "$AWK" >&6; }
3924else
cristy8b350f62009-11-15 23:12:43 +00003925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003926$as_echo "no" >&6; }
3927fi
3928
3929
3930 test -n "$AWK" && break
3931done
3932
cristy8b350f62009-11-15 23:12:43 +00003933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003934$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3935set x ${MAKE-make}
3936ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003937if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003938 $as_echo_n "(cached) " >&6
3939else
3940 cat >conftest.make <<\_ACEOF
3941SHELL = /bin/sh
3942all:
3943 @echo '@@@%%%=$(MAKE)=@@@%%%'
3944_ACEOF
3945# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3946case `${MAKE-make} -f conftest.make 2>/dev/null` in
3947 *@@@%%%=?*=@@@%%%*)
3948 eval ac_cv_prog_make_${ac_make}_set=yes;;
3949 *)
3950 eval ac_cv_prog_make_${ac_make}_set=no;;
3951esac
3952rm -f conftest.make
3953fi
3954if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003956$as_echo "yes" >&6; }
3957 SET_MAKE=
3958else
cristy8b350f62009-11-15 23:12:43 +00003959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003960$as_echo "no" >&6; }
3961 SET_MAKE="MAKE=${MAKE-make}"
3962fi
3963
3964rm -rf .tst 2>/dev/null
3965mkdir .tst 2>/dev/null
3966if test -d .tst; then
3967 am__leading_dot=.
3968else
3969 am__leading_dot=_
3970fi
3971rmdir .tst 2>/dev/null
3972
3973if test "`cd $srcdir && pwd`" != "`pwd`"; then
3974 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3975 # is not polluted with repeated "-I."
3976 am__isrc=' -I$(srcdir)'
3977 # test to see if srcdir already configured
3978 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003979 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003980 fi
3981fi
3982
3983# test whether we have cygpath
3984if test -z "$CYGPATH_W"; then
3985 if (cygpath --version) >/dev/null 2>/dev/null; then
3986 CYGPATH_W='cygpath -w'
3987 else
3988 CYGPATH_W=echo
3989 fi
3990fi
3991
3992
3993# Define the identity of the package.
3994 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003995 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003996
3997
3998# Some tools Automake needs.
3999
4000ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4001
4002
4003AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4004
4005
4006AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4007
4008
4009AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4010
4011
4012MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4013
4014# We need awk for the "check" target. The system "awk" is bad on
4015# some platforms.
4016# Always define AMTAR for backward compatibility.
4017
4018AMTAR=${AMTAR-"${am_missing_run}tar"}
4019
4020am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4021
4022
4023
4024
4025
4026
4027# Enable support for silent build rules
4028# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00004029if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004030 enableval=$enable_silent_rules;
4031fi
4032
4033case $enable_silent_rules in
4034yes) AM_DEFAULT_VERBOSITY=0;;
4035no) AM_DEFAULT_VERBOSITY=1;;
4036*) AM_DEFAULT_VERBOSITY=0;;
4037esac
4038AM_BACKSLASH='\'
4039
4040
4041MAGICK_LIB_VERSION="0x"
4042if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4043 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4044fi
4045MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4046if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4047 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4048fi
4049MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4050if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4051 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4052fi
4053MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4054
4055
4056# Definition used to define MagickLibVersionText in version.h
4057MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4058
4059
4060# Definition used to define MagickLibVersionNumber in version.h
4061MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4062
4063
4064# Regenerate config.status if ChangeLog or version.sh is updated.
4065CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4066
4067
4068PERLMAINCC=$CC
4069
4070MAGICK_CFLAGS=''
4071MAGICK_CPPFLAGS=$CPPFLAGS_USER
4072MAGICK_PCFLAGS=$CPPFLAGS_USER
4073MAGICK_LDFLAGS=''
4074MAGICK_LIBS=''
4075
4076#
4077# Evaluate shell variable equivalents to Makefile directory variables
4078#
4079if test "x$prefix" = xNONE; then
4080 prefix=$ac_default_prefix
4081fi
4082# Let make expand exec_prefix.
4083if test "x$exec_prefix" = xNONE; then
4084 exec_prefix='${prefix}'
4085fi
4086
4087#
4088eval "eval PREFIX_DIR=${prefix}"
4089
4090eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4091
4092eval "eval BIN_DIR=$bindir"
4093
4094eval "eval SBIN_DIR=$sbindir"
4095
4096eval "eval LIBEXEC_DIR=$libexecdir"
4097
4098eval "eval DATA_DIR=$datadir"
4099
4100eval "eval SYSCONF_DIR=$sysconfdir"
4101
4102eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4103
4104eval "eval LOCALSTATE_DIR=$localstatedir"
4105
4106eval "eval LIB_DIR=$libdir"
4107
4108eval "eval INCLUDE_DIR=$includedir"
4109
4110eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4111
4112eval "eval INFO_DIR=$infodir"
4113
4114eval "eval MAN_DIR=$mandir"
4115
4116
4117# Get full paths to source and build directories
4118srcdirfull="`cd $srcdir && pwd`"
4119builddir="`pwd`"
4120
4121#
4122# Compute variables useful for running uninstalled software.
4123#
4124MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4125MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4126MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4127MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4128DIRSEP=':'
4129case "${build_os}" in
4130 mingw* )
4131 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4132 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4133 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4134 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4135 DIRSEP=';'
4136 ;;
4137esac
4138case "${host_os}" in
4139 mingw* )
4140 DIRSEP=';'
4141 ;;
4142esac
4143
4144
4145
4146
4147
4148
cristya0b81c32010-01-22 02:54:33 +00004149
4150#
4151# Enable OS features.
4152#
4153DEPDIR="${am__leading_dot}deps"
4154
4155ac_config_commands="$ac_config_commands depfiles"
4156
4157
4158am_make=${MAKE-make}
4159cat > confinc << 'END'
4160am__doit:
4161 @echo this is the am__doit target
4162.PHONY: am__doit
4163END
4164# If we don't find an include directive, just comment out the code.
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4166$as_echo_n "checking for style of include used by $am_make... " >&6; }
4167am__include="#"
4168am__quote=
4169_am_result=none
4170# First try GNU make style include.
4171echo "include confinc" > confmf
4172# Ignore all kinds of additional output from `make'.
4173case `$am_make -s -f confmf 2> /dev/null` in #(
4174*the\ am__doit\ target*)
4175 am__include=include
4176 am__quote=
4177 _am_result=GNU
4178 ;;
4179esac
4180# Now try BSD make style include.
4181if test "$am__include" = "#"; then
4182 echo '.include "confinc"' > confmf
4183 case `$am_make -s -f confmf 2> /dev/null` in #(
4184 *the\ am__doit\ target*)
4185 am__include=.include
4186 am__quote="\""
4187 _am_result=BSD
4188 ;;
4189 esac
4190fi
4191
4192
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4194$as_echo "$_am_result" >&6; }
4195rm -f confinc confmf
4196
4197# Check whether --enable-dependency-tracking was given.
4198if test "${enable_dependency_tracking+set}" = set; then :
4199 enableval=$enable_dependency_tracking;
4200fi
4201
4202if test "x$enable_dependency_tracking" != xno; then
4203 am_depcomp="$ac_aux_dir/depcomp"
4204 AMDEPBACKSLASH='\'
4205fi
4206 if test "x$enable_dependency_tracking" != xno; then
4207 AMDEP_TRUE=
4208 AMDEP_FALSE='#'
4209else
4210 AMDEP_TRUE='#'
4211 AMDEP_FALSE=
4212fi
4213
4214
cristy3ed852e2009-09-05 21:47:34 +00004215ac_ext=c
4216ac_cpp='$CPP $CPPFLAGS'
4217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4219ac_compiler_gnu=$ac_cv_c_compiler_gnu
4220if test -n "$ac_tool_prefix"; then
4221 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4222set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004224$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004225if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004226 $as_echo_n "(cached) " >&6
4227else
4228 if test -n "$CC"; then
4229 ac_cv_prog_CC="$CC" # Let the user override the test.
4230else
4231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004240 break 2
4241 fi
4242done
cristy8b350f62009-11-15 23:12:43 +00004243 done
cristy3ed852e2009-09-05 21:47:34 +00004244IFS=$as_save_IFS
4245
4246fi
4247fi
4248CC=$ac_cv_prog_CC
4249if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004251$as_echo "$CC" >&6; }
4252else
cristy8b350f62009-11-15 23:12:43 +00004253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004254$as_echo "no" >&6; }
4255fi
4256
4257
4258fi
4259if test -z "$ac_cv_prog_CC"; then
4260 ac_ct_CC=$CC
4261 # Extract the first word of "gcc", so it can be a program name with args.
4262set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004264$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004265if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004266 $as_echo_n "(cached) " >&6
4267else
4268 if test -n "$ac_ct_CC"; then
4269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4270else
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004276 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004280 break 2
4281 fi
4282done
cristy8b350f62009-11-15 23:12:43 +00004283 done
cristy3ed852e2009-09-05 21:47:34 +00004284IFS=$as_save_IFS
4285
4286fi
4287fi
4288ac_ct_CC=$ac_cv_prog_ac_ct_CC
4289if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004291$as_echo "$ac_ct_CC" >&6; }
4292else
cristy8b350f62009-11-15 23:12:43 +00004293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004294$as_echo "no" >&6; }
4295fi
4296
4297 if test "x$ac_ct_CC" = x; then
4298 CC=""
4299 else
4300 case $cross_compiling:$ac_tool_warned in
4301yes:)
cristy8b350f62009-11-15 23:12:43 +00004302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4304ac_tool_warned=yes ;;
4305esac
4306 CC=$ac_ct_CC
4307 fi
4308else
4309 CC="$ac_cv_prog_CC"
4310fi
4311
4312if test -z "$CC"; then
4313 if test -n "$ac_tool_prefix"; then
4314 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4315set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004317$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004318if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004319 $as_echo_n "(cached) " >&6
4320else
4321 if test -n "$CC"; then
4322 ac_cv_prog_CC="$CC" # Let the user override the test.
4323else
4324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH
4326do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004333 break 2
4334 fi
4335done
cristy8b350f62009-11-15 23:12:43 +00004336 done
cristy3ed852e2009-09-05 21:47:34 +00004337IFS=$as_save_IFS
4338
4339fi
4340fi
4341CC=$ac_cv_prog_CC
4342if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004344$as_echo "$CC" >&6; }
4345else
cristy8b350f62009-11-15 23:12:43 +00004346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004347$as_echo "no" >&6; }
4348fi
4349
4350
4351 fi
4352fi
4353if test -z "$CC"; then
4354 # Extract the first word of "cc", so it can be a program name with args.
4355set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004357$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004358if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004359 $as_echo_n "(cached) " >&6
4360else
4361 if test -n "$CC"; then
4362 ac_cv_prog_CC="$CC" # Let the user override the test.
4363else
4364 ac_prog_rejected=no
4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
4367do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4373 ac_prog_rejected=yes
4374 continue
4375 fi
4376 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004378 break 2
4379 fi
4380done
cristy8b350f62009-11-15 23:12:43 +00004381 done
cristy3ed852e2009-09-05 21:47:34 +00004382IFS=$as_save_IFS
4383
4384if test $ac_prog_rejected = yes; then
4385 # We found a bogon in the path, so make sure we never use it.
4386 set dummy $ac_cv_prog_CC
4387 shift
4388 if test $# != 0; then
4389 # We chose a different compiler from the bogus one.
4390 # However, it has the same basename, so the bogon will be chosen
4391 # first if we set CC to just the basename; use the full file name.
4392 shift
4393 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4394 fi
4395fi
4396fi
4397fi
4398CC=$ac_cv_prog_CC
4399if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004401$as_echo "$CC" >&6; }
4402else
cristy8b350f62009-11-15 23:12:43 +00004403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004404$as_echo "no" >&6; }
4405fi
4406
4407
4408fi
4409if test -z "$CC"; then
4410 if test -n "$ac_tool_prefix"; then
4411 for ac_prog in cl.exe
4412 do
4413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4414set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004416$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004417if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004418 $as_echo_n "(cached) " >&6
4419else
4420 if test -n "$CC"; then
4421 ac_cv_prog_CC="$CC" # Let the user override the test.
4422else
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004428 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004432 break 2
4433 fi
4434done
cristy8b350f62009-11-15 23:12:43 +00004435 done
cristy3ed852e2009-09-05 21:47:34 +00004436IFS=$as_save_IFS
4437
4438fi
4439fi
4440CC=$ac_cv_prog_CC
4441if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004443$as_echo "$CC" >&6; }
4444else
cristy8b350f62009-11-15 23:12:43 +00004445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004446$as_echo "no" >&6; }
4447fi
4448
4449
4450 test -n "$CC" && break
4451 done
4452fi
4453if test -z "$CC"; then
4454 ac_ct_CC=$CC
4455 for ac_prog in cl.exe
4456do
4457 # Extract the first word of "$ac_prog", so it can be a program name with args.
4458set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004460$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004461if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004462 $as_echo_n "(cached) " >&6
4463else
4464 if test -n "$ac_ct_CC"; then
4465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4466else
4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH
4469do
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004472 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004476 break 2
4477 fi
4478done
cristy8b350f62009-11-15 23:12:43 +00004479 done
cristy3ed852e2009-09-05 21:47:34 +00004480IFS=$as_save_IFS
4481
4482fi
4483fi
4484ac_ct_CC=$ac_cv_prog_ac_ct_CC
4485if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004487$as_echo "$ac_ct_CC" >&6; }
4488else
cristy8b350f62009-11-15 23:12:43 +00004489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004490$as_echo "no" >&6; }
4491fi
4492
4493
4494 test -n "$ac_ct_CC" && break
4495done
4496
4497 if test "x$ac_ct_CC" = x; then
4498 CC=""
4499 else
4500 case $cross_compiling:$ac_tool_warned in
4501yes:)
cristy8b350f62009-11-15 23:12:43 +00004502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4504ac_tool_warned=yes ;;
4505esac
4506 CC=$ac_ct_CC
4507 fi
4508fi
4509
4510fi
4511
4512
cristy8b350f62009-11-15 23:12:43 +00004513test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004515as_fn_error "no acceptable C compiler found in \$PATH
4516See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004517
4518# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004519$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004520set X $ac_compile
4521ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004522for ac_option in --version -v -V -qversion; do
4523 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004524case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4527esac
cristy8b350f62009-11-15 23:12:43 +00004528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4529$as_echo "$ac_try_echo"; } >&5
4530 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004531 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004532 if test -s conftest.err; then
4533 sed '10a\
4534... rest of stderr output deleted ...
4535 10q' conftest.err >conftest.er1
4536 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004537 fi
cristycd4c5312009-11-22 01:19:08 +00004538 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4540 test $ac_status = 0; }
4541done
cristy3ed852e2009-09-05 21:47:34 +00004542
cristy8b350f62009-11-15 23:12:43 +00004543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004544/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004545
cristy3ed852e2009-09-05 21:47:34 +00004546int
4547main ()
4548{
4549
4550 ;
4551 return 0;
4552}
4553_ACEOF
4554ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004555ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004556# Try to create an executable without -o first, disregard a.out.
4557# It will help us diagnose broken compilers, and finding out an intuition
4558# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4560$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004561ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4562
4563# The possible output files:
4564ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4565
4566ac_rmfiles=
4567for ac_file in $ac_files
4568do
4569 case $ac_file in
4570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4571 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4572 esac
4573done
4574rm -f $ac_rmfiles
4575
cristy8b350f62009-11-15 23:12:43 +00004576if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004577case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580esac
cristy8b350f62009-11-15 23:12:43 +00004581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4582$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004583 (eval "$ac_link_default") 2>&5
4584 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004587 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4588# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4589# in a Makefile. We should not override ac_cv_exeext if it was cached,
4590# so that the user can short-circuit this test for compilers unknown to
4591# Autoconf.
4592for ac_file in $ac_files ''
4593do
4594 test -f "$ac_file" || continue
4595 case $ac_file in
4596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4597 ;;
4598 [ab].out )
4599 # We found the default executable, but exeext='' is most
4600 # certainly right.
4601 break;;
4602 *.* )
cristy8b350f62009-11-15 23:12:43 +00004603 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004604 then :; else
4605 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4606 fi
4607 # We set ac_cv_exeext here because the later test for it is not
4608 # safe: cross compilers may not add the suffix if given an `-o'
4609 # argument, so we may need to know it at that point already.
4610 # Even if this section looks crufty: it has the advantage of
4611 # actually working.
4612 break;;
4613 * )
4614 break;;
4615 esac
4616done
4617test "$ac_cv_exeext" = no && ac_cv_exeext=
4618
4619else
4620 ac_file=''
4621fi
cristy8b350f62009-11-15 23:12:43 +00004622if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624$as_echo "no" >&6; }
4625$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004626sed 's/^/| /' conftest.$ac_ext >&5
4627
cristy8b350f62009-11-15 23:12:43 +00004628{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004630{ as_fn_set_status 77
4631as_fn_error "C compiler cannot create executables
4632See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004633else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4635$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004636fi
cristycd4c5312009-11-22 01:19:08 +00004637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4638$as_echo_n "checking for C compiler default output file name... " >&6; }
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4640$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004641ac_exeext=$ac_cv_exeext
4642
cristycd4c5312009-11-22 01:19:08 +00004643rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004644ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004646$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004647if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004648case "(($ac_try" in
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4651esac
cristy8b350f62009-11-15 23:12:43 +00004652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4653$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004654 (eval "$ac_link") 2>&5
4655 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004658 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4659# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4660# work properly (i.e., refer to `conftest.exe'), while it won't with
4661# `rm'.
4662for ac_file in conftest.exe conftest conftest.*; do
4663 test -f "$ac_file" || continue
4664 case $ac_file in
4665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4666 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4667 break;;
4668 * ) break;;
4669 esac
4670done
4671else
cristy8b350f62009-11-15 23:12:43 +00004672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004674as_fn_error "cannot compute suffix of executables: cannot compile and link
4675See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004676fi
cristycd4c5312009-11-22 01:19:08 +00004677rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004679$as_echo "$ac_cv_exeext" >&6; }
4680
4681rm -f conftest.$ac_ext
4682EXEEXT=$ac_cv_exeext
4683ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685/* end confdefs.h. */
4686#include <stdio.h>
4687int
4688main ()
4689{
4690FILE *f = fopen ("conftest.out", "w");
4691 return ferror (f) || fclose (f) != 0;
4692
4693 ;
4694 return 0;
4695}
4696_ACEOF
4697ac_clean_files="$ac_clean_files conftest.out"
4698# Check that the compiler produces executables we can run. If not, either
4699# the compiler is broken, or we cross compile.
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4701$as_echo_n "checking whether we are cross compiling... " >&6; }
4702if test "$cross_compiling" != yes; then
4703 { { ac_try="$ac_link"
4704case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707esac
4708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4709$as_echo "$ac_try_echo"; } >&5
4710 (eval "$ac_link") 2>&5
4711 ac_status=$?
4712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713 test $ac_status = 0; }
4714 if { ac_try='./conftest$ac_cv_exeext'
4715 { { case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4718esac
4719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4720$as_echo "$ac_try_echo"; } >&5
4721 (eval "$ac_try") 2>&5
4722 ac_status=$?
4723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4724 test $ac_status = 0; }; }; then
4725 cross_compiling=no
4726 else
4727 if test "$cross_compiling" = maybe; then
4728 cross_compiling=yes
4729 else
4730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4732as_fn_error "cannot run C compiled programs.
4733If you meant to cross compile, use \`--host'.
4734See \`config.log' for more details." "$LINENO" 5; }
4735 fi
4736 fi
4737fi
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4739$as_echo "$cross_compiling" >&6; }
4740
4741rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4742ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004744$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004745if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004746 $as_echo_n "(cached) " >&6
4747else
cristy8b350f62009-11-15 23:12:43 +00004748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004749/* end confdefs.h. */
4750
4751int
4752main ()
4753{
4754
4755 ;
4756 return 0;
4757}
4758_ACEOF
4759rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004760if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004761case "(($ac_try" in
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4764esac
cristy8b350f62009-11-15 23:12:43 +00004765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4766$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004767 (eval "$ac_compile") 2>&5
4768 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4770 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004771 for ac_file in conftest.o conftest.obj conftest.*; do
4772 test -f "$ac_file" || continue;
4773 case $ac_file in
4774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4775 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4776 break;;
4777 esac
4778done
4779else
4780 $as_echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
4782
cristy8b350f62009-11-15 23:12:43 +00004783{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004785as_fn_error "cannot compute suffix of object files: cannot compile
4786See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004787fi
cristy3ed852e2009-09-05 21:47:34 +00004788rm -f conftest.$ac_cv_objext conftest.$ac_ext
4789fi
cristy8b350f62009-11-15 23:12:43 +00004790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004791$as_echo "$ac_cv_objext" >&6; }
4792OBJEXT=$ac_cv_objext
4793ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004795$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004796if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004797 $as_echo_n "(cached) " >&6
4798else
cristy8b350f62009-11-15 23:12:43 +00004799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004800/* end confdefs.h. */
4801
4802int
4803main ()
4804{
4805#ifndef __GNUC__
4806 choke me
4807#endif
4808
4809 ;
4810 return 0;
4811}
4812_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004813if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004814 ac_compiler_gnu=yes
4815else
cristy8b350f62009-11-15 23:12:43 +00004816 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004817fi
cristy3ed852e2009-09-05 21:47:34 +00004818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819ac_cv_c_compiler_gnu=$ac_compiler_gnu
4820
4821fi
cristy8b350f62009-11-15 23:12:43 +00004822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004823$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4824if test $ac_compiler_gnu = yes; then
4825 GCC=yes
4826else
4827 GCC=
4828fi
4829ac_test_CFLAGS=${CFLAGS+set}
4830ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004832$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004833if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004834 $as_echo_n "(cached) " >&6
4835else
4836 ac_save_c_werror_flag=$ac_c_werror_flag
4837 ac_c_werror_flag=yes
4838 ac_cv_prog_cc_g=no
4839 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004841/* end confdefs.h. */
4842
4843int
4844main ()
4845{
4846
4847 ;
4848 return 0;
4849}
4850_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004851if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004852 ac_cv_prog_cc_g=yes
4853else
cristy8b350f62009-11-15 23:12:43 +00004854 CFLAGS=""
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004856/* end confdefs.h. */
4857
4858int
4859main ()
4860{
4861
4862 ;
4863 return 0;
4864}
4865_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004866if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004867
cristy8b350f62009-11-15 23:12:43 +00004868else
4869 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004870 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004872/* end confdefs.h. */
4873
4874int
4875main ()
4876{
4877
4878 ;
4879 return 0;
4880}
4881_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004882if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004883 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004884fi
cristy3ed852e2009-09-05 21:47:34 +00004885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886fi
cristy3ed852e2009-09-05 21:47:34 +00004887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888fi
cristy3ed852e2009-09-05 21:47:34 +00004889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 ac_c_werror_flag=$ac_save_c_werror_flag
4891fi
cristy8b350f62009-11-15 23:12:43 +00004892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004893$as_echo "$ac_cv_prog_cc_g" >&6; }
4894if test "$ac_test_CFLAGS" = set; then
4895 CFLAGS=$ac_save_CFLAGS
4896elif test $ac_cv_prog_cc_g = yes; then
4897 if test "$GCC" = yes; then
4898 CFLAGS="-g -O2"
4899 else
4900 CFLAGS="-g"
4901 fi
4902else
4903 if test "$GCC" = yes; then
4904 CFLAGS="-O2"
4905 else
4906 CFLAGS=
4907 fi
4908fi
cristy8b350f62009-11-15 23:12:43 +00004909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004910$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004911if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004912 $as_echo_n "(cached) " >&6
4913else
4914 ac_cv_prog_cc_c89=no
4915ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004917/* end confdefs.h. */
4918#include <stdarg.h>
4919#include <stdio.h>
4920#include <sys/types.h>
4921#include <sys/stat.h>
4922/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4923struct buf { int x; };
4924FILE * (*rcsopen) (struct buf *, struct stat *, int);
4925static char *e (p, i)
4926 char **p;
4927 int i;
4928{
4929 return p[i];
4930}
4931static char *f (char * (*g) (char **, int), char **p, ...)
4932{
4933 char *s;
4934 va_list v;
4935 va_start (v,p);
4936 s = g (p, va_arg (v,int));
4937 va_end (v);
4938 return s;
4939}
4940
4941/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4942 function prototypes and stuff, but not '\xHH' hex character constants.
4943 These don't provoke an error unfortunately, instead are silently treated
4944 as 'x'. The following induces an error, until -std is added to get
4945 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4946 array size at least. It's necessary to write '\x00'==0 to get something
4947 that's true only with -std. */
4948int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4949
4950/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4951 inside strings and character constants. */
4952#define FOO(x) 'x'
4953int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4954
4955int test (int i, double x);
4956struct s1 {int (*f) (int a);};
4957struct s2 {int (*f) (double a);};
4958int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4959int argc;
4960char **argv;
4961int
4962main ()
4963{
4964return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4965 ;
4966 return 0;
4967}
4968_ACEOF
4969for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4970 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4971do
4972 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004973 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004974 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004975fi
cristy3ed852e2009-09-05 21:47:34 +00004976rm -f core conftest.err conftest.$ac_objext
4977 test "x$ac_cv_prog_cc_c89" != "xno" && break
4978done
4979rm -f conftest.$ac_ext
4980CC=$ac_save_CC
4981
4982fi
4983# AC_CACHE_VAL
4984case "x$ac_cv_prog_cc_c89" in
4985 x)
cristy8b350f62009-11-15 23:12:43 +00004986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004987$as_echo "none needed" >&6; } ;;
4988 xno)
cristy8b350f62009-11-15 23:12:43 +00004989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004990$as_echo "unsupported" >&6; } ;;
4991 *)
4992 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004994$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4995esac
cristy8b350f62009-11-15 23:12:43 +00004996if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004997
cristy8b350f62009-11-15 23:12:43 +00004998fi
cristy3ed852e2009-09-05 21:47:34 +00004999
5000ac_ext=c
5001ac_cpp='$CPP $CPPFLAGS'
5002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005005
cristya0b81c32010-01-22 02:54:33 +00005006depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00005007
cristya0b81c32010-01-22 02:54:33 +00005008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5009$as_echo_n "checking dependency style of $depcc... " >&6; }
5010if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00005012else
cristya0b81c32010-01-22 02:54:33 +00005013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5014 # We make a subdir and do the tests there. Otherwise we can end up
5015 # making bogus files that we don't know about and never remove. For
5016 # instance it was reported that on HP-UX the gcc test will end up
5017 # making a dummy file named `D' -- because `-MD' means `put the output
5018 # in D'.
5019 mkdir conftest.dir
5020 # Copy depcomp to subdir because otherwise we won't find it if we're
5021 # using a relative directory.
5022 cp "$am_depcomp" conftest.dir
5023 cd conftest.dir
5024 # We will build objects and dependencies in a subdirectory because
5025 # it helps to detect inapplicable dependency modes. For instance
5026 # both Tru64's cc and ICC support -MD to output dependencies as a
5027 # side effect of compilation, but ICC will put the dependencies in
5028 # the current directory while Tru64 will put them in the object
5029 # directory.
5030 mkdir sub
5031
5032 am_cv_CC_dependencies_compiler_type=none
5033 if test "$am_compiler_list" = ""; then
5034 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5035 fi
5036 am__universal=false
5037 case " $depcc " in #(
5038 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5039 esac
5040
5041 for depmode in $am_compiler_list; do
5042 # Setup a source with many dependencies, because some compilers
5043 # like to wrap large dependency lists on column 80 (with \), and
5044 # we should not choose a depcomp mode which is confused by this.
5045 #
5046 # We need to recreate these files for each test, as the compiler may
5047 # overwrite some of them when testing with obscure command lines.
5048 # This happens at least with the AIX C compiler.
5049 : > sub/conftest.c
5050 for i in 1 2 3 4 5 6; do
5051 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5052 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5053 # Solaris 8's {/usr,}/bin/sh.
5054 touch sub/conftst$i.h
5055 done
5056 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5057
5058 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5059 # mode. It turns out that the SunPro C++ compiler does not properly
5060 # handle `-M -o', and we need to detect this. Also, some Intel
5061 # versions had trouble with output in subdirs
5062 am__obj=sub/conftest.${OBJEXT-o}
5063 am__minus_obj="-o $am__obj"
5064 case $depmode in
5065 gcc)
5066 # This depmode causes a compiler race in universal mode.
5067 test "$am__universal" = false || continue
5068 ;;
5069 nosideeffect)
5070 # after this tag, mechanisms are not by side-effect, so they'll
5071 # only be used when explicitly requested
5072 if test "x$enable_dependency_tracking" = xyes; then
5073 continue
5074 else
5075 break
5076 fi
5077 ;;
5078 msvisualcpp | msvcmsys)
5079 # This compiler won't grok `-c -o', but also, the minuso test has
5080 # not run yet. These depmodes are late enough in the game, and
5081 # so weak that their functioning should not be impacted.
5082 am__obj=conftest.${OBJEXT-o}
5083 am__minus_obj=
5084 ;;
5085 none) break ;;
5086 esac
5087 if depmode=$depmode \
5088 source=sub/conftest.c object=$am__obj \
5089 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5090 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5091 >/dev/null 2>conftest.err &&
5092 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5093 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5094 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5095 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5096 # icc doesn't choke on unknown options, it will just issue warnings
5097 # or remarks (even with -Werror). So we grep stderr for any message
5098 # that says an option was ignored or not supported.
5099 # When given -MP, icc 7.0 and 7.1 complain thusly:
5100 # icc: Command line warning: ignoring option '-M'; no argument required
5101 # The diagnosis changed in icc 8.0:
5102 # icc: Command line remark: option '-MP' not supported
5103 if (grep 'ignoring option' conftest.err ||
5104 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5105 am_cv_CC_dependencies_compiler_type=$depmode
5106 break
5107 fi
5108 fi
5109 done
5110
5111 cd ..
5112 rm -rf conftest.dir
5113else
5114 am_cv_CC_dependencies_compiler_type=none
5115fi
5116
5117fi
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5119$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5120CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5121
5122 if
5123 test "x$enable_dependency_tracking" != xno \
5124 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5125 am__fastdepCC_TRUE=
5126 am__fastdepCC_FALSE='#'
5127else
5128 am__fastdepCC_TRUE='#'
5129 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005130fi
5131
5132
5133
cristya0b81c32010-01-22 02:54:33 +00005134ac_ext=c
5135ac_cpp='$CPP $CPPFLAGS'
5136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5140$as_echo_n "checking how to run the C preprocessor... " >&6; }
5141# On Suns, sometimes $CPP names a directory.
5142if test -n "$CPP" && test -d "$CPP"; then
5143 CPP=
5144fi
5145if test -z "$CPP"; then
5146 if test "${ac_cv_prog_CPP+set}" = set; then :
5147 $as_echo_n "(cached) " >&6
5148else
5149 # Double quotes because CPP needs to be expanded
5150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5151 do
5152 ac_preproc_ok=false
5153for ac_c_preproc_warn_flag in '' yes
5154do
5155 # Use a header file that comes with gcc, so configuring glibc
5156 # with a fresh cross-compiler works.
5157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5158 # <limits.h> exists even on freestanding compilers.
5159 # On the NeXT, cc -E runs the code through the compiler's parser,
5160 # not just through cpp. "Syntax error" is here to catch this case.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h. */
5163#ifdef __STDC__
5164# include <limits.h>
5165#else
5166# include <assert.h>
5167#endif
5168 Syntax error
5169_ACEOF
5170if ac_fn_c_try_cpp "$LINENO"; then :
5171
5172else
5173 # Broken: fails on valid input.
5174continue
5175fi
5176rm -f conftest.err conftest.$ac_ext
5177
5178 # OK, works on sane cases. Now check whether nonexistent headers
5179 # can be detected and how.
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181/* end confdefs.h. */
5182#include <ac_nonexistent.h>
5183_ACEOF
5184if ac_fn_c_try_cpp "$LINENO"; then :
5185 # Broken: success on invalid input.
5186continue
5187else
5188 # Passes both tests.
5189ac_preproc_ok=:
5190break
5191fi
5192rm -f conftest.err conftest.$ac_ext
5193
5194done
5195# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5196rm -f conftest.err conftest.$ac_ext
5197if $ac_preproc_ok; then :
5198 break
5199fi
5200
5201 done
5202 ac_cv_prog_CPP=$CPP
5203
5204fi
5205 CPP=$ac_cv_prog_CPP
5206else
5207 ac_cv_prog_CPP=$CPP
5208fi
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5210$as_echo "$CPP" >&6; }
5211ac_preproc_ok=false
5212for ac_c_preproc_warn_flag in '' yes
5213do
5214 # Use a header file that comes with gcc, so configuring glibc
5215 # with a fresh cross-compiler works.
5216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5217 # <limits.h> exists even on freestanding compilers.
5218 # On the NeXT, cc -E runs the code through the compiler's parser,
5219 # not just through cpp. "Syntax error" is here to catch this case.
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221/* end confdefs.h. */
5222#ifdef __STDC__
5223# include <limits.h>
5224#else
5225# include <assert.h>
5226#endif
5227 Syntax error
5228_ACEOF
5229if ac_fn_c_try_cpp "$LINENO"; then :
5230
5231else
5232 # Broken: fails on valid input.
5233continue
5234fi
5235rm -f conftest.err conftest.$ac_ext
5236
5237 # OK, works on sane cases. Now check whether nonexistent headers
5238 # can be detected and how.
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240/* end confdefs.h. */
5241#include <ac_nonexistent.h>
5242_ACEOF
5243if ac_fn_c_try_cpp "$LINENO"; then :
5244 # Broken: success on invalid input.
5245continue
5246else
5247 # Passes both tests.
5248ac_preproc_ok=:
5249break
5250fi
5251rm -f conftest.err conftest.$ac_ext
5252
5253done
5254# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5255rm -f conftest.err conftest.$ac_ext
5256if $ac_preproc_ok; then :
5257
5258else
5259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5261as_fn_error "C preprocessor \"$CPP\" fails sanity check
5262See \`config.log' for more details." "$LINENO" 5; }
5263fi
5264
5265ac_ext=c
5266ac_cpp='$CPP $CPPFLAGS'
5267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5269ac_compiler_gnu=$ac_cv_c_compiler_gnu
5270
5271
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5273$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5274if test "${ac_cv_path_GREP+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5276else
5277 if test -z "$GREP"; then
5278 ac_path_GREP_found=false
5279 # Loop through the user's path and test for each of PROGNAME-LIST
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5282do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_prog in grep ggrep; do
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5288 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5289# Check for GNU ac_path_GREP and select it if it is found.
5290 # Check for GNU $ac_path_GREP
5291case `"$ac_path_GREP" --version 2>&1` in
5292*GNU*)
5293 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5294*)
5295 ac_count=0
5296 $as_echo_n 0123456789 >"conftest.in"
5297 while :
5298 do
5299 cat "conftest.in" "conftest.in" >"conftest.tmp"
5300 mv "conftest.tmp" "conftest.in"
5301 cp "conftest.in" "conftest.nl"
5302 $as_echo 'GREP' >> "conftest.nl"
5303 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5305 as_fn_arith $ac_count + 1 && ac_count=$as_val
5306 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5307 # Best one so far, save it but keep looking for a better one
5308 ac_cv_path_GREP="$ac_path_GREP"
5309 ac_path_GREP_max=$ac_count
5310 fi
5311 # 10*(2^10) chars as input seems more than enough
5312 test $ac_count -gt 10 && break
5313 done
5314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5315esac
5316
5317 $ac_path_GREP_found && break 3
5318 done
5319 done
5320 done
5321IFS=$as_save_IFS
5322 if test -z "$ac_cv_path_GREP"; then
5323 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5324 fi
5325else
5326 ac_cv_path_GREP=$GREP
5327fi
5328
5329fi
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5331$as_echo "$ac_cv_path_GREP" >&6; }
5332 GREP="$ac_cv_path_GREP"
5333
5334
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5336$as_echo_n "checking for egrep... " >&6; }
5337if test "${ac_cv_path_EGREP+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5339else
5340 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5341 then ac_cv_path_EGREP="$GREP -E"
5342 else
5343 if test -z "$EGREP"; then
5344 ac_path_EGREP_found=false
5345 # Loop through the user's path and test for each of PROGNAME-LIST
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5348do
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_prog in egrep; do
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5354 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5355# Check for GNU ac_path_EGREP and select it if it is found.
5356 # Check for GNU $ac_path_EGREP
5357case `"$ac_path_EGREP" --version 2>&1` in
5358*GNU*)
5359 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5360*)
5361 ac_count=0
5362 $as_echo_n 0123456789 >"conftest.in"
5363 while :
5364 do
5365 cat "conftest.in" "conftest.in" >"conftest.tmp"
5366 mv "conftest.tmp" "conftest.in"
5367 cp "conftest.in" "conftest.nl"
5368 $as_echo 'EGREP' >> "conftest.nl"
5369 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5371 as_fn_arith $ac_count + 1 && ac_count=$as_val
5372 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5373 # Best one so far, save it but keep looking for a better one
5374 ac_cv_path_EGREP="$ac_path_EGREP"
5375 ac_path_EGREP_max=$ac_count
5376 fi
5377 # 10*(2^10) chars as input seems more than enough
5378 test $ac_count -gt 10 && break
5379 done
5380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5381esac
5382
5383 $ac_path_EGREP_found && break 3
5384 done
5385 done
5386 done
5387IFS=$as_save_IFS
5388 if test -z "$ac_cv_path_EGREP"; then
5389 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5390 fi
5391else
5392 ac_cv_path_EGREP=$EGREP
5393fi
5394
5395 fi
5396fi
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5398$as_echo "$ac_cv_path_EGREP" >&6; }
5399 EGREP="$ac_cv_path_EGREP"
5400
5401
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5403$as_echo_n "checking for ANSI C header files... " >&6; }
5404if test "${ac_cv_header_stdc+set}" = set; then :
5405 $as_echo_n "(cached) " >&6
5406else
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408/* end confdefs.h. */
5409#include <stdlib.h>
5410#include <stdarg.h>
5411#include <string.h>
5412#include <float.h>
5413
5414int
5415main ()
5416{
5417
5418 ;
5419 return 0;
5420}
5421_ACEOF
5422if ac_fn_c_try_compile "$LINENO"; then :
5423 ac_cv_header_stdc=yes
5424else
5425 ac_cv_header_stdc=no
5426fi
5427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428
5429if test $ac_cv_header_stdc = yes; then
5430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h. */
5433#include <string.h>
5434
5435_ACEOF
5436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5437 $EGREP "memchr" >/dev/null 2>&1; then :
5438
5439else
5440 ac_cv_header_stdc=no
5441fi
5442rm -f conftest*
5443
5444fi
5445
5446if test $ac_cv_header_stdc = yes; then
5447 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h. */
5450#include <stdlib.h>
5451
5452_ACEOF
5453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5454 $EGREP "free" >/dev/null 2>&1; then :
5455
5456else
5457 ac_cv_header_stdc=no
5458fi
5459rm -f conftest*
5460
5461fi
5462
5463if test $ac_cv_header_stdc = yes; then
5464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5465 if test "$cross_compiling" = yes; then :
5466 :
5467else
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h. */
5470#include <ctype.h>
5471#include <stdlib.h>
5472#if ((' ' & 0x0FF) == 0x020)
5473# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5474# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5475#else
5476# define ISLOWER(c) \
5477 (('a' <= (c) && (c) <= 'i') \
5478 || ('j' <= (c) && (c) <= 'r') \
5479 || ('s' <= (c) && (c) <= 'z'))
5480# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5481#endif
5482
5483#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5484int
5485main ()
5486{
5487 int i;
5488 for (i = 0; i < 256; i++)
5489 if (XOR (islower (i), ISLOWER (i))
5490 || toupper (i) != TOUPPER (i))
5491 return 2;
5492 return 0;
5493}
5494_ACEOF
5495if ac_fn_c_try_run "$LINENO"; then :
5496
5497else
5498 ac_cv_header_stdc=no
5499fi
5500rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5501 conftest.$ac_objext conftest.beam conftest.$ac_ext
5502fi
5503
5504fi
5505fi
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5507$as_echo "$ac_cv_header_stdc" >&6; }
5508if test $ac_cv_header_stdc = yes; then
5509
5510$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5511
5512fi
5513
5514# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5515for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5516 inttypes.h stdint.h unistd.h
5517do :
5518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5519ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5520"
5521eval as_val=\$$as_ac_Header
5522 if test "x$as_val" = x""yes; then :
5523 cat >>confdefs.h <<_ACEOF
5524#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5525_ACEOF
5526
5527fi
5528
5529done
5530
5531
5532
5533 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5534if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5535 MINIX=yes
5536else
5537 MINIX=
5538fi
5539
5540
5541 if test "$MINIX" = yes; then
5542
5543$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5544
5545
5546$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5547
5548
5549$as_echo "#define _MINIX 1" >>confdefs.h
5550
5551 fi
5552
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5555$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5556if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5557 $as_echo_n "(cached) " >&6
5558else
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560/* end confdefs.h. */
5561
5562# define __EXTENSIONS__ 1
5563 $ac_includes_default
5564int
5565main ()
5566{
5567
5568 ;
5569 return 0;
5570}
5571_ACEOF
5572if ac_fn_c_try_compile "$LINENO"; then :
5573 ac_cv_safe_to_define___extensions__=yes
5574else
5575 ac_cv_safe_to_define___extensions__=no
5576fi
5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578fi
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5580$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5581 test $ac_cv_safe_to_define___extensions__ = yes &&
5582 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5583
5584 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5585
5586 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5587
5588 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5589
5590 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5591
5592
5593
5594# Check for programs
5595ac_ext=c
5596ac_cpp='$CPP $CPPFLAGS'
5597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599ac_compiler_gnu=$ac_cv_c_compiler_gnu
5600if test -n "$ac_tool_prefix"; then
5601 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5602set dummy ${ac_tool_prefix}gcc; ac_word=$2
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604$as_echo_n "checking for $ac_word... " >&6; }
5605if test "${ac_cv_prog_CC+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607else
5608 if test -n "$CC"; then
5609 ac_cv_prog_CC="$CC" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5621 fi
5622done
5623 done
5624IFS=$as_save_IFS
5625
5626fi
5627fi
5628CC=$ac_cv_prog_CC
5629if test -n "$CC"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5631$as_echo "$CC" >&6; }
5632else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634$as_echo "no" >&6; }
5635fi
5636
5637
5638fi
5639if test -z "$ac_cv_prog_CC"; then
5640 ac_ct_CC=$CC
5641 # Extract the first word of "gcc", so it can be a program name with args.
5642set dummy gcc; ac_word=$2
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644$as_echo_n "checking for $ac_word... " >&6; }
5645if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5646 $as_echo_n "(cached) " >&6
5647else
5648 if test -n "$ac_ct_CC"; then
5649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5650else
5651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5658 ac_cv_prog_ac_ct_CC="gcc"
5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5661 fi
5662done
5663 done
5664IFS=$as_save_IFS
5665
5666fi
5667fi
5668ac_ct_CC=$ac_cv_prog_ac_ct_CC
5669if test -n "$ac_ct_CC"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5671$as_echo "$ac_ct_CC" >&6; }
5672else
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674$as_echo "no" >&6; }
5675fi
5676
5677 if test "x$ac_ct_CC" = x; then
5678 CC=""
5679 else
5680 case $cross_compiling:$ac_tool_warned in
5681yes:)
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5684ac_tool_warned=yes ;;
5685esac
5686 CC=$ac_ct_CC
5687 fi
5688else
5689 CC="$ac_cv_prog_CC"
5690fi
5691
5692if test -z "$CC"; then
5693 if test -n "$ac_tool_prefix"; then
5694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5695set dummy ${ac_tool_prefix}cc; ac_word=$2
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697$as_echo_n "checking for $ac_word... " >&6; }
5698if test "${ac_cv_prog_CC+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5700else
5701 if test -n "$CC"; then
5702 ac_cv_prog_CC="$CC" # Let the user override the test.
5703else
5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705for as_dir in $PATH
5706do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_prog_CC="${ac_tool_prefix}cc"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5714 fi
5715done
5716 done
5717IFS=$as_save_IFS
5718
5719fi
5720fi
5721CC=$ac_cv_prog_CC
5722if test -n "$CC"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5724$as_echo "$CC" >&6; }
5725else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727$as_echo "no" >&6; }
5728fi
5729
5730
5731 fi
5732fi
5733if test -z "$CC"; then
5734 # Extract the first word of "cc", so it can be a program name with args.
5735set dummy cc; ac_word=$2
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737$as_echo_n "checking for $ac_word... " >&6; }
5738if test "${ac_cv_prog_CC+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5740else
5741 if test -n "$CC"; then
5742 ac_cv_prog_CC="$CC" # Let the user override the test.
5743else
5744 ac_prog_rejected=no
5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746for as_dir in $PATH
5747do
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5752 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5753 ac_prog_rejected=yes
5754 continue
5755 fi
5756 ac_cv_prog_CC="cc"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760done
5761 done
5762IFS=$as_save_IFS
5763
5764if test $ac_prog_rejected = yes; then
5765 # We found a bogon in the path, so make sure we never use it.
5766 set dummy $ac_cv_prog_CC
5767 shift
5768 if test $# != 0; then
5769 # We chose a different compiler from the bogus one.
5770 # However, it has the same basename, so the bogon will be chosen
5771 # first if we set CC to just the basename; use the full file name.
5772 shift
5773 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5774 fi
5775fi
5776fi
5777fi
5778CC=$ac_cv_prog_CC
5779if test -n "$CC"; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5781$as_echo "$CC" >&6; }
5782else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784$as_echo "no" >&6; }
5785fi
5786
5787
5788fi
5789if test -z "$CC"; then
5790 if test -n "$ac_tool_prefix"; then
5791 for ac_prog in cl.exe
5792 do
5793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5794set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796$as_echo_n "checking for $ac_word... " >&6; }
5797if test "${ac_cv_prog_CC+set}" = set; then :
5798 $as_echo_n "(cached) " >&6
5799else
5800 if test -n "$CC"; then
5801 ac_cv_prog_CC="$CC" # Let the user override the test.
5802else
5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814done
5815 done
5816IFS=$as_save_IFS
5817
5818fi
5819fi
5820CC=$ac_cv_prog_CC
5821if test -n "$CC"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5823$as_echo "$CC" >&6; }
5824else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826$as_echo "no" >&6; }
5827fi
5828
5829
5830 test -n "$CC" && break
5831 done
5832fi
5833if test -z "$CC"; then
5834 ac_ct_CC=$CC
5835 for ac_prog in cl.exe
5836do
5837 # Extract the first word of "$ac_prog", so it can be a program name with args.
5838set dummy $ac_prog; ac_word=$2
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840$as_echo_n "checking for $ac_word... " >&6; }
5841if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5843else
5844 if test -n "$ac_ct_CC"; then
5845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_ac_ct_CC="$ac_prog"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858done
5859 done
5860IFS=$as_save_IFS
5861
5862fi
5863fi
5864ac_ct_CC=$ac_cv_prog_ac_ct_CC
5865if test -n "$ac_ct_CC"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5867$as_echo "$ac_ct_CC" >&6; }
5868else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870$as_echo "no" >&6; }
5871fi
5872
5873
5874 test -n "$ac_ct_CC" && break
5875done
5876
5877 if test "x$ac_ct_CC" = x; then
5878 CC=""
5879 else
5880 case $cross_compiling:$ac_tool_warned in
5881yes:)
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5884ac_tool_warned=yes ;;
5885esac
5886 CC=$ac_ct_CC
5887 fi
5888fi
5889
5890fi
5891
5892
5893test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5895as_fn_error "no acceptable C compiler found in \$PATH
5896See \`config.log' for more details." "$LINENO" 5; }
5897
5898# Provide some information about the compiler.
5899$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5900set X $ac_compile
5901ac_compiler=$2
5902for ac_option in --version -v -V -qversion; do
5903 { { ac_try="$ac_compiler $ac_option >&5"
5904case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907esac
5908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5909$as_echo "$ac_try_echo"; } >&5
5910 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5911 ac_status=$?
5912 if test -s conftest.err; then
5913 sed '10a\
5914... rest of stderr output deleted ...
5915 10q' conftest.err >conftest.er1
5916 cat conftest.er1 >&5
5917 fi
5918 rm -f conftest.er1 conftest.err
5919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5920 test $ac_status = 0; }
5921done
5922
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5924$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5925if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927else
5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929/* end confdefs.h. */
5930
5931int
5932main ()
5933{
5934#ifndef __GNUC__
5935 choke me
5936#endif
5937
5938 ;
5939 return 0;
5940}
5941_ACEOF
5942if ac_fn_c_try_compile "$LINENO"; then :
5943 ac_compiler_gnu=yes
5944else
5945 ac_compiler_gnu=no
5946fi
5947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948ac_cv_c_compiler_gnu=$ac_compiler_gnu
5949
5950fi
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5952$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5953if test $ac_compiler_gnu = yes; then
5954 GCC=yes
5955else
5956 GCC=
5957fi
5958ac_test_CFLAGS=${CFLAGS+set}
5959ac_save_CFLAGS=$CFLAGS
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5961$as_echo_n "checking whether $CC accepts -g... " >&6; }
5962if test "${ac_cv_prog_cc_g+set}" = set; then :
5963 $as_echo_n "(cached) " >&6
5964else
5965 ac_save_c_werror_flag=$ac_c_werror_flag
5966 ac_c_werror_flag=yes
5967 ac_cv_prog_cc_g=no
5968 CFLAGS="-g"
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970/* end confdefs.h. */
5971
5972int
5973main ()
5974{
5975
5976 ;
5977 return 0;
5978}
5979_ACEOF
5980if ac_fn_c_try_compile "$LINENO"; then :
5981 ac_cv_prog_cc_g=yes
5982else
5983 CFLAGS=""
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985/* end confdefs.h. */
5986
5987int
5988main ()
5989{
5990
5991 ;
5992 return 0;
5993}
5994_ACEOF
5995if ac_fn_c_try_compile "$LINENO"; then :
5996
5997else
5998 ac_c_werror_flag=$ac_save_c_werror_flag
5999 CFLAGS="-g"
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001/* end confdefs.h. */
6002
6003int
6004main ()
6005{
6006
6007 ;
6008 return 0;
6009}
6010_ACEOF
6011if ac_fn_c_try_compile "$LINENO"; then :
6012 ac_cv_prog_cc_g=yes
6013fi
6014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015fi
6016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017fi
6018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 ac_c_werror_flag=$ac_save_c_werror_flag
6020fi
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6022$as_echo "$ac_cv_prog_cc_g" >&6; }
6023if test "$ac_test_CFLAGS" = set; then
6024 CFLAGS=$ac_save_CFLAGS
6025elif test $ac_cv_prog_cc_g = yes; then
6026 if test "$GCC" = yes; then
6027 CFLAGS="-g -O2"
6028 else
6029 CFLAGS="-g"
6030 fi
6031else
6032 if test "$GCC" = yes; then
6033 CFLAGS="-O2"
6034 else
6035 CFLAGS=
6036 fi
6037fi
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6039$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6040if test "${ac_cv_prog_cc_c89+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6042else
6043 ac_cv_prog_cc_c89=no
6044ac_save_CC=$CC
6045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046/* end confdefs.h. */
6047#include <stdarg.h>
6048#include <stdio.h>
6049#include <sys/types.h>
6050#include <sys/stat.h>
6051/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6052struct buf { int x; };
6053FILE * (*rcsopen) (struct buf *, struct stat *, int);
6054static char *e (p, i)
6055 char **p;
6056 int i;
6057{
6058 return p[i];
6059}
6060static char *f (char * (*g) (char **, int), char **p, ...)
6061{
6062 char *s;
6063 va_list v;
6064 va_start (v,p);
6065 s = g (p, va_arg (v,int));
6066 va_end (v);
6067 return s;
6068}
6069
6070/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6071 function prototypes and stuff, but not '\xHH' hex character constants.
6072 These don't provoke an error unfortunately, instead are silently treated
6073 as 'x'. The following induces an error, until -std is added to get
6074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6075 array size at least. It's necessary to write '\x00'==0 to get something
6076 that's true only with -std. */
6077int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6078
6079/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6080 inside strings and character constants. */
6081#define FOO(x) 'x'
6082int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6083
6084int test (int i, double x);
6085struct s1 {int (*f) (int a);};
6086struct s2 {int (*f) (double a);};
6087int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6088int argc;
6089char **argv;
6090int
6091main ()
6092{
6093return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6094 ;
6095 return 0;
6096}
6097_ACEOF
6098for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6099 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6100do
6101 CC="$ac_save_CC $ac_arg"
6102 if ac_fn_c_try_compile "$LINENO"; then :
6103 ac_cv_prog_cc_c89=$ac_arg
6104fi
6105rm -f core conftest.err conftest.$ac_objext
6106 test "x$ac_cv_prog_cc_c89" != "xno" && break
6107done
6108rm -f conftest.$ac_ext
6109CC=$ac_save_CC
6110
6111fi
6112# AC_CACHE_VAL
6113case "x$ac_cv_prog_cc_c89" in
6114 x)
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6116$as_echo "none needed" >&6; } ;;
6117 xno)
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6119$as_echo "unsupported" >&6; } ;;
6120 *)
6121 CC="$CC $ac_cv_prog_cc_c89"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6123$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6124esac
6125if test "x$ac_cv_prog_cc_c89" != xno; then :
6126
6127fi
6128
6129ac_ext=c
6130ac_cpp='$CPP $CPPFLAGS'
6131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133ac_compiler_gnu=$ac_cv_c_compiler_gnu
6134
cristy3ed852e2009-09-05 21:47:34 +00006135depcc="$CC" am_compiler_list=
6136
cristy8b350f62009-11-15 23:12:43 +00006137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006138$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006139if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006140 $as_echo_n "(cached) " >&6
6141else
6142 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6143 # We make a subdir and do the tests there. Otherwise we can end up
6144 # making bogus files that we don't know about and never remove. For
6145 # instance it was reported that on HP-UX the gcc test will end up
6146 # making a dummy file named `D' -- because `-MD' means `put the output
6147 # in D'.
6148 mkdir conftest.dir
6149 # Copy depcomp to subdir because otherwise we won't find it if we're
6150 # using a relative directory.
6151 cp "$am_depcomp" conftest.dir
6152 cd conftest.dir
6153 # We will build objects and dependencies in a subdirectory because
6154 # it helps to detect inapplicable dependency modes. For instance
6155 # both Tru64's cc and ICC support -MD to output dependencies as a
6156 # side effect of compilation, but ICC will put the dependencies in
6157 # the current directory while Tru64 will put them in the object
6158 # directory.
6159 mkdir sub
6160
6161 am_cv_CC_dependencies_compiler_type=none
6162 if test "$am_compiler_list" = ""; then
6163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6164 fi
6165 am__universal=false
6166 case " $depcc " in #(
6167 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6168 esac
6169
6170 for depmode in $am_compiler_list; do
6171 # Setup a source with many dependencies, because some compilers
6172 # like to wrap large dependency lists on column 80 (with \), and
6173 # we should not choose a depcomp mode which is confused by this.
6174 #
6175 # We need to recreate these files for each test, as the compiler may
6176 # overwrite some of them when testing with obscure command lines.
6177 # This happens at least with the AIX C compiler.
6178 : > sub/conftest.c
6179 for i in 1 2 3 4 5 6; do
6180 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6181 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6182 # Solaris 8's {/usr,}/bin/sh.
6183 touch sub/conftst$i.h
6184 done
6185 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6186
6187 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6188 # mode. It turns out that the SunPro C++ compiler does not properly
6189 # handle `-M -o', and we need to detect this. Also, some Intel
6190 # versions had trouble with output in subdirs
6191 am__obj=sub/conftest.${OBJEXT-o}
6192 am__minus_obj="-o $am__obj"
6193 case $depmode in
6194 gcc)
6195 # This depmode causes a compiler race in universal mode.
6196 test "$am__universal" = false || continue
6197 ;;
6198 nosideeffect)
6199 # after this tag, mechanisms are not by side-effect, so they'll
6200 # only be used when explicitly requested
6201 if test "x$enable_dependency_tracking" = xyes; then
6202 continue
6203 else
6204 break
6205 fi
6206 ;;
6207 msvisualcpp | msvcmsys)
6208 # This compiler won't grok `-c -o', but also, the minuso test has
6209 # not run yet. These depmodes are late enough in the game, and
6210 # so weak that their functioning should not be impacted.
6211 am__obj=conftest.${OBJEXT-o}
6212 am__minus_obj=
6213 ;;
6214 none) break ;;
6215 esac
6216 if depmode=$depmode \
6217 source=sub/conftest.c object=$am__obj \
6218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6219 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6220 >/dev/null 2>conftest.err &&
6221 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6222 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6223 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6224 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6225 # icc doesn't choke on unknown options, it will just issue warnings
6226 # or remarks (even with -Werror). So we grep stderr for any message
6227 # that says an option was ignored or not supported.
6228 # When given -MP, icc 7.0 and 7.1 complain thusly:
6229 # icc: Command line warning: ignoring option '-M'; no argument required
6230 # The diagnosis changed in icc 8.0:
6231 # icc: Command line remark: option '-MP' not supported
6232 if (grep 'ignoring option' conftest.err ||
6233 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6234 am_cv_CC_dependencies_compiler_type=$depmode
6235 break
6236 fi
6237 fi
6238 done
6239
6240 cd ..
6241 rm -rf conftest.dir
6242else
6243 am_cv_CC_dependencies_compiler_type=none
6244fi
6245
6246fi
cristy8b350f62009-11-15 23:12:43 +00006247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006248$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6249CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6250
6251 if
6252 test "x$enable_dependency_tracking" != xno \
6253 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6254 am__fastdepCC_TRUE=
6255 am__fastdepCC_FALSE='#'
6256else
6257 am__fastdepCC_TRUE='#'
6258 am__fastdepCC_FALSE=
6259fi
6260
6261
cristy95646052009-11-28 23:05:30 +00006262ac_ext=cpp
6263ac_cpp='$CXXCPP $CPPFLAGS'
6264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6267if test -z "$CXX"; then
6268 if test -n "$CCC"; then
6269 CXX=$CCC
6270 else
6271 if test -n "$ac_tool_prefix"; then
6272 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6273 do
6274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6275set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277$as_echo_n "checking for $ac_word... " >&6; }
6278if test "${ac_cv_prog_CXX+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6280else
6281 if test -n "$CXX"; then
6282 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6283else
6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6294 fi
6295done
6296 done
6297IFS=$as_save_IFS
6298
6299fi
6300fi
6301CXX=$ac_cv_prog_CXX
6302if test -n "$CXX"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6304$as_echo "$CXX" >&6; }
6305else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307$as_echo "no" >&6; }
6308fi
6309
6310
6311 test -n "$CXX" && break
6312 done
6313fi
6314if test -z "$CXX"; then
6315 ac_ct_CXX=$CXX
6316 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6317do
6318 # Extract the first word of "$ac_prog", so it can be a program name with args.
6319set dummy $ac_prog; ac_word=$2
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321$as_echo_n "checking for $ac_word... " >&6; }
6322if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6323 $as_echo_n "(cached) " >&6
6324else
6325 if test -n "$ac_ct_CXX"; then
6326 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6327else
6328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329for as_dir in $PATH
6330do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335 ac_cv_prog_ac_ct_CXX="$ac_prog"
6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339done
6340 done
6341IFS=$as_save_IFS
6342
6343fi
6344fi
6345ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6346if test -n "$ac_ct_CXX"; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6348$as_echo "$ac_ct_CXX" >&6; }
6349else
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351$as_echo "no" >&6; }
6352fi
6353
6354
6355 test -n "$ac_ct_CXX" && break
6356done
6357
6358 if test "x$ac_ct_CXX" = x; then
6359 CXX="g++"
6360 else
6361 case $cross_compiling:$ac_tool_warned in
6362yes:)
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6365ac_tool_warned=yes ;;
6366esac
6367 CXX=$ac_ct_CXX
6368 fi
6369fi
6370
6371 fi
6372fi
6373# Provide some information about the compiler.
6374$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6375set X $ac_compile
6376ac_compiler=$2
6377for ac_option in --version -v -V -qversion; do
6378 { { ac_try="$ac_compiler $ac_option >&5"
6379case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382esac
6383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6384$as_echo "$ac_try_echo"; } >&5
6385 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6386 ac_status=$?
6387 if test -s conftest.err; then
6388 sed '10a\
6389... rest of stderr output deleted ...
6390 10q' conftest.err >conftest.er1
6391 cat conftest.er1 >&5
6392 fi
6393 rm -f conftest.er1 conftest.err
6394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6395 test $ac_status = 0; }
6396done
6397
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6399$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6400if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6402else
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h. */
6405
6406int
6407main ()
6408{
6409#ifndef __GNUC__
6410 choke me
6411#endif
6412
6413 ;
6414 return 0;
6415}
6416_ACEOF
6417if ac_fn_cxx_try_compile "$LINENO"; then :
6418 ac_compiler_gnu=yes
6419else
6420 ac_compiler_gnu=no
6421fi
6422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6424
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6427$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6428if test $ac_compiler_gnu = yes; then
6429 GXX=yes
6430else
6431 GXX=
6432fi
6433ac_test_CXXFLAGS=${CXXFLAGS+set}
6434ac_save_CXXFLAGS=$CXXFLAGS
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6436$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6437if test "${ac_cv_prog_cxx_g+set}" = set; then :
6438 $as_echo_n "(cached) " >&6
6439else
6440 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6441 ac_cxx_werror_flag=yes
6442 ac_cv_prog_cxx_g=no
6443 CXXFLAGS="-g"
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445/* end confdefs.h. */
6446
6447int
6448main ()
6449{
6450
6451 ;
6452 return 0;
6453}
6454_ACEOF
6455if ac_fn_cxx_try_compile "$LINENO"; then :
6456 ac_cv_prog_cxx_g=yes
6457else
6458 CXXFLAGS=""
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460/* end confdefs.h. */
6461
6462int
6463main ()
6464{
6465
6466 ;
6467 return 0;
6468}
6469_ACEOF
6470if ac_fn_cxx_try_compile "$LINENO"; then :
6471
6472else
6473 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6474 CXXFLAGS="-g"
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476/* end confdefs.h. */
6477
6478int
6479main ()
6480{
6481
6482 ;
6483 return 0;
6484}
6485_ACEOF
6486if ac_fn_cxx_try_compile "$LINENO"; then :
6487 ac_cv_prog_cxx_g=yes
6488fi
6489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490fi
6491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492fi
6493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6495fi
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6497$as_echo "$ac_cv_prog_cxx_g" >&6; }
6498if test "$ac_test_CXXFLAGS" = set; then
6499 CXXFLAGS=$ac_save_CXXFLAGS
6500elif test $ac_cv_prog_cxx_g = yes; then
6501 if test "$GXX" = yes; then
6502 CXXFLAGS="-g -O2"
6503 else
6504 CXXFLAGS="-g"
6505 fi
6506else
6507 if test "$GXX" = yes; then
6508 CXXFLAGS="-O2"
6509 else
6510 CXXFLAGS=
6511 fi
6512fi
6513ac_ext=c
6514ac_cpp='$CPP $CPPFLAGS'
6515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6517ac_compiler_gnu=$ac_cv_c_compiler_gnu
6518
6519depcc="$CXX" am_compiler_list=
6520
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6522$as_echo_n "checking dependency style of $depcc... " >&6; }
6523if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6524 $as_echo_n "(cached) " >&6
6525else
6526 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6527 # We make a subdir and do the tests there. Otherwise we can end up
6528 # making bogus files that we don't know about and never remove. For
6529 # instance it was reported that on HP-UX the gcc test will end up
6530 # making a dummy file named `D' -- because `-MD' means `put the output
6531 # in D'.
6532 mkdir conftest.dir
6533 # Copy depcomp to subdir because otherwise we won't find it if we're
6534 # using a relative directory.
6535 cp "$am_depcomp" conftest.dir
6536 cd conftest.dir
6537 # We will build objects and dependencies in a subdirectory because
6538 # it helps to detect inapplicable dependency modes. For instance
6539 # both Tru64's cc and ICC support -MD to output dependencies as a
6540 # side effect of compilation, but ICC will put the dependencies in
6541 # the current directory while Tru64 will put them in the object
6542 # directory.
6543 mkdir sub
6544
6545 am_cv_CXX_dependencies_compiler_type=none
6546 if test "$am_compiler_list" = ""; then
6547 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6548 fi
6549 am__universal=false
6550 case " $depcc " in #(
6551 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6552 esac
6553
6554 for depmode in $am_compiler_list; do
6555 # Setup a source with many dependencies, because some compilers
6556 # like to wrap large dependency lists on column 80 (with \), and
6557 # we should not choose a depcomp mode which is confused by this.
6558 #
6559 # We need to recreate these files for each test, as the compiler may
6560 # overwrite some of them when testing with obscure command lines.
6561 # This happens at least with the AIX C compiler.
6562 : > sub/conftest.c
6563 for i in 1 2 3 4 5 6; do
6564 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6565 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6566 # Solaris 8's {/usr,}/bin/sh.
6567 touch sub/conftst$i.h
6568 done
6569 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6570
6571 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6572 # mode. It turns out that the SunPro C++ compiler does not properly
6573 # handle `-M -o', and we need to detect this. Also, some Intel
6574 # versions had trouble with output in subdirs
6575 am__obj=sub/conftest.${OBJEXT-o}
6576 am__minus_obj="-o $am__obj"
6577 case $depmode in
6578 gcc)
6579 # This depmode causes a compiler race in universal mode.
6580 test "$am__universal" = false || continue
6581 ;;
6582 nosideeffect)
6583 # after this tag, mechanisms are not by side-effect, so they'll
6584 # only be used when explicitly requested
6585 if test "x$enable_dependency_tracking" = xyes; then
6586 continue
6587 else
6588 break
6589 fi
6590 ;;
6591 msvisualcpp | msvcmsys)
6592 # This compiler won't grok `-c -o', but also, the minuso test has
6593 # not run yet. These depmodes are late enough in the game, and
6594 # so weak that their functioning should not be impacted.
6595 am__obj=conftest.${OBJEXT-o}
6596 am__minus_obj=
6597 ;;
6598 none) break ;;
6599 esac
6600 if depmode=$depmode \
6601 source=sub/conftest.c object=$am__obj \
6602 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6603 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6604 >/dev/null 2>conftest.err &&
6605 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6606 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6607 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6608 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6609 # icc doesn't choke on unknown options, it will just issue warnings
6610 # or remarks (even with -Werror). So we grep stderr for any message
6611 # that says an option was ignored or not supported.
6612 # When given -MP, icc 7.0 and 7.1 complain thusly:
6613 # icc: Command line warning: ignoring option '-M'; no argument required
6614 # The diagnosis changed in icc 8.0:
6615 # icc: Command line remark: option '-MP' not supported
6616 if (grep 'ignoring option' conftest.err ||
6617 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6618 am_cv_CXX_dependencies_compiler_type=$depmode
6619 break
6620 fi
6621 fi
6622 done
6623
6624 cd ..
6625 rm -rf conftest.dir
6626else
6627 am_cv_CXX_dependencies_compiler_type=none
6628fi
6629
6630fi
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6632$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6633CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6634
6635 if
6636 test "x$enable_dependency_tracking" != xno \
6637 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6638 am__fastdepCXX_TRUE=
6639 am__fastdepCXX_FALSE='#'
6640else
6641 am__fastdepCXX_TRUE='#'
6642 am__fastdepCXX_FALSE=
6643fi
6644
6645
cristy8b350f62009-11-15 23:12:43 +00006646 case $ac_cv_prog_cc_stdc in #(
6647 no) :
6648 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6649 *) :
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006651$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006652if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006653 $as_echo_n "(cached) " >&6
6654else
6655 ac_cv_prog_cc_c99=no
6656ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006658/* end confdefs.h. */
6659#include <stdarg.h>
6660#include <stdbool.h>
6661#include <stdlib.h>
6662#include <wchar.h>
6663#include <stdio.h>
6664
6665// Check varargs macros. These examples are taken from C99 6.10.3.5.
6666#define debug(...) fprintf (stderr, __VA_ARGS__)
6667#define showlist(...) puts (#__VA_ARGS__)
6668#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6669static void
6670test_varargs_macros (void)
6671{
6672 int x = 1234;
6673 int y = 5678;
6674 debug ("Flag");
6675 debug ("X = %d\n", x);
6676 showlist (The first, second, and third items.);
6677 report (x>y, "x is %d but y is %d", x, y);
6678}
6679
6680// Check long long types.
6681#define BIG64 18446744073709551615ull
6682#define BIG32 4294967295ul
6683#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6684#if !BIG_OK
6685 your preprocessor is broken;
6686#endif
6687#if BIG_OK
6688#else
6689 your preprocessor is broken;
6690#endif
6691static long long int bignum = -9223372036854775807LL;
6692static unsigned long long int ubignum = BIG64;
6693
6694struct incomplete_array
6695{
6696 int datasize;
6697 double data[];
6698};
6699
6700struct named_init {
6701 int number;
6702 const wchar_t *name;
6703 double average;
6704};
6705
6706typedef const char *ccp;
6707
6708static inline int
6709test_restrict (ccp restrict text)
6710{
6711 // See if C++-style comments work.
6712 // Iterate through items via the restricted pointer.
6713 // Also check for declarations in for loops.
6714 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6715 continue;
6716 return 0;
6717}
6718
6719// Check varargs and va_copy.
6720static void
6721test_varargs (const char *format, ...)
6722{
6723 va_list args;
6724 va_start (args, format);
6725 va_list args_copy;
6726 va_copy (args_copy, args);
6727
6728 const char *str;
6729 int number;
6730 float fnumber;
6731
6732 while (*format)
6733 {
6734 switch (*format++)
6735 {
6736 case 's': // string
6737 str = va_arg (args_copy, const char *);
6738 break;
6739 case 'd': // int
6740 number = va_arg (args_copy, int);
6741 break;
6742 case 'f': // float
6743 fnumber = va_arg (args_copy, double);
6744 break;
6745 default:
6746 break;
6747 }
6748 }
6749 va_end (args_copy);
6750 va_end (args);
6751}
6752
6753int
6754main ()
6755{
6756
6757 // Check bool.
6758 _Bool success = false;
6759
6760 // Check restrict.
6761 if (test_restrict ("String literal") == 0)
6762 success = true;
6763 char *restrict newvar = "Another string";
6764
6765 // Check varargs.
6766 test_varargs ("s, d' f .", "string", 65, 34.234);
6767 test_varargs_macros ();
6768
6769 // Check flexible array members.
6770 struct incomplete_array *ia =
6771 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6772 ia->datasize = 10;
6773 for (int i = 0; i < ia->datasize; ++i)
6774 ia->data[i] = i * 1.234;
6775
6776 // Check named initializers.
6777 struct named_init ni = {
6778 .number = 34,
6779 .name = L"Test wide string",
6780 .average = 543.34343,
6781 };
6782
6783 ni.number = 58;
6784
6785 int dynamic_array[ni.number];
6786 dynamic_array[ni.number - 1] = 543;
6787
6788 // work around unused variable warnings
6789 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6790 || dynamic_array[ni.number - 1] != 543);
6791
6792 ;
6793 return 0;
6794}
6795_ACEOF
6796for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6797do
6798 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006799 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006800 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006801fi
cristy3ed852e2009-09-05 21:47:34 +00006802rm -f core conftest.err conftest.$ac_objext
6803 test "x$ac_cv_prog_cc_c99" != "xno" && break
6804done
6805rm -f conftest.$ac_ext
6806CC=$ac_save_CC
6807
6808fi
6809# AC_CACHE_VAL
6810case "x$ac_cv_prog_cc_c99" in
6811 x)
cristy8b350f62009-11-15 23:12:43 +00006812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006813$as_echo "none needed" >&6; } ;;
6814 xno)
cristy8b350f62009-11-15 23:12:43 +00006815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006816$as_echo "unsupported" >&6; } ;;
6817 *)
6818 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006820$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6821esac
cristy8b350f62009-11-15 23:12:43 +00006822if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006823 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6824else
cristy8b350f62009-11-15 23:12:43 +00006825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006826$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006827if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006828 $as_echo_n "(cached) " >&6
6829else
6830 ac_cv_prog_cc_c89=no
6831ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006833/* end confdefs.h. */
6834#include <stdarg.h>
6835#include <stdio.h>
6836#include <sys/types.h>
6837#include <sys/stat.h>
6838/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6839struct buf { int x; };
6840FILE * (*rcsopen) (struct buf *, struct stat *, int);
6841static char *e (p, i)
6842 char **p;
6843 int i;
6844{
6845 return p[i];
6846}
6847static char *f (char * (*g) (char **, int), char **p, ...)
6848{
6849 char *s;
6850 va_list v;
6851 va_start (v,p);
6852 s = g (p, va_arg (v,int));
6853 va_end (v);
6854 return s;
6855}
6856
6857/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6858 function prototypes and stuff, but not '\xHH' hex character constants.
6859 These don't provoke an error unfortunately, instead are silently treated
6860 as 'x'. The following induces an error, until -std is added to get
6861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6862 array size at least. It's necessary to write '\x00'==0 to get something
6863 that's true only with -std. */
6864int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6865
6866/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6867 inside strings and character constants. */
6868#define FOO(x) 'x'
6869int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6870
6871int test (int i, double x);
6872struct s1 {int (*f) (int a);};
6873struct s2 {int (*f) (double a);};
6874int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6875int argc;
6876char **argv;
6877int
6878main ()
6879{
6880return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6881 ;
6882 return 0;
6883}
6884_ACEOF
6885for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6887do
6888 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006889 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006890 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006891fi
cristy3ed852e2009-09-05 21:47:34 +00006892rm -f core conftest.err conftest.$ac_objext
6893 test "x$ac_cv_prog_cc_c89" != "xno" && break
6894done
6895rm -f conftest.$ac_ext
6896CC=$ac_save_CC
6897
6898fi
6899# AC_CACHE_VAL
6900case "x$ac_cv_prog_cc_c89" in
6901 x)
cristy8b350f62009-11-15 23:12:43 +00006902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006903$as_echo "none needed" >&6; } ;;
6904 xno)
cristy8b350f62009-11-15 23:12:43 +00006905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006906$as_echo "unsupported" >&6; } ;;
6907 *)
6908 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006910$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6911esac
cristy8b350f62009-11-15 23:12:43 +00006912if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006913 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6914else
6915 ac_cv_prog_cc_stdc=no
6916fi
6917
cristy3ed852e2009-09-05 21:47:34 +00006918fi
cristy3ed852e2009-09-05 21:47:34 +00006919 ;;
6920esac
cristy8b350f62009-11-15 23:12:43 +00006921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006922$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006923 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006924 $as_echo_n "(cached) " >&6
6925fi
6926
cristy8b350f62009-11-15 23:12:43 +00006927 case $ac_cv_prog_cc_stdc in #(
6928 no) :
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6930$as_echo "unsupported" >&6; } ;; #(
6931 '') :
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6933$as_echo "none needed" >&6; } ;; #(
6934 *) :
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006936$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6937esac
6938
cristy3ed852e2009-09-05 21:47:34 +00006939ac_ext=c
6940ac_cpp='$CPP $CPPFLAGS'
6941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006945$as_echo_n "checking how to run the C preprocessor... " >&6; }
6946# On Suns, sometimes $CPP names a directory.
6947if test -n "$CPP" && test -d "$CPP"; then
6948 CPP=
6949fi
6950if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006951 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006952 $as_echo_n "(cached) " >&6
6953else
6954 # Double quotes because CPP needs to be expanded
6955 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6956 do
6957 ac_preproc_ok=false
6958for ac_c_preproc_warn_flag in '' yes
6959do
6960 # Use a header file that comes with gcc, so configuring glibc
6961 # with a fresh cross-compiler works.
6962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6963 # <limits.h> exists even on freestanding compilers.
6964 # On the NeXT, cc -E runs the code through the compiler's parser,
6965 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006967/* end confdefs.h. */
6968#ifdef __STDC__
6969# include <limits.h>
6970#else
6971# include <assert.h>
6972#endif
6973 Syntax error
6974_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006975if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006976
cristy8b350f62009-11-15 23:12:43 +00006977else
cristy3ed852e2009-09-05 21:47:34 +00006978 # Broken: fails on valid input.
6979continue
6980fi
cristy3ed852e2009-09-05 21:47:34 +00006981rm -f conftest.err conftest.$ac_ext
6982
6983 # OK, works on sane cases. Now check whether nonexistent headers
6984 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006986/* end confdefs.h. */
6987#include <ac_nonexistent.h>
6988_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006989if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006990 # Broken: success on invalid input.
6991continue
6992else
cristy3ed852e2009-09-05 21:47:34 +00006993 # Passes both tests.
6994ac_preproc_ok=:
6995break
6996fi
cristy3ed852e2009-09-05 21:47:34 +00006997rm -f conftest.err conftest.$ac_ext
6998
6999done
7000# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7001rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007002if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007003 break
7004fi
7005
7006 done
7007 ac_cv_prog_CPP=$CPP
7008
7009fi
7010 CPP=$ac_cv_prog_CPP
7011else
7012 ac_cv_prog_CPP=$CPP
7013fi
cristy8b350f62009-11-15 23:12:43 +00007014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007015$as_echo "$CPP" >&6; }
7016ac_preproc_ok=false
7017for ac_c_preproc_warn_flag in '' yes
7018do
7019 # Use a header file that comes with gcc, so configuring glibc
7020 # with a fresh cross-compiler works.
7021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7022 # <limits.h> exists even on freestanding compilers.
7023 # On the NeXT, cc -E runs the code through the compiler's parser,
7024 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007026/* end confdefs.h. */
7027#ifdef __STDC__
7028# include <limits.h>
7029#else
7030# include <assert.h>
7031#endif
7032 Syntax error
7033_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007034if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007035
cristy8b350f62009-11-15 23:12:43 +00007036else
cristy3ed852e2009-09-05 21:47:34 +00007037 # Broken: fails on valid input.
7038continue
7039fi
cristy3ed852e2009-09-05 21:47:34 +00007040rm -f conftest.err conftest.$ac_ext
7041
7042 # OK, works on sane cases. Now check whether nonexistent headers
7043 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007045/* end confdefs.h. */
7046#include <ac_nonexistent.h>
7047_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007048if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007049 # Broken: success on invalid input.
7050continue
7051else
cristy3ed852e2009-09-05 21:47:34 +00007052 # Passes both tests.
7053ac_preproc_ok=:
7054break
7055fi
cristy3ed852e2009-09-05 21:47:34 +00007056rm -f conftest.err conftest.$ac_ext
7057
7058done
7059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7060rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007061if $ac_preproc_ok; then :
7062
cristy3ed852e2009-09-05 21:47:34 +00007063else
cristy8b350f62009-11-15 23:12:43 +00007064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00007066as_fn_error "C preprocessor \"$CPP\" fails sanity check
7067See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007068fi
7069
7070ac_ext=c
7071ac_cpp='$CPP $CPPFLAGS'
7072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074ac_compiler_gnu=$ac_cv_c_compiler_gnu
7075
cristy8b350f62009-11-15 23:12:43 +00007076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00007077$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007078if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007079 $as_echo_n "(cached) " >&6
7080else
7081 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7082 for ac_i in 1 2 3 4 5 6 7; do
7083 ac_script="$ac_script$as_nl$ac_script"
7084 done
7085 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00007086 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00007087 if test -z "$SED"; then
7088 ac_path_SED_found=false
7089 # Loop through the user's path and test for each of PROGNAME-LIST
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007095 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00007096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7098 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7099# Check for GNU ac_path_SED and select it if it is found.
7100 # Check for GNU $ac_path_SED
7101case `"$ac_path_SED" --version 2>&1` in
7102*GNU*)
7103 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7104*)
7105 ac_count=0
7106 $as_echo_n 0123456789 >"conftest.in"
7107 while :
7108 do
7109 cat "conftest.in" "conftest.in" >"conftest.tmp"
7110 mv "conftest.tmp" "conftest.in"
7111 cp "conftest.in" "conftest.nl"
7112 $as_echo '' >> "conftest.nl"
7113 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007115 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007116 if test $ac_count -gt ${ac_path_SED_max-0}; then
7117 # Best one so far, save it but keep looking for a better one
7118 ac_cv_path_SED="$ac_path_SED"
7119 ac_path_SED_max=$ac_count
7120 fi
7121 # 10*(2^10) chars as input seems more than enough
7122 test $ac_count -gt 10 && break
7123 done
7124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7125esac
7126
7127 $ac_path_SED_found && break 3
7128 done
7129 done
cristy8b350f62009-11-15 23:12:43 +00007130 done
cristy3ed852e2009-09-05 21:47:34 +00007131IFS=$as_save_IFS
7132 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00007133 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007134 fi
7135else
7136 ac_cv_path_SED=$SED
7137fi
7138
7139fi
cristy8b350f62009-11-15 23:12:43 +00007140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007141$as_echo "$ac_cv_path_SED" >&6; }
7142 SED="$ac_cv_path_SED"
7143 rm -f conftest.sed
7144
7145test -z "$SED" && SED=sed
7146Xsed="$SED -e 1s/^X//"
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
cristy8b350f62009-11-15 23:12:43 +00007158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007159$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007160if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007161 $as_echo_n "(cached) " >&6
7162else
7163 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7164 then ac_cv_path_FGREP="$GREP -F"
7165 else
7166 if test -z "$FGREP"; then
7167 ac_path_FGREP_found=false
7168 # Loop through the user's path and test for each of PROGNAME-LIST
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007174 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7177 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7178# Check for GNU ac_path_FGREP and select it if it is found.
7179 # Check for GNU $ac_path_FGREP
7180case `"$ac_path_FGREP" --version 2>&1` in
7181*GNU*)
7182 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7183*)
7184 ac_count=0
7185 $as_echo_n 0123456789 >"conftest.in"
7186 while :
7187 do
7188 cat "conftest.in" "conftest.in" >"conftest.tmp"
7189 mv "conftest.tmp" "conftest.in"
7190 cp "conftest.in" "conftest.nl"
7191 $as_echo 'FGREP' >> "conftest.nl"
7192 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007194 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007195 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7196 # Best one so far, save it but keep looking for a better one
7197 ac_cv_path_FGREP="$ac_path_FGREP"
7198 ac_path_FGREP_max=$ac_count
7199 fi
7200 # 10*(2^10) chars as input seems more than enough
7201 test $ac_count -gt 10 && break
7202 done
7203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7204esac
7205
7206 $ac_path_FGREP_found && break 3
7207 done
7208 done
cristy8b350f62009-11-15 23:12:43 +00007209 done
cristy3ed852e2009-09-05 21:47:34 +00007210IFS=$as_save_IFS
7211 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00007212 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007213 fi
7214else
7215 ac_cv_path_FGREP=$FGREP
7216fi
7217
7218 fi
7219fi
cristy8b350f62009-11-15 23:12:43 +00007220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007221$as_echo "$ac_cv_path_FGREP" >&6; }
7222 FGREP="$ac_cv_path_FGREP"
7223
7224
7225test -z "$GREP" && GREP=grep
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007246if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007247 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7248else
7249 with_gnu_ld=no
7250fi
7251
7252ac_prog=ld
7253if test "$GCC" = yes; then
7254 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007256$as_echo_n "checking for ld used by $CC... " >&6; }
7257 case $host in
7258 *-*-mingw*)
7259 # gcc leaves a trailing carriage return which upsets mingw
7260 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7261 *)
7262 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7263 esac
7264 case $ac_prog in
7265 # Accept absolute paths.
7266 [\\/]* | ?:[\\/]*)
7267 re_direlt='/[^/][^/]*/\.\./'
7268 # Canonicalize the pathname of ld
7269 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7270 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7271 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7272 done
7273 test -z "$LD" && LD="$ac_prog"
7274 ;;
7275 "")
7276 # If it fails, then pretend we aren't using GCC.
7277 ac_prog=ld
7278 ;;
7279 *)
7280 # If it is relative, then search for the first ld in PATH.
7281 with_gnu_ld=unknown
7282 ;;
7283 esac
7284elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007286$as_echo_n "checking for GNU ld... " >&6; }
7287else
cristy8b350f62009-11-15 23:12:43 +00007288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007289$as_echo_n "checking for non-GNU ld... " >&6; }
7290fi
cristy8b350f62009-11-15 23:12:43 +00007291if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007292 $as_echo_n "(cached) " >&6
7293else
7294 if test -z "$LD"; then
7295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7296 for ac_dir in $PATH; do
7297 IFS="$lt_save_ifs"
7298 test -z "$ac_dir" && ac_dir=.
7299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7300 lt_cv_path_LD="$ac_dir/$ac_prog"
7301 # Check to see if the program is GNU ld. I'd rather use --version,
7302 # but apparently some variants of GNU ld only accept -v.
7303 # Break only if it was the GNU/non-GNU ld that we prefer.
7304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7305 *GNU* | *'with BFD'*)
7306 test "$with_gnu_ld" != no && break
7307 ;;
7308 *)
7309 test "$with_gnu_ld" != yes && break
7310 ;;
7311 esac
7312 fi
7313 done
7314 IFS="$lt_save_ifs"
7315else
7316 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7317fi
7318fi
7319
7320LD="$lt_cv_path_LD"
7321if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007323$as_echo "$LD" >&6; }
7324else
cristy8b350f62009-11-15 23:12:43 +00007325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007326$as_echo "no" >&6; }
7327fi
cristy8b350f62009-11-15 23:12:43 +00007328test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007330$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007331if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007332 $as_echo_n "(cached) " >&6
7333else
7334 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7335case `$LD -v 2>&1 </dev/null` in
7336*GNU* | *'with BFD'*)
7337 lt_cv_prog_gnu_ld=yes
7338 ;;
7339*)
7340 lt_cv_prog_gnu_ld=no
7341 ;;
7342esac
7343fi
cristy8b350f62009-11-15 23:12:43 +00007344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007345$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7346with_gnu_ld=$lt_cv_prog_gnu_ld
7347
7348
7349
7350
7351
7352
7353
7354
7355
cristy3ed852e2009-09-05 21:47:34 +00007356
cristy837d6dc2010-02-27 01:16:57 +00007357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7358$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7359if test "${ac_cv_prog_cc_c99+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7361else
7362 ac_cv_prog_cc_c99=no
7363ac_save_CC=$CC
7364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h. */
7366#include <stdarg.h>
7367#include <stdbool.h>
7368#include <stdlib.h>
7369#include <wchar.h>
7370#include <stdio.h>
7371
7372// Check varargs macros. These examples are taken from C99 6.10.3.5.
7373#define debug(...) fprintf (stderr, __VA_ARGS__)
7374#define showlist(...) puts (#__VA_ARGS__)
7375#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7376static void
7377test_varargs_macros (void)
7378{
7379 int x = 1234;
7380 int y = 5678;
7381 debug ("Flag");
7382 debug ("X = %d\n", x);
7383 showlist (The first, second, and third items.);
7384 report (x>y, "x is %d but y is %d", x, y);
7385}
7386
7387// Check long long types.
7388#define BIG64 18446744073709551615ull
7389#define BIG32 4294967295ul
7390#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7391#if !BIG_OK
7392 your preprocessor is broken;
7393#endif
7394#if BIG_OK
7395#else
7396 your preprocessor is broken;
7397#endif
7398static long long int bignum = -9223372036854775807LL;
7399static unsigned long long int ubignum = BIG64;
7400
7401struct incomplete_array
7402{
7403 int datasize;
7404 double data[];
7405};
7406
7407struct named_init {
7408 int number;
7409 const wchar_t *name;
7410 double average;
7411};
7412
7413typedef const char *ccp;
7414
7415static inline int
7416test_restrict (ccp restrict text)
7417{
7418 // See if C++-style comments work.
7419 // Iterate through items via the restricted pointer.
7420 // Also check for declarations in for loops.
7421 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7422 continue;
7423 return 0;
7424}
7425
7426// Check varargs and va_copy.
7427static void
7428test_varargs (const char *format, ...)
7429{
7430 va_list args;
7431 va_start (args, format);
7432 va_list args_copy;
7433 va_copy (args_copy, args);
7434
7435 const char *str;
7436 int number;
7437 float fnumber;
7438
7439 while (*format)
7440 {
7441 switch (*format++)
7442 {
7443 case 's': // string
7444 str = va_arg (args_copy, const char *);
7445 break;
7446 case 'd': // int
7447 number = va_arg (args_copy, int);
7448 break;
7449 case 'f': // float
7450 fnumber = va_arg (args_copy, double);
7451 break;
7452 default:
7453 break;
7454 }
7455 }
7456 va_end (args_copy);
7457 va_end (args);
7458}
7459
7460int
7461main ()
7462{
7463
7464 // Check bool.
7465 _Bool success = false;
7466
7467 // Check restrict.
7468 if (test_restrict ("String literal") == 0)
7469 success = true;
7470 char *restrict newvar = "Another string";
7471
7472 // Check varargs.
7473 test_varargs ("s, d' f .", "string", 65, 34.234);
7474 test_varargs_macros ();
7475
7476 // Check flexible array members.
7477 struct incomplete_array *ia =
7478 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7479 ia->datasize = 10;
7480 for (int i = 0; i < ia->datasize; ++i)
7481 ia->data[i] = i * 1.234;
7482
7483 // Check named initializers.
7484 struct named_init ni = {
7485 .number = 34,
7486 .name = L"Test wide string",
7487 .average = 543.34343,
7488 };
7489
7490 ni.number = 58;
7491
7492 int dynamic_array[ni.number];
7493 dynamic_array[ni.number - 1] = 543;
7494
7495 // work around unused variable warnings
7496 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7497 || dynamic_array[ni.number - 1] != 543);
7498
7499 ;
7500 return 0;
7501}
7502_ACEOF
7503for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7504do
7505 CC="$ac_save_CC $ac_arg"
7506 if ac_fn_c_try_compile "$LINENO"; then :
7507 ac_cv_prog_cc_c99=$ac_arg
7508fi
7509rm -f core conftest.err conftest.$ac_objext
7510 test "x$ac_cv_prog_cc_c99" != "xno" && break
7511done
7512rm -f conftest.$ac_ext
7513CC=$ac_save_CC
7514
7515fi
7516# AC_CACHE_VAL
7517case "x$ac_cv_prog_cc_c99" in
7518 x)
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7520$as_echo "none needed" >&6; } ;;
7521 xno)
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7523$as_echo "unsupported" >&6; } ;;
7524 *)
7525 CC="$CC $ac_cv_prog_cc_c99"
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7527$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7528esac
7529if test "x$ac_cv_prog_cc_c99" != xno; then :
7530
7531fi
7532
7533
cristy3ed852e2009-09-05 21:47:34 +00007534if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007536$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7537else
cristy8b350f62009-11-15 23:12:43 +00007538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007539$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7540fi
7541set dummy $CC; ac_cc=`$as_echo "$2" |
7542 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00007543if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007544 $as_echo_n "(cached) " >&6
7545else
cristy8b350f62009-11-15 23:12:43 +00007546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007547/* end confdefs.h. */
7548
7549int
7550main ()
7551{
7552
7553 ;
7554 return 0;
7555}
7556_ACEOF
7557# Make sure it works both with $CC and with simple cc.
7558# We do the test twice because some compilers refuse to overwrite an
7559# existing .o file with -o, though they will create one.
7560ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7561rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007562if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7565esac
cristy8b350f62009-11-15 23:12:43 +00007566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7567$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007568 (eval "$ac_try") 2>&5
7569 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571 test $ac_status = 0; } &&
7572 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7575esac
cristy8b350f62009-11-15 23:12:43 +00007576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7577$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007578 (eval "$ac_try") 2>&5
7579 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7581 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007582then
7583 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7584 if test "x$CC" != xcc; then
7585 # Test first that cc exists at all.
7586 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007587 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7590esac
cristy8b350f62009-11-15 23:12:43 +00007591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7592$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007593 (eval "$ac_try") 2>&5
7594 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7596 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007597 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7598 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007599 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7602esac
cristy8b350f62009-11-15 23:12:43 +00007603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7604$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007605 (eval "$ac_try") 2>&5
7606 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7608 test $ac_status = 0; } &&
7609 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7612esac
cristy8b350f62009-11-15 23:12:43 +00007613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7614$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007615 (eval "$ac_try") 2>&5
7616 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7618 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007619 then
7620 # cc works too.
7621 :
7622 else
7623 # cc exists but doesn't like -o.
7624 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7625 fi
7626 fi
7627 fi
7628else
7629 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7630fi
7631rm -f core conftest*
7632
7633fi
7634if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007636$as_echo "yes" >&6; }
7637else
cristy8b350f62009-11-15 23:12:43 +00007638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007639$as_echo "no" >&6; }
7640
cristy8b350f62009-11-15 23:12:43 +00007641$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007642
7643fi
7644
7645# FIXME: we rely on the cache variable name because
7646# there is no other way.
7647set dummy $CC
7648am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7649eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7650if test "$am_t" != yes; then
7651 # Losing compiler, so override with the script.
7652 # FIXME: It is wrong to rewrite CC.
7653 # But if we don't then we get into trouble of one sort or another.
7654 # A longer-term fix would be to have automake use am__CC in this case,
7655 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7656 CC="$am_aux_dir/compile $CC"
7657fi
7658
7659
cristy92703d82010-04-26 00:18:18 +00007660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7661$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7662if test "${ac_cv_cflags_warn_all+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00007664else
cristy92703d82010-04-26 00:18:18 +00007665 ac_cv_cflags_warn_all="no, unknown"
7666
7667 ac_ext=c
7668ac_cpp='$CPP $CPPFLAGS'
7669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7671ac_compiler_gnu=$ac_cv_c_compiler_gnu
7672
7673 ac_save_CFLAGS="$CFLAGS"
7674for 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" #
7675do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677/* end confdefs.h. */
7678
7679int
7680main ()
7681{
7682return 0;
7683 ;
7684 return 0;
7685}
7686_ACEOF
7687if ac_fn_c_try_compile "$LINENO"; then :
7688 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
cristy3ed852e2009-09-05 21:47:34 +00007689fi
cristy92703d82010-04-26 00:18:18 +00007690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691done
7692 CFLAGS="$ac_save_CFLAGS"
7693 ac_ext=c
7694ac_cpp='$CPP $CPPFLAGS'
7695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7697ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00007698
7699
cristy92703d82010-04-26 00:18:18 +00007700fi
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7702$as_echo "$ac_cv_cflags_warn_all" >&6; }
7703case ".$ac_cv_cflags_warn_all" in
7704 .ok|.ok,*) ;;
7705 .|.no|.no,*)
7706 ;;
7707 *)
7708 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7709 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7710 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7711 ac_status=$?
7712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7713 test $ac_status = 0; }
7714 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7715 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7716 ac_status=$?
7717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7718 test $ac_status = 0; }
7719 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7720 fi
7721 ;;
7722esac
cristy3ed852e2009-09-05 21:47:34 +00007723
cristya0b81c32010-01-22 02:54:33 +00007724$ac_includes_default
7725
7726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7727$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7728set x ${MAKE-make}
7729ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7730if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7731 $as_echo_n "(cached) " >&6
7732else
7733 cat >conftest.make <<\_ACEOF
7734SHELL = /bin/sh
7735all:
7736 @echo '@@@%%%=$(MAKE)=@@@%%%'
7737_ACEOF
7738# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7739case `${MAKE-make} -f conftest.make 2>/dev/null` in
7740 *@@@%%%=?*=@@@%%%*)
7741 eval ac_cv_prog_make_${ac_make}_set=yes;;
7742 *)
7743 eval ac_cv_prog_make_${ac_make}_set=no;;
7744esac
7745rm -f conftest.make
7746fi
7747if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7749$as_echo "yes" >&6; }
7750 SET_MAKE=
7751else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753$as_echo "no" >&6; }
7754 SET_MAKE="MAKE=${MAKE-make}"
7755fi
7756
cristy8b350f62009-11-15 23:12:43 +00007757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007758$as_echo_n "checking whether ln -s works... " >&6; }
7759LN_S=$as_ln_s
7760if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007762$as_echo "yes" >&6; }
7763else
cristy8b350f62009-11-15 23:12:43 +00007764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007765$as_echo "no, using $LN_S" >&6; }
7766fi
7767
cristy8b350f62009-11-15 23:12:43 +00007768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007769$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7770
7771# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007772if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007773 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007775$as_echo "yes" >&6; }
7776
cristy8b350f62009-11-15 23:12:43 +00007777$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007778
7779 LIBS="$LIBS -ldmalloc"
7780 LDFLAGS="$LDFLAGS -g"
7781else
cristy8b350f62009-11-15 23:12:43 +00007782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007783$as_echo "no" >&6; }
7784fi
7785else
cristy8b350f62009-11-15 23:12:43 +00007786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007787$as_echo "no" >&6; }
7788fi
7789
7790
7791
cristy0d3a6382010-04-26 00:45:55 +00007792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7793$as_echo_n "checking for __attribute__... " >&6; }
7794if test "${ax_cv___attribute__+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796else
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798/* end confdefs.h. */
7799#include <stdlib.h>
7800 static void foo(void) __attribute__ ((unused));
7801 static void
7802 foo(void) {
7803 exit(1);
7804 }
7805
7806int
7807main ()
7808{
7809
7810 ;
7811 return 0;
7812}
7813_ACEOF
7814if ac_fn_c_try_compile "$LINENO"; then :
7815 ax_cv___attribute__=yes
7816else
7817 ax_cv___attribute__=no
7818
7819fi
7820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821
7822fi
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7824$as_echo "$ax_cv___attribute__" >&6; }
7825 if test "$ax_cv___attribute__" = "yes"; then
7826
7827$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7828
7829 fi
7830
7831
cristy3ed852e2009-09-05 21:47:34 +00007832
7833if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7834 if test -n "$ac_tool_prefix"; then
7835 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7836set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007838$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007839if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007840 $as_echo_n "(cached) " >&6
7841else
7842 case $PKG_CONFIG in
7843 [\\/]* | ?:[\\/]*)
7844 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7845 ;;
7846 *)
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848for as_dir in $PATH
7849do
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007856 break 2
7857 fi
7858done
cristy8b350f62009-11-15 23:12:43 +00007859 done
cristy3ed852e2009-09-05 21:47:34 +00007860IFS=$as_save_IFS
7861
7862 ;;
7863esac
7864fi
7865PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7866if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007868$as_echo "$PKG_CONFIG" >&6; }
7869else
cristy8b350f62009-11-15 23:12:43 +00007870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007871$as_echo "no" >&6; }
7872fi
7873
7874
7875fi
7876if test -z "$ac_cv_path_PKG_CONFIG"; then
7877 ac_pt_PKG_CONFIG=$PKG_CONFIG
7878 # Extract the first word of "pkg-config", so it can be a program name with args.
7879set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007881$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007882if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007883 $as_echo_n "(cached) " >&6
7884else
7885 case $ac_pt_PKG_CONFIG in
7886 [\\/]* | ?:[\\/]*)
7887 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7888 ;;
7889 *)
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891for as_dir in $PATH
7892do
7893 IFS=$as_save_IFS
7894 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007895 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7897 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007899 break 2
7900 fi
7901done
cristy8b350f62009-11-15 23:12:43 +00007902 done
cristy3ed852e2009-09-05 21:47:34 +00007903IFS=$as_save_IFS
7904
7905 ;;
7906esac
7907fi
7908ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7909if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007911$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7912else
cristy8b350f62009-11-15 23:12:43 +00007913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007914$as_echo "no" >&6; }
7915fi
7916
7917 if test "x$ac_pt_PKG_CONFIG" = x; then
7918 PKG_CONFIG=""
7919 else
7920 case $cross_compiling:$ac_tool_warned in
7921yes:)
cristy8b350f62009-11-15 23:12:43 +00007922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924ac_tool_warned=yes ;;
7925esac
7926 PKG_CONFIG=$ac_pt_PKG_CONFIG
7927 fi
7928else
7929 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7930fi
7931
7932fi
7933if test -n "$PKG_CONFIG"; then
7934 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007936$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7937 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007939$as_echo "yes" >&6; }
7940 else
cristy8b350f62009-11-15 23:12:43 +00007941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007942$as_echo "no" >&6; }
7943 PKG_CONFIG=""
7944 fi
7945
7946fi
7947
7948#
cristy3ed852e2009-09-05 21:47:34 +00007949# Enable run-time checking.
7950#
7951# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007952if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007953 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7954else
7955 enable_bounds_checking='no'
7956fi
7957
7958
7959if test "$enable_bounds_checking" = yes; then
7960
cristy8b350f62009-11-15 23:12:43 +00007961$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007962
7963fi
7964
7965#
7966# Tests for Windows
7967#
7968
7969
cristy0d3a6382010-04-26 00:45:55 +00007970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7971$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7972if test "${ax_cv_c_compiler_ms+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7974else
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976/* end confdefs.h. */
7977
7978int
7979main ()
7980{
7981#ifndef _MSC_VER
7982 choke me
7983#endif
7984
7985 ;
7986 return 0;
7987}
7988_ACEOF
7989if ac_fn_c_try_compile "$LINENO"; then :
7990 ax_compiler_ms=yes
7991else
7992 ax_compiler_ms=no
7993fi
7994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995ax_cv_c_compiler_ms=$ax_compiler_ms
7996
7997fi
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7999$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008000
8001GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008002native_win32_build='no'
8003cygwin_build='no'
8004case "${host_os}" in
8005 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008006 cygwin_build='yes'
8007 GDI32_LIBS='-lgdi32'
8008 ;;
8009 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008010 native_win32_build='yes'
8011 GDI32_LIBS='-lgdi32'
8012 ;;
8013esac
8014if test "${GDI32_LIBS}x" != 'x'; then
8015
cristy8b350f62009-11-15 23:12:43 +00008016$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008017
8018fi
8019
8020 if test "${GDI32_LIBS}x" != 'x' ; then
8021 WINGDI32_DELEGATE_TRUE=
8022 WINGDI32_DELEGATE_FALSE='#'
8023else
8024 WINGDI32_DELEGATE_TRUE='#'
8025 WINGDI32_DELEGATE_FALSE=
8026fi
8027
8028 if test "${native_win32_build}" = 'yes' ; then
8029 WIN32_NATIVE_BUILD_TRUE=
8030 WIN32_NATIVE_BUILD_FALSE='#'
8031else
8032 WIN32_NATIVE_BUILD_TRUE='#'
8033 WIN32_NATIVE_BUILD_FALSE=
8034fi
8035
8036 if test "${cygwin_build}" = 'yes' ; then
8037 CYGWIN_BUILD_TRUE=
8038 CYGWIN_BUILD_FALSE='#'
8039else
8040 CYGWIN_BUILD_TRUE='#'
8041 CYGWIN_BUILD_FALSE=
8042fi
8043
8044 if test "x${CC}" = 'xcl.exe' ; then
8045 USING_CL_TRUE=
8046 USING_CL_FALSE='#'
8047else
8048 USING_CL_TRUE='#'
8049 USING_CL_FALSE=
8050fi
8051
8052
8053WinPathScript="${srcdirfull}/winpath.sh"
8054
8055
8056#
8057# Compiler flags tweaks
8058#
8059if test "${GCC}" != "yes"; then
8060 case "${host}" in
8061 *-*-hpux* )
8062 # aCC: HP ANSI C++ B3910B A.03.34
8063 CFLAGS="${CFLAGS} -Wp,-H30000"
8064 if test -n "${CXXFLAGS}"; then
8065 CXXFLAGS='-AA'
8066 else
8067 CXXFLAGS="${CXXFLAGS} -AA"
8068 fi
8069 ;;
8070 *-dec-osf5.* )
8071 # Compaq alphaev68-dec-osf5.1 compiler
8072 if test -n "${CXXFLAGS}"; then
8073 CXXFLAGS='-std strict_ansi -noimplicit_include'
8074 else
8075 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8076 fi
8077 esac
8078fi
8079
8080# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008082$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008083if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008084 $as_echo_n "(cached) " >&6
8085else
8086
8087im_cv_ld_lazyload='none'
8088case "${host}" in
8089 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8090 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8091 im_cv_ld_lazyload='-Wl,-zlazyload'
8092 fi
8093 ;;
8094esac
8095
8096fi
cristy8b350f62009-11-15 23:12:43 +00008097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008098$as_echo "$im_cv_ld_lazyload" >&6; }
8099if test "${im_cv_ld_lazyload}" != 'none' ; then
8100 if test -z "${LDFLAGS}" ; then
8101 LDFLAGS="${im_cv_ld_lazyload}"
8102 else
8103 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8104 fi
8105fi
8106
8107case "$host" in
8108*darwin* | *-macos10*)
8109 if test -d /opt/local ; then
8110 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
8111 LDFLAGS="$LDFLAGS -L/opt/local/lib"
8112 elif test -d /sw ; then
8113 CPPFLAGS="$CPPFLAGS -I/sw/include"
8114 LDFLAGS="$LDFLAGS -L/sw/lib"
8115 fi
8116 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008117if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008118 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8119else
8120 build_osxuniversal=no
8121fi
8122
8123
8124 if test "${build_osxuniversal}" != no ; then
8125 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00008126 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008127Please re-run configure with these options:
8128 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008129 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008130 fi
8131 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8132 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8133 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8134 fi
8135 ;;
8136esac
8137
8138# Enable support for threads
8139
8140# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008141if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008142 withval=$with_threads; with_threads=$withval
8143else
8144 with_threads='yes'
8145fi
8146
8147
8148have_threads=no
8149if test "$with_threads" != 'no'; then
8150
8151
8152
8153ac_ext=c
8154ac_cpp='$CPP $CPPFLAGS'
8155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157ac_compiler_gnu=$ac_cv_c_compiler_gnu
8158
cristy964cb7f2010-04-25 23:18:00 +00008159ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008160
8161# We used to check for pthread.h first, but this fails if pthread.h
8162# requires special compiler flags (e.g. on True64 or Sequent).
8163# It gets checked for in the link test anyway.
8164
8165# First of all, check if the user has set any of the PTHREAD_LIBS,
8166# etcetera environment variables, and if threads linking works using
8167# them:
8168if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8169 save_CFLAGS="$CFLAGS"
8170 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8171 save_LIBS="$LIBS"
8172 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008173 { $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 +00008174$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008176/* end confdefs.h. */
8177
8178/* Override any GCC internal prototype to avoid an error.
8179 Use char because int might match the return type of a GCC
8180 builtin and then its argument prototype would still apply. */
8181#ifdef __cplusplus
8182extern "C"
8183#endif
8184char pthread_join ();
8185int
8186main ()
8187{
8188return pthread_join ();
8189 ;
8190 return 0;
8191}
8192_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008193if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008194 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008195fi
cristy8b350f62009-11-15 23:12:43 +00008196rm -f core conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8199$as_echo "$ax_pthread_ok" >&6; }
8200 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008201 PTHREAD_LIBS=""
8202 PTHREAD_CFLAGS=""
8203 fi
8204 LIBS="$save_LIBS"
8205 CFLAGS="$save_CFLAGS"
8206fi
8207
8208# We must check for the threads library under a number of different
8209# names; the ordering is very important because some systems
8210# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8211# libraries is broken (non-POSIX).
8212
8213# Create a list of thread flags to try. Items starting with a "-" are
8214# C compiler flags, and other items are library names, except for "none"
8215# which indicates that we try without any flags at all, and "pthread-config"
8216# which is a program returning the flags for the Pth emulation library.
8217
cristy964cb7f2010-04-25 23:18:00 +00008218ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008219
8220# The ordering *is* (sometimes) important. Some notes on the
8221# individual items follow:
8222
8223# pthreads: AIX (must check this before -lpthread)
8224# none: in case threads are in libc; should be tried before -Kthread and
8225# other compiler flags to prevent continual compiler warnings
8226# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8227# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8228# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8229# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8230# -pthreads: Solaris/gcc
8231# -mthreads: Mingw32/gcc, Lynx/gcc
8232# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8233# doesn't hurt to check since this sometimes defines pthreads too;
8234# also defines -D_REENTRANT)
8235# ... -mt is also the pthreads flag for HP/aCC
8236# pthread: Linux, etcetera
8237# --thread-safe: KAI C++
8238# pthread-config: use pthread-config program (for GNU Pth library)
8239
8240case "${host_cpu}-${host_os}" in
8241 *solaris*)
8242
8243 # On Solaris (at least, for some versions), libc contains stubbed
8244 # (non-functional) versions of the pthreads routines, so link-based
8245 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8246 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8247 # a function called by this macro, so we could check for that, but
8248 # who knows whether they'll stub that too in a future libc.) So,
8249 # we'll just look for -pthreads and -lpthread first:
8250
cristy964cb7f2010-04-25 23:18:00 +00008251 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008252 ;;
cristy964cb7f2010-04-25 23:18:00 +00008253
8254 *-darwin*)
8255 acx_pthread_flags="-pthread $acx_pthread_flags"
8256 ;;
cristy3ed852e2009-09-05 21:47:34 +00008257esac
8258
cristy964cb7f2010-04-25 23:18:00 +00008259if test x"$ax_pthread_ok" = xno; then
8260for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008261
8262 case $flag in
8263 none)
cristy8b350f62009-11-15 23:12:43 +00008264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008265$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8266 ;;
8267
8268 -*)
cristy8b350f62009-11-15 23:12:43 +00008269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008270$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8271 PTHREAD_CFLAGS="$flag"
8272 ;;
8273
8274 pthread-config)
8275 # Extract the first word of "pthread-config", so it can be a program name with args.
8276set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008278$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008279if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008280 $as_echo_n "(cached) " >&6
8281else
cristy964cb7f2010-04-25 23:18:00 +00008282 if test -n "$ax_pthread_config"; then
8283 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008284else
8285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286for as_dir in $PATH
8287do
8288 IFS=$as_save_IFS
8289 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008290 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008291 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 +00008292 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008294 break 2
8295 fi
8296done
cristy8b350f62009-11-15 23:12:43 +00008297 done
cristy3ed852e2009-09-05 21:47:34 +00008298IFS=$as_save_IFS
8299
cristy964cb7f2010-04-25 23:18:00 +00008300 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008301fi
8302fi
cristy964cb7f2010-04-25 23:18:00 +00008303ax_pthread_config=$ac_cv_prog_ax_pthread_config
8304if test -n "$ax_pthread_config"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8306$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008307else
cristy8b350f62009-11-15 23:12:43 +00008308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008309$as_echo "no" >&6; }
8310fi
8311
8312
cristy964cb7f2010-04-25 23:18:00 +00008313 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008314 PTHREAD_CFLAGS="`pthread-config --cflags`"
8315 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8316 ;;
8317
8318 *)
cristy8b350f62009-11-15 23:12:43 +00008319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008320$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8321 PTHREAD_LIBS="-l$flag"
8322 ;;
8323 esac
8324
8325 save_LIBS="$LIBS"
8326 save_CFLAGS="$CFLAGS"
8327 LIBS="$PTHREAD_LIBS $LIBS"
8328 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8329
8330 # Check for various functions. We must include pthread.h,
8331 # since some functions may be macros. (On the Sequent, we
8332 # need a special flag -Kthread to make this header compile.)
8333 # We check for pthread_join because it is in -lpthread on IRIX
8334 # while pthread_create is in libc. We check for pthread_attr_init
8335 # due to DEC craziness with -lpthreads. We check for
8336 # pthread_cleanup_push because it is one of the few pthread
8337 # functions on Solaris that doesn't have a non-functional libc stub.
8338 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008340/* end confdefs.h. */
8341#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008342 static void routine(void* a) {a=0;}
8343 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008344int
8345main ()
8346{
cristy964cb7f2010-04-25 23:18:00 +00008347pthread_t th; pthread_attr_t attr;
8348 pthread_join(th, 0);
8349 pthread_attr_init(&attr);
8350 pthread_cleanup_push(routine, 0);
8351 pthread_create(&th,0,start_routine,0);
8352 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008353 ;
8354 return 0;
8355}
8356_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008357if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008358 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008359fi
cristy8b350f62009-11-15 23:12:43 +00008360rm -f core conftest.err conftest.$ac_objext \
8361 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008362
8363 LIBS="$save_LIBS"
8364 CFLAGS="$save_CFLAGS"
8365
cristy964cb7f2010-04-25 23:18:00 +00008366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8367$as_echo "$ax_pthread_ok" >&6; }
8368 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008369 break;
8370 fi
8371
8372 PTHREAD_LIBS=""
8373 PTHREAD_CFLAGS=""
8374done
8375fi
8376
8377# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008378if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008379 save_LIBS="$LIBS"
8380 LIBS="$PTHREAD_LIBS $LIBS"
8381 save_CFLAGS="$CFLAGS"
8382 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8383
8384 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008386$as_echo_n "checking for joinable pthread attribute... " >&6; }
8387 attr_name=unknown
8388 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008390/* end confdefs.h. */
8391#include <pthread.h>
8392int
8393main ()
8394{
8395int attr=$attr; return attr;
8396 ;
8397 return 0;
8398}
8399_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008400if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008401 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008402fi
cristy8b350f62009-11-15 23:12:43 +00008403rm -f core conftest.err conftest.$ac_objext \
8404 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008405 done
cristy8b350f62009-11-15 23:12:43 +00008406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008407$as_echo "$attr_name" >&6; }
8408 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8409
8410cat >>confdefs.h <<_ACEOF
8411#define PTHREAD_CREATE_JOINABLE $attr_name
8412_ACEOF
8413
8414 fi
8415
cristy8b350f62009-11-15 23:12:43 +00008416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008417$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8418 flag=no
8419 case "${host_cpu}-${host_os}" in
8420 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8421 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8422 esac
cristy8b350f62009-11-15 23:12:43 +00008423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008424$as_echo "${flag}" >&6; }
8425 if test "x$flag" != xno; then
8426 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8427 fi
8428
8429 LIBS="$save_LIBS"
8430 CFLAGS="$save_CFLAGS"
8431
8432 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008433 if test x"$GCC" != xyes; then
8434 for ac_prog in xlc_r cc_r
8435do
8436 # Extract the first word of "$ac_prog", so it can be a program name with args.
8437set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008439$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008440if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008441 $as_echo_n "(cached) " >&6
8442else
8443 if test -n "$PTHREAD_CC"; then
8444 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8445else
8446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447for as_dir in $PATH
8448do
8449 IFS=$as_save_IFS
8450 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008451 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008452 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 +00008453 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008455 break 2
8456 fi
8457done
cristy8b350f62009-11-15 23:12:43 +00008458 done
cristy3ed852e2009-09-05 21:47:34 +00008459IFS=$as_save_IFS
8460
cristy3ed852e2009-09-05 21:47:34 +00008461fi
8462fi
8463PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8464if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008466$as_echo "$PTHREAD_CC" >&6; }
8467else
cristy8b350f62009-11-15 23:12:43 +00008468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008469$as_echo "no" >&6; }
8470fi
8471
cristy736173a2009-09-20 21:18:22 +00008472
8473 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008474done
cristy736173a2009-09-20 21:18:22 +00008475test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008476
cristy736173a2009-09-20 21:18:22 +00008477 else
8478 PTHREAD_CC=$CC
8479 fi
cristy3ed852e2009-09-05 21:47:34 +00008480else
cristy736173a2009-09-20 21:18:22 +00008481 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008482fi
8483
cristy3ed852e2009-09-05 21:47:34 +00008484
8485
8486
8487
8488# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008489if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008490
cristy8b350f62009-11-15 23:12:43 +00008491$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008492
8493 :
8494else
cristy964cb7f2010-04-25 23:18:00 +00008495 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008496
8497fi
8498ac_ext=c
8499ac_cpp='$CPP $CPPFLAGS'
8500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8502ac_compiler_gnu=$ac_cv_c_compiler_gnu
8503
8504
cristy964cb7f2010-04-25 23:18:00 +00008505 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008506 have_threads=yes
8507 DEF_THREAD="$PTHREAD_CFLAGS"
8508 CFLAGS="$CFLAGS $DEF_THREAD"
8509 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8510 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008511 { $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 +00008512$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8513 CC="$PTHREAD_CC"
8514 fi
8515 fi
8516fi
8517
8518# Enable support for OpenMP
8519if test "$have_threads" != 'yes'; then
8520 ac_cv_prog_c_openmp=unsupported
8521fi
8522
8523 OPENMP_CFLAGS=
8524 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008525if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008526 enableval=$enable_openmp;
8527fi
8528
8529 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008531$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008532if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008533 $as_echo_n "(cached) " >&6
8534else
cristy8b350f62009-11-15 23:12:43 +00008535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008537
8538#ifndef _OPENMP
8539 choke me
8540#endif
8541#include <omp.h>
8542int main () { return omp_get_num_threads (); }
8543
8544_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008545if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008546 ac_cv_prog_c_openmp='none needed'
8547else
cristy8b350f62009-11-15 23:12:43 +00008548 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008549 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8550 ac_save_CFLAGS=$CFLAGS
8551 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008554
8555#ifndef _OPENMP
8556 choke me
8557#endif
8558#include <omp.h>
8559int main () { return omp_get_num_threads (); }
8560
8561_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008562if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008563 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008564fi
cristy8b350f62009-11-15 23:12:43 +00008565rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008567 CFLAGS=$ac_save_CFLAGS
8568 if test "$ac_cv_prog_c_openmp" != unsupported; then
8569 break
8570 fi
8571 done
8572fi
cristy8b350f62009-11-15 23:12:43 +00008573rm -f core conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008575fi
cristy8b350f62009-11-15 23:12:43 +00008576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008577$as_echo "$ac_cv_prog_c_openmp" >&6; }
8578 case $ac_cv_prog_c_openmp in #(
8579 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008580 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008581 *)
cristy8b350f62009-11-15 23:12:43 +00008582 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008583 esac
8584 fi
8585
8586
8587CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8588MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8589
8590
cristy736173a2009-09-20 21:18:22 +00008591# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008592
cristy964cb7f2010-04-25 23:18:00 +00008593
8594
8595ac_ext=c
8596ac_cpp='$CPP $CPPFLAGS'
8597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8599ac_compiler_gnu=$ac_cv_c_compiler_gnu
8600
8601ax_pthread_ok=no
8602
8603# We used to check for pthread.h first, but this fails if pthread.h
8604# requires special compiler flags (e.g. on True64 or Sequent).
8605# It gets checked for in the link test anyway.
8606
8607# First of all, check if the user has set any of the PTHREAD_LIBS,
8608# etcetera environment variables, and if threads linking works using
8609# them:
8610if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8611 save_CFLAGS="$CFLAGS"
8612 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8613 save_LIBS="$LIBS"
8614 LIBS="$PTHREAD_LIBS $LIBS"
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8616$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618/* end confdefs.h. */
8619
8620/* Override any GCC internal prototype to avoid an error.
8621 Use char because int might match the return type of a GCC
8622 builtin and then its argument prototype would still apply. */
8623#ifdef __cplusplus
8624extern "C"
8625#endif
8626char pthread_join ();
8627int
8628main ()
8629{
8630return pthread_join ();
8631 ;
8632 return 0;
8633}
8634_ACEOF
8635if ac_fn_c_try_link "$LINENO"; then :
8636 ax_pthread_ok=yes
8637fi
8638rm -f core conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8641$as_echo "$ax_pthread_ok" >&6; }
8642 if test x"$ax_pthread_ok" = xno; then
8643 PTHREAD_LIBS=""
8644 PTHREAD_CFLAGS=""
8645 fi
8646 LIBS="$save_LIBS"
8647 CFLAGS="$save_CFLAGS"
8648fi
8649
8650# We must check for the threads library under a number of different
8651# names; the ordering is very important because some systems
8652# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8653# libraries is broken (non-POSIX).
8654
8655# Create a list of thread flags to try. Items starting with a "-" are
8656# C compiler flags, and other items are library names, except for "none"
8657# which indicates that we try without any flags at all, and "pthread-config"
8658# which is a program returning the flags for the Pth emulation library.
8659
8660ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8661
8662# The ordering *is* (sometimes) important. Some notes on the
8663# individual items follow:
8664
8665# pthreads: AIX (must check this before -lpthread)
8666# none: in case threads are in libc; should be tried before -Kthread and
8667# other compiler flags to prevent continual compiler warnings
8668# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8669# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8670# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8671# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8672# -pthreads: Solaris/gcc
8673# -mthreads: Mingw32/gcc, Lynx/gcc
8674# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8675# doesn't hurt to check since this sometimes defines pthreads too;
8676# also defines -D_REENTRANT)
8677# ... -mt is also the pthreads flag for HP/aCC
8678# pthread: Linux, etcetera
8679# --thread-safe: KAI C++
8680# pthread-config: use pthread-config program (for GNU Pth library)
8681
8682case "${host_cpu}-${host_os}" in
8683 *solaris*)
8684
8685 # On Solaris (at least, for some versions), libc contains stubbed
8686 # (non-functional) versions of the pthreads routines, so link-based
8687 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8688 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8689 # a function called by this macro, so we could check for that, but
8690 # who knows whether they'll stub that too in a future libc.) So,
8691 # we'll just look for -pthreads and -lpthread first:
8692
8693 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8694 ;;
8695
8696 *-darwin*)
8697 acx_pthread_flags="-pthread $acx_pthread_flags"
8698 ;;
8699esac
8700
8701if test x"$ax_pthread_ok" = xno; then
8702for flag in $ax_pthread_flags; do
8703
8704 case $flag in
8705 none)
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8707$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8708 ;;
8709
8710 -*)
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8712$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8713 PTHREAD_CFLAGS="$flag"
8714 ;;
8715
8716 pthread-config)
8717 # Extract the first word of "pthread-config", so it can be a program name with args.
8718set dummy pthread-config; ac_word=$2
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8720$as_echo_n "checking for $ac_word... " >&6; }
8721if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8722 $as_echo_n "(cached) " >&6
8723else
8724 if test -n "$ax_pthread_config"; then
8725 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8726else
8727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728for as_dir in $PATH
8729do
8730 IFS=$as_save_IFS
8731 test -z "$as_dir" && as_dir=.
8732 for ac_exec_ext in '' $ac_executable_extensions; do
8733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8734 ac_cv_prog_ax_pthread_config="yes"
8735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8736 break 2
8737 fi
8738done
8739 done
8740IFS=$as_save_IFS
8741
8742 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8743fi
8744fi
8745ax_pthread_config=$ac_cv_prog_ax_pthread_config
8746if test -n "$ax_pthread_config"; then
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8748$as_echo "$ax_pthread_config" >&6; }
8749else
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751$as_echo "no" >&6; }
8752fi
8753
8754
8755 if test x"$ax_pthread_config" = xno; then continue; fi
8756 PTHREAD_CFLAGS="`pthread-config --cflags`"
8757 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8758 ;;
8759
8760 *)
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8762$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8763 PTHREAD_LIBS="-l$flag"
8764 ;;
8765 esac
8766
8767 save_LIBS="$LIBS"
8768 save_CFLAGS="$CFLAGS"
8769 LIBS="$PTHREAD_LIBS $LIBS"
8770 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8771
8772 # Check for various functions. We must include pthread.h,
8773 # since some functions may be macros. (On the Sequent, we
8774 # need a special flag -Kthread to make this header compile.)
8775 # We check for pthread_join because it is in -lpthread on IRIX
8776 # while pthread_create is in libc. We check for pthread_attr_init
8777 # due to DEC craziness with -lpthreads. We check for
8778 # pthread_cleanup_push because it is one of the few pthread
8779 # functions on Solaris that doesn't have a non-functional libc stub.
8780 # We try pthread_create on general principles.
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782/* end confdefs.h. */
8783#include <pthread.h>
8784 static void routine(void* a) {a=0;}
8785 static void* start_routine(void* a) {return a;}
8786int
8787main ()
8788{
8789pthread_t th; pthread_attr_t attr;
8790 pthread_join(th, 0);
8791 pthread_attr_init(&attr);
8792 pthread_cleanup_push(routine, 0);
8793 pthread_create(&th,0,start_routine,0);
8794 pthread_cleanup_pop(0);
8795 ;
8796 return 0;
8797}
8798_ACEOF
8799if ac_fn_c_try_link "$LINENO"; then :
8800 ax_pthread_ok=yes
8801fi
8802rm -f core conftest.err conftest.$ac_objext \
8803 conftest$ac_exeext conftest.$ac_ext
8804
8805 LIBS="$save_LIBS"
8806 CFLAGS="$save_CFLAGS"
8807
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8809$as_echo "$ax_pthread_ok" >&6; }
8810 if test "x$ax_pthread_ok" = xyes; then
8811 break;
8812 fi
8813
8814 PTHREAD_LIBS=""
8815 PTHREAD_CFLAGS=""
8816done
8817fi
8818
8819# Various other checks:
8820if test "x$ax_pthread_ok" = xyes; then
8821 save_LIBS="$LIBS"
8822 LIBS="$PTHREAD_LIBS $LIBS"
8823 save_CFLAGS="$CFLAGS"
8824 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8825
8826 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8828$as_echo_n "checking for joinable pthread attribute... " >&6; }
8829 attr_name=unknown
8830 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832/* end confdefs.h. */
8833#include <pthread.h>
8834int
8835main ()
8836{
8837int attr=$attr; return attr;
8838 ;
8839 return 0;
8840}
8841_ACEOF
8842if ac_fn_c_try_link "$LINENO"; then :
8843 attr_name=$attr; break
8844fi
8845rm -f core conftest.err conftest.$ac_objext \
8846 conftest$ac_exeext conftest.$ac_ext
8847 done
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8849$as_echo "$attr_name" >&6; }
8850 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8851
8852cat >>confdefs.h <<_ACEOF
8853#define PTHREAD_CREATE_JOINABLE $attr_name
8854_ACEOF
8855
8856 fi
8857
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8859$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8860 flag=no
8861 case "${host_cpu}-${host_os}" in
8862 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8863 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8864 esac
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8866$as_echo "${flag}" >&6; }
8867 if test "x$flag" != xno; then
8868 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8869 fi
8870
8871 LIBS="$save_LIBS"
8872 CFLAGS="$save_CFLAGS"
8873
8874 # More AIX lossage: must compile with xlc_r or cc_r
8875 if test x"$GCC" != xyes; then
8876 for ac_prog in xlc_r cc_r
8877do
8878 # Extract the first word of "$ac_prog", so it can be a program name with args.
8879set dummy $ac_prog; ac_word=$2
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881$as_echo_n "checking for $ac_word... " >&6; }
8882if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8883 $as_echo_n "(cached) " >&6
8884else
8885 if test -n "$PTHREAD_CC"; then
8886 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8887else
8888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889for as_dir in $PATH
8890do
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8895 ac_cv_prog_PTHREAD_CC="$ac_prog"
8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897 break 2
8898 fi
8899done
8900 done
8901IFS=$as_save_IFS
8902
8903fi
8904fi
8905PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8906if test -n "$PTHREAD_CC"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8908$as_echo "$PTHREAD_CC" >&6; }
8909else
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911$as_echo "no" >&6; }
8912fi
8913
8914
8915 test -n "$PTHREAD_CC" && break
8916done
8917test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8918
8919 else
8920 PTHREAD_CC=$CC
8921 fi
8922else
8923 PTHREAD_CC="$CC"
8924fi
8925
8926
8927
8928
8929
8930# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8931if test x"$ax_pthread_ok" = xyes; then
8932
8933$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8934
8935 :
8936else
8937 ax_pthread_ok=no
8938
8939fi
8940ac_ext=c
8941ac_cpp='$CPP $CPPFLAGS'
8942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8944ac_compiler_gnu=$ac_cv_c_compiler_gnu
8945
8946
8947
cristy43596fe2010-01-21 16:46:08 +00008948# Check whether --enable-opencl was given.
8949if test "${enable_opencl+set}" = set; then :
8950 enableval=$enable_opencl; disable_opencl=$enableval
8951else
8952 disable_opencl='yes'
8953fi
8954
8955
8956if test "$disable_opencl" = 'yes'; then
8957 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008958ac_cpp='$CPP $CPPFLAGS'
8959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8961ac_compiler_gnu=$ac_cv_c_compiler_gnu
8962
cristy43596fe2010-01-21 16:46:08 +00008963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008964$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008965if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008966 $as_echo_n "(cached) " >&6
8967else
cristy8b350f62009-11-15 23:12:43 +00008968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008969/* end confdefs.h. */
8970
8971int
8972main ()
8973{
8974#ifndef _MSC_VER
8975 choke me
8976#endif
8977
8978 ;
8979 return 0;
8980}
8981_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008982if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008983 ax_compiler_ms=yes
8984else
cristy8b350f62009-11-15 23:12:43 +00008985 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008986fi
cristy736173a2009-09-20 21:18:22 +00008987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988ax_cv_c_compiler_ms=$ax_compiler_ms
8989
8990fi
cristy8b350f62009-11-15 23:12:43 +00008991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008992$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008993 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008994 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8995fi
8996
cristy43596fe2010-01-21 16:46:08 +00008997 ax_save_CPPFLAGS=$CPPFLAGS
8998 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8999 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00009000do :
9001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9002ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9003eval as_val=\$$as_ac_Header
9004 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00009005 cat >>confdefs.h <<_ACEOF
9006#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9007_ACEOF
9008
9009fi
9010
9011done
9012
cristy43596fe2010-01-21 16:46:08 +00009013 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009014
cristy43596fe2010-01-21 16:46:08 +00009015 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00009016do :
9017 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9018if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00009019 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009020#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00009021_ACEOF
9022
9023fi
9024
9025done
9026
9027
9028
9029
cristy43596fe2010-01-21 16:46:08 +00009030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00009031$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009032if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00009033 $as_echo_n "(cached) " >&6
9034else
9035 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00009036 case $host_cpu in
9037 x86_64) ax_check_cl_libdir=lib64 ;;
9038 *) ax_check_cl_libdir=lib ;;
9039 esac
9040 ax_save_CPPFLAGS=$CPPFLAGS
9041 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9042 ax_save_LIBS=$LIBS
9043 LIBS=""
9044 ax_check_libs="-lOpenCL -lCL -lclparser"
9045 for ax_lib in $ax_check_libs; do
9046 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009047 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9048else
9049 ax_try_lib=$ax_lib
9050fi
cristy43596fe2010-01-21 16:46:08 +00009051 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009053/* end confdefs.h. */
9054
cristy43596fe2010-01-21 16:46:08 +00009055 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9056 # include <windows.h>
9057 # endif
9058 # ifdef HAVE_CL_CL_H
9059 # include <CL/cl.h>
9060 # elif defined(HAVE_OPENCL_CL_H)
9061 # include <OpenCL/cl.h>
9062 # else
9063 # error no CL.h
9064 # endif
cristy736173a2009-09-20 21:18:22 +00009065int
9066main ()
9067{
cristyc7083c12009-10-14 03:16:55 +00009068clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009069 ;
9070 return 0;
9071}
9072_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009073if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009074 ax_cv_check_cl_libcl=$ax_try_lib; break
9075else
cristy8b350f62009-11-15 23:12:43 +00009076 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 +00009077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009078/* end confdefs.h. */
9079
cristy43596fe2010-01-21 16:46:08 +00009080 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9081 # include <windows.h>
9082 # endif
9083 # ifdef HAVE_CL_CL_H
9084 # include <CL/cl.h>
9085 # elif defined(HAVE_OPENCL_CL_H)
9086 # include <OpenCL/cl.h>
9087 # else
9088 # error no CL.h
9089 # endif
cristy736173a2009-09-20 21:18:22 +00009090int
9091main ()
9092{
cristyc7083c12009-10-14 03:16:55 +00009093clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009094 ;
9095 return 0;
9096}
9097_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009098if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009099 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9100else
cristy4dc44432009-12-30 23:30:06 +00009101 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 +00009102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009103/* end confdefs.h. */
9104
cristy43596fe2010-01-21 16:46:08 +00009105 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9106 # include <windows.h>
9107 # endif
9108 # ifdef HAVE_CL_CL_H
9109 # include <CL/cl.h>
9110 # elif defined(HAVE_OPENCL_CL_H)
9111 # include <OpenCL/cl.h>
9112 # else
9113 # error no CL.h
9114 # endif
cristy736173a2009-09-20 21:18:22 +00009115int
9116main ()
9117{
cristyc7083c12009-10-14 03:16:55 +00009118clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009119 ;
9120 return 0;
9121}
9122_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009123if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009124 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009125fi
cristy8b350f62009-11-15 23:12:43 +00009126rm -f core conftest.err conftest.$ac_objext \
9127 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009128fi
cristy8b350f62009-11-15 23:12:43 +00009129rm -f core conftest.err conftest.$ac_objext \
9130 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009131fi
cristy8b350f62009-11-15 23:12:43 +00009132rm -f core conftest.err conftest.$ac_objext \
9133 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009134 done
cristy736173a2009-09-20 21:18:22 +00009135
cristy43596fe2010-01-21 16:46:08 +00009136 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009137 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009139/* end confdefs.h. */
9140
cristy43596fe2010-01-21 16:46:08 +00009141 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9142 # include <windows.h>
9143 # endif
9144 # ifdef HAVE_CL_CL_H
9145 # include <CL/cl.h>
9146 # elif defined(HAVE_OPENCL_CL_H)
9147 # include <OpenCL/cl.h>
9148 # else
9149 # error no CL.h
9150 # endif
cristy736173a2009-09-20 21:18:22 +00009151int
9152main ()
9153{
cristyc7083c12009-10-14 03:16:55 +00009154clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009155 ;
9156 return 0;
9157}
9158_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009159if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009160 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009161fi
cristy8b350f62009-11-15 23:12:43 +00009162rm -f core conftest.err conftest.$ac_objext \
9163 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009164fi
9165
cristy43596fe2010-01-21 16:46:08 +00009166 LIBS=$ax_save_LIBS
9167 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009168fi
cristy8b350f62009-11-15 23:12:43 +00009169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009170$as_echo "$ax_cv_check_cl_libcl" >&6; }
9171
cristy43596fe2010-01-21 16:46:08 +00009172 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009173 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9174else
cristy99cc3002010-01-21 14:50:11 +00009175 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9176$as_echo "#define _OPENCL 1" >>confdefs.h
9177
cristy736173a2009-09-20 21:18:22 +00009178fi
cristy43596fe2010-01-21 16:46:08 +00009179 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009180ac_cpp='$CPP $CPPFLAGS'
9181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9183ac_compiler_gnu=$ac_cv_c_compiler_gnu
9184
cristy43596fe2010-01-21 16:46:08 +00009185fi
cristy736173a2009-09-20 21:18:22 +00009186
9187
9188
9189
cristyc7083c12009-10-14 03:16:55 +00009190CFLAGS="$CL_CFLAGS $CFLAGS"
9191LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009192
cristy2e8b51d2009-10-17 18:26:15 +00009193
cristy3ed852e2009-09-05 21:47:34 +00009194########
9195#
9196# Check for large file support
9197#
9198########
9199# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009200if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009201 enableval=$enable_largefile;
9202fi
9203
9204if test "$enable_largefile" != no; then
9205
cristy8b350f62009-11-15 23:12:43 +00009206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009207$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009208if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009209 $as_echo_n "(cached) " >&6
9210else
9211 ac_cv_sys_largefile_CC=no
9212 if test "$GCC" != yes; then
9213 ac_save_CC=$CC
9214 while :; do
9215 # IRIX 6.2 and later do not support large files by default,
9216 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009218/* end confdefs.h. */
9219#include <sys/types.h>
9220 /* Check that off_t can represent 2**63 - 1 correctly.
9221 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9222 since some C++ compilers masquerading as C compilers
9223 incorrectly reject 9223372036854775807. */
9224#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9225 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9226 && LARGE_OFF_T % 2147483647 == 1)
9227 ? 1 : -1];
9228int
9229main ()
9230{
9231
9232 ;
9233 return 0;
9234}
9235_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009236 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009237 break
cristy3ed852e2009-09-05 21:47:34 +00009238fi
cristy3ed852e2009-09-05 21:47:34 +00009239rm -f core conftest.err conftest.$ac_objext
9240 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009241 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009242 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009243fi
cristy3ed852e2009-09-05 21:47:34 +00009244rm -f core conftest.err conftest.$ac_objext
9245 break
9246 done
9247 CC=$ac_save_CC
9248 rm -f conftest.$ac_ext
9249 fi
9250fi
cristy8b350f62009-11-15 23:12:43 +00009251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009252$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9253 if test "$ac_cv_sys_largefile_CC" != no; then
9254 CC=$CC$ac_cv_sys_largefile_CC
9255 fi
9256
cristy8b350f62009-11-15 23:12:43 +00009257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009258$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009259if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009260 $as_echo_n "(cached) " >&6
9261else
9262 while :; do
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#include <sys/types.h>
9266 /* Check that off_t can represent 2**63 - 1 correctly.
9267 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9268 since some C++ compilers masquerading as C compilers
9269 incorrectly reject 9223372036854775807. */
9270#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9271 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9272 && LARGE_OFF_T % 2147483647 == 1)
9273 ? 1 : -1];
9274int
9275main ()
9276{
9277
9278 ;
9279 return 0;
9280}
9281_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009282if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009283 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009284fi
cristy3ed852e2009-09-05 21:47:34 +00009285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009287/* end confdefs.h. */
9288#define _FILE_OFFSET_BITS 64
9289#include <sys/types.h>
9290 /* Check that off_t can represent 2**63 - 1 correctly.
9291 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9292 since some C++ compilers masquerading as C compilers
9293 incorrectly reject 9223372036854775807. */
9294#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9296 && LARGE_OFF_T % 2147483647 == 1)
9297 ? 1 : -1];
9298int
9299main ()
9300{
9301
9302 ;
9303 return 0;
9304}
9305_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009306if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009307 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009308fi
cristy3ed852e2009-09-05 21:47:34 +00009309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9310 ac_cv_sys_file_offset_bits=unknown
9311 break
9312done
9313fi
cristy8b350f62009-11-15 23:12:43 +00009314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009315$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9316case $ac_cv_sys_file_offset_bits in #(
9317 no | unknown) ;;
9318 *)
9319cat >>confdefs.h <<_ACEOF
9320#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9321_ACEOF
9322;;
9323esac
9324rm -rf conftest*
9325 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009327$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009328if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009329 $as_echo_n "(cached) " >&6
9330else
9331 while :; do
cristy8b350f62009-11-15 23:12:43 +00009332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009333/* end confdefs.h. */
9334#include <sys/types.h>
9335 /* Check that off_t can represent 2**63 - 1 correctly.
9336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9337 since some C++ compilers masquerading as C compilers
9338 incorrectly reject 9223372036854775807. */
9339#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9341 && LARGE_OFF_T % 2147483647 == 1)
9342 ? 1 : -1];
9343int
9344main ()
9345{
9346
9347 ;
9348 return 0;
9349}
9350_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009351if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009352 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009353fi
cristy3ed852e2009-09-05 21:47:34 +00009354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009356/* end confdefs.h. */
9357#define _LARGE_FILES 1
9358#include <sys/types.h>
9359 /* Check that off_t can represent 2**63 - 1 correctly.
9360 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9361 since some C++ compilers masquerading as C compilers
9362 incorrectly reject 9223372036854775807. */
9363#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9364 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9365 && LARGE_OFF_T % 2147483647 == 1)
9366 ? 1 : -1];
9367int
9368main ()
9369{
9370
9371 ;
9372 return 0;
9373}
9374_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009375if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009376 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009377fi
cristy3ed852e2009-09-05 21:47:34 +00009378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379 ac_cv_sys_large_files=unknown
9380 break
9381done
9382fi
cristy8b350f62009-11-15 23:12:43 +00009383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009384$as_echo "$ac_cv_sys_large_files" >&6; }
9385case $ac_cv_sys_large_files in #(
9386 no | unknown) ;;
9387 *)
9388cat >>confdefs.h <<_ACEOF
9389#define _LARGE_FILES $ac_cv_sys_large_files
9390_ACEOF
9391;;
9392esac
9393rm -rf conftest*
9394 fi
9395fi
9396
cristy8b350f62009-11-15 23:12:43 +00009397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009398$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009399if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009400 $as_echo_n "(cached) " >&6
9401else
9402 while :; do
cristy8b350f62009-11-15 23:12:43 +00009403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009404/* end confdefs.h. */
9405#include <sys/types.h> /* for off_t */
9406 #include <stdio.h>
9407int
9408main ()
9409{
9410int (*fp) (FILE *, off_t, int) = fseeko;
9411 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9412 ;
9413 return 0;
9414}
9415_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009416if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009417 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009418fi
cristy8b350f62009-11-15 23:12:43 +00009419rm -f core conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext conftest.$ac_ext
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009422/* end confdefs.h. */
9423#define _LARGEFILE_SOURCE 1
9424#include <sys/types.h> /* for off_t */
9425 #include <stdio.h>
9426int
9427main ()
9428{
9429int (*fp) (FILE *, off_t, int) = fseeko;
9430 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9431 ;
9432 return 0;
9433}
9434_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009435if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009436 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009437fi
cristy8b350f62009-11-15 23:12:43 +00009438rm -f core conftest.err conftest.$ac_objext \
9439 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009440 ac_cv_sys_largefile_source=unknown
9441 break
9442done
9443fi
cristy8b350f62009-11-15 23:12:43 +00009444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009445$as_echo "$ac_cv_sys_largefile_source" >&6; }
9446case $ac_cv_sys_largefile_source in #(
9447 no | unknown) ;;
9448 *)
9449cat >>confdefs.h <<_ACEOF
9450#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9451_ACEOF
9452;;
9453esac
9454rm -rf conftest*
9455
9456# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9457# in glibc 2.1.3, but that breaks too many other things.
9458# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9459if test $ac_cv_sys_largefile_source != unknown; then
9460
cristy8b350f62009-11-15 23:12:43 +00009461$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009462
9463fi
9464
9465LFS_CPPFLAGS=''
9466if test "$enable_largefile" != no; then
9467 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9468 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9469 else
cristy8b350f62009-11-15 23:12:43 +00009470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009471$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009472 if test "$cross_compiling" = yes; then :
9473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00009475as_fn_error "cannot run test program while cross compiling
9476See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009477else
cristy8b350f62009-11-15 23:12:43 +00009478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009480#include <unistd.h>
9481 main () {
9482 exit(!(sizeof(off_t) == 8));
9483 }
9484_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009485if ac_fn_c_try_run "$LINENO"; then :
9486 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009487
cristy8b350f62009-11-15 23:12:43 +00009488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009489$as_echo "yes" >&6; }
9490else
cristy8b350f62009-11-15 23:12:43 +00009491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009492$as_echo "no" >&6; }
9493fi
cristy8b350f62009-11-15 23:12:43 +00009494rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9495 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009496fi
9497
cristy3ed852e2009-09-05 21:47:34 +00009498 fi
9499 if test "$ac_cv_sys_large_files" != 'no'; then
9500 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9501 fi
9502 if test "$ac_cv_sys_largefile_source" != 'no'; then
9503 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9504 fi
9505fi
9506
9507
9508#
9509# Configure libtool & libltdl
9510#
9511# Configure libtool
9512enable_dlopen=yes
9513
9514
9515
9516case `pwd` in
9517 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009519$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9520esac
9521
9522
9523
cristy18304f92009-11-22 15:48:26 +00009524macro_version='2.2.6b'
9525macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00009526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539ltmain="$ac_aux_dir/ltmain.sh"
9540
cristy8b350f62009-11-15 23:12:43 +00009541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009542$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009543if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009544 $as_echo_n "(cached) " >&6
9545else
9546 if test -n "$NM"; then
9547 # Let the user override the test.
9548 lt_cv_path_NM="$NM"
9549else
9550 lt_nm_to_check="${ac_tool_prefix}nm"
9551 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9552 lt_nm_to_check="$lt_nm_to_check nm"
9553 fi
9554 for lt_tmp_nm in $lt_nm_to_check; do
9555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9556 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9557 IFS="$lt_save_ifs"
9558 test -z "$ac_dir" && ac_dir=.
9559 tmp_nm="$ac_dir/$lt_tmp_nm"
9560 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9561 # Check to see if the nm accepts a BSD-compat flag.
9562 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9563 # nm: unknown option "B" ignored
9564 # Tru64's nm complains that /dev/null is an invalid object file
9565 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9566 */dev/null* | *'Invalid file or object type'*)
9567 lt_cv_path_NM="$tmp_nm -B"
9568 break
9569 ;;
9570 *)
9571 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9572 */dev/null*)
9573 lt_cv_path_NM="$tmp_nm -p"
9574 break
9575 ;;
9576 *)
9577 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9578 continue # so that we can try to find one that supports BSD flags
9579 ;;
9580 esac
9581 ;;
9582 esac
9583 fi
9584 done
9585 IFS="$lt_save_ifs"
9586 done
9587 : ${lt_cv_path_NM=no}
9588fi
9589fi
cristy8b350f62009-11-15 23:12:43 +00009590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009591$as_echo "$lt_cv_path_NM" >&6; }
9592if test "$lt_cv_path_NM" != "no"; then
9593 NM="$lt_cv_path_NM"
9594else
9595 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00009596 if test -n "$ac_tool_prefix"; then
9597 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009598 do
9599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9600set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009602$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009603if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009604 $as_echo_n "(cached) " >&6
9605else
9606 if test -n "$DUMPBIN"; then
9607 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9608else
9609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610for as_dir in $PATH
9611do
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009614 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9616 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009618 break 2
9619 fi
9620done
cristy8b350f62009-11-15 23:12:43 +00009621 done
cristy3ed852e2009-09-05 21:47:34 +00009622IFS=$as_save_IFS
9623
9624fi
9625fi
9626DUMPBIN=$ac_cv_prog_DUMPBIN
9627if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009629$as_echo "$DUMPBIN" >&6; }
9630else
cristy8b350f62009-11-15 23:12:43 +00009631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009632$as_echo "no" >&6; }
9633fi
9634
9635
9636 test -n "$DUMPBIN" && break
9637 done
9638fi
9639if test -z "$DUMPBIN"; then
9640 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00009641 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009642do
9643 # Extract the first word of "$ac_prog", so it can be a program name with args.
9644set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009646$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009647if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009648 $as_echo_n "(cached) " >&6
9649else
9650 if test -n "$ac_ct_DUMPBIN"; then
9651 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9652else
9653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654for as_dir in $PATH
9655do
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009658 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9660 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009662 break 2
9663 fi
9664done
cristy8b350f62009-11-15 23:12:43 +00009665 done
cristy3ed852e2009-09-05 21:47:34 +00009666IFS=$as_save_IFS
9667
9668fi
9669fi
9670ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9671if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009673$as_echo "$ac_ct_DUMPBIN" >&6; }
9674else
cristy8b350f62009-11-15 23:12:43 +00009675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009676$as_echo "no" >&6; }
9677fi
9678
9679
9680 test -n "$ac_ct_DUMPBIN" && break
9681done
9682
9683 if test "x$ac_ct_DUMPBIN" = x; then
9684 DUMPBIN=":"
9685 else
9686 case $cross_compiling:$ac_tool_warned in
9687yes:)
cristy8b350f62009-11-15 23:12:43 +00009688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9690ac_tool_warned=yes ;;
9691esac
9692 DUMPBIN=$ac_ct_DUMPBIN
9693 fi
9694fi
9695
9696
9697 if test "$DUMPBIN" != ":"; then
9698 NM="$DUMPBIN"
9699 fi
9700fi
9701test -z "$NM" && NM=nm
9702
9703
9704
9705
9706
9707
cristy8b350f62009-11-15 23:12:43 +00009708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009709$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009710if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009711 $as_echo_n "(cached) " >&6
9712else
9713 lt_cv_nm_interface="BSD nm"
9714 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0d3a6382010-04-26 00:45:55 +00009715 (eval echo "\"\$as_me:9715: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009716 (eval "$ac_compile" 2>conftest.err)
9717 cat conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +00009718 (eval echo "\"\$as_me:9718: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009719 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9720 cat conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +00009721 (eval echo "\"\$as_me:9721: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009722 cat conftest.out >&5
9723 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9724 lt_cv_nm_interface="MS dumpbin"
9725 fi
9726 rm -f conftest*
9727fi
cristy8b350f62009-11-15 23:12:43 +00009728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009729$as_echo "$lt_cv_nm_interface" >&6; }
9730
9731# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009733$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009734if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009735 $as_echo_n "(cached) " >&6
9736else
9737 i=0
9738 teststring="ABCD"
9739
9740 case $build_os in
9741 msdosdjgpp*)
9742 # On DJGPP, this test can blow up pretty badly due to problems in libc
9743 # (any single argument exceeding 2000 bytes causes a buffer overrun
9744 # during glob expansion). Even if it were fixed, the result of this
9745 # check would be larger than it should be.
9746 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9747 ;;
9748
9749 gnu*)
9750 # Under GNU Hurd, this test is not required because there is
9751 # no limit to the length of command line arguments.
9752 # Libtool will interpret -1 as no limit whatsoever
9753 lt_cv_sys_max_cmd_len=-1;
9754 ;;
9755
9756 cygwin* | mingw* | cegcc*)
9757 # On Win9x/ME, this test blows up -- it succeeds, but takes
9758 # about 5 minutes as the teststring grows exponentially.
9759 # Worse, since 9x/ME are not pre-emptively multitasking,
9760 # you end up with a "frozen" computer, even though with patience
9761 # the test eventually succeeds (with a max line length of 256k).
9762 # Instead, let's just punt: use the minimum linelength reported by
9763 # all of the supported platforms: 8192 (on NT/2K/XP).
9764 lt_cv_sys_max_cmd_len=8192;
9765 ;;
9766
9767 amigaos*)
9768 # On AmigaOS with pdksh, this test takes hours, literally.
9769 # So we just punt and use a minimum line length of 8192.
9770 lt_cv_sys_max_cmd_len=8192;
9771 ;;
9772
9773 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9774 # This has been around since 386BSD, at least. Likely further.
9775 if test -x /sbin/sysctl; then
9776 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9777 elif test -x /usr/sbin/sysctl; then
9778 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9779 else
9780 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9781 fi
9782 # And add a safety zone
9783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9785 ;;
9786
9787 interix*)
9788 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9789 lt_cv_sys_max_cmd_len=196608
9790 ;;
9791
9792 osf*)
9793 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9794 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9795 # nice to cause kernel panics so lets avoid the loop below.
9796 # First set a reasonable default.
9797 lt_cv_sys_max_cmd_len=16384
9798 #
9799 if test -x /sbin/sysconfig; then
9800 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9801 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9802 esac
9803 fi
9804 ;;
9805 sco3.2v5*)
9806 lt_cv_sys_max_cmd_len=102400
9807 ;;
9808 sysv5* | sco5v6* | sysv4.2uw2*)
9809 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9810 if test -n "$kargmax"; then
9811 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9812 else
9813 lt_cv_sys_max_cmd_len=32768
9814 fi
9815 ;;
9816 *)
9817 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9818 if test -n "$lt_cv_sys_max_cmd_len"; then
9819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9821 else
9822 # Make teststring a little bigger before we do anything with it.
9823 # a 1K string should be a reasonable start.
9824 for i in 1 2 3 4 5 6 7 8 ; do
9825 teststring=$teststring$teststring
9826 done
9827 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9828 # If test is not a shell built-in, we'll probably end up computing a
9829 # maximum length that is only half of the actual maximum length, but
9830 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00009831 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9832 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009833 test $i != 17 # 1/2 MB should be enough
9834 do
9835 i=`expr $i + 1`
9836 teststring=$teststring$teststring
9837 done
9838 # Only check the string length outside the loop.
9839 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9840 teststring=
9841 # Add a significant safety factor because C++ compilers can tack on
9842 # massive amounts of additional arguments before passing them to the
9843 # linker. It appears as though 1/2 is a usable value.
9844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9845 fi
9846 ;;
9847 esac
9848
9849fi
9850
9851if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009853$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9854else
cristy8b350f62009-11-15 23:12:43 +00009855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009856$as_echo "none" >&6; }
9857fi
9858max_cmd_len=$lt_cv_sys_max_cmd_len
9859
9860
9861
9862
9863
9864
9865: ${CP="cp -f"}
9866: ${MV="mv -f"}
9867: ${RM="rm -f"}
9868
cristy8b350f62009-11-15 23:12:43 +00009869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009870$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9871# Try some XSI features
9872xsi_shell=no
9873( _lt_dummy="a/b/c"
9874 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9875 = c,a/b,, \
9876 && eval 'test $(( 1 + 1 )) -eq 2 \
9877 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9878 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009880$as_echo "$xsi_shell" >&6; }
9881
9882
cristy8b350f62009-11-15 23:12:43 +00009883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009884$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9885lt_shell_append=no
9886( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9887 >/dev/null 2>&1 \
9888 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009890$as_echo "$lt_shell_append" >&6; }
9891
9892
9893if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9894 lt_unset=unset
9895else
9896 lt_unset=false
9897fi
9898
9899
9900
9901
9902
9903# test EBCDIC or ASCII
9904case `echo X|tr X '\101'` in
9905 A) # ASCII based system
9906 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9907 lt_SP2NL='tr \040 \012'
9908 lt_NL2SP='tr \015\012 \040\040'
9909 ;;
9910 *) # EBCDIC based system
9911 lt_SP2NL='tr \100 \n'
9912 lt_NL2SP='tr \r\n \100\100'
9913 ;;
9914esac
9915
9916
9917
9918
9919
9920
9921
9922
9923
cristy8b350f62009-11-15 23:12:43 +00009924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009925$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009926if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009927 $as_echo_n "(cached) " >&6
9928else
9929 lt_cv_ld_reload_flag='-r'
9930fi
cristy8b350f62009-11-15 23:12:43 +00009931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009932$as_echo "$lt_cv_ld_reload_flag" >&6; }
9933reload_flag=$lt_cv_ld_reload_flag
9934case $reload_flag in
9935"" | " "*) ;;
9936*) reload_flag=" $reload_flag" ;;
9937esac
9938reload_cmds='$LD$reload_flag -o $output$reload_objs'
9939case $host_os in
9940 darwin*)
9941 if test "$GCC" = yes; then
9942 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9943 else
9944 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9945 fi
9946 ;;
9947esac
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957if test -n "$ac_tool_prefix"; then
9958 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9959set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009961$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009962if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009963 $as_echo_n "(cached) " >&6
9964else
9965 if test -n "$OBJDUMP"; then
9966 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9967else
9968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969for as_dir in $PATH
9970do
9971 IFS=$as_save_IFS
9972 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009973 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9975 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009977 break 2
9978 fi
9979done
cristy8b350f62009-11-15 23:12:43 +00009980 done
cristy3ed852e2009-09-05 21:47:34 +00009981IFS=$as_save_IFS
9982
9983fi
9984fi
9985OBJDUMP=$ac_cv_prog_OBJDUMP
9986if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009988$as_echo "$OBJDUMP" >&6; }
9989else
cristy8b350f62009-11-15 23:12:43 +00009990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009991$as_echo "no" >&6; }
9992fi
9993
9994
9995fi
9996if test -z "$ac_cv_prog_OBJDUMP"; then
9997 ac_ct_OBJDUMP=$OBJDUMP
9998 # Extract the first word of "objdump", so it can be a program name with args.
9999set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010001$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010002if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010003 $as_echo_n "(cached) " >&6
10004else
10005 if test -n "$ac_ct_OBJDUMP"; then
10006 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10007else
10008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009for as_dir in $PATH
10010do
10011 IFS=$as_save_IFS
10012 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10015 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000010016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010017 break 2
10018 fi
10019done
cristy8b350f62009-11-15 23:12:43 +000010020 done
cristy3ed852e2009-09-05 21:47:34 +000010021IFS=$as_save_IFS
10022
10023fi
10024fi
10025ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10026if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010028$as_echo "$ac_ct_OBJDUMP" >&6; }
10029else
cristy8b350f62009-11-15 23:12:43 +000010030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010031$as_echo "no" >&6; }
10032fi
10033
10034 if test "x$ac_ct_OBJDUMP" = x; then
10035 OBJDUMP="false"
10036 else
10037 case $cross_compiling:$ac_tool_warned in
10038yes:)
cristy8b350f62009-11-15 23:12:43 +000010039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10041ac_tool_warned=yes ;;
10042esac
10043 OBJDUMP=$ac_ct_OBJDUMP
10044 fi
10045else
10046 OBJDUMP="$ac_cv_prog_OBJDUMP"
10047fi
10048
10049test -z "$OBJDUMP" && OBJDUMP=objdump
10050
10051
10052
10053
10054
10055
cristy8b350f62009-11-15 23:12:43 +000010056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010057$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010058if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010059 $as_echo_n "(cached) " >&6
10060else
10061 lt_cv_file_magic_cmd='$MAGIC_CMD'
10062lt_cv_file_magic_test_file=
10063lt_cv_deplibs_check_method='unknown'
10064# Need to set the preceding variable on all platforms that support
10065# interlibrary dependencies.
10066# 'none' -- dependencies not supported.
10067# `unknown' -- same as none, but documents that we really don't know.
10068# 'pass_all' -- all dependencies passed with no checks.
10069# 'test_compile' -- check by making test program.
10070# 'file_magic [[regex]]' -- check by looking for files in library path
10071# which responds to the $file_magic_cmd with a given extended regex.
10072# If you have `file' or equivalent on your system and you're not sure
10073# whether `pass_all' will *always* work, you probably want this one.
10074
10075case $host_os in
10076aix[4-9]*)
10077 lt_cv_deplibs_check_method=pass_all
10078 ;;
10079
10080beos*)
10081 lt_cv_deplibs_check_method=pass_all
10082 ;;
10083
10084bsdi[45]*)
10085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10086 lt_cv_file_magic_cmd='/usr/bin/file -L'
10087 lt_cv_file_magic_test_file=/shlib/libc.so
10088 ;;
10089
10090cygwin*)
10091 # func_win32_libid is a shell function defined in ltmain.sh
10092 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10093 lt_cv_file_magic_cmd='func_win32_libid'
10094 ;;
10095
10096mingw* | pw32*)
10097 # Base MSYS/MinGW do not provide the 'file' command needed by
10098 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10099 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +000010100 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10102 lt_cv_file_magic_cmd='func_win32_libid'
10103 else
10104 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10105 lt_cv_file_magic_cmd='$OBJDUMP -f'
10106 fi
10107 ;;
10108
cristy18304f92009-11-22 15:48:26 +000010109cegcc)
cristy3ed852e2009-09-05 21:47:34 +000010110 # use the weaker test based on 'objdump'. See mingw*.
10111 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10112 lt_cv_file_magic_cmd='$OBJDUMP -f'
10113 ;;
10114
10115darwin* | rhapsody*)
10116 lt_cv_deplibs_check_method=pass_all
10117 ;;
10118
10119freebsd* | dragonfly*)
10120 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10121 case $host_cpu in
10122 i*86 )
10123 # Not sure whether the presence of OpenBSD here was a mistake.
10124 # Let's accept both of them until this is cleared up.
10125 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10126 lt_cv_file_magic_cmd=/usr/bin/file
10127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10128 ;;
10129 esac
10130 else
10131 lt_cv_deplibs_check_method=pass_all
10132 fi
10133 ;;
10134
10135gnu*)
10136 lt_cv_deplibs_check_method=pass_all
10137 ;;
10138
10139hpux10.20* | hpux11*)
10140 lt_cv_file_magic_cmd=/usr/bin/file
10141 case $host_cpu in
10142 ia64*)
10143 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10144 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10145 ;;
10146 hppa*64*)
cristy18304f92009-11-22 15:48:26 +000010147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
cristy3ed852e2009-09-05 21:47:34 +000010148 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10149 ;;
10150 *)
cristy18304f92009-11-22 15:48:26 +000010151 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 +000010152 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10153 ;;
10154 esac
10155 ;;
10156
10157interix[3-9]*)
10158 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10160 ;;
10161
10162irix5* | irix6* | nonstopux*)
10163 case $LD in
10164 *-32|*"-32 ") libmagic=32-bit;;
10165 *-n32|*"-n32 ") libmagic=N32;;
10166 *-64|*"-64 ") libmagic=64-bit;;
10167 *) libmagic=never-match;;
10168 esac
10169 lt_cv_deplibs_check_method=pass_all
10170 ;;
10171
10172# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000010173linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010174 lt_cv_deplibs_check_method=pass_all
10175 ;;
10176
10177netbsd*)
10178 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10180 else
10181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10182 fi
10183 ;;
10184
10185newos6*)
10186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10187 lt_cv_file_magic_cmd=/usr/bin/file
10188 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10189 ;;
10190
10191*nto* | *qnx*)
10192 lt_cv_deplibs_check_method=pass_all
10193 ;;
10194
10195openbsd*)
10196 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10198 else
10199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10200 fi
10201 ;;
10202
10203osf3* | osf4* | osf5*)
10204 lt_cv_deplibs_check_method=pass_all
10205 ;;
10206
10207rdos*)
10208 lt_cv_deplibs_check_method=pass_all
10209 ;;
10210
10211solaris*)
10212 lt_cv_deplibs_check_method=pass_all
10213 ;;
10214
10215sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10216 lt_cv_deplibs_check_method=pass_all
10217 ;;
10218
10219sysv4 | sysv4.3*)
10220 case $host_vendor in
10221 motorola)
10222 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]'
10223 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10224 ;;
10225 ncr)
10226 lt_cv_deplibs_check_method=pass_all
10227 ;;
10228 sequent)
10229 lt_cv_file_magic_cmd='/bin/file'
10230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10231 ;;
10232 sni)
10233 lt_cv_file_magic_cmd='/bin/file'
10234 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10235 lt_cv_file_magic_test_file=/lib/libc.so
10236 ;;
10237 siemens)
10238 lt_cv_deplibs_check_method=pass_all
10239 ;;
10240 pc)
10241 lt_cv_deplibs_check_method=pass_all
10242 ;;
10243 esac
10244 ;;
10245
10246tpf*)
10247 lt_cv_deplibs_check_method=pass_all
10248 ;;
10249esac
10250
10251fi
cristy8b350f62009-11-15 23:12:43 +000010252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010253$as_echo "$lt_cv_deplibs_check_method" >&6; }
10254file_magic_cmd=$lt_cv_file_magic_cmd
10255deplibs_check_method=$lt_cv_deplibs_check_method
10256test -z "$deplibs_check_method" && deplibs_check_method=unknown
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269if test -n "$ac_tool_prefix"; then
10270 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10271set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010273$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010274if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010275 $as_echo_n "(cached) " >&6
10276else
10277 if test -n "$AR"; then
10278 ac_cv_prog_AR="$AR" # Let the user override the test.
10279else
10280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281for as_dir in $PATH
10282do
10283 IFS=$as_save_IFS
10284 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010285 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10287 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010289 break 2
10290 fi
10291done
cristy8b350f62009-11-15 23:12:43 +000010292 done
cristy3ed852e2009-09-05 21:47:34 +000010293IFS=$as_save_IFS
10294
10295fi
10296fi
10297AR=$ac_cv_prog_AR
10298if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010300$as_echo "$AR" >&6; }
10301else
cristy8b350f62009-11-15 23:12:43 +000010302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010303$as_echo "no" >&6; }
10304fi
10305
10306
10307fi
10308if test -z "$ac_cv_prog_AR"; then
10309 ac_ct_AR=$AR
10310 # Extract the first word of "ar", so it can be a program name with args.
10311set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010313$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010314if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010315 $as_echo_n "(cached) " >&6
10316else
10317 if test -n "$ac_ct_AR"; then
10318 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10319else
10320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321for as_dir in $PATH
10322do
10323 IFS=$as_save_IFS
10324 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010325 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10327 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010329 break 2
10330 fi
10331done
cristy8b350f62009-11-15 23:12:43 +000010332 done
cristy3ed852e2009-09-05 21:47:34 +000010333IFS=$as_save_IFS
10334
10335fi
10336fi
10337ac_ct_AR=$ac_cv_prog_ac_ct_AR
10338if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010340$as_echo "$ac_ct_AR" >&6; }
10341else
cristy8b350f62009-11-15 23:12:43 +000010342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010343$as_echo "no" >&6; }
10344fi
10345
10346 if test "x$ac_ct_AR" = x; then
10347 AR="false"
10348 else
10349 case $cross_compiling:$ac_tool_warned in
10350yes:)
cristy8b350f62009-11-15 23:12:43 +000010351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10353ac_tool_warned=yes ;;
10354esac
10355 AR=$ac_ct_AR
10356 fi
10357else
10358 AR="$ac_cv_prog_AR"
10359fi
10360
10361test -z "$AR" && AR=ar
10362test -z "$AR_FLAGS" && AR_FLAGS=cru
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374if test -n "$ac_tool_prefix"; then
10375 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10376set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010378$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010379if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010380 $as_echo_n "(cached) " >&6
10381else
10382 if test -n "$STRIP"; then
10383 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10384else
10385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386for as_dir in $PATH
10387do
10388 IFS=$as_save_IFS
10389 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10392 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010394 break 2
10395 fi
10396done
cristy8b350f62009-11-15 23:12:43 +000010397 done
cristy3ed852e2009-09-05 21:47:34 +000010398IFS=$as_save_IFS
10399
10400fi
10401fi
10402STRIP=$ac_cv_prog_STRIP
10403if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010405$as_echo "$STRIP" >&6; }
10406else
cristy8b350f62009-11-15 23:12:43 +000010407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010408$as_echo "no" >&6; }
10409fi
10410
10411
10412fi
10413if test -z "$ac_cv_prog_STRIP"; then
10414 ac_ct_STRIP=$STRIP
10415 # Extract the first word of "strip", so it can be a program name with args.
10416set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010418$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010419if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010420 $as_echo_n "(cached) " >&6
10421else
10422 if test -n "$ac_ct_STRIP"; then
10423 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10424else
10425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426for as_dir in $PATH
10427do
10428 IFS=$as_save_IFS
10429 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010430 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10432 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010434 break 2
10435 fi
10436done
cristy8b350f62009-11-15 23:12:43 +000010437 done
cristy3ed852e2009-09-05 21:47:34 +000010438IFS=$as_save_IFS
10439
10440fi
10441fi
10442ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10443if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010445$as_echo "$ac_ct_STRIP" >&6; }
10446else
cristy8b350f62009-11-15 23:12:43 +000010447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010448$as_echo "no" >&6; }
10449fi
10450
10451 if test "x$ac_ct_STRIP" = x; then
10452 STRIP=":"
10453 else
10454 case $cross_compiling:$ac_tool_warned in
10455yes:)
cristy8b350f62009-11-15 23:12:43 +000010456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10458ac_tool_warned=yes ;;
10459esac
10460 STRIP=$ac_ct_STRIP
10461 fi
10462else
10463 STRIP="$ac_cv_prog_STRIP"
10464fi
10465
10466test -z "$STRIP" && STRIP=:
10467
10468
10469
10470
10471
10472
10473if test -n "$ac_tool_prefix"; then
10474 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10475set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010477$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010478if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010479 $as_echo_n "(cached) " >&6
10480else
10481 if test -n "$RANLIB"; then
10482 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10483else
10484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485for as_dir in $PATH
10486do
10487 IFS=$as_save_IFS
10488 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10491 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010493 break 2
10494 fi
10495done
cristy8b350f62009-11-15 23:12:43 +000010496 done
cristy3ed852e2009-09-05 21:47:34 +000010497IFS=$as_save_IFS
10498
10499fi
10500fi
10501RANLIB=$ac_cv_prog_RANLIB
10502if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010504$as_echo "$RANLIB" >&6; }
10505else
cristy8b350f62009-11-15 23:12:43 +000010506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010507$as_echo "no" >&6; }
10508fi
10509
10510
10511fi
10512if test -z "$ac_cv_prog_RANLIB"; then
10513 ac_ct_RANLIB=$RANLIB
10514 # Extract the first word of "ranlib", so it can be a program name with args.
10515set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010517$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010518if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010519 $as_echo_n "(cached) " >&6
10520else
10521 if test -n "$ac_ct_RANLIB"; then
10522 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10523else
10524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525for as_dir in $PATH
10526do
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010529 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10531 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010533 break 2
10534 fi
10535done
cristy8b350f62009-11-15 23:12:43 +000010536 done
cristy3ed852e2009-09-05 21:47:34 +000010537IFS=$as_save_IFS
10538
10539fi
10540fi
10541ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10542if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010544$as_echo "$ac_ct_RANLIB" >&6; }
10545else
cristy8b350f62009-11-15 23:12:43 +000010546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010547$as_echo "no" >&6; }
10548fi
10549
10550 if test "x$ac_ct_RANLIB" = x; then
10551 RANLIB=":"
10552 else
10553 case $cross_compiling:$ac_tool_warned in
10554yes:)
cristy8b350f62009-11-15 23:12:43 +000010555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10557ac_tool_warned=yes ;;
10558esac
10559 RANLIB=$ac_ct_RANLIB
10560 fi
10561else
10562 RANLIB="$ac_cv_prog_RANLIB"
10563fi
10564
10565test -z "$RANLIB" && RANLIB=:
10566
10567
10568
10569
10570
10571
10572# Determine commands to create old-style static archives.
10573old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10574old_postinstall_cmds='chmod 644 $oldlib'
10575old_postuninstall_cmds=
10576
10577if test -n "$RANLIB"; then
10578 case $host_os in
10579 openbsd*)
10580 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10581 ;;
10582 *)
10583 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10584 ;;
10585 esac
10586 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10587fi
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622# If no C compiler was specified, use CC.
10623LTCC=${LTCC-"$CC"}
10624
10625# If no C compiler flags were specified, use CFLAGS.
10626LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10627
10628# Allow CC to be a program name with arguments.
10629compiler=$CC
10630
10631
10632# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010634$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010635if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010636 $as_echo_n "(cached) " >&6
10637else
10638
10639# These are sane defaults that work on at least a few old systems.
10640# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10641
10642# Character class describing NM global symbol codes.
10643symcode='[BCDEGRST]'
10644
10645# Regexp to match symbols that can be accessed directly from C.
10646sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10647
10648# Define system-specific variables.
10649case $host_os in
10650aix*)
10651 symcode='[BCDT]'
10652 ;;
10653cygwin* | mingw* | pw32* | cegcc*)
10654 symcode='[ABCDGISTW]'
10655 ;;
10656hpux*)
10657 if test "$host_cpu" = ia64; then
10658 symcode='[ABCDEGRST]'
10659 fi
10660 ;;
10661irix* | nonstopux*)
10662 symcode='[BCDEGRST]'
10663 ;;
10664osf*)
10665 symcode='[BCDEGQRST]'
10666 ;;
10667solaris*)
10668 symcode='[BDRT]'
10669 ;;
10670sco3.2v5*)
10671 symcode='[DT]'
10672 ;;
10673sysv4.2uw2*)
10674 symcode='[DT]'
10675 ;;
10676sysv5* | sco5v6* | unixware* | OpenUNIX*)
10677 symcode='[ABDT]'
10678 ;;
10679sysv4)
10680 symcode='[DFNSTU]'
10681 ;;
10682esac
10683
10684# If we're using GNU nm, then use its standard symbol codes.
10685case `$NM -V 2>&1` in
10686*GNU* | *'with BFD'*)
10687 symcode='[ABCDGIRSTW]' ;;
10688esac
10689
10690# Transform an extracted symbol line into a proper C declaration.
10691# Some systems (esp. on ia64) link data and code symbols differently,
10692# so use this general approach.
10693lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10694
10695# Transform an extracted symbol line into symbol name and symbol address
10696lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10697lt_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'"
10698
10699# Handle CRLF in mingw tool chain
10700opt_cr=
10701case $build_os in
10702mingw*)
10703 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10704 ;;
10705esac
10706
10707# Try without a prefix underscore, then with it.
10708for ac_symprfx in "" "_"; do
10709
10710 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10711 symxfrm="\\1 $ac_symprfx\\2 \\2"
10712
10713 # Write the raw and C identifiers.
10714 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10715 # Fake it for dumpbin and say T for any non-static function
10716 # and D for any global variable.
10717 # Also find C++ and __fastcall symbols from MSVC++,
10718 # which start with @ or ?.
10719 lt_cv_sys_global_symbol_pipe="$AWK '"\
10720" {last_section=section; section=\$ 3};"\
10721" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10722" \$ 0!~/External *\|/{next};"\
10723" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10724" {if(hide[section]) next};"\
10725" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10726" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10727" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10728" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10729" ' prfx=^$ac_symprfx"
10730 else
10731 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10732 fi
10733
10734 # Check to see that the pipe works correctly.
10735 pipe_works=no
10736
10737 rm -f conftest*
10738 cat > conftest.$ac_ext <<_LT_EOF
10739#ifdef __cplusplus
10740extern "C" {
10741#endif
10742char nm_test_var;
10743void nm_test_func(void);
10744void nm_test_func(void){}
10745#ifdef __cplusplus
10746}
10747#endif
10748int main(){nm_test_var='a';nm_test_func();return(0);}
10749_LT_EOF
10750
cristy8b350f62009-11-15 23:12:43 +000010751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010752 (eval $ac_compile) 2>&5
10753 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10755 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010756 # Now try to grab the symbols.
10757 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +000010758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10759 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010760 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10762 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010763 # Try sorting and uniquifying the output.
10764 if sort "$nlist" | uniq > "$nlist"T; then
10765 mv -f "$nlist"T "$nlist"
10766 else
10767 rm -f "$nlist"T
10768 fi
10769
10770 # Make sure that we snagged all the symbols we need.
10771 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10772 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10773 cat <<_LT_EOF > conftest.$ac_ext
10774#ifdef __cplusplus
10775extern "C" {
10776#endif
10777
10778_LT_EOF
10779 # Now generate the symbol file.
10780 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10781
10782 cat <<_LT_EOF >> conftest.$ac_ext
10783
10784/* The mapping between symbol names and symbols. */
10785const struct {
10786 const char *name;
10787 void *address;
10788}
10789lt__PROGRAM__LTX_preloaded_symbols[] =
10790{
10791 { "@PROGRAM@", (void *) 0 },
10792_LT_EOF
10793 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10794 cat <<\_LT_EOF >> conftest.$ac_ext
10795 {0, (void *) 0}
10796};
10797
10798/* This works around a problem in FreeBSD linker */
10799#ifdef FREEBSD_WORKAROUND
10800static const void *lt_preloaded_setup() {
10801 return lt__PROGRAM__LTX_preloaded_symbols;
10802}
10803#endif
10804
10805#ifdef __cplusplus
10806}
10807#endif
10808_LT_EOF
10809 # Now try linking the two files.
10810 mv conftest.$ac_objext conftstm.$ac_objext
10811 lt_save_LIBS="$LIBS"
10812 lt_save_CFLAGS="$CFLAGS"
10813 LIBS="conftstm.$ac_objext"
10814 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010816 (eval $ac_link) 2>&5
10817 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10819 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010820 pipe_works=yes
10821 fi
10822 LIBS="$lt_save_LIBS"
10823 CFLAGS="$lt_save_CFLAGS"
10824 else
10825 echo "cannot find nm_test_func in $nlist" >&5
10826 fi
10827 else
10828 echo "cannot find nm_test_var in $nlist" >&5
10829 fi
10830 else
10831 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10832 fi
10833 else
10834 echo "$progname: failed program was:" >&5
10835 cat conftest.$ac_ext >&5
10836 fi
10837 rm -rf conftest* conftst*
10838
10839 # Do not use the global_symbol_pipe unless it works.
10840 if test "$pipe_works" = yes; then
10841 break
10842 else
10843 lt_cv_sys_global_symbol_pipe=
10844 fi
10845done
10846
10847fi
10848
10849if test -z "$lt_cv_sys_global_symbol_pipe"; then
10850 lt_cv_sys_global_symbol_to_cdecl=
10851fi
10852if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010854$as_echo "failed" >&6; }
10855else
cristy8b350f62009-11-15 23:12:43 +000010856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010857$as_echo "ok" >&6; }
10858fi
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010882if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010883 enableval=$enable_libtool_lock;
10884fi
10885
10886test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10887
10888# Some flags need to be propagated to the compiler or linker for good
10889# libtool support.
10890case $host in
10891ia64-*-hpux*)
10892 # Find out which ABI we are using.
10893 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010895 (eval $ac_compile) 2>&5
10896 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10898 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010899 case `/usr/bin/file conftest.$ac_objext` in
10900 *ELF-32*)
10901 HPUX_IA64_MODE="32"
10902 ;;
10903 *ELF-64*)
10904 HPUX_IA64_MODE="64"
10905 ;;
10906 esac
10907 fi
10908 rm -rf conftest*
10909 ;;
10910*-*-irix6*)
10911 # Find out which ABI we are using.
cristy0d3a6382010-04-26 00:45:55 +000010912 echo '#line 10912 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010914 (eval $ac_compile) 2>&5
10915 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10917 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010918 if test "$lt_cv_prog_gnu_ld" = yes; then
10919 case `/usr/bin/file conftest.$ac_objext` in
10920 *32-bit*)
10921 LD="${LD-ld} -melf32bsmip"
10922 ;;
10923 *N32*)
10924 LD="${LD-ld} -melf32bmipn32"
10925 ;;
10926 *64-bit*)
10927 LD="${LD-ld} -melf64bmip"
10928 ;;
10929 esac
10930 else
10931 case `/usr/bin/file conftest.$ac_objext` in
10932 *32-bit*)
10933 LD="${LD-ld} -32"
10934 ;;
10935 *N32*)
10936 LD="${LD-ld} -n32"
10937 ;;
10938 *64-bit*)
10939 LD="${LD-ld} -64"
10940 ;;
10941 esac
10942 fi
10943 fi
10944 rm -rf conftest*
10945 ;;
10946
10947x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10948s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10949 # Find out which ABI we are using.
10950 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010952 (eval $ac_compile) 2>&5
10953 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10955 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010956 case `/usr/bin/file conftest.o` in
10957 *32-bit*)
10958 case $host in
10959 x86_64-*kfreebsd*-gnu)
10960 LD="${LD-ld} -m elf_i386_fbsd"
10961 ;;
10962 x86_64-*linux*)
10963 LD="${LD-ld} -m elf_i386"
10964 ;;
10965 ppc64-*linux*|powerpc64-*linux*)
10966 LD="${LD-ld} -m elf32ppclinux"
10967 ;;
10968 s390x-*linux*)
10969 LD="${LD-ld} -m elf_s390"
10970 ;;
10971 sparc64-*linux*)
10972 LD="${LD-ld} -m elf32_sparc"
10973 ;;
10974 esac
10975 ;;
10976 *64-bit*)
10977 case $host in
10978 x86_64-*kfreebsd*-gnu)
10979 LD="${LD-ld} -m elf_x86_64_fbsd"
10980 ;;
10981 x86_64-*linux*)
10982 LD="${LD-ld} -m elf_x86_64"
10983 ;;
10984 ppc*-*linux*|powerpc*-*linux*)
10985 LD="${LD-ld} -m elf64ppc"
10986 ;;
10987 s390*-*linux*|s390*-*tpf*)
10988 LD="${LD-ld} -m elf64_s390"
10989 ;;
10990 sparc*-*linux*)
10991 LD="${LD-ld} -m elf64_sparc"
10992 ;;
10993 esac
10994 ;;
10995 esac
10996 fi
10997 rm -rf conftest*
10998 ;;
10999
11000*-*-sco3.2v5*)
11001 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11002 SAVE_CFLAGS="$CFLAGS"
11003 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000011004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011005$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011006if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011007 $as_echo_n "(cached) " >&6
11008else
11009 ac_ext=c
11010ac_cpp='$CPP $CPPFLAGS'
11011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11013ac_compiler_gnu=$ac_cv_c_compiler_gnu
11014
cristy8b350f62009-11-15 23:12:43 +000011015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011016/* end confdefs.h. */
11017
11018int
11019main ()
11020{
11021
11022 ;
11023 return 0;
11024}
11025_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011026if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011027 lt_cv_cc_needs_belf=yes
11028else
cristy8b350f62009-11-15 23:12:43 +000011029 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000011030fi
cristy8b350f62009-11-15 23:12:43 +000011031rm -f core conftest.err conftest.$ac_objext \
11032 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011033 ac_ext=c
11034ac_cpp='$CPP $CPPFLAGS'
11035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11037ac_compiler_gnu=$ac_cv_c_compiler_gnu
11038
11039fi
cristy8b350f62009-11-15 23:12:43 +000011040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011041$as_echo "$lt_cv_cc_needs_belf" >&6; }
11042 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11043 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11044 CFLAGS="$SAVE_CFLAGS"
11045 fi
11046 ;;
11047sparc*-*solaris*)
11048 # Find out which ABI we are using.
11049 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011051 (eval $ac_compile) 2>&5
11052 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11054 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011055 case `/usr/bin/file conftest.o` in
11056 *64-bit*)
11057 case $lt_cv_prog_gnu_ld in
11058 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11059 *)
11060 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11061 LD="${LD-ld} -64"
11062 fi
11063 ;;
11064 esac
11065 ;;
11066 esac
11067 fi
11068 rm -rf conftest*
11069 ;;
11070esac
11071
11072need_locks="$enable_libtool_lock"
11073
11074
11075 case $host_os in
11076 rhapsody* | darwin*)
11077 if test -n "$ac_tool_prefix"; then
11078 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11079set dummy ${ac_tool_prefix}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_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011083 $as_echo_n "(cached) " >&6
11084else
11085 if test -n "$DSYMUTIL"; then
11086 ac_cv_prog_DSYMUTIL="$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_DSYMUTIL="${ac_tool_prefix}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
11105DSYMUTIL=$ac_cv_prog_DSYMUTIL
11106if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011108$as_echo "$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
11115fi
11116if test -z "$ac_cv_prog_DSYMUTIL"; then
11117 ac_ct_DSYMUTIL=$DSYMUTIL
11118 # Extract the first word of "dsymutil", so it can be a program name with args.
11119set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011121$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011122if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011123 $as_echo_n "(cached) " >&6
11124else
11125 if test -n "$ac_ct_DSYMUTIL"; then
11126 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11127else
11128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129for as_dir in $PATH
11130do
11131 IFS=$as_save_IFS
11132 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11135 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011137 break 2
11138 fi
11139done
cristy8b350f62009-11-15 23:12:43 +000011140 done
cristy3ed852e2009-09-05 21:47:34 +000011141IFS=$as_save_IFS
11142
11143fi
11144fi
11145ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11146if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011148$as_echo "$ac_ct_DSYMUTIL" >&6; }
11149else
cristy8b350f62009-11-15 23:12:43 +000011150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011151$as_echo "no" >&6; }
11152fi
11153
11154 if test "x$ac_ct_DSYMUTIL" = x; then
11155 DSYMUTIL=":"
11156 else
11157 case $cross_compiling:$ac_tool_warned in
11158yes:)
cristy8b350f62009-11-15 23:12:43 +000011159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11161ac_tool_warned=yes ;;
11162esac
11163 DSYMUTIL=$ac_ct_DSYMUTIL
11164 fi
11165else
11166 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11167fi
11168
11169 if test -n "$ac_tool_prefix"; then
11170 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11171set dummy ${ac_tool_prefix}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_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011175 $as_echo_n "(cached) " >&6
11176else
11177 if test -n "$NMEDIT"; then
11178 ac_cv_prog_NMEDIT="$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_NMEDIT="${ac_tool_prefix}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
11197NMEDIT=$ac_cv_prog_NMEDIT
11198if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011200$as_echo "$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
11207fi
11208if test -z "$ac_cv_prog_NMEDIT"; then
11209 ac_ct_NMEDIT=$NMEDIT
11210 # Extract the first word of "nmedit", so it can be a program name with args.
11211set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011213$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011214if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011215 $as_echo_n "(cached) " >&6
11216else
11217 if test -n "$ac_ct_NMEDIT"; then
11218 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11219else
11220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221for as_dir in $PATH
11222do
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11227 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011229 break 2
11230 fi
11231done
cristy8b350f62009-11-15 23:12:43 +000011232 done
cristy3ed852e2009-09-05 21:47:34 +000011233IFS=$as_save_IFS
11234
11235fi
11236fi
11237ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11238if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011240$as_echo "$ac_ct_NMEDIT" >&6; }
11241else
cristy8b350f62009-11-15 23:12:43 +000011242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011243$as_echo "no" >&6; }
11244fi
11245
11246 if test "x$ac_ct_NMEDIT" = x; then
11247 NMEDIT=":"
11248 else
11249 case $cross_compiling:$ac_tool_warned in
11250yes:)
cristy8b350f62009-11-15 23:12:43 +000011251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11253ac_tool_warned=yes ;;
11254esac
11255 NMEDIT=$ac_ct_NMEDIT
11256 fi
11257else
11258 NMEDIT="$ac_cv_prog_NMEDIT"
11259fi
11260
11261 if test -n "$ac_tool_prefix"; then
11262 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11263set dummy ${ac_tool_prefix}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_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011267 $as_echo_n "(cached) " >&6
11268else
11269 if test -n "$LIPO"; then
11270 ac_cv_prog_LIPO="$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_LIPO="${ac_tool_prefix}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
11289LIPO=$ac_cv_prog_LIPO
11290if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011292$as_echo "$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
11299fi
11300if test -z "$ac_cv_prog_LIPO"; then
11301 ac_ct_LIPO=$LIPO
11302 # Extract the first word of "lipo", so it can be a program name with args.
11303set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011305$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011306if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011307 $as_echo_n "(cached) " >&6
11308else
11309 if test -n "$ac_ct_LIPO"; then
11310 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11311else
11312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313for as_dir in $PATH
11314do
11315 IFS=$as_save_IFS
11316 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011317 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11319 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011321 break 2
11322 fi
11323done
cristy8b350f62009-11-15 23:12:43 +000011324 done
cristy3ed852e2009-09-05 21:47:34 +000011325IFS=$as_save_IFS
11326
11327fi
11328fi
11329ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11330if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011332$as_echo "$ac_ct_LIPO" >&6; }
11333else
cristy8b350f62009-11-15 23:12:43 +000011334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011335$as_echo "no" >&6; }
11336fi
11337
11338 if test "x$ac_ct_LIPO" = x; then
11339 LIPO=":"
11340 else
11341 case $cross_compiling:$ac_tool_warned in
11342yes:)
cristy8b350f62009-11-15 23:12:43 +000011343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11345ac_tool_warned=yes ;;
11346esac
11347 LIPO=$ac_ct_LIPO
11348 fi
11349else
11350 LIPO="$ac_cv_prog_LIPO"
11351fi
11352
11353 if test -n "$ac_tool_prefix"; then
11354 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11355set dummy ${ac_tool_prefix}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_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011359 $as_echo_n "(cached) " >&6
11360else
11361 if test -n "$OTOOL"; then
11362 ac_cv_prog_OTOOL="$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_OTOOL="${ac_tool_prefix}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
11381OTOOL=$ac_cv_prog_OTOOL
11382if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011384$as_echo "$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
11391fi
11392if test -z "$ac_cv_prog_OTOOL"; then
11393 ac_ct_OTOOL=$OTOOL
11394 # Extract the first word of "otool", so it can be a program name with args.
11395set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011397$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011398if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011399 $as_echo_n "(cached) " >&6
11400else
11401 if test -n "$ac_ct_OTOOL"; then
11402 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11403else
11404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405for as_dir in $PATH
11406do
11407 IFS=$as_save_IFS
11408 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011409 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11411 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011413 break 2
11414 fi
11415done
cristy8b350f62009-11-15 23:12:43 +000011416 done
cristy3ed852e2009-09-05 21:47:34 +000011417IFS=$as_save_IFS
11418
11419fi
11420fi
11421ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11422if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011424$as_echo "$ac_ct_OTOOL" >&6; }
11425else
cristy8b350f62009-11-15 23:12:43 +000011426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011427$as_echo "no" >&6; }
11428fi
11429
11430 if test "x$ac_ct_OTOOL" = x; then
11431 OTOOL=":"
11432 else
11433 case $cross_compiling:$ac_tool_warned in
11434yes:)
cristy8b350f62009-11-15 23:12:43 +000011435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11437ac_tool_warned=yes ;;
11438esac
11439 OTOOL=$ac_ct_OTOOL
11440 fi
11441else
11442 OTOOL="$ac_cv_prog_OTOOL"
11443fi
11444
11445 if test -n "$ac_tool_prefix"; then
11446 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11447set dummy ${ac_tool_prefix}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_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011451 $as_echo_n "(cached) " >&6
11452else
11453 if test -n "$OTOOL64"; then
11454 ac_cv_prog_OTOOL64="$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_OTOOL64="${ac_tool_prefix}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
11473OTOOL64=$ac_cv_prog_OTOOL64
11474if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011476$as_echo "$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
11483fi
11484if test -z "$ac_cv_prog_OTOOL64"; then
11485 ac_ct_OTOOL64=$OTOOL64
11486 # Extract the first word of "otool64", so it can be a program name with args.
11487set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011489$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011490if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011491 $as_echo_n "(cached) " >&6
11492else
11493 if test -n "$ac_ct_OTOOL64"; then
11494 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11495else
11496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497for as_dir in $PATH
11498do
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11503 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011505 break 2
11506 fi
11507done
cristy8b350f62009-11-15 23:12:43 +000011508 done
cristy3ed852e2009-09-05 21:47:34 +000011509IFS=$as_save_IFS
11510
11511fi
11512fi
11513ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11514if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011516$as_echo "$ac_ct_OTOOL64" >&6; }
11517else
cristy8b350f62009-11-15 23:12:43 +000011518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011519$as_echo "no" >&6; }
11520fi
11521
11522 if test "x$ac_ct_OTOOL64" = x; then
11523 OTOOL64=":"
11524 else
11525 case $cross_compiling:$ac_tool_warned in
11526yes:)
cristy8b350f62009-11-15 23:12:43 +000011527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11529ac_tool_warned=yes ;;
11530esac
11531 OTOOL64=$ac_ct_OTOOL64
11532 fi
11533else
11534 OTOOL64="$ac_cv_prog_OTOOL64"
11535fi
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
cristy8b350f62009-11-15 23:12:43 +000011563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011564$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011565if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011566 $as_echo_n "(cached) " >&6
11567else
11568 lt_cv_apple_cc_single_mod=no
11569 if test -z "${LT_MULTI_MODULE}"; then
11570 # By default we will add the -single_module flag. You can override
11571 # by either setting the environment variable LT_MULTI_MODULE
11572 # non-empty at configure time, or by adding -multi_module to the
11573 # link flags.
11574 rm -rf libconftest.dylib*
11575 echo "int foo(void){return 1;}" > conftest.c
11576 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11577-dynamiclib -Wl,-single_module conftest.c" >&5
11578 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11579 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11580 _lt_result=$?
11581 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11582 lt_cv_apple_cc_single_mod=yes
11583 else
11584 cat conftest.err >&5
11585 fi
11586 rm -rf libconftest.dylib*
11587 rm -f conftest.*
11588 fi
11589fi
cristy8b350f62009-11-15 23:12:43 +000011590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011591$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011593$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011594if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011595 $as_echo_n "(cached) " >&6
11596else
11597 lt_cv_ld_exported_symbols_list=no
11598 save_LDFLAGS=$LDFLAGS
11599 echo "_main" > conftest.sym
11600 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011602/* end confdefs.h. */
11603
11604int
11605main ()
11606{
11607
11608 ;
11609 return 0;
11610}
11611_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011612if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011613 lt_cv_ld_exported_symbols_list=yes
11614else
cristy8b350f62009-11-15 23:12:43 +000011615 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011616fi
cristy8b350f62009-11-15 23:12:43 +000011617rm -f core conftest.err conftest.$ac_objext \
11618 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011619 LDFLAGS="$save_LDFLAGS"
11620
11621fi
cristy8b350f62009-11-15 23:12:43 +000011622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011623$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11624 case $host_os in
11625 rhapsody* | darwin1.[012])
11626 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11627 darwin1.*)
11628 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11629 darwin*) # darwin 5.x on
11630 # if running on 10.5 or later, the deployment target defaults
11631 # to the OS version, if on x86, and 10.4, the deployment
11632 # target defaults to 10.4. Don't you love it?
11633 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11634 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11635 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11636 10.[012]*)
11637 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11638 10.*)
11639 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11640 esac
11641 ;;
11642 esac
11643 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11644 _lt_dar_single_mod='$single_module'
11645 fi
11646 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11647 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11648 else
11649 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11650 fi
cristy18304f92009-11-22 15:48:26 +000011651 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000011652 _lt_dsymutil='~$DSYMUTIL $lib || :'
11653 else
11654 _lt_dsymutil=
11655 fi
11656 ;;
11657 esac
11658
cristy3ed852e2009-09-05 21:47:34 +000011659for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011660do :
11661 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11662"
11663if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011664 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011665#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011666_ACEOF
11667
11668fi
11669
11670done
11671
11672
11673
cristy18304f92009-11-22 15:48:26 +000011674ac_ext=cpp
11675ac_cpp='$CXXCPP $CPPFLAGS'
11676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11679if test -z "$CXX"; then
11680 if test -n "$CCC"; then
11681 CXX=$CCC
11682 else
11683 if test -n "$ac_tool_prefix"; then
11684 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11685 do
11686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11687set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11689$as_echo_n "checking for $ac_word... " >&6; }
11690if test "${ac_cv_prog_CXX+set}" = set; then :
11691 $as_echo_n "(cached) " >&6
11692else
11693 if test -n "$CXX"; then
11694 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11695else
11696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697for as_dir in $PATH
11698do
11699 IFS=$as_save_IFS
11700 test -z "$as_dir" && as_dir=.
11701 for ac_exec_ext in '' $ac_executable_extensions; do
11702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11703 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11705 break 2
11706 fi
11707done
11708 done
11709IFS=$as_save_IFS
11710
11711fi
11712fi
11713CXX=$ac_cv_prog_CXX
11714if test -n "$CXX"; then
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11716$as_echo "$CXX" >&6; }
11717else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719$as_echo "no" >&6; }
11720fi
11721
11722
11723 test -n "$CXX" && break
11724 done
11725fi
11726if test -z "$CXX"; then
11727 ac_ct_CXX=$CXX
11728 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11729do
11730 # Extract the first word of "$ac_prog", so it can be a program name with args.
11731set dummy $ac_prog; ac_word=$2
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11733$as_echo_n "checking for $ac_word... " >&6; }
11734if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11735 $as_echo_n "(cached) " >&6
11736else
11737 if test -n "$ac_ct_CXX"; then
11738 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11739else
11740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741for as_dir in $PATH
11742do
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11747 ac_cv_prog_ac_ct_CXX="$ac_prog"
11748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 break 2
11750 fi
11751done
11752 done
11753IFS=$as_save_IFS
11754
11755fi
11756fi
11757ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11758if test -n "$ac_ct_CXX"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11760$as_echo "$ac_ct_CXX" >&6; }
11761else
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763$as_echo "no" >&6; }
11764fi
11765
11766
11767 test -n "$ac_ct_CXX" && break
11768done
11769
11770 if test "x$ac_ct_CXX" = x; then
11771 CXX="g++"
11772 else
11773 case $cross_compiling:$ac_tool_warned in
11774yes:)
11775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11777ac_tool_warned=yes ;;
11778esac
11779 CXX=$ac_ct_CXX
11780 fi
11781fi
11782
11783 fi
11784fi
11785# Provide some information about the compiler.
11786$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11787set X $ac_compile
11788ac_compiler=$2
11789for ac_option in --version -v -V -qversion; do
11790 { { ac_try="$ac_compiler $ac_option >&5"
11791case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11794esac
11795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11796$as_echo "$ac_try_echo"; } >&5
11797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11798 ac_status=$?
11799 if test -s conftest.err; then
11800 sed '10a\
11801... rest of stderr output deleted ...
11802 10q' conftest.err >conftest.er1
11803 cat conftest.er1 >&5
11804 fi
11805 rm -f conftest.er1 conftest.err
11806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11807 test $ac_status = 0; }
11808done
11809
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11811$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11812if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
11814else
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816/* end confdefs.h. */
11817
11818int
11819main ()
11820{
11821#ifndef __GNUC__
11822 choke me
11823#endif
11824
11825 ;
11826 return 0;
11827}
11828_ACEOF
11829if ac_fn_cxx_try_compile "$LINENO"; then :
11830 ac_compiler_gnu=yes
11831else
11832 ac_compiler_gnu=no
11833fi
11834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11836
11837fi
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11839$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11840if test $ac_compiler_gnu = yes; then
11841 GXX=yes
11842else
11843 GXX=
11844fi
11845ac_test_CXXFLAGS=${CXXFLAGS+set}
11846ac_save_CXXFLAGS=$CXXFLAGS
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11848$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11849if test "${ac_cv_prog_cxx_g+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
11851else
11852 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11853 ac_cxx_werror_flag=yes
11854 ac_cv_prog_cxx_g=no
11855 CXXFLAGS="-g"
11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857/* end confdefs.h. */
11858
11859int
11860main ()
11861{
11862
11863 ;
11864 return 0;
11865}
11866_ACEOF
11867if ac_fn_cxx_try_compile "$LINENO"; then :
11868 ac_cv_prog_cxx_g=yes
11869else
11870 CXXFLAGS=""
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872/* end confdefs.h. */
11873
11874int
11875main ()
11876{
11877
11878 ;
11879 return 0;
11880}
11881_ACEOF
11882if ac_fn_cxx_try_compile "$LINENO"; then :
11883
11884else
11885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11886 CXXFLAGS="-g"
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888/* end confdefs.h. */
11889
11890int
11891main ()
11892{
11893
11894 ;
11895 return 0;
11896}
11897_ACEOF
11898if ac_fn_cxx_try_compile "$LINENO"; then :
11899 ac_cv_prog_cxx_g=yes
11900fi
11901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11902fi
11903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904fi
11905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11907fi
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11909$as_echo "$ac_cv_prog_cxx_g" >&6; }
11910if test "$ac_test_CXXFLAGS" = set; then
11911 CXXFLAGS=$ac_save_CXXFLAGS
11912elif test $ac_cv_prog_cxx_g = yes; then
11913 if test "$GXX" = yes; then
11914 CXXFLAGS="-g -O2"
11915 else
11916 CXXFLAGS="-g"
11917 fi
11918else
11919 if test "$GXX" = yes; then
11920 CXXFLAGS="-O2"
11921 else
11922 CXXFLAGS=
11923 fi
11924fi
11925ac_ext=c
11926ac_cpp='$CPP $CPPFLAGS'
11927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11929ac_compiler_gnu=$ac_cv_c_compiler_gnu
11930
11931depcc="$CXX" am_compiler_list=
11932
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11934$as_echo_n "checking dependency style of $depcc... " >&6; }
11935if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11936 $as_echo_n "(cached) " >&6
11937else
11938 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11939 # We make a subdir and do the tests there. Otherwise we can end up
11940 # making bogus files that we don't know about and never remove. For
11941 # instance it was reported that on HP-UX the gcc test will end up
11942 # making a dummy file named `D' -- because `-MD' means `put the output
11943 # in D'.
11944 mkdir conftest.dir
11945 # Copy depcomp to subdir because otherwise we won't find it if we're
11946 # using a relative directory.
11947 cp "$am_depcomp" conftest.dir
11948 cd conftest.dir
11949 # We will build objects and dependencies in a subdirectory because
11950 # it helps to detect inapplicable dependency modes. For instance
11951 # both Tru64's cc and ICC support -MD to output dependencies as a
11952 # side effect of compilation, but ICC will put the dependencies in
11953 # the current directory while Tru64 will put them in the object
11954 # directory.
11955 mkdir sub
11956
11957 am_cv_CXX_dependencies_compiler_type=none
11958 if test "$am_compiler_list" = ""; then
11959 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11960 fi
11961 am__universal=false
11962 case " $depcc " in #(
11963 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11964 esac
11965
11966 for depmode in $am_compiler_list; do
11967 # Setup a source with many dependencies, because some compilers
11968 # like to wrap large dependency lists on column 80 (with \), and
11969 # we should not choose a depcomp mode which is confused by this.
11970 #
11971 # We need to recreate these files for each test, as the compiler may
11972 # overwrite some of them when testing with obscure command lines.
11973 # This happens at least with the AIX C compiler.
11974 : > sub/conftest.c
11975 for i in 1 2 3 4 5 6; do
11976 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11977 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11978 # Solaris 8's {/usr,}/bin/sh.
11979 touch sub/conftst$i.h
11980 done
11981 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11982
11983 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11984 # mode. It turns out that the SunPro C++ compiler does not properly
11985 # handle `-M -o', and we need to detect this. Also, some Intel
11986 # versions had trouble with output in subdirs
11987 am__obj=sub/conftest.${OBJEXT-o}
11988 am__minus_obj="-o $am__obj"
11989 case $depmode in
11990 gcc)
11991 # This depmode causes a compiler race in universal mode.
11992 test "$am__universal" = false || continue
11993 ;;
11994 nosideeffect)
11995 # after this tag, mechanisms are not by side-effect, so they'll
11996 # only be used when explicitly requested
11997 if test "x$enable_dependency_tracking" = xyes; then
11998 continue
11999 else
12000 break
12001 fi
12002 ;;
12003 msvisualcpp | msvcmsys)
12004 # This compiler won't grok `-c -o', but also, the minuso test has
12005 # not run yet. These depmodes are late enough in the game, and
12006 # so weak that their functioning should not be impacted.
12007 am__obj=conftest.${OBJEXT-o}
12008 am__minus_obj=
12009 ;;
12010 none) break ;;
12011 esac
12012 if depmode=$depmode \
12013 source=sub/conftest.c object=$am__obj \
12014 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12015 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12016 >/dev/null 2>conftest.err &&
12017 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12018 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12019 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12020 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12021 # icc doesn't choke on unknown options, it will just issue warnings
12022 # or remarks (even with -Werror). So we grep stderr for any message
12023 # that says an option was ignored or not supported.
12024 # When given -MP, icc 7.0 and 7.1 complain thusly:
12025 # icc: Command line warning: ignoring option '-M'; no argument required
12026 # The diagnosis changed in icc 8.0:
12027 # icc: Command line remark: option '-MP' not supported
12028 if (grep 'ignoring option' conftest.err ||
12029 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12030 am_cv_CXX_dependencies_compiler_type=$depmode
12031 break
12032 fi
12033 fi
12034 done
12035
12036 cd ..
12037 rm -rf conftest.dir
12038else
12039 am_cv_CXX_dependencies_compiler_type=none
12040fi
12041
12042fi
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12044$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12045CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12046
12047 if
12048 test "x$enable_dependency_tracking" != xno \
12049 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12050 am__fastdepCXX_TRUE=
12051 am__fastdepCXX_FALSE='#'
12052else
12053 am__fastdepCXX_TRUE='#'
12054 am__fastdepCXX_FALSE=
12055fi
12056
12057
12058if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12059 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12060 (test "X$CXX" != "Xg++"))) ; then
12061 ac_ext=cpp
12062ac_cpp='$CXXCPP $CPPFLAGS'
12063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12067$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12068if test -z "$CXXCPP"; then
12069 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12070 $as_echo_n "(cached) " >&6
12071else
12072 # Double quotes because CXXCPP needs to be expanded
12073 for CXXCPP in "$CXX -E" "/lib/cpp"
12074 do
12075 ac_preproc_ok=false
12076for ac_cxx_preproc_warn_flag in '' yes
12077do
12078 # Use a header file that comes with gcc, so configuring glibc
12079 # with a fresh cross-compiler works.
12080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12081 # <limits.h> exists even on freestanding compilers.
12082 # On the NeXT, cc -E runs the code through the compiler's parser,
12083 # not just through cpp. "Syntax error" is here to catch this case.
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085/* end confdefs.h. */
12086#ifdef __STDC__
12087# include <limits.h>
12088#else
12089# include <assert.h>
12090#endif
12091 Syntax error
12092_ACEOF
12093if ac_fn_cxx_try_cpp "$LINENO"; then :
12094
12095else
12096 # Broken: fails on valid input.
12097continue
12098fi
12099rm -f conftest.err conftest.$ac_ext
12100
12101 # OK, works on sane cases. Now check whether nonexistent headers
12102 # can be detected and how.
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104/* end confdefs.h. */
12105#include <ac_nonexistent.h>
12106_ACEOF
12107if ac_fn_cxx_try_cpp "$LINENO"; then :
12108 # Broken: success on invalid input.
12109continue
12110else
12111 # Passes both tests.
12112ac_preproc_ok=:
12113break
12114fi
12115rm -f conftest.err conftest.$ac_ext
12116
12117done
12118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12119rm -f conftest.err conftest.$ac_ext
12120if $ac_preproc_ok; then :
12121 break
12122fi
12123
12124 done
12125 ac_cv_prog_CXXCPP=$CXXCPP
12126
12127fi
12128 CXXCPP=$ac_cv_prog_CXXCPP
12129else
12130 ac_cv_prog_CXXCPP=$CXXCPP
12131fi
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12133$as_echo "$CXXCPP" >&6; }
12134ac_preproc_ok=false
12135for ac_cxx_preproc_warn_flag in '' yes
12136do
12137 # Use a header file that comes with gcc, so configuring glibc
12138 # with a fresh cross-compiler works.
12139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12140 # <limits.h> exists even on freestanding compilers.
12141 # On the NeXT, cc -E runs the code through the compiler's parser,
12142 # not just through cpp. "Syntax error" is here to catch this case.
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144/* end confdefs.h. */
12145#ifdef __STDC__
12146# include <limits.h>
12147#else
12148# include <assert.h>
12149#endif
12150 Syntax error
12151_ACEOF
12152if ac_fn_cxx_try_cpp "$LINENO"; then :
12153
12154else
12155 # Broken: fails on valid input.
12156continue
12157fi
12158rm -f conftest.err conftest.$ac_ext
12159
12160 # OK, works on sane cases. Now check whether nonexistent headers
12161 # can be detected and how.
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163/* end confdefs.h. */
12164#include <ac_nonexistent.h>
12165_ACEOF
12166if ac_fn_cxx_try_cpp "$LINENO"; then :
12167 # Broken: success on invalid input.
12168continue
12169else
12170 # Passes both tests.
12171ac_preproc_ok=:
12172break
12173fi
12174rm -f conftest.err conftest.$ac_ext
12175
12176done
12177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12178rm -f conftest.err conftest.$ac_ext
12179if $ac_preproc_ok; then :
12180
12181else
12182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12184_lt_caught_CXX_error=yes; }
12185fi
12186
12187ac_ext=c
12188ac_cpp='$CPP $CPPFLAGS'
12189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12191ac_compiler_gnu=$ac_cv_c_compiler_gnu
12192
12193else
12194 _lt_caught_CXX_error=yes
12195fi
12196
12197
cristy3ed852e2009-09-05 21:47:34 +000012198
12199
12200
12201# Set options
12202enable_win32_dll=yes
12203
12204case $host in
cristy18304f92009-11-22 15:48:26 +000012205*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000012206 if test -n "$ac_tool_prefix"; then
12207 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12208set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012210$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012211if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012212 $as_echo_n "(cached) " >&6
12213else
12214 if test -n "$AS"; then
12215 ac_cv_prog_AS="$AS" # Let the user override the test.
12216else
12217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218for as_dir in $PATH
12219do
12220 IFS=$as_save_IFS
12221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12224 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000012225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012226 break 2
12227 fi
12228done
cristy8b350f62009-11-15 23:12:43 +000012229 done
cristy3ed852e2009-09-05 21:47:34 +000012230IFS=$as_save_IFS
12231
12232fi
12233fi
12234AS=$ac_cv_prog_AS
12235if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000012236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012237$as_echo "$AS" >&6; }
12238else
cristy8b350f62009-11-15 23:12:43 +000012239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012240$as_echo "no" >&6; }
12241fi
12242
12243
12244fi
12245if test -z "$ac_cv_prog_AS"; then
12246 ac_ct_AS=$AS
12247 # Extract the first word of "as", so it can be a program name with args.
12248set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012250$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012251if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012252 $as_echo_n "(cached) " >&6
12253else
12254 if test -n "$ac_ct_AS"; then
12255 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12256else
12257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258for as_dir in $PATH
12259do
12260 IFS=$as_save_IFS
12261 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12264 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000012265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012266 break 2
12267 fi
12268done
cristy8b350f62009-11-15 23:12:43 +000012269 done
cristy3ed852e2009-09-05 21:47:34 +000012270IFS=$as_save_IFS
12271
12272fi
12273fi
12274ac_ct_AS=$ac_cv_prog_ac_ct_AS
12275if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000012276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012277$as_echo "$ac_ct_AS" >&6; }
12278else
cristy8b350f62009-11-15 23:12:43 +000012279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012280$as_echo "no" >&6; }
12281fi
12282
12283 if test "x$ac_ct_AS" = x; then
12284 AS="false"
12285 else
12286 case $cross_compiling:$ac_tool_warned in
12287yes:)
cristy8b350f62009-11-15 23:12:43 +000012288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12290ac_tool_warned=yes ;;
12291esac
12292 AS=$ac_ct_AS
12293 fi
12294else
12295 AS="$ac_cv_prog_AS"
12296fi
12297
12298 if test -n "$ac_tool_prefix"; then
12299 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12300set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012302$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012303if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012304 $as_echo_n "(cached) " >&6
12305else
12306 if test -n "$DLLTOOL"; then
12307 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12308else
12309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310for as_dir in $PATH
12311do
12312 IFS=$as_save_IFS
12313 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12316 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000012317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012318 break 2
12319 fi
12320done
cristy8b350f62009-11-15 23:12:43 +000012321 done
cristy3ed852e2009-09-05 21:47:34 +000012322IFS=$as_save_IFS
12323
12324fi
12325fi
12326DLLTOOL=$ac_cv_prog_DLLTOOL
12327if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012329$as_echo "$DLLTOOL" >&6; }
12330else
cristy8b350f62009-11-15 23:12:43 +000012331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012332$as_echo "no" >&6; }
12333fi
12334
12335
12336fi
12337if test -z "$ac_cv_prog_DLLTOOL"; then
12338 ac_ct_DLLTOOL=$DLLTOOL
12339 # Extract the first word of "dlltool", so it can be a program name with args.
12340set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012342$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012343if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012344 $as_echo_n "(cached) " >&6
12345else
12346 if test -n "$ac_ct_DLLTOOL"; then
12347 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12348else
12349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350for as_dir in $PATH
12351do
12352 IFS=$as_save_IFS
12353 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12356 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000012357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012358 break 2
12359 fi
12360done
cristy8b350f62009-11-15 23:12:43 +000012361 done
cristy3ed852e2009-09-05 21:47:34 +000012362IFS=$as_save_IFS
12363
12364fi
12365fi
12366ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12367if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012369$as_echo "$ac_ct_DLLTOOL" >&6; }
12370else
cristy8b350f62009-11-15 23:12:43 +000012371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012372$as_echo "no" >&6; }
12373fi
12374
12375 if test "x$ac_ct_DLLTOOL" = x; then
12376 DLLTOOL="false"
12377 else
12378 case $cross_compiling:$ac_tool_warned in
12379yes:)
cristy8b350f62009-11-15 23:12:43 +000012380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12382ac_tool_warned=yes ;;
12383esac
12384 DLLTOOL=$ac_ct_DLLTOOL
12385 fi
12386else
12387 DLLTOOL="$ac_cv_prog_DLLTOOL"
12388fi
12389
12390 if test -n "$ac_tool_prefix"; then
12391 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12392set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012394$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012395if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012396 $as_echo_n "(cached) " >&6
12397else
12398 if test -n "$OBJDUMP"; then
12399 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12400else
12401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402for as_dir in $PATH
12403do
12404 IFS=$as_save_IFS
12405 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12408 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000012409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012410 break 2
12411 fi
12412done
cristy8b350f62009-11-15 23:12:43 +000012413 done
cristy3ed852e2009-09-05 21:47:34 +000012414IFS=$as_save_IFS
12415
12416fi
12417fi
12418OBJDUMP=$ac_cv_prog_OBJDUMP
12419if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012421$as_echo "$OBJDUMP" >&6; }
12422else
cristy8b350f62009-11-15 23:12:43 +000012423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012424$as_echo "no" >&6; }
12425fi
12426
12427
12428fi
12429if test -z "$ac_cv_prog_OBJDUMP"; then
12430 ac_ct_OBJDUMP=$OBJDUMP
12431 # Extract the first word of "objdump", so it can be a program name with args.
12432set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012434$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012435if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012436 $as_echo_n "(cached) " >&6
12437else
12438 if test -n "$ac_ct_OBJDUMP"; then
12439 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12440else
12441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442for as_dir in $PATH
12443do
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12448 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000012449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012450 break 2
12451 fi
12452done
cristy8b350f62009-11-15 23:12:43 +000012453 done
cristy3ed852e2009-09-05 21:47:34 +000012454IFS=$as_save_IFS
12455
12456fi
12457fi
12458ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12459if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012461$as_echo "$ac_ct_OBJDUMP" >&6; }
12462else
cristy8b350f62009-11-15 23:12:43 +000012463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012464$as_echo "no" >&6; }
12465fi
12466
12467 if test "x$ac_ct_OBJDUMP" = x; then
12468 OBJDUMP="false"
12469 else
12470 case $cross_compiling:$ac_tool_warned in
12471yes:)
cristy8b350f62009-11-15 23:12:43 +000012472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12474ac_tool_warned=yes ;;
12475esac
12476 OBJDUMP=$ac_ct_OBJDUMP
12477 fi
12478else
12479 OBJDUMP="$ac_cv_prog_OBJDUMP"
12480fi
12481
12482 ;;
12483esac
12484
12485test -z "$AS" && AS=as
12486
12487
12488
12489
12490
12491test -z "$DLLTOOL" && DLLTOOL=dlltool
12492
12493
12494
12495
12496
12497test -z "$OBJDUMP" && OBJDUMP=objdump
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000012508if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012509 enableval=$enable_shared; p=${PACKAGE-default}
12510 case $enableval in
12511 yes) enable_shared=yes ;;
12512 no) enable_shared=no ;;
12513 *)
12514 enable_shared=no
12515 # Look at the argument we got. We use all the common list separators.
12516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12517 for pkg in $enableval; do
12518 IFS="$lt_save_ifs"
12519 if test "X$pkg" = "X$p"; then
12520 enable_shared=yes
12521 fi
12522 done
12523 IFS="$lt_save_ifs"
12524 ;;
12525 esac
12526else
12527 enable_shared=yes
12528fi
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012539if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012540 enableval=$enable_static; p=${PACKAGE-default}
12541 case $enableval in
12542 yes) enable_static=yes ;;
12543 no) enable_static=no ;;
12544 *)
12545 enable_static=no
12546 # Look at the argument we got. We use all the common list separators.
12547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12548 for pkg in $enableval; do
12549 IFS="$lt_save_ifs"
12550 if test "X$pkg" = "X$p"; then
12551 enable_static=yes
12552 fi
12553 done
12554 IFS="$lt_save_ifs"
12555 ;;
12556 esac
12557else
12558 enable_static=yes
12559fi
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012571if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012572 withval=$with_pic; pic_mode="$withval"
12573else
12574 pic_mode=default
12575fi
12576
12577
12578test -z "$pic_mode" && pic_mode=default
12579
12580
12581
12582
12583
12584
12585
12586 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012587if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012588 enableval=$enable_fast_install; p=${PACKAGE-default}
12589 case $enableval in
12590 yes) enable_fast_install=yes ;;
12591 no) enable_fast_install=no ;;
12592 *)
12593 enable_fast_install=no
12594 # Look at the argument we got. We use all the common list separators.
12595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12596 for pkg in $enableval; do
12597 IFS="$lt_save_ifs"
12598 if test "X$pkg" = "X$p"; then
12599 enable_fast_install=yes
12600 fi
12601 done
12602 IFS="$lt_save_ifs"
12603 ;;
12604 esac
12605else
12606 enable_fast_install=yes
12607fi
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619# This can be used to rebuild libtool when needed
12620LIBTOOL_DEPS="$ltmain"
12621
12622# Always use our own libtool.
12623LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649test -z "$LN_S" && LN_S="ln -s"
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664if test -n "${ZSH_VERSION+set}" ; then
12665 setopt NO_GLOB_SUBST
12666fi
12667
cristy8b350f62009-11-15 23:12:43 +000012668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012669$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012670if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012671 $as_echo_n "(cached) " >&6
12672else
12673 rm -f .libs 2>/dev/null
12674mkdir .libs 2>/dev/null
12675if test -d .libs; then
12676 lt_cv_objdir=.libs
12677else
12678 # MS-DOS does not allow filenames that begin with a dot.
12679 lt_cv_objdir=_libs
12680fi
12681rmdir .libs 2>/dev/null
12682fi
cristy8b350f62009-11-15 23:12:43 +000012683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012684$as_echo "$lt_cv_objdir" >&6; }
12685objdir=$lt_cv_objdir
12686
12687
12688
12689
12690
12691cat >>confdefs.h <<_ACEOF
12692#define LT_OBJDIR "$lt_cv_objdir/"
12693_ACEOF
12694
12695
12696
12697
cristy18304f92009-11-22 15:48:26 +000012698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
cristy3ed852e2009-09-05 21:47:34 +000012711case $host_os in
12712aix3*)
12713 # AIX sometimes has problems with the GCC collect2 program. For some
12714 # reason, if we set the COLLECT_NAMES environment variable, the problems
12715 # vanish in a puff of smoke.
12716 if test "X${COLLECT_NAMES+set}" != Xset; then
12717 COLLECT_NAMES=
12718 export COLLECT_NAMES
12719 fi
12720 ;;
12721esac
12722
cristy18304f92009-11-22 15:48:26 +000012723# Sed substitution that helps us do robust quoting. It backslashifies
12724# metacharacters that are still active within double-quoted strings.
12725sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12726
12727# Same as above, but do not quote variable references.
12728double_quote_subst='s/\(["`\\]\)/\\\1/g'
12729
12730# Sed substitution to delay expansion of an escaped shell variable in a
12731# double_quote_subst'ed string.
12732delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12733
12734# Sed substitution to delay expansion of an escaped single quote.
12735delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12736
12737# Sed substitution to avoid accidental globbing in evaled expressions
12738no_glob_subst='s/\*/\\\*/g'
12739
cristy3ed852e2009-09-05 21:47:34 +000012740# Global variables:
12741ofile=libtool
12742can_build_shared=yes
12743
12744# All known linkers require a `.a' archive for static linking (except MSVC,
12745# which needs '.lib').
12746libext=a
12747
12748with_gnu_ld="$lt_cv_prog_gnu_ld"
12749
12750old_CC="$CC"
12751old_CFLAGS="$CFLAGS"
12752
12753# Set sane defaults for various variables
12754test -z "$CC" && CC=cc
12755test -z "$LTCC" && LTCC=$CC
12756test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12757test -z "$LD" && LD=ld
12758test -z "$ac_objext" && ac_objext=o
12759
12760for cc_temp in $compiler""; do
12761 case $cc_temp in
12762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12764 \-*) ;;
12765 *) break;;
12766 esac
12767done
cristy18304f92009-11-22 15:48:26 +000012768cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012769
12770
12771# Only perform the check for file, if the check method requires it
12772test -z "$MAGIC_CMD" && MAGIC_CMD=file
12773case $deplibs_check_method in
12774file_magic*)
12775 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012777$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012778if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012779 $as_echo_n "(cached) " >&6
12780else
12781 case $MAGIC_CMD in
12782[\\/*] | ?:[\\/]*)
12783 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12784 ;;
12785*)
12786 lt_save_MAGIC_CMD="$MAGIC_CMD"
12787 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12788 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12789 for ac_dir in $ac_dummy; do
12790 IFS="$lt_save_ifs"
12791 test -z "$ac_dir" && ac_dir=.
12792 if test -f $ac_dir/${ac_tool_prefix}file; then
12793 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12794 if test -n "$file_magic_test_file"; then
12795 case $deplibs_check_method in
12796 "file_magic "*)
12797 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12798 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12799 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12800 $EGREP "$file_magic_regex" > /dev/null; then
12801 :
12802 else
12803 cat <<_LT_EOF 1>&2
12804
12805*** Warning: the command libtool uses to detect shared libraries,
12806*** $file_magic_cmd, produces output that libtool cannot recognize.
12807*** The result is that libtool may fail to recognize shared libraries
12808*** as such. This will affect the creation of libtool libraries that
12809*** depend on shared libraries, but programs linked with such libtool
12810*** libraries will work regardless of this problem. Nevertheless, you
12811*** may want to report the problem to your system manager and/or to
12812*** bug-libtool@gnu.org
12813
12814_LT_EOF
12815 fi ;;
12816 esac
12817 fi
12818 break
12819 fi
12820 done
12821 IFS="$lt_save_ifs"
12822 MAGIC_CMD="$lt_save_MAGIC_CMD"
12823 ;;
12824esac
12825fi
12826
12827MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12828if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012830$as_echo "$MAGIC_CMD" >&6; }
12831else
cristy8b350f62009-11-15 23:12:43 +000012832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012833$as_echo "no" >&6; }
12834fi
12835
12836
12837
12838
12839
12840if test -z "$lt_cv_path_MAGIC_CMD"; then
12841 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012843$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012844if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012845 $as_echo_n "(cached) " >&6
12846else
12847 case $MAGIC_CMD in
12848[\\/*] | ?:[\\/]*)
12849 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12850 ;;
12851*)
12852 lt_save_MAGIC_CMD="$MAGIC_CMD"
12853 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12854 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12855 for ac_dir in $ac_dummy; do
12856 IFS="$lt_save_ifs"
12857 test -z "$ac_dir" && ac_dir=.
12858 if test -f $ac_dir/file; then
12859 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12860 if test -n "$file_magic_test_file"; then
12861 case $deplibs_check_method in
12862 "file_magic "*)
12863 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12864 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12865 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12866 $EGREP "$file_magic_regex" > /dev/null; then
12867 :
12868 else
12869 cat <<_LT_EOF 1>&2
12870
12871*** Warning: the command libtool uses to detect shared libraries,
12872*** $file_magic_cmd, produces output that libtool cannot recognize.
12873*** The result is that libtool may fail to recognize shared libraries
12874*** as such. This will affect the creation of libtool libraries that
12875*** depend on shared libraries, but programs linked with such libtool
12876*** libraries will work regardless of this problem. Nevertheless, you
12877*** may want to report the problem to your system manager and/or to
12878*** bug-libtool@gnu.org
12879
12880_LT_EOF
12881 fi ;;
12882 esac
12883 fi
12884 break
12885 fi
12886 done
12887 IFS="$lt_save_ifs"
12888 MAGIC_CMD="$lt_save_MAGIC_CMD"
12889 ;;
12890esac
12891fi
12892
12893MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12894if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012896$as_echo "$MAGIC_CMD" >&6; }
12897else
cristy8b350f62009-11-15 23:12:43 +000012898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012899$as_echo "no" >&6; }
12900fi
12901
12902
12903 else
12904 MAGIC_CMD=:
12905 fi
12906fi
12907
12908 fi
12909 ;;
12910esac
12911
12912# Use C for the default configuration in the libtool script
12913
12914lt_save_CC="$CC"
12915ac_ext=c
12916ac_cpp='$CPP $CPPFLAGS'
12917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12919ac_compiler_gnu=$ac_cv_c_compiler_gnu
12920
12921
12922# Source file extension for C test sources.
12923ac_ext=c
12924
12925# Object file extension for compiled C test sources.
12926objext=o
12927objext=$objext
12928
12929# Code to be used in simple compile tests
12930lt_simple_compile_test_code="int some_variable = 0;"
12931
12932# Code to be used in simple link tests
12933lt_simple_link_test_code='int main(){return(0);}'
12934
12935
12936
12937
12938
12939
12940
12941# If no C compiler was specified, use CC.
12942LTCC=${LTCC-"$CC"}
12943
12944# If no C compiler flags were specified, use CFLAGS.
12945LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12946
12947# Allow CC to be a program name with arguments.
12948compiler=$CC
12949
12950# Save the default compiler, since it gets overwritten when the other
12951# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12952compiler_DEFAULT=$CC
12953
12954# save warnings/boilerplate of simple test code
12955ac_outfile=conftest.$ac_objext
12956echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12957eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12958_lt_compiler_boilerplate=`cat conftest.err`
12959$RM conftest*
12960
12961ac_outfile=conftest.$ac_objext
12962echo "$lt_simple_link_test_code" >conftest.$ac_ext
12963eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12964_lt_linker_boilerplate=`cat conftest.err`
12965$RM -r conftest*
12966
12967
12968## CAVEAT EMPTOR:
12969## There is no encapsulation within the following macros, do not change
12970## the running order or otherwise move them around unless you know exactly
12971## what you are doing...
12972if test -n "$compiler"; then
12973
12974lt_prog_compiler_no_builtin_flag=
12975
12976if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012977 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000012978
cristy8b350f62009-11-15 23:12:43 +000012979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012980$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012981if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012982 $as_echo_n "(cached) " >&6
12983else
12984 lt_cv_prog_compiler_rtti_exceptions=no
12985 ac_outfile=conftest.$ac_objext
12986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12987 lt_compiler_flag="-fno-rtti -fno-exceptions"
12988 # Insert the option either (1) after the last *FLAGS variable, or
12989 # (2) before a word containing "conftest.", or (3) at the end.
12990 # Note that $ac_compile itself does not contain backslashes and begins
12991 # with a dollar sign (not a hyphen), so the echo should work correctly.
12992 # The option is referenced via a variable to avoid confusing sed.
12993 lt_compile=`echo "$ac_compile" | $SED \
12994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12996 -e 's:$: $lt_compiler_flag:'`
cristy0d3a6382010-04-26 00:45:55 +000012997 (eval echo "\"\$as_me:12997: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012998 (eval "$lt_compile" 2>conftest.err)
12999 ac_status=$?
13000 cat conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +000013001 echo "$as_me:13001: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013002 if (exit $ac_status) && test -s "$ac_outfile"; then
13003 # The compiler can only warn and ignore the option if not recognized
13004 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000013005 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13007 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13008 lt_cv_prog_compiler_rtti_exceptions=yes
13009 fi
13010 fi
13011 $RM conftest*
13012
13013fi
cristy8b350f62009-11-15 23:12:43 +000013014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000013015$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13016
13017if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13018 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13019else
13020 :
13021fi
13022
13023fi
13024
13025
13026
13027
13028
13029
13030 lt_prog_compiler_wl=
13031lt_prog_compiler_pic=
13032lt_prog_compiler_static=
13033
cristy8b350f62009-11-15 23:12:43 +000013034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000013035$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13036
13037 if test "$GCC" = yes; then
13038 lt_prog_compiler_wl='-Wl,'
13039 lt_prog_compiler_static='-static'
13040
13041 case $host_os in
13042 aix*)
13043 # All AIX code is PIC.
13044 if test "$host_cpu" = ia64; then
13045 # AIX 5 now supports IA64 processor
13046 lt_prog_compiler_static='-Bstatic'
13047 fi
13048 ;;
13049
13050 amigaos*)
13051 case $host_cpu in
13052 powerpc)
13053 # see comment about AmigaOS4 .so support
13054 lt_prog_compiler_pic='-fPIC'
13055 ;;
13056 m68k)
13057 # FIXME: we need at least 68020 code to build shared libraries, but
13058 # adding the `-m68020' flag to GCC prevents building anything better,
13059 # like `-m68040'.
13060 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13061 ;;
13062 esac
13063 ;;
13064
13065 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13066 # PIC is the default for these OSes.
13067 ;;
13068
13069 mingw* | cygwin* | pw32* | os2* | cegcc*)
13070 # This hack is so that the source file can tell whether it is being
13071 # built for inclusion in a dll (and should export symbols for example).
13072 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13073 # (--disable-auto-import) libraries
13074 lt_prog_compiler_pic='-DDLL_EXPORT'
13075 ;;
13076
13077 darwin* | rhapsody*)
13078 # PIC is the default on this platform
13079 # Common symbols not allowed in MH_DYLIB files
13080 lt_prog_compiler_pic='-fno-common'
13081 ;;
13082
13083 hpux*)
13084 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13085 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13086 # sets the default TLS model and affects inlining.
13087 case $host_cpu in
13088 hppa*64*)
13089 # +Z the default
13090 ;;
13091 *)
13092 lt_prog_compiler_pic='-fPIC'
13093 ;;
13094 esac
13095 ;;
13096
13097 interix[3-9]*)
13098 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13099 # Instead, we relocate shared libraries at runtime.
13100 ;;
13101
13102 msdosdjgpp*)
13103 # Just because we use GCC doesn't mean we suddenly get shared libraries
13104 # on systems that don't support them.
13105 lt_prog_compiler_can_build_shared=no
13106 enable_shared=no
13107 ;;
13108
13109 *nto* | *qnx*)
13110 # QNX uses GNU C++, but need to define -shared option too, otherwise
13111 # it will coredump.
13112 lt_prog_compiler_pic='-fPIC -shared'
13113 ;;
13114
13115 sysv4*MP*)
13116 if test -d /usr/nec; then
13117 lt_prog_compiler_pic=-Kconform_pic
13118 fi
13119 ;;
13120
13121 *)
13122 lt_prog_compiler_pic='-fPIC'
13123 ;;
13124 esac
13125 else
13126 # PORTME Check for flag to pass linker flags through the system compiler.
13127 case $host_os in
13128 aix*)
13129 lt_prog_compiler_wl='-Wl,'
13130 if test "$host_cpu" = ia64; then
13131 # AIX 5 now supports IA64 processor
13132 lt_prog_compiler_static='-Bstatic'
13133 else
13134 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13135 fi
13136 ;;
13137
13138 mingw* | cygwin* | pw32* | os2* | cegcc*)
13139 # This hack is so that the source file can tell whether it is being
13140 # built for inclusion in a dll (and should export symbols for example).
13141 lt_prog_compiler_pic='-DDLL_EXPORT'
13142 ;;
13143
13144 hpux9* | hpux10* | hpux11*)
13145 lt_prog_compiler_wl='-Wl,'
13146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13147 # not for PA HP-UX.
13148 case $host_cpu in
13149 hppa*64*|ia64*)
13150 # +Z the default
13151 ;;
13152 *)
13153 lt_prog_compiler_pic='+Z'
13154 ;;
13155 esac
13156 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13157 lt_prog_compiler_static='${wl}-a ${wl}archive'
13158 ;;
13159
13160 irix5* | irix6* | nonstopux*)
13161 lt_prog_compiler_wl='-Wl,'
13162 # PIC (with -KPIC) is the default.
13163 lt_prog_compiler_static='-non_shared'
13164 ;;
13165
cristy18304f92009-11-22 15:48:26 +000013166 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013167 case $cc_basename in
13168 # old Intel for x86_64 which still supported -KPIC.
13169 ecc*)
13170 lt_prog_compiler_wl='-Wl,'
13171 lt_prog_compiler_pic='-KPIC'
13172 lt_prog_compiler_static='-static'
13173 ;;
13174 # icc used to be incompatible with GCC.
13175 # ICC 10 doesn't accept -KPIC any more.
13176 icc* | ifort*)
13177 lt_prog_compiler_wl='-Wl,'
13178 lt_prog_compiler_pic='-fPIC'
13179 lt_prog_compiler_static='-static'
13180 ;;
13181 # Lahey Fortran 8.1.
13182 lf95*)
13183 lt_prog_compiler_wl='-Wl,'
13184 lt_prog_compiler_pic='--shared'
13185 lt_prog_compiler_static='--static'
13186 ;;
cristy18304f92009-11-22 15:48:26 +000013187 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000013188 # Portland Group compilers (*not* the Pentium gcc compiler,
13189 # which looks to be a dead project)
13190 lt_prog_compiler_wl='-Wl,'
13191 lt_prog_compiler_pic='-fpic'
13192 lt_prog_compiler_static='-Bstatic'
13193 ;;
13194 ccc*)
13195 lt_prog_compiler_wl='-Wl,'
13196 # All Alpha code is PIC.
13197 lt_prog_compiler_static='-non_shared'
13198 ;;
cristy18304f92009-11-22 15:48:26 +000013199 xl*)
13200 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000013201 lt_prog_compiler_wl='-Wl,'
13202 lt_prog_compiler_pic='-qpic'
13203 lt_prog_compiler_static='-qstaticlink'
13204 ;;
13205 *)
13206 case `$CC -V 2>&1 | sed 5q` in
13207 *Sun\ C*)
13208 # Sun C 5.9
13209 lt_prog_compiler_pic='-KPIC'
13210 lt_prog_compiler_static='-Bstatic'
13211 lt_prog_compiler_wl='-Wl,'
13212 ;;
cristy18304f92009-11-22 15:48:26 +000013213 *Sun\ F*)
13214 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13215 lt_prog_compiler_pic='-KPIC'
13216 lt_prog_compiler_static='-Bstatic'
13217 lt_prog_compiler_wl=''
13218 ;;
cristy3ed852e2009-09-05 21:47:34 +000013219 esac
13220 ;;
13221 esac
13222 ;;
13223
13224 newsos6)
13225 lt_prog_compiler_pic='-KPIC'
13226 lt_prog_compiler_static='-Bstatic'
13227 ;;
13228
13229 *nto* | *qnx*)
13230 # QNX uses GNU C++, but need to define -shared option too, otherwise
13231 # it will coredump.
13232 lt_prog_compiler_pic='-fPIC -shared'
13233 ;;
13234
13235 osf3* | osf4* | osf5*)
13236 lt_prog_compiler_wl='-Wl,'
13237 # All OSF/1 code is PIC.
13238 lt_prog_compiler_static='-non_shared'
13239 ;;
13240
13241 rdos*)
13242 lt_prog_compiler_static='-non_shared'
13243 ;;
13244
13245 solaris*)
13246 lt_prog_compiler_pic='-KPIC'
13247 lt_prog_compiler_static='-Bstatic'
13248 case $cc_basename in
13249 f77* | f90* | f95*)
13250 lt_prog_compiler_wl='-Qoption ld ';;
13251 *)
13252 lt_prog_compiler_wl='-Wl,';;
13253 esac
13254 ;;
13255
13256 sunos4*)
13257 lt_prog_compiler_wl='-Qoption ld '
13258 lt_prog_compiler_pic='-PIC'
13259 lt_prog_compiler_static='-Bstatic'
13260 ;;
13261
13262 sysv4 | sysv4.2uw2* | sysv4.3*)
13263 lt_prog_compiler_wl='-Wl,'
13264 lt_prog_compiler_pic='-KPIC'
13265 lt_prog_compiler_static='-Bstatic'
13266 ;;
13267
13268 sysv4*MP*)
13269 if test -d /usr/nec ;then
13270 lt_prog_compiler_pic='-Kconform_pic'
13271 lt_prog_compiler_static='-Bstatic'
13272 fi
13273 ;;
13274
13275 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13276 lt_prog_compiler_wl='-Wl,'
13277 lt_prog_compiler_pic='-KPIC'
13278 lt_prog_compiler_static='-Bstatic'
13279 ;;
13280
13281 unicos*)
13282 lt_prog_compiler_wl='-Wl,'
13283 lt_prog_compiler_can_build_shared=no
13284 ;;
13285
13286 uts4*)
13287 lt_prog_compiler_pic='-pic'
13288 lt_prog_compiler_static='-Bstatic'
13289 ;;
13290
13291 *)
13292 lt_prog_compiler_can_build_shared=no
13293 ;;
13294 esac
13295 fi
13296
13297case $host_os in
13298 # For platforms which do not support PIC, -DPIC is meaningless:
13299 *djgpp*)
13300 lt_prog_compiler_pic=
13301 ;;
13302 *)
13303 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13304 ;;
13305esac
cristy8b350f62009-11-15 23:12:43 +000013306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000013307$as_echo "$lt_prog_compiler_pic" >&6; }
13308
13309
13310
13311
13312
13313
13314#
13315# Check to make sure the PIC flag actually works.
13316#
13317if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000013318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013319$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013320if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013321 $as_echo_n "(cached) " >&6
13322else
13323 lt_cv_prog_compiler_pic_works=no
13324 ac_outfile=conftest.$ac_objext
13325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13326 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13327 # Insert the option either (1) after the last *FLAGS variable, or
13328 # (2) before a word containing "conftest.", or (3) at the end.
13329 # Note that $ac_compile itself does not contain backslashes and begins
13330 # with a dollar sign (not a hyphen), so the echo should work correctly.
13331 # The option is referenced via a variable to avoid confusing sed.
13332 lt_compile=`echo "$ac_compile" | $SED \
13333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13335 -e 's:$: $lt_compiler_flag:'`
cristy0d3a6382010-04-26 00:45:55 +000013336 (eval echo "\"\$as_me:13336: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013337 (eval "$lt_compile" 2>conftest.err)
13338 ac_status=$?
13339 cat conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +000013340 echo "$as_me:13340: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013341 if (exit $ac_status) && test -s "$ac_outfile"; then
13342 # The compiler can only warn and ignore the option if not recognized
13343 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000013344 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13346 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13347 lt_cv_prog_compiler_pic_works=yes
13348 fi
13349 fi
13350 $RM conftest*
13351
13352fi
cristy8b350f62009-11-15 23:12:43 +000013353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013354$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13355
13356if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13357 case $lt_prog_compiler_pic in
13358 "" | " "*) ;;
13359 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13360 esac
13361else
13362 lt_prog_compiler_pic=
13363 lt_prog_compiler_can_build_shared=no
13364fi
13365
13366fi
13367
13368
13369
13370
13371
13372
13373#
13374# Check to make sure the static flag actually works.
13375#
13376wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000013377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013378$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013379if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013380 $as_echo_n "(cached) " >&6
13381else
13382 lt_cv_prog_compiler_static_works=no
13383 save_LDFLAGS="$LDFLAGS"
13384 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13385 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13387 # The linker can only warn and ignore the option if not recognized
13388 # So say no if there are warnings
13389 if test -s conftest.err; then
13390 # Append any errors to the config.log.
13391 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000013392 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13394 if diff conftest.exp conftest.er2 >/dev/null; then
13395 lt_cv_prog_compiler_static_works=yes
13396 fi
13397 else
13398 lt_cv_prog_compiler_static_works=yes
13399 fi
13400 fi
13401 $RM -r conftest*
13402 LDFLAGS="$save_LDFLAGS"
13403
13404fi
cristy8b350f62009-11-15 23:12:43 +000013405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013406$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13407
13408if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13409 :
13410else
13411 lt_prog_compiler_static=
13412fi
13413
13414
13415
13416
13417
13418
13419
cristy8b350f62009-11-15 23:12:43 +000013420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013421$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013422if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013423 $as_echo_n "(cached) " >&6
13424else
13425 lt_cv_prog_compiler_c_o=no
13426 $RM -r conftest 2>/dev/null
13427 mkdir conftest
13428 cd conftest
13429 mkdir out
13430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13431
13432 lt_compiler_flag="-o out/conftest2.$ac_objext"
13433 # Insert the option either (1) after the last *FLAGS variable, or
13434 # (2) before a word containing "conftest.", or (3) at the end.
13435 # Note that $ac_compile itself does not contain backslashes and begins
13436 # with a dollar sign (not a hyphen), so the echo should work correctly.
13437 lt_compile=`echo "$ac_compile" | $SED \
13438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13440 -e 's:$: $lt_compiler_flag:'`
cristy0d3a6382010-04-26 00:45:55 +000013441 (eval echo "\"\$as_me:13441: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013442 (eval "$lt_compile" 2>out/conftest.err)
13443 ac_status=$?
13444 cat out/conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +000013445 echo "$as_me:13445: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13447 then
13448 # The compiler can only warn and ignore the option if not recognized
13449 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000013450 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13453 lt_cv_prog_compiler_c_o=yes
13454 fi
13455 fi
13456 chmod u+w . 2>&5
13457 $RM conftest*
13458 # SGI C++ compiler will create directory out/ii_files/ for
13459 # template instantiation
13460 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13461 $RM out/* && rmdir out
13462 cd ..
13463 $RM -r conftest
13464 $RM conftest*
13465
13466fi
cristy8b350f62009-11-15 23:12:43 +000013467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013468$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13469
13470
13471
13472
13473
13474
cristy8b350f62009-11-15 23:12:43 +000013475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013476$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013477if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013478 $as_echo_n "(cached) " >&6
13479else
13480 lt_cv_prog_compiler_c_o=no
13481 $RM -r conftest 2>/dev/null
13482 mkdir conftest
13483 cd conftest
13484 mkdir out
13485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13486
13487 lt_compiler_flag="-o out/conftest2.$ac_objext"
13488 # Insert the option either (1) after the last *FLAGS variable, or
13489 # (2) before a word containing "conftest.", or (3) at the end.
13490 # Note that $ac_compile itself does not contain backslashes and begins
13491 # with a dollar sign (not a hyphen), so the echo should work correctly.
13492 lt_compile=`echo "$ac_compile" | $SED \
13493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13495 -e 's:$: $lt_compiler_flag:'`
cristy0d3a6382010-04-26 00:45:55 +000013496 (eval echo "\"\$as_me:13496: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013497 (eval "$lt_compile" 2>out/conftest.err)
13498 ac_status=$?
13499 cat out/conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +000013500 echo "$as_me:13500: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013501 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13502 then
13503 # The compiler can only warn and ignore the option if not recognized
13504 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000013505 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013506 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13507 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13508 lt_cv_prog_compiler_c_o=yes
13509 fi
13510 fi
13511 chmod u+w . 2>&5
13512 $RM conftest*
13513 # SGI C++ compiler will create directory out/ii_files/ for
13514 # template instantiation
13515 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13516 $RM out/* && rmdir out
13517 cd ..
13518 $RM -r conftest
13519 $RM conftest*
13520
13521fi
cristy8b350f62009-11-15 23:12:43 +000013522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013523$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13524
13525
13526
13527
13528hard_links="nottested"
13529if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13530 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013532$as_echo_n "checking if we can lock with hard links... " >&6; }
13533 hard_links=yes
13534 $RM conftest*
13535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13536 touch conftest.a
13537 ln conftest.a conftest.b 2>&5 || hard_links=no
13538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013540$as_echo "$hard_links" >&6; }
13541 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013542 { $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 +000013543$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13544 need_locks=warn
13545 fi
13546else
13547 need_locks=no
13548fi
13549
13550
13551
13552
13553
13554
cristy8b350f62009-11-15 23:12:43 +000013555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013556$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13557
13558 runpath_var=
13559 allow_undefined_flag=
13560 always_export_symbols=no
13561 archive_cmds=
13562 archive_expsym_cmds=
13563 compiler_needs_object=no
13564 enable_shared_with_static_runtimes=no
13565 export_dynamic_flag_spec=
13566 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13567 hardcode_automatic=no
13568 hardcode_direct=no
13569 hardcode_direct_absolute=no
13570 hardcode_libdir_flag_spec=
13571 hardcode_libdir_flag_spec_ld=
13572 hardcode_libdir_separator=
13573 hardcode_minus_L=no
13574 hardcode_shlibpath_var=unsupported
13575 inherit_rpath=no
13576 link_all_deplibs=unknown
13577 module_cmds=
13578 module_expsym_cmds=
13579 old_archive_from_new_cmds=
13580 old_archive_from_expsyms_cmds=
13581 thread_safe_flag_spec=
13582 whole_archive_flag_spec=
13583 # include_expsyms should be a list of space-separated symbols to be *always*
13584 # included in the symbol list
13585 include_expsyms=
13586 # exclude_expsyms can be an extended regexp of symbols to exclude
13587 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13588 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13589 # as well as any symbol that contains `d'.
13590 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13591 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13592 # platforms (ab)use it in PIC code, but their linkers get confused if
13593 # the symbol is explicitly referenced. Since portable code cannot
13594 # rely on this symbol name, it's probably fine to never include it in
13595 # preloaded symbol tables.
13596 # Exclude shared library initialization/finalization symbols.
13597 extract_expsyms_cmds=
13598
13599 case $host_os in
13600 cygwin* | mingw* | pw32* | cegcc*)
13601 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13602 # When not using gcc, we currently assume that we are using
13603 # Microsoft Visual C++.
13604 if test "$GCC" != yes; then
13605 with_gnu_ld=no
13606 fi
13607 ;;
13608 interix*)
13609 # we just hope/assume this is gcc and not c89 (= MSVC++)
13610 with_gnu_ld=yes
13611 ;;
13612 openbsd*)
13613 with_gnu_ld=no
13614 ;;
13615 esac
13616
13617 ld_shlibs=yes
13618 if test "$with_gnu_ld" = yes; then
13619 # If archive_cmds runs LD, not CC, wlarc should be empty
13620 wlarc='${wl}'
13621
13622 # Set some defaults for GNU ld with shared library support. These
13623 # are reset later if shared libraries are not supported. Putting them
13624 # here allows them to be overridden if necessary.
13625 runpath_var=LD_RUN_PATH
13626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13627 export_dynamic_flag_spec='${wl}--export-dynamic'
13628 # ancient GNU ld didn't support --whole-archive et. al.
13629 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13630 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13631 else
13632 whole_archive_flag_spec=
13633 fi
13634 supports_anon_versioning=no
13635 case `$LD -v 2>&1` in
13636 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13637 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13638 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13639 *\ 2.11.*) ;; # other 2.11 versions
13640 *) supports_anon_versioning=yes ;;
13641 esac
13642
13643 # See if GNU ld supports shared libraries.
13644 case $host_os in
13645 aix[3-9]*)
13646 # On AIX/PPC, the GNU linker is very broken
13647 if test "$host_cpu" != ia64; then
13648 ld_shlibs=no
13649 cat <<_LT_EOF 1>&2
13650
cristy18304f92009-11-22 15:48:26 +000013651*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000013652*** to be unable to reliably create shared libraries on AIX.
13653*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000013654*** really care for shared libraries, you may want to modify your PATH
13655*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000013656
13657_LT_EOF
13658 fi
13659 ;;
13660
13661 amigaos*)
13662 case $host_cpu in
13663 powerpc)
13664 # see comment about AmigaOS4 .so support
13665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13666 archive_expsym_cmds=''
13667 ;;
13668 m68k)
13669 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)'
13670 hardcode_libdir_flag_spec='-L$libdir'
13671 hardcode_minus_L=yes
13672 ;;
13673 esac
13674 ;;
13675
13676 beos*)
13677 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13678 allow_undefined_flag=unsupported
13679 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13680 # support --undefined. This deserves some investigation. FIXME
13681 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13682 else
13683 ld_shlibs=no
13684 fi
13685 ;;
13686
13687 cygwin* | mingw* | pw32* | cegcc*)
13688 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13689 # as there is no search path for DLLs.
13690 hardcode_libdir_flag_spec='-L$libdir'
13691 allow_undefined_flag=unsupported
13692 always_export_symbols=no
13693 enable_shared_with_static_runtimes=yes
13694 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13695
13696 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13698 # If the export-symbols file already is a .def file (1st line
13699 # is EXPORTS), use it as is; otherwise, prepend...
13700 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13701 cp $export_symbols $output_objdir/$soname.def;
13702 else
13703 echo EXPORTS > $output_objdir/$soname.def;
13704 cat $export_symbols >> $output_objdir/$soname.def;
13705 fi~
13706 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13707 else
13708 ld_shlibs=no
13709 fi
13710 ;;
13711
13712 interix[3-9]*)
13713 hardcode_direct=no
13714 hardcode_shlibpath_var=no
13715 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13716 export_dynamic_flag_spec='${wl}-E'
13717 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13718 # Instead, shared libraries are loaded at an image base (0x10000000 by
13719 # default) and relocated if they conflict, which is a slow very memory
13720 # consuming and fragmenting process. To avoid this, we pick a random,
13721 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13722 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13723 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13724 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'
13725 ;;
13726
cristy18304f92009-11-22 15:48:26 +000013727 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013728 tmp_diet=no
13729 if test "$host_os" = linux-dietlibc; then
13730 case $cc_basename in
13731 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13732 esac
13733 fi
13734 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13735 && test "$tmp_diet" = no
13736 then
13737 tmp_addflag=
13738 tmp_sharedflag='-shared'
13739 case $cc_basename,$host_cpu in
13740 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000013741 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
cristy3ed852e2009-09-05 21:47:34 +000013742 tmp_addflag=' $pic_flag'
13743 ;;
cristy18304f92009-11-22 15:48:26 +000013744 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13745 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
cristy3ed852e2009-09-05 21:47:34 +000013746 tmp_addflag=' $pic_flag -Mnomain' ;;
13747 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13748 tmp_addflag=' -i_dynamic' ;;
13749 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13750 tmp_addflag=' -i_dynamic -nofor_main' ;;
13751 ifc* | ifort*) # Intel Fortran compiler
13752 tmp_addflag=' -nofor_main' ;;
13753 lf95*) # Lahey Fortran 8.1
13754 whole_archive_flag_spec=
13755 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000013756 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013757 tmp_sharedflag='-qmkshrobj'
13758 tmp_addflag= ;;
13759 esac
13760 case `$CC -V 2>&1 | sed 5q` in
13761 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000013762 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
cristy3ed852e2009-09-05 21:47:34 +000013763 compiler_needs_object=yes
13764 tmp_sharedflag='-G' ;;
13765 *Sun\ F*) # Sun Fortran 8.3
13766 tmp_sharedflag='-G' ;;
13767 esac
13768 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13769
13770 if test "x$supports_anon_versioning" = xyes; then
13771 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13773 echo "local: *; };" >> $output_objdir/$libname.ver~
13774 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13775 fi
13776
13777 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000013778 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000013779 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13780 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13781 hardcode_libdir_flag_spec=
13782 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13783 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13784 if test "x$supports_anon_versioning" = xyes; then
13785 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13787 echo "local: *; };" >> $output_objdir/$libname.ver~
13788 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13789 fi
13790 ;;
13791 esac
13792 else
13793 ld_shlibs=no
13794 fi
13795 ;;
13796
13797 netbsd*)
13798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13799 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13800 wlarc=
13801 else
13802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13803 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13804 fi
13805 ;;
13806
13807 solaris*)
13808 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13809 ld_shlibs=no
13810 cat <<_LT_EOF 1>&2
13811
13812*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13813*** create shared libraries on Solaris systems. Therefore, libtool
13814*** is disabling shared libraries support. We urge you to upgrade GNU
13815*** binutils to release 2.9.1 or newer. Another option is to modify
13816*** your PATH or compiler configuration so that the native linker is
13817*** used, and then restart.
13818
13819_LT_EOF
13820 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13823 else
13824 ld_shlibs=no
13825 fi
13826 ;;
13827
13828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13829 case `$LD -v 2>&1` in
13830 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13831 ld_shlibs=no
13832 cat <<_LT_EOF 1>&2
13833
13834*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13835*** reliably create shared libraries on SCO systems. Therefore, libtool
13836*** is disabling shared libraries support. We urge you to upgrade GNU
13837*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13838*** your PATH or compiler configuration so that the native linker is
13839*** used, and then restart.
13840
13841_LT_EOF
13842 ;;
13843 *)
13844 # For security reasons, it is highly recommended that you always
13845 # use absolute paths for naming shared libraries, and exclude the
13846 # DT_RUNPATH tag from executables and libraries. But doing so
13847 # requires that you compile everything twice, which is a pain.
13848 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13852 else
13853 ld_shlibs=no
13854 fi
13855 ;;
13856 esac
13857 ;;
13858
13859 sunos4*)
13860 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13861 wlarc=
13862 hardcode_direct=yes
13863 hardcode_shlibpath_var=no
13864 ;;
13865
13866 *)
13867 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13869 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13870 else
13871 ld_shlibs=no
13872 fi
13873 ;;
13874 esac
13875
13876 if test "$ld_shlibs" = no; then
13877 runpath_var=
13878 hardcode_libdir_flag_spec=
13879 export_dynamic_flag_spec=
13880 whole_archive_flag_spec=
13881 fi
13882 else
13883 # PORTME fill in a description of your system's linker (not GNU ld)
13884 case $host_os in
13885 aix3*)
13886 allow_undefined_flag=unsupported
13887 always_export_symbols=yes
13888 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'
13889 # Note: this linker hardcodes the directories in LIBPATH if there
13890 # are no directories specified by -L.
13891 hardcode_minus_L=yes
13892 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13893 # Neither direct hardcoding nor static linking is supported with a
13894 # broken collect2.
13895 hardcode_direct=unsupported
13896 fi
13897 ;;
13898
13899 aix[4-9]*)
13900 if test "$host_cpu" = ia64; then
13901 # On IA64, the linker does run time linking by default, so we don't
13902 # have to do anything special.
13903 aix_use_runtimelinking=no
13904 exp_sym_flag='-Bexport'
13905 no_entry_flag=""
13906 else
13907 # If we're using GNU nm, then we don't want the "-C" option.
13908 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13909 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000013910 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy3ed852e2009-09-05 21:47:34 +000013911 else
13912 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'
13913 fi
13914 aix_use_runtimelinking=no
13915
13916 # Test if we are trying to use run time linking or normal
13917 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13918 # need to do runtime linking.
13919 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13920 for ld_flag in $LDFLAGS; do
13921 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13922 aix_use_runtimelinking=yes
13923 break
13924 fi
13925 done
13926 ;;
13927 esac
13928
13929 exp_sym_flag='-bexport'
13930 no_entry_flag='-bnoentry'
13931 fi
13932
13933 # When large executables or shared objects are built, AIX ld can
13934 # have problems creating the table of contents. If linking a library
13935 # or program results in "error TOC overflow" add -mminimal-toc to
13936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13938
13939 archive_cmds=''
13940 hardcode_direct=yes
13941 hardcode_direct_absolute=yes
13942 hardcode_libdir_separator=':'
13943 link_all_deplibs=yes
13944 file_list_spec='${wl}-f,'
13945
13946 if test "$GCC" = yes; then
13947 case $host_os in aix4.[012]|aix4.[012].*)
13948 # We only want to do this on AIX 4.2 and lower, the check
13949 # below for broken collect2 doesn't work under 4.3+
13950 collect2name=`${CC} -print-prog-name=collect2`
13951 if test -f "$collect2name" &&
13952 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13953 then
13954 # We have reworked collect2
13955 :
13956 else
13957 # We have old collect2
13958 hardcode_direct=unsupported
13959 # It fails to find uninstalled libraries when the uninstalled
13960 # path is not listed in the libpath. Setting hardcode_minus_L
13961 # to unsupported forces relinking
13962 hardcode_minus_L=yes
13963 hardcode_libdir_flag_spec='-L$libdir'
13964 hardcode_libdir_separator=
13965 fi
13966 ;;
13967 esac
13968 shared_flag='-shared'
13969 if test "$aix_use_runtimelinking" = yes; then
13970 shared_flag="$shared_flag "'${wl}-G'
13971 fi
13972 else
13973 # not using gcc
13974 if test "$host_cpu" = ia64; then
13975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13976 # chokes on -Wl,-G. The following line is correct:
13977 shared_flag='-G'
13978 else
13979 if test "$aix_use_runtimelinking" = yes; then
13980 shared_flag='${wl}-G'
13981 else
13982 shared_flag='${wl}-bM:SRE'
13983 fi
13984 fi
13985 fi
13986
13987 export_dynamic_flag_spec='${wl}-bexpall'
13988 # It seems that -bexpall does not export symbols beginning with
13989 # underscore (_), so it is better to generate a list of symbols to export.
13990 always_export_symbols=yes
13991 if test "$aix_use_runtimelinking" = yes; then
13992 # Warning - without using the other runtime loading flags (-brtl),
13993 # -berok will link without error, but may produce a broken library.
13994 allow_undefined_flag='-berok'
13995 # Determine the default libpath from the value encoded in an
13996 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013998/* end confdefs.h. */
13999
14000int
14001main ()
14002{
14003
14004 ;
14005 return 0;
14006}
14007_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014008if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014009
14010lt_aix_libpath_sed='
14011 /Import File Strings/,/^$/ {
14012 /^0/ {
14013 s/^0 *\(.*\)$/\1/
14014 p
14015 }
14016 }'
14017aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14018# Check for a 64-bit object if we didn't find anything.
14019if test -z "$aix_libpath"; then
14020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14021fi
cristy3ed852e2009-09-05 21:47:34 +000014022fi
cristy8b350f62009-11-15 23:12:43 +000014023rm -f core conftest.err conftest.$ac_objext \
14024 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014025if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14026
14027 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000014028 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy3ed852e2009-09-05 21:47:34 +000014029 else
14030 if test "$host_cpu" = ia64; then
14031 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14032 allow_undefined_flag="-z nodefs"
14033 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"
14034 else
14035 # Determine the default libpath from the value encoded in an
14036 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000014037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014038/* end confdefs.h. */
14039
14040int
14041main ()
14042{
14043
14044 ;
14045 return 0;
14046}
14047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014048if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014049
14050lt_aix_libpath_sed='
14051 /Import File Strings/,/^$/ {
14052 /^0/ {
14053 s/^0 *\(.*\)$/\1/
14054 p
14055 }
14056 }'
14057aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14058# Check for a 64-bit object if we didn't find anything.
14059if test -z "$aix_libpath"; then
14060 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14061fi
cristy3ed852e2009-09-05 21:47:34 +000014062fi
cristy8b350f62009-11-15 23:12:43 +000014063rm -f core conftest.err conftest.$ac_objext \
14064 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014065if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14066
14067 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14068 # Warning - without using the other run time loading flags,
14069 # -berok will link without error, but may produce a broken library.
14070 no_undefined_flag=' ${wl}-bernotok'
14071 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000014072 # Exported symbols can be pulled into shared objects from archives
14073 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000014074 archive_cmds_need_lc=yes
14075 # This is similar to how AIX traditionally builds its shared libraries.
14076 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'
14077 fi
14078 fi
14079 ;;
14080
14081 amigaos*)
14082 case $host_cpu in
14083 powerpc)
14084 # see comment about AmigaOS4 .so support
14085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14086 archive_expsym_cmds=''
14087 ;;
14088 m68k)
14089 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)'
14090 hardcode_libdir_flag_spec='-L$libdir'
14091 hardcode_minus_L=yes
14092 ;;
14093 esac
14094 ;;
14095
14096 bsdi[45]*)
14097 export_dynamic_flag_spec=-rdynamic
14098 ;;
14099
14100 cygwin* | mingw* | pw32* | cegcc*)
14101 # When not using gcc, we currently assume that we are using
14102 # Microsoft Visual C++.
14103 # hardcode_libdir_flag_spec is actually meaningless, as there is
14104 # no search path for DLLs.
14105 hardcode_libdir_flag_spec=' '
14106 allow_undefined_flag=unsupported
14107 # Tell ltmain to make .lib files, not .a files.
14108 libext=lib
14109 # Tell ltmain to make .dll files, not .so files.
14110 shrext_cmds=".dll"
14111 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000014112 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000014113 # The linker will automatically build a .lib file if we build a DLL.
14114 old_archive_from_new_cmds='true'
14115 # FIXME: Should let the user specify the lib program.
14116 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14117 fix_srcfile_path='`cygpath -w "$srcfile"`'
14118 enable_shared_with_static_runtimes=yes
14119 ;;
14120
14121 darwin* | rhapsody*)
14122
14123
14124 archive_cmds_need_lc=no
14125 hardcode_direct=no
14126 hardcode_automatic=yes
14127 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000014128 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000014129 link_all_deplibs=yes
14130 allow_undefined_flag="$_lt_dar_allow_undefined"
14131 case $cc_basename in
14132 ifort*) _lt_dar_can_shared=yes ;;
14133 *) _lt_dar_can_shared=$GCC ;;
14134 esac
14135 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000014136 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000014137 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14138 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14139 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}"
14140 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}"
14141
14142 else
14143 ld_shlibs=no
14144 fi
14145
14146 ;;
14147
14148 dgux*)
14149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14150 hardcode_libdir_flag_spec='-L$libdir'
14151 hardcode_shlibpath_var=no
14152 ;;
14153
14154 freebsd1*)
14155 ld_shlibs=no
14156 ;;
14157
14158 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14159 # support. Future versions do this automatically, but an explicit c++rt0.o
14160 # does not break anything, and helps significantly (at the cost of a little
14161 # extra space).
14162 freebsd2.2*)
14163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14164 hardcode_libdir_flag_spec='-R$libdir'
14165 hardcode_direct=yes
14166 hardcode_shlibpath_var=no
14167 ;;
14168
14169 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14170 freebsd2*)
14171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14172 hardcode_direct=yes
14173 hardcode_minus_L=yes
14174 hardcode_shlibpath_var=no
14175 ;;
14176
14177 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14178 freebsd* | dragonfly*)
14179 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14180 hardcode_libdir_flag_spec='-R$libdir'
14181 hardcode_direct=yes
14182 hardcode_shlibpath_var=no
14183 ;;
14184
14185 hpux9*)
14186 if test "$GCC" = yes; then
14187 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'
14188 else
14189 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'
14190 fi
14191 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14192 hardcode_libdir_separator=:
14193 hardcode_direct=yes
14194
14195 # hardcode_minus_L: Not really in the search PATH,
14196 # but as the default location of the library.
14197 hardcode_minus_L=yes
14198 export_dynamic_flag_spec='${wl}-E'
14199 ;;
14200
14201 hpux10*)
cristy18304f92009-11-22 15:48:26 +000014202 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014203 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14204 else
14205 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14206 fi
14207 if test "$with_gnu_ld" = no; then
14208 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14209 hardcode_libdir_flag_spec_ld='+b $libdir'
14210 hardcode_libdir_separator=:
14211 hardcode_direct=yes
14212 hardcode_direct_absolute=yes
14213 export_dynamic_flag_spec='${wl}-E'
14214 # hardcode_minus_L: Not really in the search PATH,
14215 # but as the default location of the library.
14216 hardcode_minus_L=yes
14217 fi
14218 ;;
14219
14220 hpux11*)
cristy18304f92009-11-22 15:48:26 +000014221 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014222 case $host_cpu in
14223 hppa*64*)
14224 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14225 ;;
14226 ia64*)
14227 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14228 ;;
14229 *)
14230 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14231 ;;
14232 esac
14233 else
14234 case $host_cpu in
14235 hppa*64*)
14236 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14237 ;;
14238 ia64*)
14239 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14240 ;;
14241 *)
cristy18304f92009-11-22 15:48:26 +000014242 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy3ed852e2009-09-05 21:47:34 +000014243 ;;
14244 esac
14245 fi
14246 if test "$with_gnu_ld" = no; then
14247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14248 hardcode_libdir_separator=:
14249
14250 case $host_cpu in
14251 hppa*64*|ia64*)
14252 hardcode_direct=no
14253 hardcode_shlibpath_var=no
14254 ;;
14255 *)
14256 hardcode_direct=yes
14257 hardcode_direct_absolute=yes
14258 export_dynamic_flag_spec='${wl}-E'
14259
14260 # hardcode_minus_L: Not really in the search PATH,
14261 # but as the default location of the library.
14262 hardcode_minus_L=yes
14263 ;;
14264 esac
14265 fi
14266 ;;
14267
14268 irix5* | irix6* | nonstopux*)
14269 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000014270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000014271 # Try to use the -exported_symbol ld option, if it does not
14272 # work, assume that -exports_file does not work either and
14273 # implicitly export all symbols.
14274 save_LDFLAGS="$LDFLAGS"
14275 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000014276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000014278int foo(void) {}
14279_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014280if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000014281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000014282
cristy3ed852e2009-09-05 21:47:34 +000014283fi
cristy8b350f62009-11-15 23:12:43 +000014284rm -f core conftest.err conftest.$ac_objext \
14285 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014286 LDFLAGS="$save_LDFLAGS"
14287 else
cristy18304f92009-11-22 15:48:26 +000014288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14289 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000014290 fi
14291 archive_cmds_need_lc='no'
14292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14293 hardcode_libdir_separator=:
14294 inherit_rpath=yes
14295 link_all_deplibs=yes
14296 ;;
14297
14298 netbsd*)
14299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14301 else
14302 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14303 fi
14304 hardcode_libdir_flag_spec='-R$libdir'
14305 hardcode_direct=yes
14306 hardcode_shlibpath_var=no
14307 ;;
14308
14309 newsos6)
14310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14311 hardcode_direct=yes
14312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14313 hardcode_libdir_separator=:
14314 hardcode_shlibpath_var=no
14315 ;;
14316
14317 *nto* | *qnx*)
14318 ;;
14319
14320 openbsd*)
14321 if test -f /usr/libexec/ld.so; then
14322 hardcode_direct=yes
14323 hardcode_shlibpath_var=no
14324 hardcode_direct_absolute=yes
14325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14327 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14328 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14329 export_dynamic_flag_spec='${wl}-E'
14330 else
14331 case $host_os in
14332 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14334 hardcode_libdir_flag_spec='-R$libdir'
14335 ;;
14336 *)
14337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14338 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14339 ;;
14340 esac
14341 fi
14342 else
14343 ld_shlibs=no
14344 fi
14345 ;;
14346
14347 os2*)
14348 hardcode_libdir_flag_spec='-L$libdir'
14349 hardcode_minus_L=yes
14350 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000014351 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 +000014352 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14353 ;;
14354
14355 osf3*)
14356 if test "$GCC" = yes; then
14357 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000014358 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000014359 else
14360 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000014361 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000014362 fi
14363 archive_cmds_need_lc='no'
14364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14365 hardcode_libdir_separator=:
14366 ;;
14367
14368 osf4* | osf5*) # as osf3* with the addition of -msym flag
14369 if test "$GCC" = yes; then
14370 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000014371 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000014372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14373 else
14374 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000014375 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000014376 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~
cristy18304f92009-11-22 15:48:26 +000014377 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
cristy3ed852e2009-09-05 21:47:34 +000014378
14379 # Both c and cxx compiler support -rpath directly
14380 hardcode_libdir_flag_spec='-rpath $libdir'
14381 fi
14382 archive_cmds_need_lc='no'
14383 hardcode_libdir_separator=:
14384 ;;
14385
14386 solaris*)
14387 no_undefined_flag=' -z defs'
14388 if test "$GCC" = yes; then
14389 wlarc='${wl}'
14390 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14392 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14393 else
14394 case `$CC -V 2>&1` in
14395 *"Compilers 5.0"*)
14396 wlarc=''
14397 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14400 ;;
14401 *)
14402 wlarc='${wl}'
14403 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14404 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14405 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14406 ;;
14407 esac
14408 fi
14409 hardcode_libdir_flag_spec='-R$libdir'
14410 hardcode_shlibpath_var=no
14411 case $host_os in
14412 solaris2.[0-5] | solaris2.[0-5].*) ;;
14413 *)
14414 # The compiler driver will combine and reorder linker options,
14415 # but understands `-z linker_flag'. GCC discards it without `$wl',
14416 # but is careful enough not to reorder.
14417 # Supported since Solaris 2.6 (maybe 2.5.1?)
14418 if test "$GCC" = yes; then
14419 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14420 else
14421 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14422 fi
14423 ;;
14424 esac
14425 link_all_deplibs=yes
14426 ;;
14427
14428 sunos4*)
14429 if test "x$host_vendor" = xsequent; then
14430 # Use $CC to link under sequent, because it throws in some extra .o
14431 # files that make .init and .fini sections work.
14432 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14433 else
14434 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14435 fi
14436 hardcode_libdir_flag_spec='-L$libdir'
14437 hardcode_direct=yes
14438 hardcode_minus_L=yes
14439 hardcode_shlibpath_var=no
14440 ;;
14441
14442 sysv4)
14443 case $host_vendor in
14444 sni)
14445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14446 hardcode_direct=yes # is this really true???
14447 ;;
14448 siemens)
14449 ## LD is ld it makes a PLAMLIB
14450 ## CC just makes a GrossModule.
14451 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14452 reload_cmds='$CC -r -o $output$reload_objs'
14453 hardcode_direct=no
14454 ;;
14455 motorola)
14456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14457 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14458 ;;
14459 esac
14460 runpath_var='LD_RUN_PATH'
14461 hardcode_shlibpath_var=no
14462 ;;
14463
14464 sysv4.3*)
14465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14466 hardcode_shlibpath_var=no
14467 export_dynamic_flag_spec='-Bexport'
14468 ;;
14469
14470 sysv4*MP*)
14471 if test -d /usr/nec; then
14472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14473 hardcode_shlibpath_var=no
14474 runpath_var=LD_RUN_PATH
14475 hardcode_runpath_var=yes
14476 ld_shlibs=yes
14477 fi
14478 ;;
14479
14480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14481 no_undefined_flag='${wl}-z,text'
14482 archive_cmds_need_lc=no
14483 hardcode_shlibpath_var=no
14484 runpath_var='LD_RUN_PATH'
14485
14486 if test "$GCC" = yes; then
14487 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14488 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14489 else
14490 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14491 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14492 fi
14493 ;;
14494
14495 sysv5* | sco3.2v5* | sco5v6*)
14496 # Note: We can NOT use -z defs as we might desire, because we do not
14497 # link with -lc, and that would cause any symbols used from libc to
14498 # always be unresolved, which means just about no library would
14499 # ever link correctly. If we're not using GNU ld we use -z text
14500 # though, which does catch some bad symbols but isn't as heavy-handed
14501 # as -z defs.
14502 no_undefined_flag='${wl}-z,text'
14503 allow_undefined_flag='${wl}-z,nodefs'
14504 archive_cmds_need_lc=no
14505 hardcode_shlibpath_var=no
14506 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14507 hardcode_libdir_separator=':'
14508 link_all_deplibs=yes
14509 export_dynamic_flag_spec='${wl}-Bexport'
14510 runpath_var='LD_RUN_PATH'
14511
14512 if test "$GCC" = yes; then
14513 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14514 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14515 else
14516 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14517 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14518 fi
14519 ;;
14520
14521 uts4*)
14522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14523 hardcode_libdir_flag_spec='-L$libdir'
14524 hardcode_shlibpath_var=no
14525 ;;
14526
14527 *)
14528 ld_shlibs=no
14529 ;;
14530 esac
14531
14532 if test x$host_vendor = xsni; then
14533 case $host in
14534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14535 export_dynamic_flag_spec='${wl}-Blargedynsym'
14536 ;;
14537 esac
14538 fi
14539 fi
14540
cristy8b350f62009-11-15 23:12:43 +000014541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014542$as_echo "$ld_shlibs" >&6; }
14543test "$ld_shlibs" = no && can_build_shared=no
14544
14545with_gnu_ld=$with_gnu_ld
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561#
14562# Do we need to explicitly link libc?
14563#
14564case "x$archive_cmds_need_lc" in
14565x|xyes)
14566 # Assume -lc should be added
14567 archive_cmds_need_lc=yes
14568
14569 if test "$enable_shared" = yes && test "$GCC" = yes; then
14570 case $archive_cmds in
14571 *'~'*)
14572 # FIXME: we may have to deal with multi-command sequences.
14573 ;;
14574 '$CC '*)
14575 # Test whether the compiler implicitly links with -lc since on some
14576 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14577 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014579$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000014580 $RM conftest*
14581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014582
cristy18304f92009-11-22 15:48:26 +000014583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014584 (eval $ac_compile) 2>&5
14585 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14587 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000014588 soname=conftest
14589 lib=conftest
14590 libobjs=conftest.$ac_objext
14591 deplibs=
14592 wl=$lt_prog_compiler_wl
14593 pic_flag=$lt_prog_compiler_pic
14594 compiler_flags=-v
14595 linker_flags=-v
14596 verstring=
14597 output_objdir=.
14598 libname=conftest
14599 lt_save_allow_undefined_flag=$allow_undefined_flag
14600 allow_undefined_flag=
14601 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 +000014602 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14603 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14605 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000014606 then
14607 archive_cmds_need_lc=no
14608 else
14609 archive_cmds_need_lc=yes
14610 fi
14611 allow_undefined_flag=$lt_save_allow_undefined_flag
14612 else
14613 cat conftest.err 1>&5
14614 fi
14615 $RM conftest*
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14617$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000014618 ;;
14619 esac
14620 fi
14621 ;;
14622esac
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
cristy8b350f62009-11-15 23:12:43 +000014780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014781$as_echo_n "checking dynamic linker characteristics... " >&6; }
14782
14783if test "$GCC" = yes; then
14784 case $host_os in
14785 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14786 *) lt_awk_arg="/^libraries:/" ;;
14787 esac
cristy18304f92009-11-22 15:48:26 +000014788 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14789 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000014790 # if the path contains ";" then we assume it to be the separator
14791 # otherwise default to the standard path separator (i.e. ":") - it is
14792 # assumed that no part of a normal pathname contains ";" but that should
14793 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000014794 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14795 else
14796 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14797 fi
cristy3ed852e2009-09-05 21:47:34 +000014798 # Ok, now we have the path, separated by spaces, we can step through it
14799 # and add multilib dir if necessary.
14800 lt_tmp_lt_search_path_spec=
14801 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14802 for lt_sys_path in $lt_search_path_spec; do
14803 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14804 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14805 else
14806 test -d "$lt_sys_path" && \
14807 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14808 fi
14809 done
cristy18304f92009-11-22 15:48:26 +000014810 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000014811BEGIN {RS=" "; FS="/|\n";} {
14812 lt_foo="";
14813 lt_count=0;
14814 for (lt_i = NF; lt_i > 0; lt_i--) {
14815 if ($lt_i != "" && $lt_i != ".") {
14816 if ($lt_i == "..") {
14817 lt_count++;
14818 } else {
14819 if (lt_count == 0) {
14820 lt_foo="/" $lt_i lt_foo;
14821 } else {
14822 lt_count--;
14823 }
14824 }
14825 }
14826 }
14827 if (lt_foo != "") { lt_freq[lt_foo]++; }
14828 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14829}'`
cristy18304f92009-11-22 15:48:26 +000014830 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000014831else
14832 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14833fi
14834library_names_spec=
14835libname_spec='lib$name'
14836soname_spec=
14837shrext_cmds=".so"
14838postinstall_cmds=
14839postuninstall_cmds=
14840finish_cmds=
14841finish_eval=
14842shlibpath_var=
14843shlibpath_overrides_runpath=unknown
14844version_type=none
14845dynamic_linker="$host_os ld.so"
14846sys_lib_dlsearch_path_spec="/lib /usr/lib"
14847need_lib_prefix=unknown
14848hardcode_into_libs=no
14849
14850# when you set need_version to no, make sure it does not cause -set_version
14851# flags to be left without arguments
14852need_version=unknown
14853
14854case $host_os in
14855aix3*)
14856 version_type=linux
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14858 shlibpath_var=LIBPATH
14859
14860 # AIX 3 has no versioning support, so we append a major version to the name.
14861 soname_spec='${libname}${release}${shared_ext}$major'
14862 ;;
14863
14864aix[4-9]*)
14865 version_type=linux
14866 need_lib_prefix=no
14867 need_version=no
14868 hardcode_into_libs=yes
14869 if test "$host_cpu" = ia64; then
14870 # AIX 5 supports IA64
14871 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14872 shlibpath_var=LD_LIBRARY_PATH
14873 else
14874 # With GCC up to 2.95.x, collect2 would create an import file
14875 # for dependence libraries. The import file would start with
14876 # the line `#! .'. This would cause the generated library to
14877 # depend on `.', always an invalid library. This was fixed in
14878 # development snapshots of GCC prior to 3.0.
14879 case $host_os in
14880 aix4 | aix4.[01] | aix4.[01].*)
14881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14882 echo ' yes '
14883 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14884 :
14885 else
14886 can_build_shared=no
14887 fi
14888 ;;
14889 esac
14890 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14891 # soname into executable. Probably we can add versioning support to
14892 # collect2, so additional links can be useful in future.
14893 if test "$aix_use_runtimelinking" = yes; then
14894 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14895 # instead of lib<name>.a to let people know that these are not
14896 # typical AIX shared libraries.
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898 else
14899 # We preserve .a as extension for shared libraries through AIX4.2
14900 # and later when we are not doing run time linking.
14901 library_names_spec='${libname}${release}.a $libname.a'
14902 soname_spec='${libname}${release}${shared_ext}$major'
14903 fi
14904 shlibpath_var=LIBPATH
14905 fi
14906 ;;
14907
14908amigaos*)
14909 case $host_cpu in
14910 powerpc)
14911 # Since July 2007 AmigaOS4 officially supports .so libraries.
14912 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914 ;;
14915 m68k)
14916 library_names_spec='$libname.ixlibrary $libname.a'
14917 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000014918 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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 +000014919 ;;
14920 esac
14921 ;;
14922
14923beos*)
14924 library_names_spec='${libname}${shared_ext}'
14925 dynamic_linker="$host_os ld.so"
14926 shlibpath_var=LIBRARY_PATH
14927 ;;
14928
14929bsdi[45]*)
14930 version_type=linux
14931 need_version=no
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14935 shlibpath_var=LD_LIBRARY_PATH
14936 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14937 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14938 # the default ld.so.conf also contains /usr/contrib/lib and
14939 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14940 # libtool to hard-code these into programs
14941 ;;
14942
14943cygwin* | mingw* | pw32* | cegcc*)
14944 version_type=windows
14945 shrext_cmds=".dll"
14946 need_version=no
14947 need_lib_prefix=no
14948
14949 case $GCC,$host_os in
14950 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14951 library_names_spec='$libname.dll.a'
14952 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14953 postinstall_cmds='base_file=`basename \${file}`~
14954 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14955 dldir=$destdir/`dirname \$dlpath`~
14956 test -d \$dldir || mkdir -p \$dldir~
14957 $install_prog $dir/$dlname \$dldir/$dlname~
14958 chmod a+x \$dldir/$dlname~
14959 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14960 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14961 fi'
14962 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14963 dlpath=$dir/\$dldll~
14964 $RM \$dlpath'
14965 shlibpath_overrides_runpath=yes
14966
14967 case $host_os in
14968 cygwin*)
14969 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14970 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014971 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000014972 ;;
14973 mingw* | cegcc*)
14974 # MinGW DLLs use traditional 'lib' prefix
14975 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014976 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14977 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14978 # It is most probably a Windows format PATH printed by
14979 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14980 # path with ; separators, and with drive letters. We can handle the
14981 # drive letters (cygwin fileutils understands them), so leave them,
14982 # especially as we might pass files found there to a mingw objdump,
14983 # which wouldn't understand a cygwinified path. Ahh.
14984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14985 else
14986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14987 fi
cristy3ed852e2009-09-05 21:47:34 +000014988 ;;
14989 pw32*)
14990 # pw32 DLLs use 'pw' prefix rather than 'lib'
14991 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14992 ;;
14993 esac
14994 ;;
14995
14996 *)
14997 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14998 ;;
14999 esac
15000 dynamic_linker='Win32 ld.exe'
15001 # FIXME: first we should search . and the directory the executable is in
15002 shlibpath_var=PATH
15003 ;;
15004
15005darwin* | rhapsody*)
15006 dynamic_linker="$host_os dyld"
15007 version_type=darwin
15008 need_lib_prefix=no
15009 need_version=no
15010 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15011 soname_spec='${libname}${release}${major}$shared_ext'
15012 shlibpath_overrides_runpath=yes
15013 shlibpath_var=DYLD_LIBRARY_PATH
15014 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15015
15016 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15017 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15018 ;;
15019
15020dgux*)
15021 version_type=linux
15022 need_lib_prefix=no
15023 need_version=no
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 shlibpath_var=LD_LIBRARY_PATH
15027 ;;
15028
15029freebsd1*)
15030 dynamic_linker=no
15031 ;;
15032
15033freebsd* | dragonfly*)
15034 # DragonFly does not have aout. When/if they implement a new
15035 # versioning mechanism, adjust this.
15036 if test -x /usr/bin/objformat; then
15037 objformat=`/usr/bin/objformat`
15038 else
15039 case $host_os in
15040 freebsd[123]*) objformat=aout ;;
15041 *) objformat=elf ;;
15042 esac
15043 fi
15044 version_type=freebsd-$objformat
15045 case $version_type in
15046 freebsd-elf*)
15047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15048 need_version=no
15049 need_lib_prefix=no
15050 ;;
15051 freebsd-*)
15052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15053 need_version=yes
15054 ;;
15055 esac
15056 shlibpath_var=LD_LIBRARY_PATH
15057 case $host_os in
15058 freebsd2*)
15059 shlibpath_overrides_runpath=yes
15060 ;;
15061 freebsd3.[01]* | freebsdelf3.[01]*)
15062 shlibpath_overrides_runpath=yes
15063 hardcode_into_libs=yes
15064 ;;
15065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15067 shlibpath_overrides_runpath=no
15068 hardcode_into_libs=yes
15069 ;;
15070 *) # from 4.6 on, and DragonFly
15071 shlibpath_overrides_runpath=yes
15072 hardcode_into_libs=yes
15073 ;;
15074 esac
15075 ;;
15076
15077gnu*)
15078 version_type=linux
15079 need_lib_prefix=no
15080 need_version=no
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15082 soname_spec='${libname}${release}${shared_ext}$major'
15083 shlibpath_var=LD_LIBRARY_PATH
15084 hardcode_into_libs=yes
15085 ;;
15086
15087hpux9* | hpux10* | hpux11*)
15088 # Give a soname corresponding to the major version so that dld.sl refuses to
15089 # link against other versions.
15090 version_type=sunos
15091 need_lib_prefix=no
15092 need_version=no
15093 case $host_cpu in
15094 ia64*)
15095 shrext_cmds='.so'
15096 hardcode_into_libs=yes
15097 dynamic_linker="$host_os dld.so"
15098 shlibpath_var=LD_LIBRARY_PATH
15099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101 soname_spec='${libname}${release}${shared_ext}$major'
15102 if test "X$HPUX_IA64_MODE" = X32; then
15103 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15104 else
15105 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15106 fi
15107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15108 ;;
15109 hppa*64*)
15110 shrext_cmds='.sl'
15111 hardcode_into_libs=yes
15112 dynamic_linker="$host_os dld.sl"
15113 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15119 ;;
15120 *)
15121 shrext_cmds='.sl'
15122 dynamic_linker="$host_os dld.sl"
15123 shlibpath_var=SHLIB_PATH
15124 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15126 soname_spec='${libname}${release}${shared_ext}$major'
15127 ;;
15128 esac
cristy18304f92009-11-22 15:48:26 +000015129 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000015130 postinstall_cmds='chmod 555 $lib'
15131 ;;
15132
15133interix[3-9]*)
15134 version_type=linux
15135 need_lib_prefix=no
15136 need_version=no
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15140 shlibpath_var=LD_LIBRARY_PATH
15141 shlibpath_overrides_runpath=no
15142 hardcode_into_libs=yes
15143 ;;
15144
15145irix5* | irix6* | nonstopux*)
15146 case $host_os in
15147 nonstopux*) version_type=nonstopux ;;
15148 *)
15149 if test "$lt_cv_prog_gnu_ld" = yes; then
15150 version_type=linux
15151 else
15152 version_type=irix
15153 fi ;;
15154 esac
15155 need_lib_prefix=no
15156 need_version=no
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15159 case $host_os in
15160 irix5* | nonstopux*)
15161 libsuff= shlibsuff=
15162 ;;
15163 *)
15164 case $LD in # libtool.m4 will add one of these switches to LD
15165 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15166 libsuff= shlibsuff= libmagic=32-bit;;
15167 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15168 libsuff=32 shlibsuff=N32 libmagic=N32;;
15169 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15170 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15171 *) libsuff= shlibsuff= libmagic=never-match;;
15172 esac
15173 ;;
15174 esac
15175 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15176 shlibpath_overrides_runpath=no
15177 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15178 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15179 hardcode_into_libs=yes
15180 ;;
15181
15182# No shared lib support for Linux oldld, aout, or coff.
15183linux*oldld* | linux*aout* | linux*coff*)
15184 dynamic_linker=no
15185 ;;
15186
15187# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000015188linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015189 version_type=linux
15190 need_lib_prefix=no
15191 need_version=no
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15195 shlibpath_var=LD_LIBRARY_PATH
15196 shlibpath_overrides_runpath=no
15197 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000015198 save_LDFLAGS=$LDFLAGS
15199 save_libdir=$libdir
15200 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15201 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015203/* end confdefs.h. */
15204
15205int
15206main ()
15207{
15208
15209 ;
15210 return 0;
15211}
15212_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015213if ac_fn_c_try_link "$LINENO"; then :
15214 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000015215 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000015216fi
cristy3ed852e2009-09-05 21:47:34 +000015217fi
cristy8b350f62009-11-15 23:12:43 +000015218rm -f core conftest.err conftest.$ac_objext \
15219 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000015220 LDFLAGS=$save_LDFLAGS
15221 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000015222
15223 # This implies no fast_install, which is unacceptable.
15224 # Some rework will be needed to allow for fast_install
15225 # before this can be enabled.
15226 hardcode_into_libs=yes
15227
cristy679ed8e2009-12-05 02:37:41 +000015228 # Add ABI-specific directories to the system library path.
15229 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15230
cristy3ed852e2009-09-05 21:47:34 +000015231 # Append ld.so.conf contents to the search path
15232 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000015233 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;/^$/d' | tr '\n' ' '`
cristy679ed8e2009-12-05 02:37:41 +000015234 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000015235 fi
15236
15237 # We used to test for /lib/ld.so.1 and disable shared libraries on
15238 # powerpc, because MkLinux only supported shared libraries with the
15239 # GNU dynamic linker. Since this was broken with cross compilers,
15240 # most powerpc-linux boxes support dynamic linking these days and
15241 # people can always --disable-shared, the test was removed, and we
15242 # assume the GNU/Linux dynamic linker is in use.
15243 dynamic_linker='GNU/Linux ld.so'
15244 ;;
15245
15246netbsd*)
15247 version_type=sunos
15248 need_lib_prefix=no
15249 need_version=no
15250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15253 dynamic_linker='NetBSD (a.out) ld.so'
15254 else
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15256 soname_spec='${libname}${release}${shared_ext}$major'
15257 dynamic_linker='NetBSD ld.elf_so'
15258 fi
15259 shlibpath_var=LD_LIBRARY_PATH
15260 shlibpath_overrides_runpath=yes
15261 hardcode_into_libs=yes
15262 ;;
15263
15264newsos6)
15265 version_type=linux
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 shlibpath_var=LD_LIBRARY_PATH
15268 shlibpath_overrides_runpath=yes
15269 ;;
15270
15271*nto* | *qnx*)
15272 version_type=qnx
15273 need_lib_prefix=no
15274 need_version=no
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15276 soname_spec='${libname}${release}${shared_ext}$major'
15277 shlibpath_var=LD_LIBRARY_PATH
15278 shlibpath_overrides_runpath=no
15279 hardcode_into_libs=yes
15280 dynamic_linker='ldqnx.so'
15281 ;;
15282
15283openbsd*)
15284 version_type=sunos
15285 sys_lib_dlsearch_path_spec="/usr/lib"
15286 need_lib_prefix=no
15287 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15288 case $host_os in
15289 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15290 *) need_version=no ;;
15291 esac
15292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15294 shlibpath_var=LD_LIBRARY_PATH
15295 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15296 case $host_os in
15297 openbsd2.[89] | openbsd2.[89].*)
15298 shlibpath_overrides_runpath=no
15299 ;;
15300 *)
15301 shlibpath_overrides_runpath=yes
15302 ;;
15303 esac
15304 else
15305 shlibpath_overrides_runpath=yes
15306 fi
15307 ;;
15308
15309os2*)
15310 libname_spec='$name'
15311 shrext_cmds=".dll"
15312 need_lib_prefix=no
15313 library_names_spec='$libname${shared_ext} $libname.a'
15314 dynamic_linker='OS/2 ld.exe'
15315 shlibpath_var=LIBPATH
15316 ;;
15317
15318osf3* | osf4* | osf5*)
15319 version_type=osf
15320 need_lib_prefix=no
15321 need_version=no
15322 soname_spec='${libname}${release}${shared_ext}$major'
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15324 shlibpath_var=LD_LIBRARY_PATH
15325 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15326 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15327 ;;
15328
15329rdos*)
15330 dynamic_linker=no
15331 ;;
15332
15333solaris*)
15334 version_type=linux
15335 need_lib_prefix=no
15336 need_version=no
15337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15338 soname_spec='${libname}${release}${shared_ext}$major'
15339 shlibpath_var=LD_LIBRARY_PATH
15340 shlibpath_overrides_runpath=yes
15341 hardcode_into_libs=yes
15342 # ldd complains unless libraries are executable
15343 postinstall_cmds='chmod +x $lib'
15344 ;;
15345
15346sunos4*)
15347 version_type=sunos
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15349 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15350 shlibpath_var=LD_LIBRARY_PATH
15351 shlibpath_overrides_runpath=yes
15352 if test "$with_gnu_ld" = yes; then
15353 need_lib_prefix=no
15354 fi
15355 need_version=yes
15356 ;;
15357
15358sysv4 | sysv4.3*)
15359 version_type=linux
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15362 shlibpath_var=LD_LIBRARY_PATH
15363 case $host_vendor in
15364 sni)
15365 shlibpath_overrides_runpath=no
15366 need_lib_prefix=no
15367 runpath_var=LD_RUN_PATH
15368 ;;
15369 siemens)
15370 need_lib_prefix=no
15371 ;;
15372 motorola)
15373 need_lib_prefix=no
15374 need_version=no
15375 shlibpath_overrides_runpath=no
15376 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15377 ;;
15378 esac
15379 ;;
15380
15381sysv4*MP*)
15382 if test -d /usr/nec ;then
15383 version_type=linux
15384 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15385 soname_spec='$libname${shared_ext}.$major'
15386 shlibpath_var=LD_LIBRARY_PATH
15387 fi
15388 ;;
15389
15390sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15391 version_type=freebsd-elf
15392 need_lib_prefix=no
15393 need_version=no
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 shlibpath_var=LD_LIBRARY_PATH
15397 shlibpath_overrides_runpath=yes
15398 hardcode_into_libs=yes
15399 if test "$with_gnu_ld" = yes; then
15400 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15401 else
15402 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15403 case $host_os in
15404 sco3.2v5*)
15405 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15406 ;;
15407 esac
15408 fi
15409 sys_lib_dlsearch_path_spec='/usr/lib'
15410 ;;
15411
15412tpf*)
15413 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15414 version_type=linux
15415 need_lib_prefix=no
15416 need_version=no
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 shlibpath_overrides_runpath=no
15420 hardcode_into_libs=yes
15421 ;;
15422
15423uts4*)
15424 version_type=linux
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426 soname_spec='${libname}${release}${shared_ext}$major'
15427 shlibpath_var=LD_LIBRARY_PATH
15428 ;;
15429
15430*)
15431 dynamic_linker=no
15432 ;;
15433esac
cristy8b350f62009-11-15 23:12:43 +000015434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015435$as_echo "$dynamic_linker" >&6; }
15436test "$dynamic_linker" = no && can_build_shared=no
15437
15438variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15439if test "$GCC" = yes; then
15440 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15441fi
15442
15443if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15444 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15445fi
15446if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15447 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15448fi
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
cristy8b350f62009-11-15 23:12:43 +000015536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015537$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15538hardcode_action=
15539if test -n "$hardcode_libdir_flag_spec" ||
15540 test -n "$runpath_var" ||
15541 test "X$hardcode_automatic" = "Xyes" ; then
15542
15543 # We can hardcode non-existent directories.
15544 if test "$hardcode_direct" != no &&
15545 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15546 # have to relink, otherwise we might link with an installed library
15547 # when we should be linking with a yet-to-be-installed one
15548 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15549 test "$hardcode_minus_L" != no; then
15550 # Linking always hardcodes the temporary library directory.
15551 hardcode_action=relink
15552 else
15553 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15554 hardcode_action=immediate
15555 fi
15556else
15557 # We cannot hardcode anything, or else we can only hardcode existing
15558 # directories.
15559 hardcode_action=unsupported
15560fi
cristy8b350f62009-11-15 23:12:43 +000015561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015562$as_echo "$hardcode_action" >&6; }
15563
15564if test "$hardcode_action" = relink ||
15565 test "$inherit_rpath" = yes; then
15566 # Fast installation is not supported
15567 enable_fast_install=no
15568elif test "$shlibpath_overrides_runpath" = yes ||
15569 test "$enable_shared" = no; then
15570 # Fast installation is not necessary
15571 enable_fast_install=needless
15572fi
15573
15574
15575
15576
15577
15578
15579 if test "x$enable_dlopen" != xyes; then
15580 enable_dlopen=unknown
15581 enable_dlopen_self=unknown
15582 enable_dlopen_self_static=unknown
15583else
15584 lt_cv_dlopen=no
15585 lt_cv_dlopen_libs=
15586
15587 case $host_os in
15588 beos*)
15589 lt_cv_dlopen="load_add_on"
15590 lt_cv_dlopen_libs=
15591 lt_cv_dlopen_self=yes
15592 ;;
15593
15594 mingw* | pw32* | cegcc*)
15595 lt_cv_dlopen="LoadLibrary"
15596 lt_cv_dlopen_libs=
15597 ;;
15598
15599 cygwin*)
15600 lt_cv_dlopen="dlopen"
15601 lt_cv_dlopen_libs=
15602 ;;
15603
15604 darwin*)
15605 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015607$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015608if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015609 $as_echo_n "(cached) " >&6
15610else
15611 ac_check_lib_save_LIBS=$LIBS
15612LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015614/* end confdefs.h. */
15615
15616/* Override any GCC internal prototype to avoid an error.
15617 Use char because int might match the return type of a GCC
15618 builtin and then its argument prototype would still apply. */
15619#ifdef __cplusplus
15620extern "C"
15621#endif
15622char dlopen ();
15623int
15624main ()
15625{
15626return dlopen ();
15627 ;
15628 return 0;
15629}
15630_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015631if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015632 ac_cv_lib_dl_dlopen=yes
15633else
cristy8b350f62009-11-15 23:12:43 +000015634 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015635fi
cristy8b350f62009-11-15 23:12:43 +000015636rm -f core conftest.err conftest.$ac_objext \
15637 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015638LIBS=$ac_check_lib_save_LIBS
15639fi
cristy8b350f62009-11-15 23:12:43 +000015640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015641$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015642if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15644else
15645
15646 lt_cv_dlopen="dyld"
15647 lt_cv_dlopen_libs=
15648 lt_cv_dlopen_self=yes
15649
15650fi
15651
15652 ;;
15653
15654 *)
cristy8b350f62009-11-15 23:12:43 +000015655 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15656if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015657 lt_cv_dlopen="shl_load"
15658else
cristy8b350f62009-11-15 23:12:43 +000015659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015660$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015661if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015662 $as_echo_n "(cached) " >&6
15663else
15664 ac_check_lib_save_LIBS=$LIBS
15665LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015667/* end confdefs.h. */
15668
15669/* Override any GCC internal prototype to avoid an error.
15670 Use char because int might match the return type of a GCC
15671 builtin and then its argument prototype would still apply. */
15672#ifdef __cplusplus
15673extern "C"
15674#endif
15675char shl_load ();
15676int
15677main ()
15678{
15679return shl_load ();
15680 ;
15681 return 0;
15682}
15683_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015684if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015685 ac_cv_lib_dld_shl_load=yes
15686else
cristy8b350f62009-11-15 23:12:43 +000015687 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015688fi
cristy8b350f62009-11-15 23:12:43 +000015689rm -f core conftest.err conftest.$ac_objext \
15690 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015691LIBS=$ac_check_lib_save_LIBS
15692fi
cristy8b350f62009-11-15 23:12:43 +000015693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015694$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015695if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015696 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15697else
cristy8b350f62009-11-15 23:12:43 +000015698 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15699if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015700 lt_cv_dlopen="dlopen"
15701else
cristy8b350f62009-11-15 23:12:43 +000015702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015703$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015704if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015705 $as_echo_n "(cached) " >&6
15706else
15707 ac_check_lib_save_LIBS=$LIBS
15708LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015710/* end confdefs.h. */
15711
15712/* Override any GCC internal prototype to avoid an error.
15713 Use char because int might match the return type of a GCC
15714 builtin and then its argument prototype would still apply. */
15715#ifdef __cplusplus
15716extern "C"
15717#endif
15718char dlopen ();
15719int
15720main ()
15721{
15722return dlopen ();
15723 ;
15724 return 0;
15725}
15726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015727if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015728 ac_cv_lib_dl_dlopen=yes
15729else
cristy8b350f62009-11-15 23:12:43 +000015730 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015731fi
cristy8b350f62009-11-15 23:12:43 +000015732rm -f core conftest.err conftest.$ac_objext \
15733 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015734LIBS=$ac_check_lib_save_LIBS
15735fi
cristy8b350f62009-11-15 23:12:43 +000015736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015737$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015738if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015739 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15740else
cristy8b350f62009-11-15 23:12:43 +000015741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015742$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015743if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015744 $as_echo_n "(cached) " >&6
15745else
15746 ac_check_lib_save_LIBS=$LIBS
15747LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015749/* end confdefs.h. */
15750
15751/* Override any GCC internal prototype to avoid an error.
15752 Use char because int might match the return type of a GCC
15753 builtin and then its argument prototype would still apply. */
15754#ifdef __cplusplus
15755extern "C"
15756#endif
15757char dlopen ();
15758int
15759main ()
15760{
15761return dlopen ();
15762 ;
15763 return 0;
15764}
15765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015766if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015767 ac_cv_lib_svld_dlopen=yes
15768else
cristy8b350f62009-11-15 23:12:43 +000015769 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015770fi
cristy8b350f62009-11-15 23:12:43 +000015771rm -f core conftest.err conftest.$ac_objext \
15772 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015773LIBS=$ac_check_lib_save_LIBS
15774fi
cristy8b350f62009-11-15 23:12:43 +000015775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015776$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015777if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15779else
cristy8b350f62009-11-15 23:12:43 +000015780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015781$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015782if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015783 $as_echo_n "(cached) " >&6
15784else
15785 ac_check_lib_save_LIBS=$LIBS
15786LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015788/* end confdefs.h. */
15789
15790/* Override any GCC internal prototype to avoid an error.
15791 Use char because int might match the return type of a GCC
15792 builtin and then its argument prototype would still apply. */
15793#ifdef __cplusplus
15794extern "C"
15795#endif
15796char dld_link ();
15797int
15798main ()
15799{
15800return dld_link ();
15801 ;
15802 return 0;
15803}
15804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015805if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015806 ac_cv_lib_dld_dld_link=yes
15807else
cristy8b350f62009-11-15 23:12:43 +000015808 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015809fi
cristy8b350f62009-11-15 23:12:43 +000015810rm -f core conftest.err conftest.$ac_objext \
15811 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015812LIBS=$ac_check_lib_save_LIBS
15813fi
cristy8b350f62009-11-15 23:12:43 +000015814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015815$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015816if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015817 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15818fi
15819
15820
15821fi
15822
15823
15824fi
15825
15826
15827fi
15828
15829
15830fi
15831
15832
15833fi
15834
15835 ;;
15836 esac
15837
15838 if test "x$lt_cv_dlopen" != xno; then
15839 enable_dlopen=yes
15840 else
15841 enable_dlopen=no
15842 fi
15843
15844 case $lt_cv_dlopen in
15845 dlopen)
15846 save_CPPFLAGS="$CPPFLAGS"
15847 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15848
15849 save_LDFLAGS="$LDFLAGS"
15850 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15851
15852 save_LIBS="$LIBS"
15853 LIBS="$lt_cv_dlopen_libs $LIBS"
15854
cristy8b350f62009-11-15 23:12:43 +000015855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015856$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015857if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015858 $as_echo_n "(cached) " >&6
15859else
15860 if test "$cross_compiling" = yes; then :
15861 lt_cv_dlopen_self=cross
15862else
15863 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15864 lt_status=$lt_dlunknown
15865 cat > conftest.$ac_ext <<_LT_EOF
cristy0d3a6382010-04-26 00:45:55 +000015866#line 15866 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015867#include "confdefs.h"
15868
15869#if HAVE_DLFCN_H
15870#include <dlfcn.h>
15871#endif
15872
15873#include <stdio.h>
15874
15875#ifdef RTLD_GLOBAL
15876# define LT_DLGLOBAL RTLD_GLOBAL
15877#else
15878# ifdef DL_GLOBAL
15879# define LT_DLGLOBAL DL_GLOBAL
15880# else
15881# define LT_DLGLOBAL 0
15882# endif
15883#endif
15884
15885/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15886 find out it does not work in some platform. */
15887#ifndef LT_DLLAZY_OR_NOW
15888# ifdef RTLD_LAZY
15889# define LT_DLLAZY_OR_NOW RTLD_LAZY
15890# else
15891# ifdef DL_LAZY
15892# define LT_DLLAZY_OR_NOW DL_LAZY
15893# else
15894# ifdef RTLD_NOW
15895# define LT_DLLAZY_OR_NOW RTLD_NOW
15896# else
15897# ifdef DL_NOW
15898# define LT_DLLAZY_OR_NOW DL_NOW
15899# else
15900# define LT_DLLAZY_OR_NOW 0
15901# endif
15902# endif
15903# endif
15904# endif
15905#endif
15906
cristy18304f92009-11-22 15:48:26 +000015907void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015908int main ()
15909{
15910 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15911 int status = $lt_dlunknown;
15912
15913 if (self)
15914 {
15915 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015916 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015917 /* dlclose (self); */
15918 }
15919 else
15920 puts (dlerror ());
15921
15922 return status;
15923}
15924_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015926 (eval $ac_link) 2>&5
15927 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15929 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015930 (./conftest; exit; ) >&5 2>/dev/null
15931 lt_status=$?
15932 case x$lt_status in
15933 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15934 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15935 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15936 esac
15937 else :
15938 # compilation failed
15939 lt_cv_dlopen_self=no
15940 fi
15941fi
15942rm -fr conftest*
15943
15944
15945fi
cristy8b350f62009-11-15 23:12:43 +000015946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015947$as_echo "$lt_cv_dlopen_self" >&6; }
15948
15949 if test "x$lt_cv_dlopen_self" = xyes; then
15950 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015952$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015953if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015954 $as_echo_n "(cached) " >&6
15955else
15956 if test "$cross_compiling" = yes; then :
15957 lt_cv_dlopen_self_static=cross
15958else
15959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15960 lt_status=$lt_dlunknown
15961 cat > conftest.$ac_ext <<_LT_EOF
cristy0d3a6382010-04-26 00:45:55 +000015962#line 15962 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015963#include "confdefs.h"
15964
15965#if HAVE_DLFCN_H
15966#include <dlfcn.h>
15967#endif
15968
15969#include <stdio.h>
15970
15971#ifdef RTLD_GLOBAL
15972# define LT_DLGLOBAL RTLD_GLOBAL
15973#else
15974# ifdef DL_GLOBAL
15975# define LT_DLGLOBAL DL_GLOBAL
15976# else
15977# define LT_DLGLOBAL 0
15978# endif
15979#endif
15980
15981/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15982 find out it does not work in some platform. */
15983#ifndef LT_DLLAZY_OR_NOW
15984# ifdef RTLD_LAZY
15985# define LT_DLLAZY_OR_NOW RTLD_LAZY
15986# else
15987# ifdef DL_LAZY
15988# define LT_DLLAZY_OR_NOW DL_LAZY
15989# else
15990# ifdef RTLD_NOW
15991# define LT_DLLAZY_OR_NOW RTLD_NOW
15992# else
15993# ifdef DL_NOW
15994# define LT_DLLAZY_OR_NOW DL_NOW
15995# else
15996# define LT_DLLAZY_OR_NOW 0
15997# endif
15998# endif
15999# endif
16000# endif
16001#endif
16002
cristy18304f92009-11-22 15:48:26 +000016003void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000016004int main ()
16005{
16006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16007 int status = $lt_dlunknown;
16008
16009 if (self)
16010 {
16011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000016012 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000016013 /* dlclose (self); */
16014 }
16015 else
16016 puts (dlerror ());
16017
16018 return status;
16019}
16020_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000016021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016022 (eval $ac_link) 2>&5
16023 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16025 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000016026 (./conftest; exit; ) >&5 2>/dev/null
16027 lt_status=$?
16028 case x$lt_status in
16029 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16030 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16031 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16032 esac
16033 else :
16034 # compilation failed
16035 lt_cv_dlopen_self_static=no
16036 fi
16037fi
16038rm -fr conftest*
16039
16040
16041fi
cristy8b350f62009-11-15 23:12:43 +000016042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016043$as_echo "$lt_cv_dlopen_self_static" >&6; }
16044 fi
16045
16046 CPPFLAGS="$save_CPPFLAGS"
16047 LDFLAGS="$save_LDFLAGS"
16048 LIBS="$save_LIBS"
16049 ;;
16050 esac
16051
16052 case $lt_cv_dlopen_self in
16053 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16054 *) enable_dlopen_self=unknown ;;
16055 esac
16056
16057 case $lt_cv_dlopen_self_static in
16058 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16059 *) enable_dlopen_self_static=unknown ;;
16060 esac
16061fi
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079striplib=
16080old_striplib=
cristy8b350f62009-11-15 23:12:43 +000016081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000016082$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16083if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16084 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16085 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000016086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016087$as_echo "yes" >&6; }
16088else
16089# FIXME - insert some real tests, host_os isn't really good enough
16090 case $host_os in
16091 darwin*)
16092 if test -n "$STRIP" ; then
16093 striplib="$STRIP -x"
16094 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000016095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016096$as_echo "yes" >&6; }
16097 else
cristy8b350f62009-11-15 23:12:43 +000016098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016099$as_echo "no" >&6; }
16100 fi
16101 ;;
16102 *)
cristy8b350f62009-11-15 23:12:43 +000016103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016104$as_echo "no" >&6; }
16105 ;;
16106 esac
16107fi
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000016121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016122$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016124$as_echo "$can_build_shared" >&6; }
16125
cristy8b350f62009-11-15 23:12:43 +000016126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016127$as_echo_n "checking whether to build shared libraries... " >&6; }
16128 test "$can_build_shared" = "no" && enable_shared=no
16129
16130 # On AIX, shared libraries and static libraries use the same namespace, and
16131 # are all built from PIC.
16132 case $host_os in
16133 aix3*)
16134 test "$enable_shared" = yes && enable_static=no
16135 if test -n "$RANLIB"; then
16136 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16137 postinstall_cmds='$RANLIB $lib'
16138 fi
16139 ;;
16140
16141 aix[4-9]*)
16142 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16143 test "$enable_shared" = yes && enable_static=no
16144 fi
16145 ;;
16146 esac
cristy8b350f62009-11-15 23:12:43 +000016147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016148$as_echo "$enable_shared" >&6; }
16149
cristy8b350f62009-11-15 23:12:43 +000016150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016151$as_echo_n "checking whether to build static libraries... " >&6; }
16152 # Make sure either enable_shared or enable_static is yes.
16153 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000016154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016155$as_echo "$enable_static" >&6; }
16156
16157
16158
16159
16160fi
16161ac_ext=c
16162ac_cpp='$CPP $CPPFLAGS'
16163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16165ac_compiler_gnu=$ac_cv_c_compiler_gnu
16166
16167CC="$lt_save_CC"
16168
16169
16170ac_ext=cpp
16171ac_cpp='$CXXCPP $CPPFLAGS'
16172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16175
16176archive_cmds_need_lc_CXX=no
16177allow_undefined_flag_CXX=
16178always_export_symbols_CXX=no
16179archive_expsym_cmds_CXX=
16180compiler_needs_object_CXX=no
16181export_dynamic_flag_spec_CXX=
16182hardcode_direct_CXX=no
16183hardcode_direct_absolute_CXX=no
16184hardcode_libdir_flag_spec_CXX=
16185hardcode_libdir_flag_spec_ld_CXX=
16186hardcode_libdir_separator_CXX=
16187hardcode_minus_L_CXX=no
16188hardcode_shlibpath_var_CXX=unsupported
16189hardcode_automatic_CXX=no
16190inherit_rpath_CXX=no
16191module_cmds_CXX=
16192module_expsym_cmds_CXX=
16193link_all_deplibs_CXX=unknown
16194old_archive_cmds_CXX=$old_archive_cmds
16195no_undefined_flag_CXX=
16196whole_archive_flag_spec_CXX=
16197enable_shared_with_static_runtimes_CXX=no
16198
16199# Source file extension for C++ test sources.
16200ac_ext=cpp
16201
16202# Object file extension for compiled C++ test sources.
16203objext=o
16204objext_CXX=$objext
16205
16206# No sense in running all these tests if we already determined that
16207# the CXX compiler isn't working. Some variables (like enable_shared)
16208# are currently assumed to apply to all compilers on this platform,
16209# and will be corrupted by setting them based on a non-working compiler.
16210if test "$_lt_caught_CXX_error" != yes; then
16211 # Code to be used in simple compile tests
16212 lt_simple_compile_test_code="int some_variable = 0;"
16213
16214 # Code to be used in simple link tests
16215 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16216
16217 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16218
16219
16220
16221
16222
16223
16224# If no C compiler was specified, use CC.
16225LTCC=${LTCC-"$CC"}
16226
16227# If no C compiler flags were specified, use CFLAGS.
16228LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16229
16230# Allow CC to be a program name with arguments.
16231compiler=$CC
16232
16233
16234 # save warnings/boilerplate of simple test code
16235 ac_outfile=conftest.$ac_objext
16236echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16237eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16238_lt_compiler_boilerplate=`cat conftest.err`
16239$RM conftest*
16240
16241 ac_outfile=conftest.$ac_objext
16242echo "$lt_simple_link_test_code" >conftest.$ac_ext
16243eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16244_lt_linker_boilerplate=`cat conftest.err`
16245$RM -r conftest*
16246
16247
16248 # Allow CC to be a program name with arguments.
16249 lt_save_CC=$CC
16250 lt_save_LD=$LD
16251 lt_save_GCC=$GCC
16252 GCC=$GXX
16253 lt_save_with_gnu_ld=$with_gnu_ld
16254 lt_save_path_LD=$lt_cv_path_LD
16255 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16256 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16257 else
16258 $as_unset lt_cv_prog_gnu_ld
16259 fi
16260 if test -n "${lt_cv_path_LDCXX+set}"; then
16261 lt_cv_path_LD=$lt_cv_path_LDCXX
16262 else
16263 $as_unset lt_cv_path_LD
16264 fi
16265 test -z "${LDCXX+set}" || LD=$LDCXX
16266 CC=${CXX-"c++"}
16267 compiler=$CC
16268 compiler_CXX=$CC
16269 for cc_temp in $compiler""; do
16270 case $cc_temp in
16271 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16272 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16273 \-*) ;;
16274 *) break;;
16275 esac
16276done
cristy18304f92009-11-22 15:48:26 +000016277cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016278
16279
16280 if test -n "$compiler"; then
16281 # We don't want -fno-exception when compiling C++ code, so set the
16282 # no_builtin_flag separately
16283 if test "$GXX" = yes; then
16284 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16285 else
16286 lt_prog_compiler_no_builtin_flag_CXX=
16287 fi
16288
16289 if test "$GXX" = yes; then
16290 # Set up default GNU C++ configuration
16291
16292
16293
16294# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016295if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016296 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16297else
16298 with_gnu_ld=no
16299fi
16300
16301ac_prog=ld
16302if test "$GCC" = yes; then
16303 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016305$as_echo_n "checking for ld used by $CC... " >&6; }
16306 case $host in
16307 *-*-mingw*)
16308 # gcc leaves a trailing carriage return which upsets mingw
16309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16310 *)
16311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16312 esac
16313 case $ac_prog in
16314 # Accept absolute paths.
16315 [\\/]* | ?:[\\/]*)
16316 re_direlt='/[^/][^/]*/\.\./'
16317 # Canonicalize the pathname of ld
16318 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16319 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16320 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16321 done
16322 test -z "$LD" && LD="$ac_prog"
16323 ;;
16324 "")
16325 # If it fails, then pretend we aren't using GCC.
16326 ac_prog=ld
16327 ;;
16328 *)
16329 # If it is relative, then search for the first ld in PATH.
16330 with_gnu_ld=unknown
16331 ;;
16332 esac
16333elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016335$as_echo_n "checking for GNU ld... " >&6; }
16336else
cristy8b350f62009-11-15 23:12:43 +000016337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016338$as_echo_n "checking for non-GNU ld... " >&6; }
16339fi
cristy8b350f62009-11-15 23:12:43 +000016340if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016341 $as_echo_n "(cached) " >&6
16342else
16343 if test -z "$LD"; then
16344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16345 for ac_dir in $PATH; do
16346 IFS="$lt_save_ifs"
16347 test -z "$ac_dir" && ac_dir=.
16348 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16349 lt_cv_path_LD="$ac_dir/$ac_prog"
16350 # Check to see if the program is GNU ld. I'd rather use --version,
16351 # but apparently some variants of GNU ld only accept -v.
16352 # Break only if it was the GNU/non-GNU ld that we prefer.
16353 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16354 *GNU* | *'with BFD'*)
16355 test "$with_gnu_ld" != no && break
16356 ;;
16357 *)
16358 test "$with_gnu_ld" != yes && break
16359 ;;
16360 esac
16361 fi
16362 done
16363 IFS="$lt_save_ifs"
16364else
16365 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16366fi
16367fi
16368
16369LD="$lt_cv_path_LD"
16370if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016372$as_echo "$LD" >&6; }
16373else
cristy8b350f62009-11-15 23:12:43 +000016374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016375$as_echo "no" >&6; }
16376fi
cristy8b350f62009-11-15 23:12:43 +000016377test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016379$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016380if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016381 $as_echo_n "(cached) " >&6
16382else
16383 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16384case `$LD -v 2>&1 </dev/null` in
16385*GNU* | *'with BFD'*)
16386 lt_cv_prog_gnu_ld=yes
16387 ;;
16388*)
16389 lt_cv_prog_gnu_ld=no
16390 ;;
16391esac
16392fi
cristy8b350f62009-11-15 23:12:43 +000016393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016394$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16395with_gnu_ld=$lt_cv_prog_gnu_ld
16396
16397
16398
16399
16400
16401
16402
16403 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16404 # archiving commands below assume that GNU ld is being used.
16405 if test "$with_gnu_ld" = yes; then
16406 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16407 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'
16408
16409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16411
16412 # If archive_cmds runs LD, not CC, wlarc should be empty
16413 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16414 # investigate it a little bit more. (MM)
16415 wlarc='${wl}'
16416
16417 # ancient GNU ld didn't support --whole-archive et. al.
16418 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16419 $GREP 'no-whole-archive' > /dev/null; then
16420 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16421 else
16422 whole_archive_flag_spec_CXX=
16423 fi
16424 else
16425 with_gnu_ld=no
16426 wlarc=
16427
16428 # A generic and very simple default shared library creation
16429 # command for GNU C++ for the case where it uses the native
16430 # linker, instead of GNU ld. If possible, this setting should
16431 # overridden to take advantage of the native linker features on
16432 # the platform it is being used on.
16433 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16434 fi
16435
16436 # Commands to make compiler produce verbose output that lists
16437 # what "hidden" libraries, object files and flags are used when
16438 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016439 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016440
16441 else
16442 GXX=no
16443 with_gnu_ld=no
16444 wlarc=
16445 fi
16446
16447 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016449$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16450 ld_shlibs_CXX=yes
16451 case $host_os in
16452 aix3*)
16453 # FIXME: insert proper C++ library support
16454 ld_shlibs_CXX=no
16455 ;;
16456 aix[4-9]*)
16457 if test "$host_cpu" = ia64; then
16458 # On IA64, the linker does run time linking by default, so we don't
16459 # have to do anything special.
16460 aix_use_runtimelinking=no
16461 exp_sym_flag='-Bexport'
16462 no_entry_flag=""
16463 else
16464 aix_use_runtimelinking=no
16465
16466 # Test if we are trying to use run time linking or normal
16467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16468 # need to do runtime linking.
16469 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16470 for ld_flag in $LDFLAGS; do
16471 case $ld_flag in
16472 *-brtl*)
16473 aix_use_runtimelinking=yes
16474 break
16475 ;;
16476 esac
16477 done
16478 ;;
16479 esac
16480
16481 exp_sym_flag='-bexport'
16482 no_entry_flag='-bnoentry'
16483 fi
16484
16485 # When large executables or shared objects are built, AIX ld can
16486 # have problems creating the table of contents. If linking a library
16487 # or program results in "error TOC overflow" add -mminimal-toc to
16488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16490
16491 archive_cmds_CXX=''
16492 hardcode_direct_CXX=yes
16493 hardcode_direct_absolute_CXX=yes
16494 hardcode_libdir_separator_CXX=':'
16495 link_all_deplibs_CXX=yes
16496 file_list_spec_CXX='${wl}-f,'
16497
16498 if test "$GXX" = yes; then
16499 case $host_os in aix4.[012]|aix4.[012].*)
16500 # We only want to do this on AIX 4.2 and lower, the check
16501 # below for broken collect2 doesn't work under 4.3+
16502 collect2name=`${CC} -print-prog-name=collect2`
16503 if test -f "$collect2name" &&
16504 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16505 then
16506 # We have reworked collect2
16507 :
16508 else
16509 # We have old collect2
16510 hardcode_direct_CXX=unsupported
16511 # It fails to find uninstalled libraries when the uninstalled
16512 # path is not listed in the libpath. Setting hardcode_minus_L
16513 # to unsupported forces relinking
16514 hardcode_minus_L_CXX=yes
16515 hardcode_libdir_flag_spec_CXX='-L$libdir'
16516 hardcode_libdir_separator_CXX=
16517 fi
16518 esac
16519 shared_flag='-shared'
16520 if test "$aix_use_runtimelinking" = yes; then
16521 shared_flag="$shared_flag "'${wl}-G'
16522 fi
16523 else
16524 # not using gcc
16525 if test "$host_cpu" = ia64; then
16526 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16527 # chokes on -Wl,-G. The following line is correct:
16528 shared_flag='-G'
16529 else
16530 if test "$aix_use_runtimelinking" = yes; then
16531 shared_flag='${wl}-G'
16532 else
16533 shared_flag='${wl}-bM:SRE'
16534 fi
16535 fi
16536 fi
16537
16538 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16539 # It seems that -bexpall does not export symbols beginning with
16540 # underscore (_), so it is better to generate a list of symbols to
16541 # export.
16542 always_export_symbols_CXX=yes
16543 if test "$aix_use_runtimelinking" = yes; then
16544 # Warning - without using the other runtime loading flags (-brtl),
16545 # -berok will link without error, but may produce a broken library.
16546 allow_undefined_flag_CXX='-berok'
16547 # Determine the default libpath from the value encoded in an empty
16548 # executable.
cristy8b350f62009-11-15 23:12:43 +000016549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016550/* end confdefs.h. */
16551
16552int
16553main ()
16554{
16555
16556 ;
16557 return 0;
16558}
16559_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016560if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016561
16562lt_aix_libpath_sed='
16563 /Import File Strings/,/^$/ {
16564 /^0/ {
16565 s/^0 *\(.*\)$/\1/
16566 p
16567 }
16568 }'
16569aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16570# Check for a 64-bit object if we didn't find anything.
16571if test -z "$aix_libpath"; then
16572 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16573fi
cristy3ed852e2009-09-05 21:47:34 +000016574fi
cristy8b350f62009-11-15 23:12:43 +000016575rm -f core conftest.err conftest.$ac_objext \
16576 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016577if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16578
16579 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16580
cristy18304f92009-11-22 15:48:26 +000016581 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy3ed852e2009-09-05 21:47:34 +000016582 else
16583 if test "$host_cpu" = ia64; then
16584 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16585 allow_undefined_flag_CXX="-z nodefs"
16586 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"
16587 else
16588 # Determine the default libpath from the value encoded in an
16589 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016591/* end confdefs.h. */
16592
16593int
16594main ()
16595{
16596
16597 ;
16598 return 0;
16599}
16600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016601if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016602
16603lt_aix_libpath_sed='
16604 /Import File Strings/,/^$/ {
16605 /^0/ {
16606 s/^0 *\(.*\)$/\1/
16607 p
16608 }
16609 }'
16610aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16611# Check for a 64-bit object if we didn't find anything.
16612if test -z "$aix_libpath"; then
16613 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16614fi
cristy3ed852e2009-09-05 21:47:34 +000016615fi
cristy8b350f62009-11-15 23:12:43 +000016616rm -f core conftest.err conftest.$ac_objext \
16617 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016618if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16619
16620 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16621 # Warning - without using the other run time loading flags,
16622 # -berok will link without error, but may produce a broken library.
16623 no_undefined_flag_CXX=' ${wl}-bernotok'
16624 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000016625 # Exported symbols can be pulled into shared objects from archives
16626 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000016627 archive_cmds_need_lc_CXX=yes
16628 # This is similar to how AIX traditionally builds its shared
16629 # libraries.
16630 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'
16631 fi
16632 fi
16633 ;;
16634
16635 beos*)
16636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16637 allow_undefined_flag_CXX=unsupported
16638 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16639 # support --undefined. This deserves some investigation. FIXME
16640 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16641 else
16642 ld_shlibs_CXX=no
16643 fi
16644 ;;
16645
16646 chorus*)
16647 case $cc_basename in
16648 *)
16649 # FIXME: insert proper C++ library support
16650 ld_shlibs_CXX=no
16651 ;;
16652 esac
16653 ;;
16654
16655 cygwin* | mingw* | pw32* | cegcc*)
16656 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16657 # as there is no search path for DLLs.
16658 hardcode_libdir_flag_spec_CXX='-L$libdir'
16659 allow_undefined_flag_CXX=unsupported
16660 always_export_symbols_CXX=no
16661 enable_shared_with_static_runtimes_CXX=yes
16662
16663 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16664 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'
16665 # If the export-symbols file already is a .def file (1st line
16666 # is EXPORTS), use it as is; otherwise, prepend...
16667 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16668 cp $export_symbols $output_objdir/$soname.def;
16669 else
16670 echo EXPORTS > $output_objdir/$soname.def;
16671 cat $export_symbols >> $output_objdir/$soname.def;
16672 fi~
16673 $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'
16674 else
16675 ld_shlibs_CXX=no
16676 fi
16677 ;;
16678 darwin* | rhapsody*)
16679
16680
16681 archive_cmds_need_lc_CXX=no
16682 hardcode_direct_CXX=no
16683 hardcode_automatic_CXX=yes
16684 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000016685 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000016686 link_all_deplibs_CXX=yes
16687 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16688 case $cc_basename in
16689 ifort*) _lt_dar_can_shared=yes ;;
16690 *) _lt_dar_can_shared=$GCC ;;
16691 esac
16692 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000016693 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016694 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}"
16695 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16696 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}"
16697 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}"
16698 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16699 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}"
16700 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}"
16701 fi
16702
16703 else
16704 ld_shlibs_CXX=no
16705 fi
16706
16707 ;;
16708
16709 dgux*)
16710 case $cc_basename in
16711 ec++*)
16712 # FIXME: insert proper C++ library support
16713 ld_shlibs_CXX=no
16714 ;;
16715 ghcx*)
16716 # Green Hills C++ Compiler
16717 # FIXME: insert proper C++ library support
16718 ld_shlibs_CXX=no
16719 ;;
16720 *)
16721 # FIXME: insert proper C++ library support
16722 ld_shlibs_CXX=no
16723 ;;
16724 esac
16725 ;;
16726
16727 freebsd[12]*)
16728 # C++ shared libraries reported to be fairly broken before
16729 # switch to ELF
16730 ld_shlibs_CXX=no
16731 ;;
16732
16733 freebsd-elf*)
16734 archive_cmds_need_lc_CXX=no
16735 ;;
16736
16737 freebsd* | dragonfly*)
16738 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16739 # conventions
16740 ld_shlibs_CXX=yes
16741 ;;
16742
16743 gnu*)
16744 ;;
16745
16746 hpux9*)
16747 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16748 hardcode_libdir_separator_CXX=:
16749 export_dynamic_flag_spec_CXX='${wl}-E'
16750 hardcode_direct_CXX=yes
16751 hardcode_minus_L_CXX=yes # Not in the search PATH,
16752 # but as the default
16753 # location of the library.
16754
16755 case $cc_basename in
16756 CC*)
16757 # FIXME: insert proper C++ library support
16758 ld_shlibs_CXX=no
16759 ;;
16760 aCC*)
16761 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'
16762 # Commands to make compiler produce verbose output that lists
16763 # what "hidden" libraries, object files and flags are used when
16764 # linking a shared library.
16765 #
16766 # There doesn't appear to be a way to prevent this compiler from
16767 # explicitly linking system object files so we need to strip them
16768 # from the output so that they don't get included in the library
16769 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016770 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; $ECHO "X$list" | $Xsed'
cristy3ed852e2009-09-05 21:47:34 +000016771 ;;
16772 *)
16773 if test "$GXX" = yes; then
16774 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'
16775 else
16776 # FIXME: insert proper C++ library support
16777 ld_shlibs_CXX=no
16778 fi
16779 ;;
16780 esac
16781 ;;
16782
16783 hpux10*|hpux11*)
16784 if test $with_gnu_ld = no; then
16785 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16786 hardcode_libdir_separator_CXX=:
16787
16788 case $host_cpu in
16789 hppa*64*|ia64*)
16790 ;;
16791 *)
16792 export_dynamic_flag_spec_CXX='${wl}-E'
16793 ;;
16794 esac
16795 fi
16796 case $host_cpu in
16797 hppa*64*|ia64*)
16798 hardcode_direct_CXX=no
16799 hardcode_shlibpath_var_CXX=no
16800 ;;
16801 *)
16802 hardcode_direct_CXX=yes
16803 hardcode_direct_absolute_CXX=yes
16804 hardcode_minus_L_CXX=yes # Not in the search PATH,
16805 # but as the default
16806 # location of the library.
16807 ;;
16808 esac
16809
16810 case $cc_basename in
16811 CC*)
16812 # FIXME: insert proper C++ library support
16813 ld_shlibs_CXX=no
16814 ;;
16815 aCC*)
16816 case $host_cpu in
16817 hppa*64*)
16818 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16819 ;;
16820 ia64*)
16821 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16822 ;;
16823 *)
16824 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16825 ;;
16826 esac
16827 # Commands to make compiler produce verbose output that lists
16828 # what "hidden" libraries, object files and flags are used when
16829 # linking a shared library.
16830 #
16831 # There doesn't appear to be a way to prevent this compiler from
16832 # explicitly linking system object files so we need to strip them
16833 # from the output so that they don't get included in the library
16834 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016835 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; $ECHO "X$list" | $Xsed'
cristy3ed852e2009-09-05 21:47:34 +000016836 ;;
16837 *)
16838 if test "$GXX" = yes; then
16839 if test $with_gnu_ld = no; then
16840 case $host_cpu in
16841 hppa*64*)
16842 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16843 ;;
16844 ia64*)
16845 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16846 ;;
16847 *)
16848 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'
16849 ;;
16850 esac
16851 fi
16852 else
16853 # FIXME: insert proper C++ library support
16854 ld_shlibs_CXX=no
16855 fi
16856 ;;
16857 esac
16858 ;;
16859
16860 interix[3-9]*)
16861 hardcode_direct_CXX=no
16862 hardcode_shlibpath_var_CXX=no
16863 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16864 export_dynamic_flag_spec_CXX='${wl}-E'
16865 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16866 # Instead, shared libraries are loaded at an image base (0x10000000 by
16867 # default) and relocated if they conflict, which is a slow very memory
16868 # consuming and fragmenting process. To avoid this, we pick a random,
16869 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16870 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16871 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'
16872 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'
16873 ;;
16874 irix5* | irix6*)
16875 case $cc_basename in
16876 CC*)
16877 # SGI C++
cristy18304f92009-11-22 15:48:26 +000016878 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016879
16880 # Archives containing C++ object files must be created using
16881 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16882 # necessary to make sure instantiated templates are included
16883 # in the archive.
16884 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16885 ;;
16886 *)
16887 if test "$GXX" = yes; then
16888 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000016889 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016890 else
cristy18304f92009-11-22 15:48:26 +000016891 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016892 fi
16893 fi
16894 link_all_deplibs_CXX=yes
16895 ;;
16896 esac
16897 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16898 hardcode_libdir_separator_CXX=:
16899 inherit_rpath_CXX=yes
16900 ;;
16901
cristy18304f92009-11-22 15:48:26 +000016902 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016903 case $cc_basename in
16904 KCC*)
16905 # Kuck and Associates, Inc. (KAI) C++ Compiler
16906
16907 # KCC will only create a shared library if the output file
16908 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16909 # to its proper name (with version) after linking.
16910 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'
16911 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'
16912 # Commands to make compiler produce verbose output that lists
16913 # what "hidden" libraries, object files and flags are used when
16914 # linking a shared library.
16915 #
16916 # There doesn't appear to be a way to prevent this compiler from
16917 # explicitly linking system object files so we need to strip them
16918 # from the output so that they don't get included in the library
16919 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016920 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; $ECHO "X$list" | $Xsed'
cristy3ed852e2009-09-05 21:47:34 +000016921
16922 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16923 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16924
16925 # Archives containing C++ object files must be created using
16926 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16927 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16928 ;;
16929 icpc* | ecpc* )
16930 # Intel C++
16931 with_gnu_ld=yes
16932 # version 8.0 and above of icpc choke on multiply defined symbols
16933 # if we add $predep_objects and $postdep_objects, however 7.1 and
16934 # earlier do not add the objects themselves.
16935 case `$CC -V 2>&1` in
16936 *"Version 7."*)
16937 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16938 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'
16939 ;;
16940 *) # Version 8.0 or newer
16941 tmp_idyn=
16942 case $host_cpu in
16943 ia64*) tmp_idyn=' -i_dynamic';;
16944 esac
16945 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16946 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'
16947 ;;
16948 esac
16949 archive_cmds_need_lc_CXX=no
16950 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16951 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16952 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16953 ;;
16954 pgCC* | pgcpp*)
16955 # Portland Group C++ compiler
16956 case `$CC -V` in
16957 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16958 prelink_cmds_CXX='tpldir=Template.dir~
16959 rm -rf $tpldir~
16960 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16961 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16962 old_archive_cmds_CXX='tpldir=Template.dir~
16963 rm -rf $tpldir~
16964 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16965 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16966 $RANLIB $oldlib'
16967 archive_cmds_CXX='tpldir=Template.dir~
16968 rm -rf $tpldir~
16969 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16970 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16971 archive_expsym_cmds_CXX='tpldir=Template.dir~
16972 rm -rf $tpldir~
16973 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16974 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16975 ;;
16976 *) # Version 6 will use weak symbols
16977 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16978 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'
16979 ;;
16980 esac
16981
16982 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16983 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000016984 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
cristy3ed852e2009-09-05 21:47:34 +000016985 ;;
16986 cxx*)
16987 # Compaq C++
16988 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16989 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'
16990
16991 runpath_var=LD_RUN_PATH
16992 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16993 hardcode_libdir_separator_CXX=:
16994
16995 # Commands to make compiler produce verbose output that lists
16996 # what "hidden" libraries, object files and flags are used when
16997 # linking a shared library.
16998 #
16999 # There doesn't appear to be a way to prevent this compiler from
17000 # explicitly linking system object files so we need to strip them
17001 # from the output so that they don't get included in the library
17002 # dependencies.
cristy18304f92009-11-22 15:48:26 +000017003 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
cristy3ed852e2009-09-05 21:47:34 +000017004 ;;
cristy18304f92009-11-22 15:48:26 +000017005 xl*)
cristy3ed852e2009-09-05 21:47:34 +000017006 # IBM XL 8.0 on PPC, with GNU ld
17007 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17008 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17009 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17010 if test "x$supports_anon_versioning" = xyes; then
17011 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17012 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17013 echo "local: *; };" >> $output_objdir/$libname.ver~
17014 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17015 fi
17016 ;;
17017 *)
17018 case `$CC -V 2>&1 | sed 5q` in
17019 *Sun\ C*)
17020 # Sun C++ 5.9
17021 no_undefined_flag_CXX=' -zdefs'
17022 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17023 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'
17024 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000017025 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
cristy3ed852e2009-09-05 21:47:34 +000017026 compiler_needs_object_CXX=yes
17027
17028 # Not sure whether something based on
17029 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17030 # would be better.
cristy18304f92009-11-22 15:48:26 +000017031 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017032
17033 # Archives containing C++ object files must be created using
17034 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17035 # necessary to make sure instantiated templates are included
17036 # in the archive.
17037 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17038 ;;
17039 esac
17040 ;;
17041 esac
17042 ;;
17043
17044 lynxos*)
17045 # FIXME: insert proper C++ library support
17046 ld_shlibs_CXX=no
17047 ;;
17048
17049 m88k*)
17050 # FIXME: insert proper C++ library support
17051 ld_shlibs_CXX=no
17052 ;;
17053
17054 mvs*)
17055 case $cc_basename in
17056 cxx*)
17057 # FIXME: insert proper C++ library support
17058 ld_shlibs_CXX=no
17059 ;;
17060 *)
17061 # FIXME: insert proper C++ library support
17062 ld_shlibs_CXX=no
17063 ;;
17064 esac
17065 ;;
17066
17067 netbsd*)
17068 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17069 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17070 wlarc=
17071 hardcode_libdir_flag_spec_CXX='-R$libdir'
17072 hardcode_direct_CXX=yes
17073 hardcode_shlibpath_var_CXX=no
17074 fi
17075 # Workaround some broken pre-1.5 toolchains
17076 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17077 ;;
17078
17079 *nto* | *qnx*)
17080 ld_shlibs_CXX=yes
17081 ;;
17082
17083 openbsd2*)
17084 # C++ shared libraries are fairly broken
17085 ld_shlibs_CXX=no
17086 ;;
17087
17088 openbsd*)
17089 if test -f /usr/libexec/ld.so; then
17090 hardcode_direct_CXX=yes
17091 hardcode_shlibpath_var_CXX=no
17092 hardcode_direct_absolute_CXX=yes
17093 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17094 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17095 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17096 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17097 export_dynamic_flag_spec_CXX='${wl}-E'
17098 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17099 fi
cristy18304f92009-11-22 15:48:26 +000017100 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000017101 else
17102 ld_shlibs_CXX=no
17103 fi
17104 ;;
17105
17106 osf3* | osf4* | osf5*)
17107 case $cc_basename in
17108 KCC*)
17109 # Kuck and Associates, Inc. (KAI) C++ Compiler
17110
17111 # KCC will only create a shared library if the output file
17112 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17113 # to its proper name (with version) after linking.
17114 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'
17115
17116 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17117 hardcode_libdir_separator_CXX=:
17118
17119 # Archives containing C++ object files must be created using
17120 # the KAI C++ compiler.
17121 case $host in
17122 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17123 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17124 esac
17125 ;;
17126 RCC*)
17127 # Rational C++ 2.4.1
17128 # FIXME: insert proper C++ library support
17129 ld_shlibs_CXX=no
17130 ;;
17131 cxx*)
17132 case $host in
17133 osf3*)
17134 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000017135 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000017136 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17137 ;;
17138 *)
17139 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000017140 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000017141 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17142 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000017143 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
cristy3ed852e2009-09-05 21:47:34 +000017144 $RM $lib.exp'
17145 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17146 ;;
17147 esac
17148
17149 hardcode_libdir_separator_CXX=:
17150
17151 # Commands to make compiler produce verbose output that lists
17152 # what "hidden" libraries, object files and flags are used when
17153 # linking a shared library.
17154 #
17155 # There doesn't appear to be a way to prevent this compiler from
17156 # explicitly linking system object files so we need to strip them
17157 # from the output so that they don't get included in the library
17158 # dependencies.
cristy18304f92009-11-22 15:48:26 +000017159 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
cristy3ed852e2009-09-05 21:47:34 +000017160 ;;
17161 *)
17162 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17163 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17164 case $host in
17165 osf3*)
cristy18304f92009-11-22 15:48:26 +000017166 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000017167 ;;
17168 *)
cristy18304f92009-11-22 15:48:26 +000017169 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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000017170 ;;
17171 esac
17172
17173 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17174 hardcode_libdir_separator_CXX=:
17175
17176 # Commands to make compiler produce verbose output that lists
17177 # what "hidden" libraries, object files and flags are used when
17178 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017179 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017180
17181 else
17182 # FIXME: insert proper C++ library support
17183 ld_shlibs_CXX=no
17184 fi
17185 ;;
17186 esac
17187 ;;
17188
17189 psos*)
17190 # FIXME: insert proper C++ library support
17191 ld_shlibs_CXX=no
17192 ;;
17193
17194 sunos4*)
17195 case $cc_basename in
17196 CC*)
17197 # Sun C++ 4.x
17198 # FIXME: insert proper C++ library support
17199 ld_shlibs_CXX=no
17200 ;;
17201 lcc*)
17202 # Lucid
17203 # FIXME: insert proper C++ library support
17204 ld_shlibs_CXX=no
17205 ;;
17206 *)
17207 # FIXME: insert proper C++ library support
17208 ld_shlibs_CXX=no
17209 ;;
17210 esac
17211 ;;
17212
17213 solaris*)
17214 case $cc_basename in
17215 CC*)
17216 # Sun C++ 4.2, 5.x and Centerline C++
17217 archive_cmds_need_lc_CXX=yes
17218 no_undefined_flag_CXX=' -zdefs'
17219 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17220 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17221 $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'
17222
17223 hardcode_libdir_flag_spec_CXX='-R$libdir'
17224 hardcode_shlibpath_var_CXX=no
17225 case $host_os in
17226 solaris2.[0-5] | solaris2.[0-5].*) ;;
17227 *)
17228 # The compiler driver will combine and reorder linker options,
17229 # but understands `-z linker_flag'.
17230 # Supported since Solaris 2.6 (maybe 2.5.1?)
17231 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17232 ;;
17233 esac
17234 link_all_deplibs_CXX=yes
17235
cristy18304f92009-11-22 15:48:26 +000017236 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017237
17238 # Archives containing C++ object files must be created using
17239 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17240 # necessary to make sure instantiated templates are included
17241 # in the archive.
17242 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17243 ;;
17244 gcx*)
17245 # Green Hills C++ Compiler
17246 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17247
17248 # The C++ compiler must be used to create the archive.
17249 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17250 ;;
17251 *)
17252 # GNU C++ compiler with Solaris linker
17253 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17254 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17255 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17256 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17257 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17258 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17259
17260 # Commands to make compiler produce verbose output that lists
17261 # what "hidden" libraries, object files and flags are used when
17262 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017263 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017264 else
17265 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17266 # platform.
17267 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17268 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17269 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17270
17271 # Commands to make compiler produce verbose output that lists
17272 # what "hidden" libraries, object files and flags are used when
17273 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017274 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017275 fi
17276
17277 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17278 case $host_os in
17279 solaris2.[0-5] | solaris2.[0-5].*) ;;
17280 *)
17281 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17282 ;;
17283 esac
17284 fi
17285 ;;
17286 esac
17287 ;;
17288
17289 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17290 no_undefined_flag_CXX='${wl}-z,text'
17291 archive_cmds_need_lc_CXX=no
17292 hardcode_shlibpath_var_CXX=no
17293 runpath_var='LD_RUN_PATH'
17294
17295 case $cc_basename in
17296 CC*)
17297 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17298 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17299 ;;
17300 *)
17301 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17302 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17303 ;;
17304 esac
17305 ;;
17306
17307 sysv5* | sco3.2v5* | sco5v6*)
17308 # Note: We can NOT use -z defs as we might desire, because we do not
17309 # link with -lc, and that would cause any symbols used from libc to
17310 # always be unresolved, which means just about no library would
17311 # ever link correctly. If we're not using GNU ld we use -z text
17312 # though, which does catch some bad symbols but isn't as heavy-handed
17313 # as -z defs.
17314 no_undefined_flag_CXX='${wl}-z,text'
17315 allow_undefined_flag_CXX='${wl}-z,nodefs'
17316 archive_cmds_need_lc_CXX=no
17317 hardcode_shlibpath_var_CXX=no
17318 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17319 hardcode_libdir_separator_CXX=':'
17320 link_all_deplibs_CXX=yes
17321 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17322 runpath_var='LD_RUN_PATH'
17323
17324 case $cc_basename in
17325 CC*)
17326 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17327 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17328 ;;
17329 *)
17330 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17331 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17332 ;;
17333 esac
17334 ;;
17335
17336 tandem*)
17337 case $cc_basename in
17338 NCC*)
17339 # NonStop-UX NCC 3.20
17340 # FIXME: insert proper C++ library support
17341 ld_shlibs_CXX=no
17342 ;;
17343 *)
17344 # FIXME: insert proper C++ library support
17345 ld_shlibs_CXX=no
17346 ;;
17347 esac
17348 ;;
17349
17350 vxworks*)
17351 # FIXME: insert proper C++ library support
17352 ld_shlibs_CXX=no
17353 ;;
17354
17355 *)
17356 # FIXME: insert proper C++ library support
17357 ld_shlibs_CXX=no
17358 ;;
17359 esac
17360
cristy8b350f62009-11-15 23:12:43 +000017361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017362$as_echo "$ld_shlibs_CXX" >&6; }
17363 test "$ld_shlibs_CXX" = no && can_build_shared=no
17364
17365 GCC_CXX="$GXX"
17366 LD_CXX="$LD"
17367
17368 ## CAVEAT EMPTOR:
17369 ## There is no encapsulation within the following macros, do not change
17370 ## the running order or otherwise move them around unless you know exactly
17371 ## what you are doing...
17372 # Dependencies to place before and after the object being linked:
17373predep_objects_CXX=
17374postdep_objects_CXX=
17375predeps_CXX=
17376postdeps_CXX=
17377compiler_lib_search_path_CXX=
17378
17379cat > conftest.$ac_ext <<_LT_EOF
17380class Foo
17381{
17382public:
17383 Foo (void) { a = 0; }
17384private:
17385 int a;
17386};
17387_LT_EOF
17388
cristy8b350f62009-11-15 23:12:43 +000017389if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017390 (eval $ac_compile) 2>&5
17391 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17393 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017394 # Parse the compiler output and extract the necessary
17395 # objects, libraries and library flags.
17396
17397 # Sentinel used to keep track of whether or not we are before
17398 # the conftest object file.
17399 pre_test_object_deps_done=no
17400
17401 for p in `eval "$output_verbose_link_cmd"`; do
17402 case $p in
17403
17404 -L* | -R* | -l*)
17405 # Some compilers place space between "-{L,R}" and the path.
17406 # Remove the space.
17407 if test $p = "-L" ||
17408 test $p = "-R"; then
17409 prev=$p
17410 continue
17411 else
17412 prev=
17413 fi
17414
17415 if test "$pre_test_object_deps_done" = no; then
17416 case $p in
17417 -L* | -R*)
17418 # Internal compiler library paths should come after those
17419 # provided the user. The postdeps already come after the
17420 # user supplied libs so there is no need to process them.
17421 if test -z "$compiler_lib_search_path_CXX"; then
17422 compiler_lib_search_path_CXX="${prev}${p}"
17423 else
17424 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17425 fi
17426 ;;
17427 # The "-l" case would never come before the object being
17428 # linked, so don't bother handling this case.
17429 esac
17430 else
17431 if test -z "$postdeps_CXX"; then
17432 postdeps_CXX="${prev}${p}"
17433 else
17434 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17435 fi
17436 fi
17437 ;;
17438
17439 *.$objext)
17440 # This assumes that the test object file only shows up
17441 # once in the compiler output.
17442 if test "$p" = "conftest.$objext"; then
17443 pre_test_object_deps_done=yes
17444 continue
17445 fi
17446
17447 if test "$pre_test_object_deps_done" = no; then
17448 if test -z "$predep_objects_CXX"; then
17449 predep_objects_CXX="$p"
17450 else
17451 predep_objects_CXX="$predep_objects_CXX $p"
17452 fi
17453 else
17454 if test -z "$postdep_objects_CXX"; then
17455 postdep_objects_CXX="$p"
17456 else
17457 postdep_objects_CXX="$postdep_objects_CXX $p"
17458 fi
17459 fi
17460 ;;
17461
17462 *) ;; # Ignore the rest.
17463
17464 esac
17465 done
17466
17467 # Clean up.
17468 rm -f a.out a.exe
17469else
17470 echo "libtool.m4: error: problem compiling CXX test program"
17471fi
17472
17473$RM -f confest.$objext
17474
17475# PORTME: override above test on systems where it is broken
17476case $host_os in
17477interix[3-9]*)
17478 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17479 # hack all around it, let's just trust "g++" to DTRT.
17480 predep_objects_CXX=
17481 postdep_objects_CXX=
17482 postdeps_CXX=
17483 ;;
17484
17485linux*)
17486 case `$CC -V 2>&1 | sed 5q` in
17487 *Sun\ C*)
17488 # Sun C++ 5.9
17489
17490 # The more standards-conforming stlport4 library is
17491 # incompatible with the Cstd library. Avoid specifying
17492 # it if it's in CXXFLAGS. Ignore libCrun as
17493 # -library=stlport4 depends on it.
17494 case " $CXX $CXXFLAGS " in
17495 *" -library=stlport4 "*)
17496 solaris_use_stlport4=yes
17497 ;;
17498 esac
17499
17500 if test "$solaris_use_stlport4" != yes; then
17501 postdeps_CXX='-library=Cstd -library=Crun'
17502 fi
17503 ;;
17504 esac
17505 ;;
17506
17507solaris*)
17508 case $cc_basename in
17509 CC*)
17510 # The more standards-conforming stlport4 library is
17511 # incompatible with the Cstd library. Avoid specifying
17512 # it if it's in CXXFLAGS. Ignore libCrun as
17513 # -library=stlport4 depends on it.
17514 case " $CXX $CXXFLAGS " in
17515 *" -library=stlport4 "*)
17516 solaris_use_stlport4=yes
17517 ;;
17518 esac
17519
17520 # Adding this requires a known-good setup of shared libraries for
17521 # Sun compiler versions before 5.6, else PIC objects from an old
17522 # archive will be linked into the output, leading to subtle bugs.
17523 if test "$solaris_use_stlport4" != yes; then
17524 postdeps_CXX='-library=Cstd -library=Crun'
17525 fi
17526 ;;
17527 esac
17528 ;;
17529esac
17530
17531
17532case " $postdeps_CXX " in
17533*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17534esac
17535 compiler_lib_search_dirs_CXX=
17536if test -n "${compiler_lib_search_path_CXX}"; then
17537 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17538fi
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570 lt_prog_compiler_wl_CXX=
17571lt_prog_compiler_pic_CXX=
17572lt_prog_compiler_static_CXX=
17573
cristy8b350f62009-11-15 23:12:43 +000017574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017575$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17576
17577 # C++ specific cases for pic, static, wl, etc.
17578 if test "$GXX" = yes; then
17579 lt_prog_compiler_wl_CXX='-Wl,'
17580 lt_prog_compiler_static_CXX='-static'
17581
17582 case $host_os in
17583 aix*)
17584 # All AIX code is PIC.
17585 if test "$host_cpu" = ia64; then
17586 # AIX 5 now supports IA64 processor
17587 lt_prog_compiler_static_CXX='-Bstatic'
17588 fi
17589 ;;
17590
17591 amigaos*)
17592 case $host_cpu in
17593 powerpc)
17594 # see comment about AmigaOS4 .so support
17595 lt_prog_compiler_pic_CXX='-fPIC'
17596 ;;
17597 m68k)
17598 # FIXME: we need at least 68020 code to build shared libraries, but
17599 # adding the `-m68020' flag to GCC prevents building anything better,
17600 # like `-m68040'.
17601 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17602 ;;
17603 esac
17604 ;;
17605
17606 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17607 # PIC is the default for these OSes.
17608 ;;
17609 mingw* | cygwin* | os2* | pw32* | cegcc*)
17610 # This hack is so that the source file can tell whether it is being
17611 # built for inclusion in a dll (and should export symbols for example).
17612 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17613 # (--disable-auto-import) libraries
17614 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17615 ;;
17616 darwin* | rhapsody*)
17617 # PIC is the default on this platform
17618 # Common symbols not allowed in MH_DYLIB files
17619 lt_prog_compiler_pic_CXX='-fno-common'
17620 ;;
17621 *djgpp*)
17622 # DJGPP does not support shared libraries at all
17623 lt_prog_compiler_pic_CXX=
17624 ;;
17625 interix[3-9]*)
17626 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17627 # Instead, we relocate shared libraries at runtime.
17628 ;;
17629 sysv4*MP*)
17630 if test -d /usr/nec; then
17631 lt_prog_compiler_pic_CXX=-Kconform_pic
17632 fi
17633 ;;
17634 hpux*)
17635 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17636 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17637 # sets the default TLS model and affects inlining.
17638 case $host_cpu in
17639 hppa*64*)
17640 ;;
17641 *)
17642 lt_prog_compiler_pic_CXX='-fPIC'
17643 ;;
17644 esac
17645 ;;
17646 *qnx* | *nto*)
17647 # QNX uses GNU C++, but need to define -shared option too, otherwise
17648 # it will coredump.
17649 lt_prog_compiler_pic_CXX='-fPIC -shared'
17650 ;;
17651 *)
17652 lt_prog_compiler_pic_CXX='-fPIC'
17653 ;;
17654 esac
17655 else
17656 case $host_os in
17657 aix[4-9]*)
17658 # All AIX code is PIC.
17659 if test "$host_cpu" = ia64; then
17660 # AIX 5 now supports IA64 processor
17661 lt_prog_compiler_static_CXX='-Bstatic'
17662 else
17663 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17664 fi
17665 ;;
17666 chorus*)
17667 case $cc_basename in
17668 cxch68*)
17669 # Green Hills C++ Compiler
17670 # _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"
17671 ;;
17672 esac
17673 ;;
17674 dgux*)
17675 case $cc_basename in
17676 ec++*)
17677 lt_prog_compiler_pic_CXX='-KPIC'
17678 ;;
17679 ghcx*)
17680 # Green Hills C++ Compiler
17681 lt_prog_compiler_pic_CXX='-pic'
17682 ;;
17683 *)
17684 ;;
17685 esac
17686 ;;
17687 freebsd* | dragonfly*)
17688 # FreeBSD uses GNU C++
17689 ;;
17690 hpux9* | hpux10* | hpux11*)
17691 case $cc_basename in
17692 CC*)
17693 lt_prog_compiler_wl_CXX='-Wl,'
17694 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17695 if test "$host_cpu" != ia64; then
17696 lt_prog_compiler_pic_CXX='+Z'
17697 fi
17698 ;;
17699 aCC*)
17700 lt_prog_compiler_wl_CXX='-Wl,'
17701 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17702 case $host_cpu in
17703 hppa*64*|ia64*)
17704 # +Z the default
17705 ;;
17706 *)
17707 lt_prog_compiler_pic_CXX='+Z'
17708 ;;
17709 esac
17710 ;;
17711 *)
17712 ;;
17713 esac
17714 ;;
17715 interix*)
17716 # This is c89, which is MS Visual C++ (no shared libs)
17717 # Anyone wants to do a port?
17718 ;;
17719 irix5* | irix6* | nonstopux*)
17720 case $cc_basename in
17721 CC*)
17722 lt_prog_compiler_wl_CXX='-Wl,'
17723 lt_prog_compiler_static_CXX='-non_shared'
17724 # CC pic flag -KPIC is the default.
17725 ;;
17726 *)
17727 ;;
17728 esac
17729 ;;
cristy18304f92009-11-22 15:48:26 +000017730 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017731 case $cc_basename in
17732 KCC*)
17733 # KAI C++ Compiler
17734 lt_prog_compiler_wl_CXX='--backend -Wl,'
17735 lt_prog_compiler_pic_CXX='-fPIC'
17736 ;;
17737 ecpc* )
17738 # old Intel C++ for x86_64 which still supported -KPIC.
17739 lt_prog_compiler_wl_CXX='-Wl,'
17740 lt_prog_compiler_pic_CXX='-KPIC'
17741 lt_prog_compiler_static_CXX='-static'
17742 ;;
17743 icpc* )
17744 # Intel C++, used to be incompatible with GCC.
17745 # ICC 10 doesn't accept -KPIC any more.
17746 lt_prog_compiler_wl_CXX='-Wl,'
17747 lt_prog_compiler_pic_CXX='-fPIC'
17748 lt_prog_compiler_static_CXX='-static'
17749 ;;
17750 pgCC* | pgcpp*)
17751 # Portland Group C++ compiler
17752 lt_prog_compiler_wl_CXX='-Wl,'
17753 lt_prog_compiler_pic_CXX='-fpic'
17754 lt_prog_compiler_static_CXX='-Bstatic'
17755 ;;
17756 cxx*)
17757 # Compaq C++
17758 # Make sure the PIC flag is empty. It appears that all Alpha
17759 # Linux and Compaq Tru64 Unix objects are PIC.
17760 lt_prog_compiler_pic_CXX=
17761 lt_prog_compiler_static_CXX='-non_shared'
17762 ;;
cristy18304f92009-11-22 15:48:26 +000017763 xlc* | xlC*)
17764 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000017765 lt_prog_compiler_wl_CXX='-Wl,'
17766 lt_prog_compiler_pic_CXX='-qpic'
17767 lt_prog_compiler_static_CXX='-qstaticlink'
17768 ;;
17769 *)
17770 case `$CC -V 2>&1 | sed 5q` in
17771 *Sun\ C*)
17772 # Sun C++ 5.9
17773 lt_prog_compiler_pic_CXX='-KPIC'
17774 lt_prog_compiler_static_CXX='-Bstatic'
17775 lt_prog_compiler_wl_CXX='-Qoption ld '
17776 ;;
17777 esac
17778 ;;
17779 esac
17780 ;;
17781 lynxos*)
17782 ;;
17783 m88k*)
17784 ;;
17785 mvs*)
17786 case $cc_basename in
17787 cxx*)
17788 lt_prog_compiler_pic_CXX='-W c,exportall'
17789 ;;
17790 *)
17791 ;;
17792 esac
17793 ;;
17794 netbsd*)
17795 ;;
17796 *qnx* | *nto*)
17797 # QNX uses GNU C++, but need to define -shared option too, otherwise
17798 # it will coredump.
17799 lt_prog_compiler_pic_CXX='-fPIC -shared'
17800 ;;
17801 osf3* | osf4* | osf5*)
17802 case $cc_basename in
17803 KCC*)
17804 lt_prog_compiler_wl_CXX='--backend -Wl,'
17805 ;;
17806 RCC*)
17807 # Rational C++ 2.4.1
17808 lt_prog_compiler_pic_CXX='-pic'
17809 ;;
17810 cxx*)
17811 # Digital/Compaq C++
17812 lt_prog_compiler_wl_CXX='-Wl,'
17813 # Make sure the PIC flag is empty. It appears that all Alpha
17814 # Linux and Compaq Tru64 Unix objects are PIC.
17815 lt_prog_compiler_pic_CXX=
17816 lt_prog_compiler_static_CXX='-non_shared'
17817 ;;
17818 *)
17819 ;;
17820 esac
17821 ;;
17822 psos*)
17823 ;;
17824 solaris*)
17825 case $cc_basename in
17826 CC*)
17827 # Sun C++ 4.2, 5.x and Centerline C++
17828 lt_prog_compiler_pic_CXX='-KPIC'
17829 lt_prog_compiler_static_CXX='-Bstatic'
17830 lt_prog_compiler_wl_CXX='-Qoption ld '
17831 ;;
17832 gcx*)
17833 # Green Hills C++ Compiler
17834 lt_prog_compiler_pic_CXX='-PIC'
17835 ;;
17836 *)
17837 ;;
17838 esac
17839 ;;
17840 sunos4*)
17841 case $cc_basename in
17842 CC*)
17843 # Sun C++ 4.x
17844 lt_prog_compiler_pic_CXX='-pic'
17845 lt_prog_compiler_static_CXX='-Bstatic'
17846 ;;
17847 lcc*)
17848 # Lucid
17849 lt_prog_compiler_pic_CXX='-pic'
17850 ;;
17851 *)
17852 ;;
17853 esac
17854 ;;
17855 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17856 case $cc_basename in
17857 CC*)
17858 lt_prog_compiler_wl_CXX='-Wl,'
17859 lt_prog_compiler_pic_CXX='-KPIC'
17860 lt_prog_compiler_static_CXX='-Bstatic'
17861 ;;
17862 esac
17863 ;;
17864 tandem*)
17865 case $cc_basename in
17866 NCC*)
17867 # NonStop-UX NCC 3.20
17868 lt_prog_compiler_pic_CXX='-KPIC'
17869 ;;
17870 *)
17871 ;;
17872 esac
17873 ;;
17874 vxworks*)
17875 ;;
17876 *)
17877 lt_prog_compiler_can_build_shared_CXX=no
17878 ;;
17879 esac
17880 fi
17881
17882case $host_os in
17883 # For platforms which do not support PIC, -DPIC is meaningless:
17884 *djgpp*)
17885 lt_prog_compiler_pic_CXX=
17886 ;;
17887 *)
17888 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17889 ;;
17890esac
cristy8b350f62009-11-15 23:12:43 +000017891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017892$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17893
17894
17895
17896#
17897# Check to make sure the PIC flag actually works.
17898#
17899if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017900 { $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 +000017901$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017902if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017903 $as_echo_n "(cached) " >&6
17904else
17905 lt_cv_prog_compiler_pic_works_CXX=no
17906 ac_outfile=conftest.$ac_objext
17907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17908 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17909 # Insert the option either (1) after the last *FLAGS variable, or
17910 # (2) before a word containing "conftest.", or (3) at the end.
17911 # Note that $ac_compile itself does not contain backslashes and begins
17912 # with a dollar sign (not a hyphen), so the echo should work correctly.
17913 # The option is referenced via a variable to avoid confusing sed.
17914 lt_compile=`echo "$ac_compile" | $SED \
17915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17917 -e 's:$: $lt_compiler_flag:'`
cristy0d3a6382010-04-26 00:45:55 +000017918 (eval echo "\"\$as_me:17918: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017919 (eval "$lt_compile" 2>conftest.err)
17920 ac_status=$?
17921 cat conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +000017922 echo "$as_me:17922: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017923 if (exit $ac_status) && test -s "$ac_outfile"; then
17924 # The compiler can only warn and ignore the option if not recognized
17925 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000017926 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17928 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17929 lt_cv_prog_compiler_pic_works_CXX=yes
17930 fi
17931 fi
17932 $RM conftest*
17933
17934fi
cristy8b350f62009-11-15 23:12:43 +000017935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017936$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17937
17938if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17939 case $lt_prog_compiler_pic_CXX in
17940 "" | " "*) ;;
17941 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17942 esac
17943else
17944 lt_prog_compiler_pic_CXX=
17945 lt_prog_compiler_can_build_shared_CXX=no
17946fi
17947
17948fi
17949
17950
17951
17952#
17953# Check to make sure the static flag actually works.
17954#
17955wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017957$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017958if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017959 $as_echo_n "(cached) " >&6
17960else
17961 lt_cv_prog_compiler_static_works_CXX=no
17962 save_LDFLAGS="$LDFLAGS"
17963 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17964 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17965 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17966 # The linker can only warn and ignore the option if not recognized
17967 # So say no if there are warnings
17968 if test -s conftest.err; then
17969 # Append any errors to the config.log.
17970 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000017971 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17973 if diff conftest.exp conftest.er2 >/dev/null; then
17974 lt_cv_prog_compiler_static_works_CXX=yes
17975 fi
17976 else
17977 lt_cv_prog_compiler_static_works_CXX=yes
17978 fi
17979 fi
17980 $RM -r conftest*
17981 LDFLAGS="$save_LDFLAGS"
17982
17983fi
cristy8b350f62009-11-15 23:12:43 +000017984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017985$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17986
17987if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17988 :
17989else
17990 lt_prog_compiler_static_CXX=
17991fi
17992
17993
17994
17995
cristy8b350f62009-11-15 23:12:43 +000017996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017997$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017998if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017999 $as_echo_n "(cached) " >&6
18000else
18001 lt_cv_prog_compiler_c_o_CXX=no
18002 $RM -r conftest 2>/dev/null
18003 mkdir conftest
18004 cd conftest
18005 mkdir out
18006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18007
18008 lt_compiler_flag="-o out/conftest2.$ac_objext"
18009 # Insert the option either (1) after the last *FLAGS variable, or
18010 # (2) before a word containing "conftest.", or (3) at the end.
18011 # Note that $ac_compile itself does not contain backslashes and begins
18012 # with a dollar sign (not a hyphen), so the echo should work correctly.
18013 lt_compile=`echo "$ac_compile" | $SED \
18014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18016 -e 's:$: $lt_compiler_flag:'`
cristy0d3a6382010-04-26 00:45:55 +000018017 (eval echo "\"\$as_me:18017: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018018 (eval "$lt_compile" 2>out/conftest.err)
18019 ac_status=$?
18020 cat out/conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +000018021 echo "$as_me:18021: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018022 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18023 then
18024 # The compiler can only warn and ignore the option if not recognized
18025 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000018026 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000018027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18029 lt_cv_prog_compiler_c_o_CXX=yes
18030 fi
18031 fi
18032 chmod u+w . 2>&5
18033 $RM conftest*
18034 # SGI C++ compiler will create directory out/ii_files/ for
18035 # template instantiation
18036 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18037 $RM out/* && rmdir out
18038 cd ..
18039 $RM -r conftest
18040 $RM conftest*
18041
18042fi
cristy8b350f62009-11-15 23:12:43 +000018043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018044$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18045
18046
18047
cristy8b350f62009-11-15 23:12:43 +000018048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018049$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018050if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018051 $as_echo_n "(cached) " >&6
18052else
18053 lt_cv_prog_compiler_c_o_CXX=no
18054 $RM -r conftest 2>/dev/null
18055 mkdir conftest
18056 cd conftest
18057 mkdir out
18058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18059
18060 lt_compiler_flag="-o out/conftest2.$ac_objext"
18061 # Insert the option either (1) after the last *FLAGS variable, or
18062 # (2) before a word containing "conftest.", or (3) at the end.
18063 # Note that $ac_compile itself does not contain backslashes and begins
18064 # with a dollar sign (not a hyphen), so the echo should work correctly.
18065 lt_compile=`echo "$ac_compile" | $SED \
18066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18068 -e 's:$: $lt_compiler_flag:'`
cristy0d3a6382010-04-26 00:45:55 +000018069 (eval echo "\"\$as_me:18069: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018070 (eval "$lt_compile" 2>out/conftest.err)
18071 ac_status=$?
18072 cat out/conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +000018073 echo "$as_me:18073: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18075 then
18076 # The compiler can only warn and ignore the option if not recognized
18077 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000018078 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000018079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18081 lt_cv_prog_compiler_c_o_CXX=yes
18082 fi
18083 fi
18084 chmod u+w . 2>&5
18085 $RM conftest*
18086 # SGI C++ compiler will create directory out/ii_files/ for
18087 # template instantiation
18088 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18089 $RM out/* && rmdir out
18090 cd ..
18091 $RM -r conftest
18092 $RM conftest*
18093
18094fi
cristy8b350f62009-11-15 23:12:43 +000018095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018096$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18097
18098
18099
18100
18101hard_links="nottested"
18102if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18103 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000018104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018105$as_echo_n "checking if we can lock with hard links... " >&6; }
18106 hard_links=yes
18107 $RM conftest*
18108 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18109 touch conftest.a
18110 ln conftest.a conftest.b 2>&5 || hard_links=no
18111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000018112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018113$as_echo "$hard_links" >&6; }
18114 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000018115 { $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 +000018116$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18117 need_locks=warn
18118 fi
18119else
18120 need_locks=no
18121fi
18122
18123
18124
cristy8b350f62009-11-15 23:12:43 +000018125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000018126$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18127
18128 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18129 case $host_os in
18130 aix[4-9]*)
18131 # If we're using GNU nm, then we don't want the "-C" option.
18132 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18133 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000018134 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy3ed852e2009-09-05 21:47:34 +000018135 else
18136 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'
18137 fi
18138 ;;
18139 pw32*)
18140 export_symbols_cmds_CXX="$ltdll_cmds"
18141 ;;
18142 cygwin* | mingw* | cegcc*)
18143 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'
18144 ;;
18145 *)
18146 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18147 ;;
18148 esac
18149 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18150
cristy8b350f62009-11-15 23:12:43 +000018151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018152$as_echo "$ld_shlibs_CXX" >&6; }
18153test "$ld_shlibs_CXX" = no && can_build_shared=no
18154
18155with_gnu_ld_CXX=$with_gnu_ld
18156
18157
18158
18159
18160
18161
18162#
18163# Do we need to explicitly link libc?
18164#
18165case "x$archive_cmds_need_lc_CXX" in
18166x|xyes)
18167 # Assume -lc should be added
18168 archive_cmds_need_lc_CXX=yes
18169
18170 if test "$enable_shared" = yes && test "$GCC" = yes; then
18171 case $archive_cmds_CXX in
18172 *'~'*)
18173 # FIXME: we may have to deal with multi-command sequences.
18174 ;;
18175 '$CC '*)
18176 # Test whether the compiler implicitly links with -lc since on some
18177 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18178 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000018179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000018180$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000018181 $RM conftest*
18182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018183
cristy18304f92009-11-22 15:48:26 +000018184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018185 (eval $ac_compile) 2>&5
18186 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18188 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000018189 soname=conftest
18190 lib=conftest
18191 libobjs=conftest.$ac_objext
18192 deplibs=
18193 wl=$lt_prog_compiler_wl_CXX
18194 pic_flag=$lt_prog_compiler_pic_CXX
18195 compiler_flags=-v
18196 linker_flags=-v
18197 verstring=
18198 output_objdir=.
18199 libname=conftest
18200 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18201 allow_undefined_flag_CXX=
18202 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 +000018203 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18204 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18206 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000018207 then
18208 archive_cmds_need_lc_CXX=no
18209 else
18210 archive_cmds_need_lc_CXX=yes
18211 fi
18212 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18213 else
18214 cat conftest.err 1>&5
18215 fi
18216 $RM conftest*
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18218$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000018219 ;;
18220 esac
18221 fi
18222 ;;
18223esac
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
cristy8b350f62009-11-15 23:12:43 +000018288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018289$as_echo_n "checking dynamic linker characteristics... " >&6; }
18290
18291library_names_spec=
18292libname_spec='lib$name'
18293soname_spec=
18294shrext_cmds=".so"
18295postinstall_cmds=
18296postuninstall_cmds=
18297finish_cmds=
18298finish_eval=
18299shlibpath_var=
18300shlibpath_overrides_runpath=unknown
18301version_type=none
18302dynamic_linker="$host_os ld.so"
18303sys_lib_dlsearch_path_spec="/lib /usr/lib"
18304need_lib_prefix=unknown
18305hardcode_into_libs=no
18306
18307# when you set need_version to no, make sure it does not cause -set_version
18308# flags to be left without arguments
18309need_version=unknown
18310
18311case $host_os in
18312aix3*)
18313 version_type=linux
18314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18315 shlibpath_var=LIBPATH
18316
18317 # AIX 3 has no versioning support, so we append a major version to the name.
18318 soname_spec='${libname}${release}${shared_ext}$major'
18319 ;;
18320
18321aix[4-9]*)
18322 version_type=linux
18323 need_lib_prefix=no
18324 need_version=no
18325 hardcode_into_libs=yes
18326 if test "$host_cpu" = ia64; then
18327 # AIX 5 supports IA64
18328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18329 shlibpath_var=LD_LIBRARY_PATH
18330 else
18331 # With GCC up to 2.95.x, collect2 would create an import file
18332 # for dependence libraries. The import file would start with
18333 # the line `#! .'. This would cause the generated library to
18334 # depend on `.', always an invalid library. This was fixed in
18335 # development snapshots of GCC prior to 3.0.
18336 case $host_os in
18337 aix4 | aix4.[01] | aix4.[01].*)
18338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18339 echo ' yes '
18340 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18341 :
18342 else
18343 can_build_shared=no
18344 fi
18345 ;;
18346 esac
18347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18348 # soname into executable. Probably we can add versioning support to
18349 # collect2, so additional links can be useful in future.
18350 if test "$aix_use_runtimelinking" = yes; then
18351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18352 # instead of lib<name>.a to let people know that these are not
18353 # typical AIX shared libraries.
18354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18355 else
18356 # We preserve .a as extension for shared libraries through AIX4.2
18357 # and later when we are not doing run time linking.
18358 library_names_spec='${libname}${release}.a $libname.a'
18359 soname_spec='${libname}${release}${shared_ext}$major'
18360 fi
18361 shlibpath_var=LIBPATH
18362 fi
18363 ;;
18364
18365amigaos*)
18366 case $host_cpu in
18367 powerpc)
18368 # Since July 2007 AmigaOS4 officially supports .so libraries.
18369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371 ;;
18372 m68k)
18373 library_names_spec='$libname.ixlibrary $libname.a'
18374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000018375 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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 +000018376 ;;
18377 esac
18378 ;;
18379
18380beos*)
18381 library_names_spec='${libname}${shared_ext}'
18382 dynamic_linker="$host_os ld.so"
18383 shlibpath_var=LIBRARY_PATH
18384 ;;
18385
18386bsdi[45]*)
18387 version_type=linux
18388 need_version=no
18389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18390 soname_spec='${libname}${release}${shared_ext}$major'
18391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18392 shlibpath_var=LD_LIBRARY_PATH
18393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18395 # the default ld.so.conf also contains /usr/contrib/lib and
18396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18397 # libtool to hard-code these into programs
18398 ;;
18399
18400cygwin* | mingw* | pw32* | cegcc*)
18401 version_type=windows
18402 shrext_cmds=".dll"
18403 need_version=no
18404 need_lib_prefix=no
18405
18406 case $GCC,$host_os in
18407 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18408 library_names_spec='$libname.dll.a'
18409 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18410 postinstall_cmds='base_file=`basename \${file}`~
18411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18412 dldir=$destdir/`dirname \$dlpath`~
18413 test -d \$dldir || mkdir -p \$dldir~
18414 $install_prog $dir/$dlname \$dldir/$dlname~
18415 chmod a+x \$dldir/$dlname~
18416 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18417 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18418 fi'
18419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18420 dlpath=$dir/\$dldll~
18421 $RM \$dlpath'
18422 shlibpath_overrides_runpath=yes
18423
18424 case $host_os in
18425 cygwin*)
18426 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18427 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000018428 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000018429 ;;
18430 mingw* | cegcc*)
18431 # MinGW DLLs use traditional 'lib' prefix
18432 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000018433 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18434 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18435 # It is most probably a Windows format PATH printed by
18436 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18437 # path with ; separators, and with drive letters. We can handle the
18438 # drive letters (cygwin fileutils understands them), so leave them,
18439 # especially as we might pass files found there to a mingw objdump,
18440 # which wouldn't understand a cygwinified path. Ahh.
18441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18442 else
18443 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18444 fi
cristy3ed852e2009-09-05 21:47:34 +000018445 ;;
18446 pw32*)
18447 # pw32 DLLs use 'pw' prefix rather than 'lib'
18448 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18449 ;;
18450 esac
18451 ;;
18452
18453 *)
18454 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18455 ;;
18456 esac
18457 dynamic_linker='Win32 ld.exe'
18458 # FIXME: first we should search . and the directory the executable is in
18459 shlibpath_var=PATH
18460 ;;
18461
18462darwin* | rhapsody*)
18463 dynamic_linker="$host_os dyld"
18464 version_type=darwin
18465 need_lib_prefix=no
18466 need_version=no
18467 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18468 soname_spec='${libname}${release}${major}$shared_ext'
18469 shlibpath_overrides_runpath=yes
18470 shlibpath_var=DYLD_LIBRARY_PATH
18471 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18472
18473 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18474 ;;
18475
18476dgux*)
18477 version_type=linux
18478 need_lib_prefix=no
18479 need_version=no
18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18481 soname_spec='${libname}${release}${shared_ext}$major'
18482 shlibpath_var=LD_LIBRARY_PATH
18483 ;;
18484
18485freebsd1*)
18486 dynamic_linker=no
18487 ;;
18488
18489freebsd* | dragonfly*)
18490 # DragonFly does not have aout. When/if they implement a new
18491 # versioning mechanism, adjust this.
18492 if test -x /usr/bin/objformat; then
18493 objformat=`/usr/bin/objformat`
18494 else
18495 case $host_os in
18496 freebsd[123]*) objformat=aout ;;
18497 *) objformat=elf ;;
18498 esac
18499 fi
18500 version_type=freebsd-$objformat
18501 case $version_type in
18502 freebsd-elf*)
18503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18504 need_version=no
18505 need_lib_prefix=no
18506 ;;
18507 freebsd-*)
18508 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18509 need_version=yes
18510 ;;
18511 esac
18512 shlibpath_var=LD_LIBRARY_PATH
18513 case $host_os in
18514 freebsd2*)
18515 shlibpath_overrides_runpath=yes
18516 ;;
18517 freebsd3.[01]* | freebsdelf3.[01]*)
18518 shlibpath_overrides_runpath=yes
18519 hardcode_into_libs=yes
18520 ;;
18521 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18522 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18523 shlibpath_overrides_runpath=no
18524 hardcode_into_libs=yes
18525 ;;
18526 *) # from 4.6 on, and DragonFly
18527 shlibpath_overrides_runpath=yes
18528 hardcode_into_libs=yes
18529 ;;
18530 esac
18531 ;;
18532
18533gnu*)
18534 version_type=linux
18535 need_lib_prefix=no
18536 need_version=no
18537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18538 soname_spec='${libname}${release}${shared_ext}$major'
18539 shlibpath_var=LD_LIBRARY_PATH
18540 hardcode_into_libs=yes
18541 ;;
18542
18543hpux9* | hpux10* | hpux11*)
18544 # Give a soname corresponding to the major version so that dld.sl refuses to
18545 # link against other versions.
18546 version_type=sunos
18547 need_lib_prefix=no
18548 need_version=no
18549 case $host_cpu in
18550 ia64*)
18551 shrext_cmds='.so'
18552 hardcode_into_libs=yes
18553 dynamic_linker="$host_os dld.so"
18554 shlibpath_var=LD_LIBRARY_PATH
18555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18557 soname_spec='${libname}${release}${shared_ext}$major'
18558 if test "X$HPUX_IA64_MODE" = X32; then
18559 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18560 else
18561 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18562 fi
18563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18564 ;;
18565 hppa*64*)
18566 shrext_cmds='.sl'
18567 hardcode_into_libs=yes
18568 dynamic_linker="$host_os dld.sl"
18569 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18572 soname_spec='${libname}${release}${shared_ext}$major'
18573 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18575 ;;
18576 *)
18577 shrext_cmds='.sl'
18578 dynamic_linker="$host_os dld.sl"
18579 shlibpath_var=SHLIB_PATH
18580 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18582 soname_spec='${libname}${release}${shared_ext}$major'
18583 ;;
18584 esac
cristy18304f92009-11-22 15:48:26 +000018585 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000018586 postinstall_cmds='chmod 555 $lib'
18587 ;;
18588
18589interix[3-9]*)
18590 version_type=linux
18591 need_lib_prefix=no
18592 need_version=no
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18594 soname_spec='${libname}${release}${shared_ext}$major'
18595 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18596 shlibpath_var=LD_LIBRARY_PATH
18597 shlibpath_overrides_runpath=no
18598 hardcode_into_libs=yes
18599 ;;
18600
18601irix5* | irix6* | nonstopux*)
18602 case $host_os in
18603 nonstopux*) version_type=nonstopux ;;
18604 *)
18605 if test "$lt_cv_prog_gnu_ld" = yes; then
18606 version_type=linux
18607 else
18608 version_type=irix
18609 fi ;;
18610 esac
18611 need_lib_prefix=no
18612 need_version=no
18613 soname_spec='${libname}${release}${shared_ext}$major'
18614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18615 case $host_os in
18616 irix5* | nonstopux*)
18617 libsuff= shlibsuff=
18618 ;;
18619 *)
18620 case $LD in # libtool.m4 will add one of these switches to LD
18621 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18622 libsuff= shlibsuff= libmagic=32-bit;;
18623 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18624 libsuff=32 shlibsuff=N32 libmagic=N32;;
18625 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18626 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18627 *) libsuff= shlibsuff= libmagic=never-match;;
18628 esac
18629 ;;
18630 esac
18631 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18632 shlibpath_overrides_runpath=no
18633 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18634 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18635 hardcode_into_libs=yes
18636 ;;
18637
18638# No shared lib support for Linux oldld, aout, or coff.
18639linux*oldld* | linux*aout* | linux*coff*)
18640 dynamic_linker=no
18641 ;;
18642
18643# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000018644linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018645 version_type=linux
18646 need_lib_prefix=no
18647 need_version=no
18648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18649 soname_spec='${libname}${release}${shared_ext}$major'
18650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18651 shlibpath_var=LD_LIBRARY_PATH
18652 shlibpath_overrides_runpath=no
18653 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000018654 save_LDFLAGS=$LDFLAGS
18655 save_libdir=$libdir
18656 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18657 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018659/* end confdefs.h. */
18660
18661int
18662main ()
18663{
18664
18665 ;
18666 return 0;
18667}
18668_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018669if ac_fn_cxx_try_link "$LINENO"; then :
18670 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000018671 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018672fi
cristy3ed852e2009-09-05 21:47:34 +000018673fi
cristy8b350f62009-11-15 23:12:43 +000018674rm -f core conftest.err conftest.$ac_objext \
18675 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000018676 LDFLAGS=$save_LDFLAGS
18677 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000018678
18679 # This implies no fast_install, which is unacceptable.
18680 # Some rework will be needed to allow for fast_install
18681 # before this can be enabled.
18682 hardcode_into_libs=yes
18683
cristy679ed8e2009-12-05 02:37:41 +000018684 # Add ABI-specific directories to the system library path.
18685 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18686
cristy3ed852e2009-09-05 21:47:34 +000018687 # Append ld.so.conf contents to the search path
18688 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000018689 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;/^$/d' | tr '\n' ' '`
cristy679ed8e2009-12-05 02:37:41 +000018690 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000018691 fi
18692
18693 # We used to test for /lib/ld.so.1 and disable shared libraries on
18694 # powerpc, because MkLinux only supported shared libraries with the
18695 # GNU dynamic linker. Since this was broken with cross compilers,
18696 # most powerpc-linux boxes support dynamic linking these days and
18697 # people can always --disable-shared, the test was removed, and we
18698 # assume the GNU/Linux dynamic linker is in use.
18699 dynamic_linker='GNU/Linux ld.so'
18700 ;;
18701
18702netbsd*)
18703 version_type=sunos
18704 need_lib_prefix=no
18705 need_version=no
18706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18709 dynamic_linker='NetBSD (a.out) ld.so'
18710 else
18711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18712 soname_spec='${libname}${release}${shared_ext}$major'
18713 dynamic_linker='NetBSD ld.elf_so'
18714 fi
18715 shlibpath_var=LD_LIBRARY_PATH
18716 shlibpath_overrides_runpath=yes
18717 hardcode_into_libs=yes
18718 ;;
18719
18720newsos6)
18721 version_type=linux
18722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18723 shlibpath_var=LD_LIBRARY_PATH
18724 shlibpath_overrides_runpath=yes
18725 ;;
18726
18727*nto* | *qnx*)
18728 version_type=qnx
18729 need_lib_prefix=no
18730 need_version=no
18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18732 soname_spec='${libname}${release}${shared_ext}$major'
18733 shlibpath_var=LD_LIBRARY_PATH
18734 shlibpath_overrides_runpath=no
18735 hardcode_into_libs=yes
18736 dynamic_linker='ldqnx.so'
18737 ;;
18738
18739openbsd*)
18740 version_type=sunos
18741 sys_lib_dlsearch_path_spec="/usr/lib"
18742 need_lib_prefix=no
18743 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18744 case $host_os in
18745 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18746 *) need_version=no ;;
18747 esac
18748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18750 shlibpath_var=LD_LIBRARY_PATH
18751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18752 case $host_os in
18753 openbsd2.[89] | openbsd2.[89].*)
18754 shlibpath_overrides_runpath=no
18755 ;;
18756 *)
18757 shlibpath_overrides_runpath=yes
18758 ;;
18759 esac
18760 else
18761 shlibpath_overrides_runpath=yes
18762 fi
18763 ;;
18764
18765os2*)
18766 libname_spec='$name'
18767 shrext_cmds=".dll"
18768 need_lib_prefix=no
18769 library_names_spec='$libname${shared_ext} $libname.a'
18770 dynamic_linker='OS/2 ld.exe'
18771 shlibpath_var=LIBPATH
18772 ;;
18773
18774osf3* | osf4* | osf5*)
18775 version_type=osf
18776 need_lib_prefix=no
18777 need_version=no
18778 soname_spec='${libname}${release}${shared_ext}$major'
18779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18780 shlibpath_var=LD_LIBRARY_PATH
18781 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18782 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18783 ;;
18784
18785rdos*)
18786 dynamic_linker=no
18787 ;;
18788
18789solaris*)
18790 version_type=linux
18791 need_lib_prefix=no
18792 need_version=no
18793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18794 soname_spec='${libname}${release}${shared_ext}$major'
18795 shlibpath_var=LD_LIBRARY_PATH
18796 shlibpath_overrides_runpath=yes
18797 hardcode_into_libs=yes
18798 # ldd complains unless libraries are executable
18799 postinstall_cmds='chmod +x $lib'
18800 ;;
18801
18802sunos4*)
18803 version_type=sunos
18804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18805 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18806 shlibpath_var=LD_LIBRARY_PATH
18807 shlibpath_overrides_runpath=yes
18808 if test "$with_gnu_ld" = yes; then
18809 need_lib_prefix=no
18810 fi
18811 need_version=yes
18812 ;;
18813
18814sysv4 | sysv4.3*)
18815 version_type=linux
18816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18817 soname_spec='${libname}${release}${shared_ext}$major'
18818 shlibpath_var=LD_LIBRARY_PATH
18819 case $host_vendor in
18820 sni)
18821 shlibpath_overrides_runpath=no
18822 need_lib_prefix=no
18823 runpath_var=LD_RUN_PATH
18824 ;;
18825 siemens)
18826 need_lib_prefix=no
18827 ;;
18828 motorola)
18829 need_lib_prefix=no
18830 need_version=no
18831 shlibpath_overrides_runpath=no
18832 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18833 ;;
18834 esac
18835 ;;
18836
18837sysv4*MP*)
18838 if test -d /usr/nec ;then
18839 version_type=linux
18840 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18841 soname_spec='$libname${shared_ext}.$major'
18842 shlibpath_var=LD_LIBRARY_PATH
18843 fi
18844 ;;
18845
18846sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18847 version_type=freebsd-elf
18848 need_lib_prefix=no
18849 need_version=no
18850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18851 soname_spec='${libname}${release}${shared_ext}$major'
18852 shlibpath_var=LD_LIBRARY_PATH
18853 shlibpath_overrides_runpath=yes
18854 hardcode_into_libs=yes
18855 if test "$with_gnu_ld" = yes; then
18856 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18857 else
18858 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18859 case $host_os in
18860 sco3.2v5*)
18861 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18862 ;;
18863 esac
18864 fi
18865 sys_lib_dlsearch_path_spec='/usr/lib'
18866 ;;
18867
18868tpf*)
18869 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18870 version_type=linux
18871 need_lib_prefix=no
18872 need_version=no
18873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18874 shlibpath_var=LD_LIBRARY_PATH
18875 shlibpath_overrides_runpath=no
18876 hardcode_into_libs=yes
18877 ;;
18878
18879uts4*)
18880 version_type=linux
18881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18882 soname_spec='${libname}${release}${shared_ext}$major'
18883 shlibpath_var=LD_LIBRARY_PATH
18884 ;;
18885
18886*)
18887 dynamic_linker=no
18888 ;;
18889esac
cristy8b350f62009-11-15 23:12:43 +000018890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018891$as_echo "$dynamic_linker" >&6; }
18892test "$dynamic_linker" = no && can_build_shared=no
18893
18894variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18895if test "$GCC" = yes; then
18896 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18897fi
18898
18899if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18900 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18901fi
18902if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18903 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18904fi
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
cristy8b350f62009-11-15 23:12:43 +000018941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018942$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18943hardcode_action_CXX=
18944if test -n "$hardcode_libdir_flag_spec_CXX" ||
18945 test -n "$runpath_var_CXX" ||
18946 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18947
18948 # We can hardcode non-existent directories.
18949 if test "$hardcode_direct_CXX" != no &&
18950 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18951 # have to relink, otherwise we might link with an installed library
18952 # when we should be linking with a yet-to-be-installed one
18953 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18954 test "$hardcode_minus_L_CXX" != no; then
18955 # Linking always hardcodes the temporary library directory.
18956 hardcode_action_CXX=relink
18957 else
18958 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18959 hardcode_action_CXX=immediate
18960 fi
18961else
18962 # We cannot hardcode anything, or else we can only hardcode existing
18963 # directories.
18964 hardcode_action_CXX=unsupported
18965fi
cristy8b350f62009-11-15 23:12:43 +000018966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018967$as_echo "$hardcode_action_CXX" >&6; }
18968
18969if test "$hardcode_action_CXX" = relink ||
18970 test "$inherit_rpath_CXX" = yes; then
18971 # Fast installation is not supported
18972 enable_fast_install=no
18973elif test "$shlibpath_overrides_runpath" = yes ||
18974 test "$enable_shared" = no; then
18975 # Fast installation is not necessary
18976 enable_fast_install=needless
18977fi
18978
18979
18980
18981
18982
18983
18984
18985 fi # test -n "$compiler"
18986
18987 CC=$lt_save_CC
18988 LDCXX=$LD
18989 LD=$lt_save_LD
18990 GCC=$lt_save_GCC
18991 with_gnu_ld=$lt_save_with_gnu_ld
18992 lt_cv_path_LDCXX=$lt_cv_path_LD
18993 lt_cv_path_LD=$lt_save_path_LD
18994 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18995 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18996fi # test "$_lt_caught_CXX_error" != yes
18997
18998ac_ext=c
18999ac_cpp='$CPP $CPPFLAGS'
19000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19002ac_compiler_gnu=$ac_cv_c_compiler_gnu
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016 ac_config_commands="$ac_config_commands libtool"
19017
19018
19019
19020
19021# Only expand once:
19022
19023
19024
19025
19026
19027# Configure libltdl
19028
19029
19030
19031
19032
19033
19034
cristy18304f92009-11-22 15:48:26 +000019035
cristy8b350f62009-11-15 23:12:43 +000019036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000019037$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019038if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019039 $as_echo_n "(cached) " >&6
19040else
19041
19042module=yes
19043eval libltdl_cv_shlibext=$shrext_cmds
19044
19045fi
cristy8b350f62009-11-15 23:12:43 +000019046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000019047$as_echo "$libltdl_cv_shlibext" >&6; }
19048if test -n "$libltdl_cv_shlibext"; then
19049
19050cat >>confdefs.h <<_ACEOF
19051#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19052_ACEOF
19053
19054fi
19055
cristy8b350f62009-11-15 23:12:43 +000019056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019057$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019058if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019059 $as_echo_n "(cached) " >&6
19060else
19061 lt_cv_module_path_var="$shlibpath_var"
19062fi
cristy8b350f62009-11-15 23:12:43 +000019063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000019064$as_echo "$lt_cv_module_path_var" >&6; }
19065if test -n "$lt_cv_module_path_var"; then
19066
19067cat >>confdefs.h <<_ACEOF
19068#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19069_ACEOF
19070
19071fi
19072
cristy8b350f62009-11-15 23:12:43 +000019073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019074$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019075if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019076 $as_echo_n "(cached) " >&6
19077else
19078 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19079fi
cristy8b350f62009-11-15 23:12:43 +000019080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019081$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19082if test -n "$lt_cv_sys_dlsearch_path"; then
19083 sys_dlsearch_path=
19084 for dir in $lt_cv_sys_dlsearch_path; do
19085 if test -z "$sys_dlsearch_path"; then
19086 sys_dlsearch_path="$dir"
19087 else
19088 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19089 fi
19090 done
19091
19092cat >>confdefs.h <<_ACEOF
19093#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19094_ACEOF
19095
19096fi
19097
19098
19099LT_DLLOADERS=
19100
19101
19102ac_ext=c
19103ac_cpp='$CPP $CPPFLAGS'
19104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106ac_compiler_gnu=$ac_cv_c_compiler_gnu
19107
19108
19109LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000019110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019111$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019112if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019113 $as_echo_n "(cached) " >&6
19114else
19115 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019117/* end confdefs.h. */
19118
19119/* Override any GCC internal prototype to avoid an error.
19120 Use char because int might match the return type of a GCC
19121 builtin and then its argument prototype would still apply. */
19122#ifdef __cplusplus
19123extern "C"
19124#endif
19125char dlopen ();
19126int
19127main ()
19128{
19129return dlopen ();
19130 ;
19131 return 0;
19132}
19133_ACEOF
19134for ac_lib in '' dl; do
19135 if test -z "$ac_lib"; then
19136 ac_res="none required"
19137 else
19138 ac_res=-l$ac_lib
19139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19140 fi
cristy8b350f62009-11-15 23:12:43 +000019141 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019142 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019143fi
cristy8b350f62009-11-15 23:12:43 +000019144rm -f core conftest.err conftest.$ac_objext \
19145 conftest$ac_exeext
19146 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019147 break
19148fi
19149done
cristy8b350f62009-11-15 23:12:43 +000019150if test "${ac_cv_search_dlopen+set}" = set; then :
19151
cristy3ed852e2009-09-05 21:47:34 +000019152else
19153 ac_cv_search_dlopen=no
19154fi
19155rm conftest.$ac_ext
19156LIBS=$ac_func_search_save_LIBS
19157fi
cristy8b350f62009-11-15 23:12:43 +000019158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019159$as_echo "$ac_cv_search_dlopen" >&6; }
19160ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000019161if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19163
cristy8b350f62009-11-15 23:12:43 +000019164$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019165
19166 if test "$ac_cv_search_dlopen" != "none required" ; then
19167 LIBADD_DLOPEN="-ldl"
19168 fi
19169 libltdl_cv_lib_dl_dlopen="yes"
19170 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19171else
cristy8b350f62009-11-15 23:12:43 +000019172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019173/* end confdefs.h. */
19174#if HAVE_DLFCN_H
19175# include <dlfcn.h>
19176#endif
19177
19178int
19179main ()
19180{
19181dlopen(0, 0);
19182 ;
19183 return 0;
19184}
19185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019186if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019187
cristy8b350f62009-11-15 23:12:43 +000019188$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019189
19190 libltdl_cv_func_dlopen="yes"
19191 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19192else
cristy8b350f62009-11-15 23:12:43 +000019193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019194$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019195if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019196 $as_echo_n "(cached) " >&6
19197else
19198 ac_check_lib_save_LIBS=$LIBS
19199LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019201/* end confdefs.h. */
19202
19203/* Override any GCC internal prototype to avoid an error.
19204 Use char because int might match the return type of a GCC
19205 builtin and then its argument prototype would still apply. */
19206#ifdef __cplusplus
19207extern "C"
19208#endif
19209char dlopen ();
19210int
19211main ()
19212{
19213return dlopen ();
19214 ;
19215 return 0;
19216}
19217_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019218if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019219 ac_cv_lib_svld_dlopen=yes
19220else
cristy8b350f62009-11-15 23:12:43 +000019221 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019222fi
cristy8b350f62009-11-15 23:12:43 +000019223rm -f core conftest.err conftest.$ac_objext \
19224 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019225LIBS=$ac_check_lib_save_LIBS
19226fi
cristy8b350f62009-11-15 23:12:43 +000019227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019228$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019229if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019230
cristy8b350f62009-11-15 23:12:43 +000019231$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019232
19233 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19234 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19235fi
19236
19237fi
cristy8b350f62009-11-15 23:12:43 +000019238rm -f core conftest.err conftest.$ac_objext \
19239 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019240fi
19241
19242if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19243then
19244 lt_save_LIBS="$LIBS"
19245 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019246 for ac_func in dlerror
19247do :
19248 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19249if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019250 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019251#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019252_ACEOF
19253
19254fi
19255done
19256
19257 LIBS="$lt_save_LIBS"
19258fi
19259
19260
19261LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019262ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19263if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019264
cristy8b350f62009-11-15 23:12:43 +000019265$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019266
19267 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19268else
cristy8b350f62009-11-15 23:12:43 +000019269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019270$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019271if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019272 $as_echo_n "(cached) " >&6
19273else
19274 ac_check_lib_save_LIBS=$LIBS
19275LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019277/* end confdefs.h. */
19278
19279/* Override any GCC internal prototype to avoid an error.
19280 Use char because int might match the return type of a GCC
19281 builtin and then its argument prototype would still apply. */
19282#ifdef __cplusplus
19283extern "C"
19284#endif
19285char shl_load ();
19286int
19287main ()
19288{
19289return shl_load ();
19290 ;
19291 return 0;
19292}
19293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019294if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019295 ac_cv_lib_dld_shl_load=yes
19296else
cristy8b350f62009-11-15 23:12:43 +000019297 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019298fi
cristy8b350f62009-11-15 23:12:43 +000019299rm -f core conftest.err conftest.$ac_objext \
19300 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019301LIBS=$ac_check_lib_save_LIBS
19302fi
cristy8b350f62009-11-15 23:12:43 +000019303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019304$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019305if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019306
cristy8b350f62009-11-15 23:12:43 +000019307$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019308
19309 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19310 LIBADD_SHL_LOAD="-ldld"
19311fi
19312
19313fi
19314
19315
19316
19317case $host_os in
19318darwin[1567].*)
19319# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019320 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19321if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019322
cristy8b350f62009-11-15 23:12:43 +000019323$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019324
19325 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19326fi
19327
19328 ;;
19329beos*)
19330 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19331 ;;
19332cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019333 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19334"
19335if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19336 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019337else
cristy8b350f62009-11-15 23:12:43 +000019338 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019339fi
19340
cristy3ed852e2009-09-05 21:47:34 +000019341cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019342#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019343_ACEOF
19344
cristy3ed852e2009-09-05 21:47:34 +000019345 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19346 ;;
19347esac
19348
cristy8b350f62009-11-15 23:12:43 +000019349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019350$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019351if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019352 $as_echo_n "(cached) " >&6
19353else
19354 ac_check_lib_save_LIBS=$LIBS
19355LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019357/* end confdefs.h. */
19358
19359/* Override any GCC internal prototype to avoid an error.
19360 Use char because int might match the return type of a GCC
19361 builtin and then its argument prototype would still apply. */
19362#ifdef __cplusplus
19363extern "C"
19364#endif
19365char dld_link ();
19366int
19367main ()
19368{
19369return dld_link ();
19370 ;
19371 return 0;
19372}
19373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019374if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019375 ac_cv_lib_dld_dld_link=yes
19376else
cristy8b350f62009-11-15 23:12:43 +000019377 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019378fi
cristy8b350f62009-11-15 23:12:43 +000019379rm -f core conftest.err conftest.$ac_objext \
19380 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019381LIBS=$ac_check_lib_save_LIBS
19382fi
cristy8b350f62009-11-15 23:12:43 +000019383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019384$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019385if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019386
cristy8b350f62009-11-15 23:12:43 +000019387$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019388
19389 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19390fi
19391
19392
19393
19394
19395LT_DLPREOPEN=
19396if test -n "$LT_DLLOADERS"
19397then
19398 for lt_loader in $LT_DLLOADERS; do
19399 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19400 done
19401
cristy8b350f62009-11-15 23:12:43 +000019402$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019403
19404fi
19405
19406
19407LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19408
19409
19410ac_ext=c
19411ac_cpp='$CPP $CPPFLAGS'
19412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19414ac_compiler_gnu=$ac_cv_c_compiler_gnu
19415
19416
cristy8b350f62009-11-15 23:12:43 +000019417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019418$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019419if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019420 $as_echo_n "(cached) " >&6
19421else
19422 lt_cv_sys_symbol_underscore=no
19423 cat > conftest.$ac_ext <<_LT_EOF
19424void nm_test_func(){}
19425int main(){nm_test_func;return 0;}
19426_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019428 (eval $ac_compile) 2>&5
19429 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19431 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019432 # Now try to grab the symbols.
19433 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019434 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 +000019435 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19436 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19438 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019439 # See whether the symbols have a leading underscore.
19440 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19441 lt_cv_sys_symbol_underscore=yes
19442 else
19443 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19444 :
19445 else
19446 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19447 fi
19448 fi
19449 else
19450 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19451 fi
19452 else
19453 echo "configure: failed program was:" >&5
19454 cat conftest.c >&5
19455 fi
19456 rm -rf conftest*
19457
19458fi
cristy8b350f62009-11-15 23:12:43 +000019459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019460$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19461 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19462
19463
19464if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19465 if test x"$libltdl_cv_func_dlopen" = xyes ||
19466 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019468$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019469if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019470 $as_echo_n "(cached) " >&6
19471else
19472 libltdl_cv_need_uscore=unknown
19473 save_LIBS="$LIBS"
19474 LIBS="$LIBS $LIBADD_DLOPEN"
19475 if test "$cross_compiling" = yes; then :
19476 libltdl_cv_need_uscore=cross
19477else
19478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19479 lt_status=$lt_dlunknown
19480 cat > conftest.$ac_ext <<_LT_EOF
cristy0d3a6382010-04-26 00:45:55 +000019481#line 19481 "configure"
cristy3ed852e2009-09-05 21:47:34 +000019482#include "confdefs.h"
19483
19484#if HAVE_DLFCN_H
19485#include <dlfcn.h>
19486#endif
19487
19488#include <stdio.h>
19489
19490#ifdef RTLD_GLOBAL
19491# define LT_DLGLOBAL RTLD_GLOBAL
19492#else
19493# ifdef DL_GLOBAL
19494# define LT_DLGLOBAL DL_GLOBAL
19495# else
19496# define LT_DLGLOBAL 0
19497# endif
19498#endif
19499
19500/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19501 find out it does not work in some platform. */
19502#ifndef LT_DLLAZY_OR_NOW
19503# ifdef RTLD_LAZY
19504# define LT_DLLAZY_OR_NOW RTLD_LAZY
19505# else
19506# ifdef DL_LAZY
19507# define LT_DLLAZY_OR_NOW DL_LAZY
19508# else
19509# ifdef RTLD_NOW
19510# define LT_DLLAZY_OR_NOW RTLD_NOW
19511# else
19512# ifdef DL_NOW
19513# define LT_DLLAZY_OR_NOW DL_NOW
19514# else
19515# define LT_DLLAZY_OR_NOW 0
19516# endif
19517# endif
19518# endif
19519# endif
19520#endif
19521
cristy18304f92009-11-22 15:48:26 +000019522void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000019523int main ()
19524{
19525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19526 int status = $lt_dlunknown;
19527
19528 if (self)
19529 {
19530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000019531 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000019532 /* dlclose (self); */
19533 }
19534 else
19535 puts (dlerror ());
19536
19537 return status;
19538}
19539_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019541 (eval $ac_link) 2>&5
19542 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19544 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019545 (./conftest; exit; ) >&5 2>/dev/null
19546 lt_status=$?
19547 case x$lt_status in
19548 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19549 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19550 x$lt_dlunknown|x*) ;;
19551 esac
19552 else :
19553 # compilation failed
19554
19555 fi
19556fi
19557rm -fr conftest*
19558
19559 LIBS="$save_LIBS"
19560
19561fi
cristy8b350f62009-11-15 23:12:43 +000019562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019563$as_echo "$libltdl_cv_need_uscore" >&6; }
19564 fi
19565fi
19566
19567if test x"$libltdl_cv_need_uscore" = xyes; then
19568
cristy8b350f62009-11-15 23:12:43 +000019569$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019570
19571fi
19572
cristy8b350f62009-11-15 23:12:43 +000019573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019574$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019575if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019576 $as_echo_n "(cached) " >&6
19577else
19578 # PORTME does your system automatically load deplibs for dlopen?
19579 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19580 # For now, we just catch OSes we know something about -- in the
19581 # future, we'll try test this programmatically.
19582 lt_cv_sys_dlopen_deplibs=unknown
19583 case $host_os in
19584 aix3*|aix4.1.*|aix4.2.*)
19585 # Unknown whether this is true for these versions of AIX, but
19586 # we want this `case' here to explicitly catch those versions.
19587 lt_cv_sys_dlopen_deplibs=unknown
19588 ;;
19589 aix[4-9]*)
19590 lt_cv_sys_dlopen_deplibs=yes
19591 ;;
19592 amigaos*)
19593 case $host_cpu in
19594 powerpc)
19595 lt_cv_sys_dlopen_deplibs=no
19596 ;;
19597 esac
19598 ;;
19599 darwin*)
19600 # Assuming the user has installed a libdl from somewhere, this is true
19601 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19602 lt_cv_sys_dlopen_deplibs=yes
19603 ;;
19604 freebsd* | dragonfly*)
19605 lt_cv_sys_dlopen_deplibs=yes
19606 ;;
cristy18304f92009-11-22 15:48:26 +000019607 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019608 # GNU and its variants, using gnu ld.so (Glibc)
19609 lt_cv_sys_dlopen_deplibs=yes
19610 ;;
19611 hpux10*|hpux11*)
19612 lt_cv_sys_dlopen_deplibs=yes
19613 ;;
19614 interix*)
19615 lt_cv_sys_dlopen_deplibs=yes
19616 ;;
19617 irix[12345]*|irix6.[01]*)
19618 # Catch all versions of IRIX before 6.2, and indicate that we don't
19619 # know how it worked for any of those versions.
19620 lt_cv_sys_dlopen_deplibs=unknown
19621 ;;
19622 irix*)
19623 # The case above catches anything before 6.2, and it's known that
19624 # at 6.2 and later dlopen does load deplibs.
19625 lt_cv_sys_dlopen_deplibs=yes
19626 ;;
19627 netbsd*)
19628 lt_cv_sys_dlopen_deplibs=yes
19629 ;;
19630 openbsd*)
19631 lt_cv_sys_dlopen_deplibs=yes
19632 ;;
19633 osf[1234]*)
19634 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19635 # it did *not* use an RPATH in a shared library to find objects the
19636 # library depends on, so we explicitly say `no'.
19637 lt_cv_sys_dlopen_deplibs=no
19638 ;;
19639 osf5.0|osf5.0a|osf5.1)
19640 # dlopen *does* load deplibs and with the right loader patch applied
19641 # it even uses RPATH in a shared library to search for shared objects
19642 # that the library depends on, but there's no easy way to know if that
19643 # patch is installed. Since this is the case, all we can really
19644 # say is unknown -- it depends on the patch being installed. If
19645 # it is, this changes to `yes'. Without it, it would be `no'.
19646 lt_cv_sys_dlopen_deplibs=unknown
19647 ;;
19648 osf*)
19649 # the two cases above should catch all versions of osf <= 5.1. Read
19650 # the comments above for what we know about them.
19651 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19652 # is used to find them so we can finally say `yes'.
19653 lt_cv_sys_dlopen_deplibs=yes
19654 ;;
19655 qnx*)
19656 lt_cv_sys_dlopen_deplibs=yes
19657 ;;
19658 solaris*)
19659 lt_cv_sys_dlopen_deplibs=yes
19660 ;;
19661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19662 libltdl_cv_sys_dlopen_deplibs=yes
19663 ;;
19664 esac
19665
19666fi
cristy8b350f62009-11-15 23:12:43 +000019667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019668$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19669if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19670
cristy8b350f62009-11-15 23:12:43 +000019671$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019672
19673fi
19674
19675:
19676
cristy3ed852e2009-09-05 21:47:34 +000019677for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019678do :
19679 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19680"
19681if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019682 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019683#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019684_ACEOF
19685
19686fi
19687
19688done
19689
19690
cristy8b350f62009-11-15 23:12:43 +000019691ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019692# include <argz.h>
19693#endif
cristy8b350f62009-11-15 23:12:43 +000019694"
19695if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019696
19697cat >>confdefs.h <<_ACEOF
19698#define HAVE_ERROR_T 1
19699_ACEOF
19700
19701
19702else
19703
cristy8b350f62009-11-15 23:12:43 +000019704$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019705
19706
cristy8b350f62009-11-15 23:12:43 +000019707$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019708
19709fi
19710
19711
19712ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019713for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19714 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019715do :
19716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19717ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19718eval as_val=\$$as_ac_var
19719 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019720 cat >>confdefs.h <<_ACEOF
19721#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19722_ACEOF
19723
19724else
19725 ARGZ_H=argz.h;
19726
19727 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19728
19729fi
19730done
19731
19732
cristy8b350f62009-11-15 23:12:43 +000019733if test -z "$ARGZ_H"; then :
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019735$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019736if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019737 $as_echo_n "(cached) " >&6
19738else
19739 case $host_os in #(
19740 *cygwin*)
19741 lt_cv_sys_argz_works=no
19742 if test "$cross_compiling" != no; then
19743 lt_cv_sys_argz_works="guessing no"
19744 else
19745 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19746 save_IFS=$IFS
19747 IFS=-.
19748 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19749 IFS=$save_IFS
19750 lt_os_major=${2-0}
19751 lt_os_minor=${3-0}
19752 lt_os_micro=${4-0}
19753 if test "$lt_os_major" -gt 1 \
19754 || { test "$lt_os_major" -eq 1 \
19755 && { test "$lt_os_minor" -gt 5 \
19756 || { test "$lt_os_minor" -eq 5 \
19757 && test "$lt_os_micro" -gt 24; }; }; }; then
19758 lt_cv_sys_argz_works=yes
19759 fi
19760 fi
19761 ;; #(
19762 *) lt_cv_sys_argz_works=yes ;;
19763 esac
19764fi
cristy8b350f62009-11-15 23:12:43 +000019765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019766$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019767 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019768
cristy8b350f62009-11-15 23:12:43 +000019769$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019770
19771else
19772 ARGZ_H=argz.h
19773
19774
19775 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19776
19777fi
cristy3ed852e2009-09-05 21:47:34 +000019778fi
19779
19780
19781
cristy8b350f62009-11-15 23:12:43 +000019782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019783$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019784if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019785 $as_echo_n "(cached) " >&6
19786else
19787 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19788 libltdl_cv_preloaded_symbols=yes
19789 else
19790 libltdl_cv_preloaded_symbols=no
19791 fi
19792
19793fi
cristy8b350f62009-11-15 23:12:43 +000019794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019795$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19796if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19797
cristy8b350f62009-11-15 23:12:43 +000019798$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019799
19800fi
19801
19802# Set options
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019815if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019816 withval=$with_included_ltdl;
19817fi
19818
19819
19820if test "x$with_included_ltdl" != xyes; then
19821 # We are not being forced to use the included libltdl sources, so
19822 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019823 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019824
cristy8b350f62009-11-15 23:12:43 +000019825"
19826if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19827 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 +000019828 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019829"
19830if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019832$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019833if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019834 $as_echo_n "(cached) " >&6
19835else
19836 ac_check_lib_save_LIBS=$LIBS
19837LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019839/* end confdefs.h. */
19840
19841/* Override any GCC internal prototype to avoid an error.
19842 Use char because int might match the return type of a GCC
19843 builtin and then its argument prototype would still apply. */
19844#ifdef __cplusplus
19845extern "C"
19846#endif
19847char lt_dladvise_preload ();
19848int
19849main ()
19850{
19851return lt_dladvise_preload ();
19852 ;
19853 return 0;
19854}
19855_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019856if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019857 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19858else
cristy8b350f62009-11-15 23:12:43 +000019859 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019860fi
cristy8b350f62009-11-15 23:12:43 +000019861rm -f core conftest.err conftest.$ac_objext \
19862 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019863LIBS=$ac_check_lib_save_LIBS
19864fi
cristy8b350f62009-11-15 23:12:43 +000019865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019866$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019867if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019868 with_included_ltdl=no
19869else
19870 with_included_ltdl=yes
19871fi
19872
19873else
19874 with_included_ltdl=yes
19875fi
19876
19877else
19878 with_included_ltdl=yes
19879fi
19880
19881
19882fi
19883
19884
19885
19886
19887# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019888if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019889 withval=$with_ltdl_include;
19890fi
19891
19892
19893if test -n "$with_ltdl_include"; then
19894 if test -f "$with_ltdl_include/ltdl.h"; then :
19895 else
cristy8b350f62009-11-15 23:12:43 +000019896 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019897 fi
19898else
19899 with_ltdl_include=no
19900fi
19901
19902
19903# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019904if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019905 withval=$with_ltdl_lib;
19906fi
19907
19908
19909if test -n "$with_ltdl_lib"; then
19910 if test -f "$with_ltdl_lib/libltdl.la"; then :
19911 else
cristy8b350f62009-11-15 23:12:43 +000019912 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019913 fi
19914else
19915 with_ltdl_lib=no
19916fi
19917
19918case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19919 ,yes,no,no,)
19920 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000019921 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019922 "") enable_ltdl_convenience=yes
19923 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19924esac
19925LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19926LTDLDEPS=$LIBLTDL
19927LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19928
19929
19930
19931
19932
19933# For backwards non-gettext consistent compatibility...
19934INCLTDL="$LTDLINCL"
19935
19936
19937 ;;
19938 ,no,no,no,)
19939 # If the included ltdl is not to be used, then use the
19940 # preinstalled libltdl we found.
19941
cristy8b350f62009-11-15 23:12:43 +000019942$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019943
19944 LIBLTDL=-lltdl
19945 LTDLDEPS=
19946 LTDLINCL=
19947 ;;
19948 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000019949 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019950 ;;
19951 *) with_included_ltdl=no
19952 LIBLTDL="-L$with_ltdl_lib -lltdl"
19953 LTDLDEPS=
19954 LTDLINCL="-I$with_ltdl_include"
19955 ;;
19956esac
19957INCLTDL="$LTDLINCL"
19958
19959# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019961$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019963$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019965$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019967$as_echo "$LIBLTDL" >&6; }
19968
19969
19970
19971# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019972if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019973 enableval=$enable_ltdl_install;
19974fi
19975
19976
19977case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19978 *yes*) ;;
19979 *) enable_ltdl_convenience=yes ;;
19980esac
19981
19982 if test x"${enable_ltdl_install-no}" != xno; then
19983 INSTALL_LTDL_TRUE=
19984 INSTALL_LTDL_FALSE='#'
19985else
19986 INSTALL_LTDL_TRUE='#'
19987 INSTALL_LTDL_FALSE=
19988fi
19989
19990 if test x"${enable_ltdl_convenience-no}" != xno; then
19991 CONVENIENCE_LTDL_TRUE=
19992 CONVENIENCE_LTDL_FALSE='#'
19993else
19994 CONVENIENCE_LTDL_TRUE='#'
19995 CONVENIENCE_LTDL_FALSE=
19996fi
19997
19998
19999
20000
20001
20002
cristy18304f92009-11-22 15:48:26 +000020003
cristy3ed852e2009-09-05 21:47:34 +000020004# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20005# the user used. This is so that ltdl.h can pick up the parent projects
20006# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20007# definitions required by ltdl.c.
20008# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20009
20010
20011
cristy3ed852e2009-09-05 21:47:34 +000020012for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000020013do :
20014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20015ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20016"
20017eval as_val=\$$as_ac_Header
20018 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020019 cat >>confdefs.h <<_ACEOF
20020#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20021_ACEOF
20022
20023fi
20024
20025done
20026
20027
cristy3ed852e2009-09-05 21:47:34 +000020028for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000020029do :
20030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20031ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20032eval as_val=\$$as_ac_var
20033 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020034 cat >>confdefs.h <<_ACEOF
20035#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20036_ACEOF
20037
20038else
20039
20040
20041 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20042
20043fi
20044done
20045
cristy3ed852e2009-09-05 21:47:34 +000020046for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000020047do :
20048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20049ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20050eval as_val=\$$as_ac_var
20051 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020052 cat >>confdefs.h <<_ACEOF
20053#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20054_ACEOF
20055
20056else
20057
20058
20059 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20060
20061fi
20062done
20063
20064
20065
20066cat >>confdefs.h <<_ACEOF
20067#define LT_LIBEXT "$libext"
20068_ACEOF
20069
20070
20071name=ltdl
20072LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20073
20074
20075
20076
20077
20078
20079
20080
20081# Only expand once:
20082
20083
20084
20085# Check to see if building shared libraries
20086libtool_build_shared_libs='no'
20087if test "$enable_shared" = 'yes'; then
20088 libtool_build_shared_libs='yes'
20089fi
20090
20091# Check to see if building static libraries
20092libtool_build_static_libs='no'
20093if test "$enable_static" = 'yes'; then
20094 libtool_build_static_libs='yes'
20095fi
20096
cristyfa112112010-01-04 17:48:07 +000020097 if test "${libtool_build_shared_libs}" = 'yes'; then
20098 WITH_SHARED_LIBS_TRUE=
20099 WITH_SHARED_LIBS_FALSE='#'
20100else
20101 WITH_SHARED_LIBS_TRUE='#'
20102 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000020103fi
20104
20105#
20106# Enable support for building loadable modules
20107#
20108
20109# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020110if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020111 withval=$with_modules; with_modules=$withval
20112else
cristy5a1cefd2010-01-06 20:42:35 +000020113 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020114fi
20115
20116
20117# Only allow building loadable modules if we are building shared libraries
20118if test "$with_modules" != 'no' ; then
20119 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020120 { $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 +000020121$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20122 with_modules='no'
20123 fi
20124fi
20125if test "$with_modules" != 'no'; then
20126
cristy8b350f62009-11-15 23:12:43 +000020127$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020128
20129fi
20130 if test "$with_modules" != 'no'; then
20131 WITH_MODULES_TRUE=
20132 WITH_MODULES_FALSE='#'
20133else
20134 WITH_MODULES_TRUE='#'
20135 WITH_MODULES_FALSE=
20136fi
20137
20138
20139# Enable building/use of libltdl if we are building shared libraries regardless
20140# of whether modules are built or not.
20141with_ltdl='no'
20142if test "$libtool_build_shared_libs" != 'no'; then
20143 with_ltdl='yes'
20144fi
20145
20146 if test "$with_ltdl" != 'no'; then
20147 WITH_LTDL_TRUE=
20148 WITH_LTDL_FALSE='#'
20149else
20150 WITH_LTDL_TRUE='#'
20151 WITH_LTDL_FALSE=
20152fi
20153
20154if test "$with_ltdl" != 'no'; then
20155
cristy8b350f62009-11-15 23:12:43 +000020156$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020157
20158
20159 # Set DLLDFLAGS
20160 if test X"$enable_shared" = Xyes; then
20161 DLLDFLAGS=-export-dynamic
20162
20163 fi
20164fi
20165
20166# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000020167# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020168# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020169if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020170 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20171else
20172 enable_delegate_build='no'
20173fi
20174
20175
20176# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020177if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020178 enableval=$enable_deprecated; enable_deprecated=$enableval
20179else
20180 enable_deprecated='no'
20181fi
20182
20183
20184if test "$enable_deprecated" = 'yes'; then
20185
cristy8b350f62009-11-15 23:12:43 +000020186$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020187
20188else
20189 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20190fi
20191
20192# Build a version of ImageMagick which operates uninstalled.
20193# Used to build distributions located via MAGICK_HOME / executable path
20194# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020195if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020196 enableval=$enable_installed; enable_installed=$enableval
20197else
20198 enable_installed='yes'
20199fi
20200
20201
20202if test "$enable_installed" = 'yes'; then
20203
cristy8b350f62009-11-15 23:12:43 +000020204$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020205
20206else
20207 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20208fi
20209
20210# Permit enciphering and deciphering image pixels.
20211# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020212if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020213 enableval=$enable_cipher; enable_cipher=$enableval
20214else
20215 enable_cipher='yes'
20216fi
20217
20218
20219if test "$enable_cipher" = 'yes'; then
20220
cristy8b350f62009-11-15 23:12:43 +000020221$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020222
20223fi
20224
20225# Build an embeddable version of ImageMagick.
20226# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020227if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020228 enableval=$enable_embeddable; enable_embeddable=$enableval
20229else
20230 enable_embeddable='no'
20231fi
20232
20233
20234if test "$enable_embeddable" = 'yes'; then
20235
cristy8b350f62009-11-15 23:12:43 +000020236$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020237
20238fi
20239
20240# Build a high dynamic range version of ImageMagick.
20241# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020242if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020243 enableval=$enable_hdri; enable_hdri=$enableval
20244else
20245 enable_hdri='no'
20246fi
20247
20248
20249MAGICK_HDRI=""
20250if test "$enable_hdri" = 'yes'; then
20251 MAGICK_HDRI="HDRI"
20252
cristy8b350f62009-11-15 23:12:43 +000020253$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020254
20255fi
20256
cristy3ed852e2009-09-05 21:47:34 +000020257# Build a version of ImageMagick with assert statements.
20258# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020259if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020260 enableval=$enable_assert; enable_assert=$enableval
20261else
20262 enable_assert='yes'
20263fi
20264
20265
20266if test "$enable_assert" = 'no'; then
20267
cristy8b350f62009-11-15 23:12:43 +000020268$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020269
20270fi
20271
20272# Add configure option --enable-maintainer-mode which enables dependency
20273# checking and generation useful to package maintainers. This is made an
20274# option to avoid confusing end users.
20275
cristy8b350f62009-11-15 23:12:43 +000020276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020277$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20278 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020279if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020280 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20281else
20282 USE_MAINTAINER_MODE=no
20283fi
20284
cristy8b350f62009-11-15 23:12:43 +000020285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020286$as_echo "$USE_MAINTAINER_MODE" >&6; }
20287 if test $USE_MAINTAINER_MODE = yes; then
20288 MAINTAINER_MODE_TRUE=
20289 MAINTAINER_MODE_FALSE='#'
20290else
20291 MAINTAINER_MODE_TRUE='#'
20292 MAINTAINER_MODE_FALSE=
20293fi
20294
20295 MAINT=$MAINTAINER_MODE_TRUE
20296
20297
20298
20299
20300# Enable ccmalloc memory debugging support
20301# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020302if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020303 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20304else
20305 enable_ccmalloc='no'
20306fi
20307
20308
20309# Enable Electric Fence memory debugging support
20310# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020311if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020312 enableval=$enable_efence; enable_efence=$enableval
20313else
20314 enable_efence='no'
20315fi
20316
20317
20318# Enable prof-based profiling support
20319# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020320if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020321 enableval=$enable_prof; enable_prof=$enableval
20322else
20323 enable_prof='no'
20324fi
20325
20326
20327# Enable gprof-based profiling support
20328# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020329if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020330 enableval=$enable_gprof; enable_gprof=$enableval
20331else
20332 enable_gprof='no'
20333fi
20334
20335
20336# Enable gcov-based profiling support
20337# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020338if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020339 enableval=$enable_gcov; enable_gcov=$enableval
20340else
20341 enable_gcov='no'
20342fi
20343
20344
20345enable_profiling='no'
20346if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20347 enable_profiling='yes'
20348 if test "$libtool_build_shared_libs" = 'yes'; then
20349 echo "Warning: Can not profile code using shared libraries"
20350 fi
20351fi
20352
20353# Magick API method prefix
20354
20355# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020356if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020357 withval=$with_method_prefix; with_method_prefix=$enableval
20358else
20359 with_method_prefix=''
20360fi
20361
20362
20363if test "$with_method_prefix" != ''; then
20364
20365cat >>confdefs.h <<_ACEOF
20366#define NAMESPACE_PREFIX $with_method_prefix
20367_ACEOF
20368
20369fi
20370
20371# Number of bits in a Quantum
20372
20373# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020374if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020375 withval=$with_quantum_depth; with_quantum_depth=$withval
20376else
20377 with_quantum_depth=16
20378fi
20379
20380
20381if test "$with_quantum_depth" != '8'; then
20382 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20383fi
20384
20385case "${with_quantum_depth}" in
20386 8 ) ;;
20387 16 ) ;;
20388 32 ) ;;
20389 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000020390 * ) { as_fn_set_status 16
20391as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000020392esac
20393QUANTUM_DEPTH="$with_quantum_depth"
20394
20395cat >>confdefs.h <<_ACEOF
20396#define QUANTUM_DEPTH $QUANTUM_DEPTH
20397_ACEOF
20398
20399
20400# Set pixel cache threshold
20401
20402# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020403if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020404 withval=$with_cache; with_cache=$withval
20405else
20406 with_cache=''
20407fi
20408
20409
20410if test "$with_cache" != ''; then
20411
20412cat >>confdefs.h <<_ACEOF
20413#define PixelCacheThreshold $with_cache
20414_ACEOF
20415
20416 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20417fi
20418
20419# Disable/Enable support for full delegate paths
20420
20421# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020422if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020423 withval=$with_frozenpaths; with_frozenpaths=$withval
20424else
20425 with_frozenpaths='no'
20426fi
20427
20428
20429# Enable build/install of Magick++
20430
20431# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020432if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020433 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20434else
20435 with_magick_plus_plus='yes'
20436fi
20437
20438
20439# Disable build/install of PerlMagick.
20440
20441# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020442if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020443 withval=$with_perl; with_perl=$withval
20444else
cristyb5f4e2f2010-04-25 00:49:11 +000020445 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020446fi
20447
20448
20449# Options to pass when configuring PerlMagick
20450
20451# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020452if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020453 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020454fi
20455
20456
cristy3ed852e2009-09-05 21:47:34 +000020457
20458# Enable umem, object-caching memory allocation library.
20459
20460# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020461if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020462 withval=$with_umem; with_umem=$withval
20463else
20464 with_umem='no'
20465fi
20466
20467if test "$with_umem" != 'yes' ; then
20468 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20469fi
20470
20471#
20472# Specify path to shared libstdc++ if not in normal location
20473#
20474
20475# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020476if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020477 withval=$with_libstdc; with_libstdc=$withval
20478else
20479 with_libstdc=''
20480fi
20481
20482
20483if test "$with_libstdc" != ''; then
20484 if test -d "$with_libstdc"; then
20485 LIBSTDCLDFLAGS="-L$with_libstdc"
20486 fi
20487fi
20488
20489
20490# Does gcc required -traditional?
20491if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020493$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020494if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020495 $as_echo_n "(cached) " >&6
20496else
20497 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020499/* end confdefs.h. */
20500#include <sgtty.h>
20501Autoconf TIOCGETP
20502_ACEOF
20503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020504 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020505 ac_cv_prog_gcc_traditional=yes
20506else
20507 ac_cv_prog_gcc_traditional=no
20508fi
20509rm -f conftest*
20510
20511
20512 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020514/* end confdefs.h. */
20515#include <termio.h>
20516Autoconf TCGETA
20517_ACEOF
20518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020519 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020520 ac_cv_prog_gcc_traditional=yes
20521fi
20522rm -f conftest*
20523
20524 fi
20525fi
cristy8b350f62009-11-15 23:12:43 +000020526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020527$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20528 if test $ac_cv_prog_gcc_traditional = yes; then
20529 CC="$CC -traditional"
20530 fi
20531fi
20532
20533
20534########
20535#
20536# Set defines required to build DLLs and modules using MinGW
20537#
20538########
20539# These options are set for multi-thread DLL module build
20540# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20541# module: _DLL
20542# executable/Magick++: _DLL _MAGICKMOD_
20543MODULE_EXTRA_CPPFLAGS=''
20544LIBRARY_EXTRA_CPPFLAGS=''
20545if test "${native_win32_build}" = 'yes'; then
20546 if test "${libtool_build_shared_libs}" = 'yes'; then
20547 CPPFLAGS="$CPPFLAGS -D_DLL"
20548 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20549 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20550 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20551 if test "$with_modules" = 'yes'; then
20552 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20553 else
20554 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20555 fi
20556 else
20557 CPPFLAGS="$CPPFLAGS -D_LIB"
20558 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20559 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20560 fi
20561 if test "$with_threads" = 'yes'; then
20562 CPPFLAGS="$CPPFLAGS -D_MT"
20563 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20564 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20565 fi
20566fi
20567
20568
20569
20570# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020572$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020573if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020574 $as_echo_n "(cached) " >&6
20575else
cristy8b350f62009-11-15 23:12:43 +000020576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020577/* end confdefs.h. */
20578#include <stdlib.h>
20579#include <stdarg.h>
20580#include <string.h>
20581#include <float.h>
20582
20583int
20584main ()
20585{
20586
20587 ;
20588 return 0;
20589}
20590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020591if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020592 ac_cv_header_stdc=yes
20593else
cristy8b350f62009-11-15 23:12:43 +000020594 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020595fi
cristy3ed852e2009-09-05 21:47:34 +000020596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20597
20598if test $ac_cv_header_stdc = yes; then
20599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020601/* end confdefs.h. */
20602#include <string.h>
20603
20604_ACEOF
20605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020606 $EGREP "memchr" >/dev/null 2>&1; then :
20607
cristy3ed852e2009-09-05 21:47:34 +000020608else
20609 ac_cv_header_stdc=no
20610fi
20611rm -f conftest*
20612
20613fi
20614
20615if test $ac_cv_header_stdc = yes; then
20616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020618/* end confdefs.h. */
20619#include <stdlib.h>
20620
20621_ACEOF
20622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020623 $EGREP "free" >/dev/null 2>&1; then :
20624
cristy3ed852e2009-09-05 21:47:34 +000020625else
20626 ac_cv_header_stdc=no
20627fi
20628rm -f conftest*
20629
20630fi
20631
20632if test $ac_cv_header_stdc = yes; then
20633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020634 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020635 :
20636else
cristy8b350f62009-11-15 23:12:43 +000020637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020638/* end confdefs.h. */
20639#include <ctype.h>
20640#include <stdlib.h>
20641#if ((' ' & 0x0FF) == 0x020)
20642# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20643# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20644#else
20645# define ISLOWER(c) \
20646 (('a' <= (c) && (c) <= 'i') \
20647 || ('j' <= (c) && (c) <= 'r') \
20648 || ('s' <= (c) && (c) <= 'z'))
20649# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20650#endif
20651
20652#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20653int
20654main ()
20655{
20656 int i;
20657 for (i = 0; i < 256; i++)
20658 if (XOR (islower (i), ISLOWER (i))
20659 || toupper (i) != TOUPPER (i))
20660 return 2;
20661 return 0;
20662}
20663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020664if ac_fn_c_try_run "$LINENO"; then :
20665
cristy3ed852e2009-09-05 21:47:34 +000020666else
cristy8b350f62009-11-15 23:12:43 +000020667 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020668fi
cristy8b350f62009-11-15 23:12:43 +000020669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20670 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020671fi
20672
cristy3ed852e2009-09-05 21:47:34 +000020673fi
20674fi
cristy8b350f62009-11-15 23:12:43 +000020675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020676$as_echo "$ac_cv_header_stdc" >&6; }
20677if test $ac_cv_header_stdc = yes; then
20678
cristy8b350f62009-11-15 23:12:43 +000020679$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020680
20681fi
20682
20683if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020684 { $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 +000020685 header files. Compilation cannot proceed. Please install the ANSI C
20686 headers and rerun this script." >&5
20687$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20688 header files. Compilation cannot proceed. Please install the ANSI C
20689 headers and rerun this script." >&2;};
20690fi
cristya0b81c32010-01-22 02:54:33 +000020691
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20693$as_echo_n "checking whether to enable assertions... " >&6; }
20694 # Check whether --enable-assert was given.
20695if test "${enable_assert+set}" = set; then :
20696 enableval=$enable_assert; ac_enable_assert=$enableval
20697 if test "x$enableval" = xno; then :
20698
20699$as_echo "#define NDEBUG 1" >>confdefs.h
20700
20701elif test "x$enableval" != xyes; then :
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20703$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20704 ac_enable_assert=yes
20705fi
20706else
20707 ac_enable_assert=yes
20708fi
20709
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20711$as_echo "$ac_enable_assert" >&6; }
20712
cristy3ed852e2009-09-05 21:47:34 +000020713ac_header_dirent=no
20714for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20715 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020717$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020719 $as_echo_n "(cached) " >&6
20720else
cristy8b350f62009-11-15 23:12:43 +000020721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020722/* end confdefs.h. */
20723#include <sys/types.h>
20724#include <$ac_hdr>
20725
20726int
20727main ()
20728{
20729if ((DIR *) 0)
20730return 0;
20731 ;
20732 return 0;
20733}
20734_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020735if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020736 eval "$as_ac_Header=yes"
20737else
cristy8b350f62009-11-15 23:12:43 +000020738 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020739fi
cristy3ed852e2009-09-05 21:47:34 +000020740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20741fi
cristy8b350f62009-11-15 23:12:43 +000020742eval ac_res=\$$as_ac_Header
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020744$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020745eval as_val=\$$as_ac_Header
20746 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020747 cat >>confdefs.h <<_ACEOF
20748#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20749_ACEOF
20750
20751ac_header_dirent=$ac_hdr; break
20752fi
20753
20754done
20755# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20756if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020758$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020759if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020760 $as_echo_n "(cached) " >&6
20761else
20762 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020764/* end confdefs.h. */
20765
20766/* Override any GCC internal prototype to avoid an error.
20767 Use char because int might match the return type of a GCC
20768 builtin and then its argument prototype would still apply. */
20769#ifdef __cplusplus
20770extern "C"
20771#endif
20772char opendir ();
20773int
20774main ()
20775{
20776return opendir ();
20777 ;
20778 return 0;
20779}
20780_ACEOF
20781for ac_lib in '' dir; do
20782 if test -z "$ac_lib"; then
20783 ac_res="none required"
20784 else
20785 ac_res=-l$ac_lib
20786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20787 fi
cristy8b350f62009-11-15 23:12:43 +000020788 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020789 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020790fi
cristy8b350f62009-11-15 23:12:43 +000020791rm -f core conftest.err conftest.$ac_objext \
20792 conftest$ac_exeext
20793 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020794 break
20795fi
20796done
cristy8b350f62009-11-15 23:12:43 +000020797if test "${ac_cv_search_opendir+set}" = set; then :
20798
cristy3ed852e2009-09-05 21:47:34 +000020799else
20800 ac_cv_search_opendir=no
20801fi
20802rm conftest.$ac_ext
20803LIBS=$ac_func_search_save_LIBS
20804fi
cristy8b350f62009-11-15 23:12:43 +000020805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020806$as_echo "$ac_cv_search_opendir" >&6; }
20807ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020808if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20810
20811fi
20812
20813else
cristy8b350f62009-11-15 23:12:43 +000020814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020815$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020816if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020817 $as_echo_n "(cached) " >&6
20818else
20819 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020821/* end confdefs.h. */
20822
20823/* Override any GCC internal prototype to avoid an error.
20824 Use char because int might match the return type of a GCC
20825 builtin and then its argument prototype would still apply. */
20826#ifdef __cplusplus
20827extern "C"
20828#endif
20829char opendir ();
20830int
20831main ()
20832{
20833return opendir ();
20834 ;
20835 return 0;
20836}
20837_ACEOF
20838for ac_lib in '' x; do
20839 if test -z "$ac_lib"; then
20840 ac_res="none required"
20841 else
20842 ac_res=-l$ac_lib
20843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20844 fi
cristy8b350f62009-11-15 23:12:43 +000020845 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020846 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020847fi
cristy8b350f62009-11-15 23:12:43 +000020848rm -f core conftest.err conftest.$ac_objext \
20849 conftest$ac_exeext
20850 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020851 break
20852fi
20853done
cristy8b350f62009-11-15 23:12:43 +000020854if test "${ac_cv_search_opendir+set}" = set; then :
20855
cristy3ed852e2009-09-05 21:47:34 +000020856else
20857 ac_cv_search_opendir=no
20858fi
20859rm conftest.$ac_ext
20860LIBS=$ac_func_search_save_LIBS
20861fi
cristy8b350f62009-11-15 23:12:43 +000020862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020863$as_echo "$ac_cv_search_opendir" >&6; }
20864ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020865if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020866 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20867
20868fi
20869
20870fi
20871
20872
20873# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020874for 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 +000020875do :
20876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20877ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20878eval as_val=\$$as_ac_Header
20879 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020880 cat >>confdefs.h <<_ACEOF
20881#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20882_ACEOF
20883
20884fi
20885
20886done
20887
20888
20889########
20890#
20891# Checks for typedefs, structures, and compiler characteristics.
20892#
20893########
20894
cristy8b350f62009-11-15 23:12:43 +000020895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020896$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020897if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020898 $as_echo_n "(cached) " >&6
20899else
cristy8b350f62009-11-15 23:12:43 +000020900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020901/* end confdefs.h. */
20902
20903#include <stdbool.h>
20904#ifndef bool
20905 "error: bool is not defined"
20906#endif
20907#ifndef false
20908 "error: false is not defined"
20909#endif
20910#if false
20911 "error: false is not 0"
20912#endif
20913#ifndef true
20914 "error: true is not defined"
20915#endif
20916#if true != 1
20917 "error: true is not 1"
20918#endif
20919#ifndef __bool_true_false_are_defined
20920 "error: __bool_true_false_are_defined is not defined"
20921#endif
20922
20923 struct s { _Bool s: 1; _Bool t; } s;
20924
20925 char a[true == 1 ? 1 : -1];
20926 char b[false == 0 ? 1 : -1];
20927 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20928 char d[(bool) 0.5 == true ? 1 : -1];
20929 bool e = &s;
20930 char f[(_Bool) 0.0 == false ? 1 : -1];
20931 char g[true];
20932 char h[sizeof (_Bool)];
20933 char i[sizeof s.t];
20934 enum { j = false, k = true, l = false * true, m = true * 256 };
20935 /* The following fails for
20936 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20937 _Bool n[m];
20938 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20939 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20940# if defined __xlc__ || defined __GNUC__
20941 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20942 reported by James Lemley on 2005-10-05; see
20943 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20944 This test is not quite right, since xlc is allowed to
20945 reject this program, as the initializer for xlcbug is
20946 not one of the forms that C requires support for.
20947 However, doing the test right would require a runtime
20948 test, and that would make cross-compilation harder.
20949 Let us hope that IBM fixes the xlc bug, and also adds
20950 support for this kind of constant expression. In the
20951 meantime, this test will reject xlc, which is OK, since
20952 our stdbool.h substitute should suffice. We also test
20953 this with GCC, where it should work, to detect more
20954 quickly whether someone messes up the test in the
20955 future. */
20956 char digs[] = "0123456789";
20957 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20958# endif
20959 /* Catch a bug in an HP-UX C compiler. See
20960 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20961 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20962 */
20963 _Bool q = true;
20964 _Bool *pq = &q;
20965
20966int
20967main ()
20968{
20969
20970 *pq |= q;
20971 *pq |= ! q;
20972 /* Refer to every declared value, to avoid compiler optimizations. */
20973 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20974 + !m + !n + !o + !p + !q + !pq);
20975
20976 ;
20977 return 0;
20978}
20979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020980if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020981 ac_cv_header_stdbool_h=yes
20982else
cristy8b350f62009-11-15 23:12:43 +000020983 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020984fi
cristy3ed852e2009-09-05 21:47:34 +000020985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20986fi
cristy8b350f62009-11-15 23:12:43 +000020987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020988$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020989ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20990if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020991
20992cat >>confdefs.h <<_ACEOF
20993#define HAVE__BOOL 1
20994_ACEOF
20995
20996
20997fi
20998
20999if test $ac_cv_header_stdbool_h = yes; then
21000
cristy8b350f62009-11-15 23:12:43 +000021001$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021002
21003fi
21004
cristy8b350f62009-11-15 23:12:43 +000021005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021006$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021007if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021008 $as_echo_n "(cached) " >&6
21009else
cristy8b350f62009-11-15 23:12:43 +000021010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021011/* end confdefs.h. */
21012
21013int
21014main ()
21015{
21016
21017volatile int x;
21018int * volatile y = (int *) 0;
21019return !x && !y;
21020 ;
21021 return 0;
21022}
21023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021024if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021025 ac_cv_c_volatile=yes
21026else
cristy8b350f62009-11-15 23:12:43 +000021027 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021028fi
cristy3ed852e2009-09-05 21:47:34 +000021029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21030fi
cristy8b350f62009-11-15 23:12:43 +000021031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021032$as_echo "$ac_cv_c_volatile" >&6; }
21033if test $ac_cv_c_volatile = no; then
21034
cristy8b350f62009-11-15 23:12:43 +000021035$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021036
21037fi
21038
cristy8b350f62009-11-15 23:12:43 +000021039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021040$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021041if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021042 $as_echo_n "(cached) " >&6
21043else
cristy8b350f62009-11-15 23:12:43 +000021044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021045/* end confdefs.h. */
21046#define x(y) #y
21047
21048char *s = x(teststring);
21049_ACEOF
21050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021051 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021052 ac_cv_c_stringize=no
21053else
21054 ac_cv_c_stringize=yes
21055fi
21056rm -f conftest*
21057
21058fi
cristy8b350f62009-11-15 23:12:43 +000021059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021060$as_echo "$ac_cv_c_stringize" >&6; }
21061if test $ac_cv_c_stringize = yes; then
21062
cristy8b350f62009-11-15 23:12:43 +000021063$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021064
21065fi
21066
cristy8b350f62009-11-15 23:12:43 +000021067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021068$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021069if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021070 $as_echo_n "(cached) " >&6
21071else
cristy8b350f62009-11-15 23:12:43 +000021072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021073/* end confdefs.h. */
21074#include <sys/types.h>
21075#include <sys/stat.h>
21076
21077#if defined S_ISBLK && defined S_IFDIR
21078extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21079#endif
21080
21081#if defined S_ISBLK && defined S_IFCHR
21082extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21083#endif
21084
21085#if defined S_ISLNK && defined S_IFREG
21086extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21087#endif
21088
21089#if defined S_ISSOCK && defined S_IFREG
21090extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21091#endif
21092
21093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021094if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021095 ac_cv_header_stat_broken=no
21096else
cristy8b350f62009-11-15 23:12:43 +000021097 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021098fi
cristy3ed852e2009-09-05 21:47:34 +000021099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21100fi
cristy8b350f62009-11-15 23:12:43 +000021101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021102$as_echo "$ac_cv_header_stat_broken" >&6; }
21103if test $ac_cv_header_stat_broken = yes; then
21104
cristy8b350f62009-11-15 23:12:43 +000021105$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021106
21107fi
21108
cristy8b350f62009-11-15 23:12:43 +000021109{ $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 +000021110$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021111if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021112 $as_echo_n "(cached) " >&6
21113else
cristy8b350f62009-11-15 23:12:43 +000021114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021115/* end confdefs.h. */
21116#include <sys/types.h>
21117#include <sys/time.h>
21118#include <time.h>
21119
21120int
21121main ()
21122{
21123if ((struct tm *) 0)
21124return 0;
21125 ;
21126 return 0;
21127}
21128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021129if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021130 ac_cv_header_time=yes
21131else
cristy8b350f62009-11-15 23:12:43 +000021132 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021133fi
cristy3ed852e2009-09-05 21:47:34 +000021134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21135fi
cristy8b350f62009-11-15 23:12:43 +000021136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021137$as_echo "$ac_cv_header_time" >&6; }
21138if test $ac_cv_header_time = yes; then
21139
cristy8b350f62009-11-15 23:12:43 +000021140$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021141
21142fi
21143
cristy8b350f62009-11-15 23:12:43 +000021144{ $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 +000021145$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021146if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021147 $as_echo_n "(cached) " >&6
21148else
cristy8b350f62009-11-15 23:12:43 +000021149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021150/* end confdefs.h. */
21151#include <sys/types.h>
21152#include <time.h>
21153
21154int
21155main ()
21156{
21157struct tm tm;
21158 int *p = &tm.tm_sec;
21159 return !p;
21160 ;
21161 return 0;
21162}
21163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021164if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021165 ac_cv_struct_tm=time.h
21166else
cristy8b350f62009-11-15 23:12:43 +000021167 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021168fi
cristy3ed852e2009-09-05 21:47:34 +000021169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21170fi
cristy8b350f62009-11-15 23:12:43 +000021171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021172$as_echo "$ac_cv_struct_tm" >&6; }
21173if test $ac_cv_struct_tm = sys/time.h; then
21174
cristy8b350f62009-11-15 23:12:43 +000021175$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021176
21177fi
21178
cristy92703d82010-04-26 00:18:18 +000021179ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21180#include <$ac_cv_struct_tm>
21181
21182"
21183if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21184
21185cat >>confdefs.h <<_ACEOF
21186#define HAVE_STRUCT_TM_TM_ZONE 1
21187_ACEOF
21188
21189
21190fi
21191
21192if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21193
21194$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21195
21196else
21197 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21198"
21199if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21200 ac_have_decl=1
21201else
21202 ac_have_decl=0
21203fi
21204
21205cat >>confdefs.h <<_ACEOF
21206#define HAVE_DECL_TZNAME $ac_have_decl
21207_ACEOF
21208
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21210$as_echo_n "checking for tzname... " >&6; }
21211if test "${ac_cv_var_tzname+set}" = set; then :
21212 $as_echo_n "(cached) " >&6
21213else
21214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21215/* end confdefs.h. */
21216#include <time.h>
21217#if !HAVE_DECL_TZNAME
21218extern char *tzname[];
21219#endif
21220
21221int
21222main ()
21223{
21224return tzname[0][0];
21225 ;
21226 return 0;
21227}
21228_ACEOF
21229if ac_fn_c_try_link "$LINENO"; then :
21230 ac_cv_var_tzname=yes
21231else
21232 ac_cv_var_tzname=no
21233fi
21234rm -f core conftest.err conftest.$ac_objext \
21235 conftest$ac_exeext conftest.$ac_ext
21236fi
21237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21238$as_echo "$ac_cv_var_tzname" >&6; }
21239 if test $ac_cv_var_tzname = yes; then
21240
21241$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21242
21243 fi
21244fi
21245
cristy8b350f62009-11-15 23:12:43 +000021246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021247$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021248if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021249 $as_echo_n "(cached) " >&6
21250else
21251 echo '#! /bin/cat
21252exit 69
21253' >conftest
21254chmod u+x conftest
21255(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21256if test $? -ne 69; then
21257 ac_cv_sys_interpreter=yes
21258else
21259 ac_cv_sys_interpreter=no
21260fi
21261rm -f conftest
21262fi
cristy8b350f62009-11-15 23:12:43 +000021263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021264$as_echo "$ac_cv_sys_interpreter" >&6; }
21265interpval=$ac_cv_sys_interpreter
21266
21267
cristy3ed852e2009-09-05 21:47:34 +000021268# If the C compiler supports the keyword inline, do nothing. Otherwise
21269# define inline to __inline__ or __inline if it accepts one of those,
21270# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021272$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021273if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021274 $as_echo_n "(cached) " >&6
21275else
21276 ac_cv_c_inline=no
21277for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021279/* end confdefs.h. */
21280#ifndef __cplusplus
21281typedef int foo_t;
21282static $ac_kw foo_t static_foo () {return 0; }
21283$ac_kw foo_t foo () {return 0; }
21284#endif
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_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021289fi
cristy3ed852e2009-09-05 21:47:34 +000021290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291 test "$ac_cv_c_inline" != no && break
21292done
21293
21294fi
cristy8b350f62009-11-15 23:12:43 +000021295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021296$as_echo "$ac_cv_c_inline" >&6; }
21297
cristy3ed852e2009-09-05 21:47:34 +000021298case $ac_cv_c_inline in
21299 inline | yes) ;;
21300 *)
21301 case $ac_cv_c_inline in
21302 no) ac_val=;;
21303 *) ac_val=$ac_cv_c_inline;;
21304 esac
21305 cat >>confdefs.h <<_ACEOF
21306#ifndef __cplusplus
21307#define inline $ac_val
21308#endif
21309_ACEOF
21310 ;;
21311esac
21312
21313
21314# If the C compiler supports the keyword restrict, do nothing. Otherwise
21315# define restrict to __restrict__ or __restrict if it accepts one of those,
21316# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021318$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021319if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021320 $as_echo_n "(cached) " >&6
21321else
21322 ac_cv_c_restrict=no
21323 # The order here caters to the fact that C++ does not require restrict.
21324 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021326/* end confdefs.h. */
21327typedef int * int_ptr;
21328 int foo (int_ptr $ac_kw ip) {
21329 return ip[0];
21330 }
21331int
21332main ()
21333{
21334int s[1];
21335 int * $ac_kw t = s;
21336 t[0] = 0;
21337 return foo(t)
21338 ;
21339 return 0;
21340}
21341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021342if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021343 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021344fi
cristy3ed852e2009-09-05 21:47:34 +000021345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21346 test "$ac_cv_c_restrict" != no && break
21347 done
21348
21349fi
cristy8b350f62009-11-15 23:12:43 +000021350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021351$as_echo "$ac_cv_c_restrict" >&6; }
21352
cristy3ed852e2009-09-05 21:47:34 +000021353 case $ac_cv_c_restrict in
21354 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021355 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021356 ;;
21357 *) cat >>confdefs.h <<_ACEOF
21358#define restrict $ac_cv_c_restrict
21359_ACEOF
21360 ;;
21361 esac
21362
21363
21364# If words are stored with the most significant byte first (like
21365# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021367$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021368if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021369 $as_echo_n "(cached) " >&6
21370else
21371 ac_cv_c_bigendian=unknown
21372 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021374/* end confdefs.h. */
21375#ifndef __APPLE_CC__
21376 not a universal capable compiler
21377 #endif
21378 typedef int dummy;
21379
21380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021381if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021382
21383 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021384 # there are at least two -arch flags with different values.
21385 ac_arch=
21386 ac_prev=
21387 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21388 if test -n "$ac_prev"; then
21389 case $ac_word in
21390 i?86 | x86_64 | ppc | ppc64)
21391 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21392 ac_arch=$ac_word
21393 else
21394 ac_cv_c_bigendian=universal
21395 break
21396 fi
21397 ;;
21398 esac
21399 ac_prev=
21400 elif test "x$ac_word" = "x-arch"; then
21401 ac_prev=arch
21402 fi
21403 done
cristy3ed852e2009-09-05 21:47:34 +000021404fi
cristy3ed852e2009-09-05 21:47:34 +000021405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21406 if test $ac_cv_c_bigendian = unknown; then
21407 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021409/* end confdefs.h. */
21410#include <sys/types.h>
21411 #include <sys/param.h>
21412
21413int
21414main ()
21415{
21416#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21417 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21418 && LITTLE_ENDIAN)
21419 bogus endian macros
21420 #endif
21421
21422 ;
21423 return 0;
21424}
21425_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021426if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021427 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021429/* end confdefs.h. */
21430#include <sys/types.h>
21431 #include <sys/param.h>
21432
21433int
21434main ()
21435{
21436#if BYTE_ORDER != BIG_ENDIAN
21437 not big endian
21438 #endif
21439
21440 ;
21441 return 0;
21442}
21443_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021444if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021445 ac_cv_c_bigendian=yes
21446else
cristy8b350f62009-11-15 23:12:43 +000021447 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021448fi
cristy3ed852e2009-09-05 21:47:34 +000021449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021450fi
cristy3ed852e2009-09-05 21:47:34 +000021451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21452 fi
21453 if test $ac_cv_c_bigendian = unknown; then
21454 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021456/* end confdefs.h. */
21457#include <limits.h>
21458
21459int
21460main ()
21461{
21462#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21463 bogus endian macros
21464 #endif
21465
21466 ;
21467 return 0;
21468}
21469_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021470if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021471 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021473/* end confdefs.h. */
21474#include <limits.h>
21475
21476int
21477main ()
21478{
21479#ifndef _BIG_ENDIAN
21480 not big endian
21481 #endif
21482
21483 ;
21484 return 0;
21485}
21486_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021487if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021488 ac_cv_c_bigendian=yes
21489else
cristy8b350f62009-11-15 23:12:43 +000021490 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021491fi
cristy3ed852e2009-09-05 21:47:34 +000021492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021493fi
cristy3ed852e2009-09-05 21:47:34 +000021494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21495 fi
21496 if test $ac_cv_c_bigendian = unknown; then
21497 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021498 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021499 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021501/* end confdefs.h. */
21502short int ascii_mm[] =
21503 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21504 short int ascii_ii[] =
21505 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21506 int use_ascii (int i) {
21507 return ascii_mm[i] + ascii_ii[i];
21508 }
21509 short int ebcdic_ii[] =
21510 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21511 short int ebcdic_mm[] =
21512 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21513 int use_ebcdic (int i) {
21514 return ebcdic_mm[i] + ebcdic_ii[i];
21515 }
21516 extern int foo;
21517
21518int
21519main ()
21520{
21521return use_ascii (foo) == use_ebcdic (foo);
21522 ;
21523 return 0;
21524}
21525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021526if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021527 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21528 ac_cv_c_bigendian=yes
21529 fi
21530 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21531 if test "$ac_cv_c_bigendian" = unknown; then
21532 ac_cv_c_bigendian=no
21533 else
21534 # finding both strings is unlikely to happen, but who knows?
21535 ac_cv_c_bigendian=unknown
21536 fi
21537 fi
cristy3ed852e2009-09-05 21:47:34 +000021538fi
cristy3ed852e2009-09-05 21:47:34 +000021539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21540else
cristy8b350f62009-11-15 23:12:43 +000021541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021542/* end confdefs.h. */
21543$ac_includes_default
21544int
21545main ()
21546{
21547
21548 /* Are we little or big endian? From Harbison&Steele. */
21549 union
21550 {
21551 long int l;
21552 char c[sizeof (long int)];
21553 } u;
21554 u.l = 1;
21555 return u.c[sizeof (long int) - 1] == 1;
21556
21557 ;
21558 return 0;
21559}
21560_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021561if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021562 ac_cv_c_bigendian=no
21563else
cristy8b350f62009-11-15 23:12:43 +000021564 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021565fi
cristy8b350f62009-11-15 23:12:43 +000021566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21567 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021568fi
21569
cristy3ed852e2009-09-05 21:47:34 +000021570 fi
21571fi
cristy8b350f62009-11-15 23:12:43 +000021572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021573$as_echo "$ac_cv_c_bigendian" >&6; }
21574 case $ac_cv_c_bigendian in #(
21575 yes)
cristy8b350f62009-11-15 23:12:43 +000021576 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021577;; #(
21578 no)
21579 ;; #(
21580 universal)
21581
cristy8b350f62009-11-15 23:12:43 +000021582$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021583
21584 ;; #(
21585 *)
cristy8b350f62009-11-15 23:12:43 +000021586 as_fn_error "unknown endianness
21587 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021588 esac
21589
21590
21591# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021592ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21593if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021594
cristy3ed852e2009-09-05 21:47:34 +000021595else
21596
21597cat >>confdefs.h <<_ACEOF
21598#define mode_t int
21599_ACEOF
21600
21601fi
21602
21603
21604# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021605ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21606if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021607
cristy3ed852e2009-09-05 21:47:34 +000021608else
21609
21610cat >>confdefs.h <<_ACEOF
21611#define off_t long int
21612_ACEOF
21613
21614fi
21615
21616
21617# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021618ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21619if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021620
cristy3ed852e2009-09-05 21:47:34 +000021621else
21622
21623cat >>confdefs.h <<_ACEOF
21624#define pid_t int
21625_ACEOF
21626
21627fi
21628
21629
21630# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021631ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21632if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021633
cristy3ed852e2009-09-05 21:47:34 +000021634else
21635
21636cat >>confdefs.h <<_ACEOF
21637#define size_t unsigned int
21638_ACEOF
21639
21640fi
21641
21642
21643# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021644ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21645if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021646
cristy3ed852e2009-09-05 21:47:34 +000021647else
21648
21649cat >>confdefs.h <<_ACEOF
21650#define ssize_t int
21651_ACEOF
21652
21653fi
21654
21655
21656# If the C compiler supports a working long double type with more range
21657# or precision than the double type, define HAVE_LONG_DOUBLE.
21658
cristy8b350f62009-11-15 23:12:43 +000021659 { $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 +000021660$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021661if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021662 $as_echo_n "(cached) " >&6
21663else
cristy8b350f62009-11-15 23:12:43 +000021664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021665/* end confdefs.h. */
21666#include <float.h>
21667 long double const a[] =
21668 {
21669 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21670 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21671 };
21672 long double
21673 f (long double x)
21674 {
21675 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21676 + (x ? f (x) : 'c'));
21677 }
21678
21679int
21680main ()
21681{
21682static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21683 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21684 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21685 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21686 && (int) LDBL_EPSILON == 0
21687 )];
21688test_array [0] = 0
21689
21690 ;
21691 return 0;
21692}
21693_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021694if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021695 ac_cv_type_long_double_wider=yes
21696else
cristy8b350f62009-11-15 23:12:43 +000021697 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021698fi
cristy3ed852e2009-09-05 21:47:34 +000021699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21700fi
cristy8b350f62009-11-15 23:12:43 +000021701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021702$as_echo "$ac_cv_type_long_double_wider" >&6; }
21703 if test $ac_cv_type_long_double_wider = yes; then
21704
cristy8b350f62009-11-15 23:12:43 +000021705$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021706
21707 fi
21708
21709
21710# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21711# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021713$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021714if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021715 $as_echo_n "(cached) " >&6
21716else
cristy8b350f62009-11-15 23:12:43 +000021717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021718/* end confdefs.h. */
21719$ac_includes_default
21720int
21721main ()
21722{
21723static int test_array [1 - 2 * !(((char) -1) < 0)];
21724test_array [0] = 0
21725
21726 ;
21727 return 0;
21728}
21729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021730if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021731 ac_cv_c_char_unsigned=no
21732else
cristy8b350f62009-11-15 23:12:43 +000021733 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021734fi
cristy3ed852e2009-09-05 21:47:34 +000021735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21736fi
cristy8b350f62009-11-15 23:12:43 +000021737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021738$as_echo "$ac_cv_c_char_unsigned" >&6; }
21739if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021740 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021741
21742fi
21743
21744
21745# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21746# The cast to long int works around a bug in the HP C Compiler
21747# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21748# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21749# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021751$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021752if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021753 $as_echo_n "(cached) " >&6
21754else
cristy8b350f62009-11-15 23:12:43 +000021755 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 +000021756
cristy3ed852e2009-09-05 21:47:34 +000021757else
cristy8b350f62009-11-15 23:12:43 +000021758 if test "$ac_cv_type_signed_short" = yes; then
21759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021761{ as_fn_set_status 77
21762as_fn_error "cannot compute sizeof (signed short)
21763See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021764 else
21765 ac_cv_sizeof_signed_short=0
21766 fi
21767fi
cristy8b350f62009-11-15 23:12:43 +000021768
cristy3ed852e2009-09-05 21:47:34 +000021769fi
cristy8b350f62009-11-15 23:12:43 +000021770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021771$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21772
21773
21774
21775cat >>confdefs.h <<_ACEOF
21776#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21777_ACEOF
21778
21779
21780
21781# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21782# The cast to long int works around a bug in the HP C Compiler
21783# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21784# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21785# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021787$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021788if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021789 $as_echo_n "(cached) " >&6
21790else
cristy8b350f62009-11-15 23:12:43 +000021791 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 +000021792
cristy3ed852e2009-09-05 21:47:34 +000021793else
cristy8b350f62009-11-15 23:12:43 +000021794 if test "$ac_cv_type_unsigned_short" = yes; then
21795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021797{ as_fn_set_status 77
21798as_fn_error "cannot compute sizeof (unsigned short)
21799See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021800 else
21801 ac_cv_sizeof_unsigned_short=0
21802 fi
21803fi
cristy8b350f62009-11-15 23:12:43 +000021804
cristy3ed852e2009-09-05 21:47:34 +000021805fi
cristy8b350f62009-11-15 23:12:43 +000021806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021807$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21808
21809
21810
21811cat >>confdefs.h <<_ACEOF
21812#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21813_ACEOF
21814
21815
21816
21817# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21818# The cast to long int works around a bug in the HP C Compiler
21819# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21820# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21821# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021823$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021824if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021825 $as_echo_n "(cached) " >&6
21826else
cristy8b350f62009-11-15 23:12:43 +000021827 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 +000021828
cristy3ed852e2009-09-05 21:47:34 +000021829else
cristy8b350f62009-11-15 23:12:43 +000021830 if test "$ac_cv_type_signed_int" = yes; then
21831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021833{ as_fn_set_status 77
21834as_fn_error "cannot compute sizeof (signed int)
21835See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021836 else
21837 ac_cv_sizeof_signed_int=0
21838 fi
21839fi
cristy8b350f62009-11-15 23:12:43 +000021840
cristy3ed852e2009-09-05 21:47:34 +000021841fi
cristy8b350f62009-11-15 23:12:43 +000021842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021843$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21844
21845
21846
21847cat >>confdefs.h <<_ACEOF
21848#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21849_ACEOF
21850
21851
21852
21853# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21854# The cast to long int works around a bug in the HP C Compiler
21855# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21856# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21857# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021859$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021860if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021861 $as_echo_n "(cached) " >&6
21862else
cristy8b350f62009-11-15 23:12:43 +000021863 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 +000021864
cristy3ed852e2009-09-05 21:47:34 +000021865else
cristy8b350f62009-11-15 23:12:43 +000021866 if test "$ac_cv_type_unsigned_int" = yes; then
21867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021869{ as_fn_set_status 77
21870as_fn_error "cannot compute sizeof (unsigned int)
21871See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021872 else
21873 ac_cv_sizeof_unsigned_int=0
21874 fi
21875fi
cristy8b350f62009-11-15 23:12:43 +000021876
cristy3ed852e2009-09-05 21:47:34 +000021877fi
cristy8b350f62009-11-15 23:12:43 +000021878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021879$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21880
21881
21882
21883cat >>confdefs.h <<_ACEOF
21884#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21885_ACEOF
21886
21887
21888
21889# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21890# The cast to long int works around a bug in the HP C Compiler
21891# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21892# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21893# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021895$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021896if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021897 $as_echo_n "(cached) " >&6
21898else
cristy8b350f62009-11-15 23:12:43 +000021899 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 +000021900
cristy3ed852e2009-09-05 21:47:34 +000021901else
cristy8b350f62009-11-15 23:12:43 +000021902 if test "$ac_cv_type_signed_long" = yes; then
21903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021905{ as_fn_set_status 77
21906as_fn_error "cannot compute sizeof (signed long)
21907See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021908 else
21909 ac_cv_sizeof_signed_long=0
21910 fi
21911fi
cristy8b350f62009-11-15 23:12:43 +000021912
cristy3ed852e2009-09-05 21:47:34 +000021913fi
cristy8b350f62009-11-15 23:12:43 +000021914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021915$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21916
21917
21918
21919cat >>confdefs.h <<_ACEOF
21920#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21921_ACEOF
21922
21923
21924
21925# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21926# The cast to long int works around a bug in the HP C Compiler
21927# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21928# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21929# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021931$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021932if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021933 $as_echo_n "(cached) " >&6
21934else
cristy8b350f62009-11-15 23:12:43 +000021935 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 +000021936
cristy3ed852e2009-09-05 21:47:34 +000021937else
cristy8b350f62009-11-15 23:12:43 +000021938 if test "$ac_cv_type_unsigned_long" = yes; then
21939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021941{ as_fn_set_status 77
21942as_fn_error "cannot compute sizeof (unsigned long)
21943See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021944 else
21945 ac_cv_sizeof_unsigned_long=0
21946 fi
21947fi
cristy8b350f62009-11-15 23:12:43 +000021948
cristy3ed852e2009-09-05 21:47:34 +000021949fi
cristy8b350f62009-11-15 23:12:43 +000021950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021951$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21952
21953
21954
21955cat >>confdefs.h <<_ACEOF
21956#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21957_ACEOF
21958
21959
21960
21961# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21962# 'signed long long' is not supported then the value defined is zero.
21963# The cast to long int works around a bug in the HP C Compiler
21964# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21965# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21966# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021968$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021969if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021970 $as_echo_n "(cached) " >&6
21971else
cristy8b350f62009-11-15 23:12:43 +000021972 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 +000021973
cristy3ed852e2009-09-05 21:47:34 +000021974else
cristy8b350f62009-11-15 23:12:43 +000021975 if test "$ac_cv_type_signed_long_long" = yes; then
21976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021978{ as_fn_set_status 77
21979as_fn_error "cannot compute sizeof (signed long long)
21980See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021981 else
21982 ac_cv_sizeof_signed_long_long=0
21983 fi
21984fi
cristy8b350f62009-11-15 23:12:43 +000021985
cristy3ed852e2009-09-05 21:47:34 +000021986fi
cristy8b350f62009-11-15 23:12:43 +000021987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021988$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21989
21990
21991
21992cat >>confdefs.h <<_ACEOF
21993#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21994_ACEOF
21995
21996
21997
21998# Obtain size of a 'unsigned long long' and define as
21999# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22000# supported then the value defined is zero.
22001# The cast to long int works around a bug in the HP C Compiler
22002# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22003# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22004# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022006$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022007if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022008 $as_echo_n "(cached) " >&6
22009else
cristy8b350f62009-11-15 23:12:43 +000022010 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 +000022011
cristy3ed852e2009-09-05 21:47:34 +000022012else
cristy8b350f62009-11-15 23:12:43 +000022013 if test "$ac_cv_type_unsigned_long_long" = yes; then
22014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022016{ as_fn_set_status 77
22017as_fn_error "cannot compute sizeof (unsigned long long)
22018See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022019 else
22020 ac_cv_sizeof_unsigned_long_long=0
22021 fi
22022fi
cristy8b350f62009-11-15 23:12:43 +000022023
cristy3ed852e2009-09-05 21:47:34 +000022024fi
cristy8b350f62009-11-15 23:12:43 +000022025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022026$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22027
22028
22029
22030cat >>confdefs.h <<_ACEOF
22031#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22032_ACEOF
22033
22034
22035
22036# Obtain size of off_t and define as SIZEOF_OFF_T
22037# The cast to long int works around a bug in the HP C Compiler
22038# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22039# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22040# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022042$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022043if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022044 $as_echo_n "(cached) " >&6
22045else
cristy8b350f62009-11-15 23:12:43 +000022046 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 +000022047
cristy3ed852e2009-09-05 21:47:34 +000022048else
cristy8b350f62009-11-15 23:12:43 +000022049 if test "$ac_cv_type_off_t" = yes; then
22050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022052{ as_fn_set_status 77
22053as_fn_error "cannot compute sizeof (off_t)
22054See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022055 else
22056 ac_cv_sizeof_off_t=0
22057 fi
22058fi
cristy8b350f62009-11-15 23:12:43 +000022059
cristy3ed852e2009-09-05 21:47:34 +000022060fi
cristy8b350f62009-11-15 23:12:43 +000022061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022062$as_echo "$ac_cv_sizeof_off_t" >&6; }
22063
22064
22065
22066cat >>confdefs.h <<_ACEOF
22067#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22068_ACEOF
22069
22070
22071
22072# Obtain size of size_t and define as SIZEOF_SIZE_T
22073# The cast to long int works around a bug in the HP C Compiler
22074# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22075# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22076# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022078$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022079if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022080 $as_echo_n "(cached) " >&6
22081else
cristy8b350f62009-11-15 23:12:43 +000022082 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 +000022083
cristy3ed852e2009-09-05 21:47:34 +000022084else
cristy8b350f62009-11-15 23:12:43 +000022085 if test "$ac_cv_type_size_t" = yes; then
22086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022088{ as_fn_set_status 77
22089as_fn_error "cannot compute sizeof (size_t)
22090See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022091 else
22092 ac_cv_sizeof_size_t=0
22093 fi
22094fi
cristy8b350f62009-11-15 23:12:43 +000022095
cristy3ed852e2009-09-05 21:47:34 +000022096fi
cristy8b350f62009-11-15 23:12:43 +000022097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022098$as_echo "$ac_cv_sizeof_size_t" >&6; }
22099
22100
22101
22102cat >>confdefs.h <<_ACEOF
22103#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22104_ACEOF
22105
22106
22107
22108# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22109# The cast to long int works around a bug in the HP C Compiler
22110# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22111# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22112# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022114$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022115if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022116 $as_echo_n "(cached) " >&6
22117else
cristy8b350f62009-11-15 23:12:43 +000022118 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 +000022119
cristy3ed852e2009-09-05 21:47:34 +000022120else
cristy8b350f62009-11-15 23:12:43 +000022121 if test "$ac_cv_type_unsigned_intp" = yes; then
22122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022124{ as_fn_set_status 77
22125as_fn_error "cannot compute sizeof (unsigned int*)
22126See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022127 else
22128 ac_cv_sizeof_unsigned_intp=0
22129 fi
22130fi
cristy8b350f62009-11-15 23:12:43 +000022131
cristy3ed852e2009-09-05 21:47:34 +000022132fi
cristy8b350f62009-11-15 23:12:43 +000022133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022134$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22135
22136
22137
22138cat >>confdefs.h <<_ACEOF
22139#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22140_ACEOF
22141
22142
22143
22144#
22145# Compute sized types for current CPU and compiler options.
22146#
22147
cristy8b350f62009-11-15 23:12:43 +000022148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022149$as_echo_n "checking for signed 8-bit type... " >&6; }
22150INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022152$as_echo "$INT8_T" >&6; }
22153
22154
cristy8b350f62009-11-15 23:12:43 +000022155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022156$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22157UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022159$as_echo "$UINT8_T" >&6; }
22160
22161
cristy8b350f62009-11-15 23:12:43 +000022162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022163$as_echo_n "checking for signed 16-bit type... " >&6; }
22164INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022166$as_echo "$INT16_T" >&6; }
22167
22168
cristy8b350f62009-11-15 23:12:43 +000022169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022170$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22171UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022173$as_echo "$UINT16_T" >&6; }
22174
22175
cristy8b350f62009-11-15 23:12:43 +000022176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022177$as_echo_n "checking for signed 32-bit type... " >&6; }
22178INT32_T='none'
22179if test $ac_cv_sizeof_signed_int -eq 4; then
22180 INT32_T='signed int'
22181elif test $ac_cv_sizeof_signed_long -eq 4; then
22182 INT32_T='signed long'
22183fi
cristy8b350f62009-11-15 23:12:43 +000022184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022185$as_echo "$INT32_T" >&6; }
22186
22187
cristy8b350f62009-11-15 23:12:43 +000022188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022189$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22190UINT32_T='none'
22191if test $ac_cv_sizeof_unsigned_int -eq 4; then
22192 UINT32_T='unsigned int'
22193elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22194 UINT32_T='unsigned long'
22195fi
cristy8b350f62009-11-15 23:12:43 +000022196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022197$as_echo "$UINT32_T" >&6; }
22198
22199
cristy8b350f62009-11-15 23:12:43 +000022200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022201$as_echo_n "checking for signed 64-bit type... " >&6; }
22202INT64_T='none'
22203if test $ac_cv_sizeof_signed_long -eq 8; then
22204 INT64_T='signed long'
22205elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22206 INT64_T='signed long long'
22207fi
cristy8b350f62009-11-15 23:12:43 +000022208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022209$as_echo "$INT64_T" >&6; }
22210
22211
cristy8b350f62009-11-15 23:12:43 +000022212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022213$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22214UINT64_T='none'
22215if test $ac_cv_sizeof_unsigned_long -eq 8; then
22216 UINT64_T='unsigned long'
22217elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22218 UINT64_T='unsigned long long'
22219fi
cristy8b350f62009-11-15 23:12:43 +000022220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022221$as_echo "$UINT64_T" >&6; }
22222
22223
cristy8b350f62009-11-15 23:12:43 +000022224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022225$as_echo_n "checking for unsigned maximum type... " >&6; }
22226UINTMAX_T='none'
22227if test "$UINT64_T" != 'none'; then
22228 UINTMAX_T=$UINT64_T
22229elif test "$UINT32_T" != 'none'; then
22230 UINTMAX_T=$UINT32_T
22231fi
cristy8b350f62009-11-15 23:12:43 +000022232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022233$as_echo "$UINTMAX_T" >&6; }
22234
22235
cristy8b350f62009-11-15 23:12:43 +000022236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022237$as_echo_n "checking for pointer difference type... " >&6; }
22238UINTPTR_T='none'
22239if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22240 UINTPTR_T='unsigned long'
22241elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22242 UINTPTR_T='unsigned long long'
22243fi
cristy8b350f62009-11-15 23:12:43 +000022244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022245$as_echo "$UINTPTR_T" >&6; }
22246
22247
cristy8b350f62009-11-15 23:12:43 +000022248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022249$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022251/* end confdefs.h. */
22252
22253int
22254main ()
22255{
22256{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22257 ;
22258 return 0;
22259}
22260_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022261if ac_fn_c_try_compile "$LINENO"; then :
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022263$as_echo "yes" >&6; }
22264else
cristy8b350f62009-11-15 23:12:43 +000022265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022266$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022268$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022270/* end confdefs.h. */
22271
22272int
22273main ()
22274{
22275{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22276 ;
22277 return 0;
22278}
22279_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022280if ac_fn_c_try_compile "$LINENO"; then :
22281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022282$as_echo "yes" >&6; }
22283
cristy8b350f62009-11-15 23:12:43 +000022284$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022285
22286else
cristy8b350f62009-11-15 23:12:43 +000022287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022288$as_echo "no" >&6; }
22289
cristy8b350f62009-11-15 23:12:43 +000022290$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022291
22292fi
cristy3ed852e2009-09-05 21:47:34 +000022293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22294fi
cristy3ed852e2009-09-05 21:47:34 +000022295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22296
22297########
22298#
22299# Check for functions
22300#
22301########
cristy3ed852e2009-09-05 21:47:34 +000022302for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022303do :
22304 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22305ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22306eval as_val=\$$as_ac_Header
22307 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022308 cat >>confdefs.h <<_ACEOF
22309#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22310_ACEOF
22311
22312fi
22313
22314done
22315
cristy3ed852e2009-09-05 21:47:34 +000022316for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022317do :
22318 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22319if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022320 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022321#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022322_ACEOF
22323
22324fi
22325done
22326
cristy8b350f62009-11-15 23:12:43 +000022327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022328$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022329if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022330 $as_echo_n "(cached) " >&6
22331else
cristy8b350f62009-11-15 23:12:43 +000022332 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022333 magick_cv_func_mmap_fileio=no
22334else
cristy8b350f62009-11-15 23:12:43 +000022335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022336/* end confdefs.h. */
22337$ac_includes_default
22338/* malloc might have been renamed as rpl_malloc. */
22339#undef malloc
22340
22341/*
22342 This test is derived from GNU Autoconf's similar macro.
22343 The purpose of this test is to verify that files may be memory
22344 mapped, and that memory mapping and file I/O are coherent.
22345
22346 The test creates a test file, memory maps the file, updates
22347 the file using the memory map, and then reads the file using
22348 file I/O to verify that the file contains the updates.
22349*/
22350
22351#include <fcntl.h>
22352#include <sys/mman.h>
22353
22354#if !STDC_HEADERS && !HAVE_STDLIB_H
22355char *malloc ();
22356#endif
22357
22358/* This mess was copied from the GNU getpagesize.h. */
22359#if !HAVE_GETPAGESIZE
22360/* Assume that all systems that can run configure have sys/param.h. */
22361# if !HAVE_SYS_PARAM_H
22362# define HAVE_SYS_PARAM_H 1
22363# endif
22364
22365# ifdef _SC_PAGESIZE
22366# define getpagesize() sysconf(_SC_PAGESIZE)
22367# else /* no _SC_PAGESIZE */
22368# if HAVE_SYS_PARAM_H
22369# include <sys/param.h>
22370# ifdef EXEC_PAGESIZE
22371# define getpagesize() EXEC_PAGESIZE
22372# else /* no EXEC_PAGESIZE */
22373# ifdef NBPG
22374# define getpagesize() NBPG * CLSIZE
22375# ifndef CLSIZE
22376# define CLSIZE 1
22377# endif /* no CLSIZE */
22378# else /* no NBPG */
22379# ifdef NBPC
22380# define getpagesize() NBPC
22381# else /* no NBPC */
22382# ifdef PAGESIZE
22383# define getpagesize() PAGESIZE
22384# endif /* PAGESIZE */
22385# endif /* no NBPC */
22386# endif /* no NBPG */
22387# endif /* no EXEC_PAGESIZE */
22388# else /* no HAVE_SYS_PARAM_H */
22389# define getpagesize() 8192 /* punt totally */
22390# endif /* no HAVE_SYS_PARAM_H */
22391# endif /* no _SC_PAGESIZE */
22392
22393#endif /* no HAVE_GETPAGESIZE */
22394
22395int
22396main ()
22397{
22398 char *data, *data2, *data3;
22399 int i, pagesize;
22400 int fd;
22401
22402 pagesize = getpagesize ();
22403
22404 /* First, make a file with some known garbage in it. */
22405 data = (char *) malloc (pagesize);
22406 if (!data)
22407 exit (1);
22408 for (i = 0; i < pagesize; ++i)
22409 *(data + i) = rand ();
22410 umask (0);
22411 fd = creat ("conftest.mmap", 0600);
22412 if (fd < 0)
22413 exit (1);
22414 if (write (fd, data, pagesize) != pagesize)
22415 exit (1);
22416 close (fd);
22417
22418 /* Mmap the file as read/write/shared and verify that we see the
22419 same garbage. */
22420 fd = open ("conftest.mmap", O_RDWR);
22421 if (fd < 0)
22422 exit (1);
22423 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22424 if (data2 == 0)
22425 exit (1);
22426 for (i = 0; i < pagesize; ++i)
22427 if (*(data + i) != *(data2 + i))
22428 exit (1);
22429
22430 /* Finally, make sure that changes to the mapped area
22431 percolate back to the file as seen by read(). */
22432 for (i = 0; i < pagesize; ++i)
22433 *(data2 + i) = *(data2 + i) + 1;
22434 data3 = (char *) malloc (pagesize);
22435 if (!data3)
22436 exit (1);
22437 if (read (fd, data3, pagesize) != pagesize)
22438 exit (1);
22439 for (i = 0; i < pagesize; ++i)
22440 if (*(data2 + i) != *(data3 + i))
22441 exit (1);
22442 close (fd);
22443 exit (0);
22444}
22445_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022446if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022447 magick_cv_func_mmap_fileio=yes
22448else
cristy8b350f62009-11-15 23:12:43 +000022449 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022450fi
cristy8b350f62009-11-15 23:12:43 +000022451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22452 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022453fi
22454
cristy3ed852e2009-09-05 21:47:34 +000022455fi
cristy8b350f62009-11-15 23:12:43 +000022456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022457$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22458if test $magick_cv_func_mmap_fileio = yes; then
22459
cristy8b350f62009-11-15 23:12:43 +000022460$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022461
22462fi
22463rm -f conftest.mmap
22464
cristy8b350f62009-11-15 23:12:43 +000022465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022466$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022467if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022468 $as_echo_n "(cached) " >&6
22469else
cristy8b350f62009-11-15 23:12:43 +000022470 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022471 ac_cv_func_closedir_void=yes
22472else
cristy8b350f62009-11-15 23:12:43 +000022473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022474/* end confdefs.h. */
22475$ac_includes_default
22476#include <$ac_header_dirent>
22477#ifndef __cplusplus
22478int closedir ();
22479#endif
22480
22481int
22482main ()
22483{
22484return closedir (opendir (".")) != 0;
22485 ;
22486 return 0;
22487}
22488_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022489if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022490 ac_cv_func_closedir_void=no
22491else
cristy8b350f62009-11-15 23:12:43 +000022492 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022493fi
cristy8b350f62009-11-15 23:12:43 +000022494rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22495 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022496fi
22497
cristy3ed852e2009-09-05 21:47:34 +000022498fi
cristy8b350f62009-11-15 23:12:43 +000022499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022500$as_echo "$ac_cv_func_closedir_void" >&6; }
22501if test $ac_cv_func_closedir_void = yes; then
22502
cristy8b350f62009-11-15 23:12:43 +000022503$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022504
22505fi
22506
cristycd4c5312009-11-22 01:19:08 +000022507
22508
22509
22510 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022511do :
22512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022513ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22514"
cristy8b350f62009-11-15 23:12:43 +000022515eval as_val=\$$as_ac_Header
22516 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022517 cat >>confdefs.h <<_ACEOF
22518#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22519_ACEOF
22520
22521fi
22522
22523done
22524
cristycd4c5312009-11-22 01:19:08 +000022525
22526
22527
22528
22529
22530
22531
cristy3ed852e2009-09-05 21:47:34 +000022532for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022533do :
22534 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22535if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022536 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022537#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022538_ACEOF
22539
22540fi
22541done
22542
cristy8b350f62009-11-15 23:12:43 +000022543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022544$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022545if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022546 $as_echo_n "(cached) " >&6
22547else
cristy8b350f62009-11-15 23:12:43 +000022548 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022549 ac_cv_func_mmap_fixed_mapped=no
22550else
cristy8b350f62009-11-15 23:12:43 +000022551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022552/* end confdefs.h. */
22553$ac_includes_default
22554/* malloc might have been renamed as rpl_malloc. */
22555#undef malloc
22556
22557/* Thanks to Mike Haertel and Jim Avera for this test.
22558 Here is a matrix of mmap possibilities:
22559 mmap private not fixed
22560 mmap private fixed at somewhere currently unmapped
22561 mmap private fixed at somewhere already mapped
22562 mmap shared not fixed
22563 mmap shared fixed at somewhere currently unmapped
22564 mmap shared fixed at somewhere already mapped
22565 For private mappings, we should verify that changes cannot be read()
22566 back from the file, nor mmap's back from the file at a different
22567 address. (There have been systems where private was not correctly
22568 implemented like the infamous i386 svr4.0, and systems where the
22569 VM page cache was not coherent with the file system buffer cache
22570 like early versions of FreeBSD and possibly contemporary NetBSD.)
22571 For shared mappings, we should conversely verify that changes get
22572 propagated back to all the places they're supposed to be.
22573
22574 Grep wants private fixed already mapped.
22575 The main things grep needs to know about mmap are:
22576 * does it exist and is it safe to write into the mmap'd area
22577 * how to use it (BSD variants) */
22578
22579#include <fcntl.h>
22580#include <sys/mman.h>
22581
22582#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22583char *malloc ();
22584#endif
22585
22586/* This mess was copied from the GNU getpagesize.h. */
22587#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022588# ifdef _SC_PAGESIZE
22589# define getpagesize() sysconf(_SC_PAGESIZE)
22590# else /* no _SC_PAGESIZE */
22591# ifdef HAVE_SYS_PARAM_H
22592# include <sys/param.h>
22593# ifdef EXEC_PAGESIZE
22594# define getpagesize() EXEC_PAGESIZE
22595# else /* no EXEC_PAGESIZE */
22596# ifdef NBPG
22597# define getpagesize() NBPG * CLSIZE
22598# ifndef CLSIZE
22599# define CLSIZE 1
22600# endif /* no CLSIZE */
22601# else /* no NBPG */
22602# ifdef NBPC
22603# define getpagesize() NBPC
22604# else /* no NBPC */
22605# ifdef PAGESIZE
22606# define getpagesize() PAGESIZE
22607# endif /* PAGESIZE */
22608# endif /* no NBPC */
22609# endif /* no NBPG */
22610# endif /* no EXEC_PAGESIZE */
22611# else /* no HAVE_SYS_PARAM_H */
22612# define getpagesize() 8192 /* punt totally */
22613# endif /* no HAVE_SYS_PARAM_H */
22614# endif /* no _SC_PAGESIZE */
22615
22616#endif /* no HAVE_GETPAGESIZE */
22617
22618int
22619main ()
22620{
22621 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022622 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022623 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022624 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022625
22626 pagesize = getpagesize ();
22627
22628 /* First, make a file with some known garbage in it. */
22629 data = (char *) malloc (pagesize);
22630 if (!data)
22631 return 1;
22632 for (i = 0; i < pagesize; ++i)
22633 *(data + i) = rand ();
22634 umask (0);
22635 fd = creat ("conftest.mmap", 0600);
22636 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022637 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022638 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022639 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022640 close (fd);
22641
cristycd4c5312009-11-22 01:19:08 +000022642 /* Next, check that the tail of a page is zero-filled. File must have
22643 non-zero length, otherwise we risk SIGBUS for entire page. */
22644 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22645 if (fd2 < 0)
22646 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022647 cdata2 = "";
22648 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022649 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022650 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022651 if (data2 == MAP_FAILED)
22652 return 6;
22653 for (i = 0; i < pagesize; ++i)
22654 if (*(data2 + i))
22655 return 7;
22656 close (fd2);
22657 if (munmap (data2, pagesize))
22658 return 8;
22659
cristy3ed852e2009-09-05 21:47:34 +000022660 /* Next, try to mmap the file at a fixed address which already has
22661 something else allocated at it. If we can, also make sure that
22662 we see the same garbage. */
22663 fd = open ("conftest.mmap", O_RDWR);
22664 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022665 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022666 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22667 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022668 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022669 for (i = 0; i < pagesize; ++i)
22670 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022671 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022672
22673 /* Finally, make sure that changes to the mapped area do not
22674 percolate back to the file as seen by read(). (This is a bug on
22675 some variants of i386 svr4.0.) */
22676 for (i = 0; i < pagesize; ++i)
22677 *(data2 + i) = *(data2 + i) + 1;
22678 data3 = (char *) malloc (pagesize);
22679 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022680 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022681 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022682 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022683 for (i = 0; i < pagesize; ++i)
22684 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022685 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022686 close (fd);
22687 return 0;
22688}
22689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022690if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022691 ac_cv_func_mmap_fixed_mapped=yes
22692else
cristy8b350f62009-11-15 23:12:43 +000022693 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022694fi
cristy8b350f62009-11-15 23:12:43 +000022695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22696 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022697fi
22698
cristy3ed852e2009-09-05 21:47:34 +000022699fi
cristy8b350f62009-11-15 23:12:43 +000022700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022701$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22702if test $ac_cv_func_mmap_fixed_mapped = yes; then
22703
cristy8b350f62009-11-15 23:12:43 +000022704$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022705
22706fi
cristycd4c5312009-11-22 01:19:08 +000022707rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022708
cristy3ed852e2009-09-05 21:47:34 +000022709for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022710do :
22711 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22712if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022713 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022714#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022715_ACEOF
22716
22717fi
22718
22719done
22720
cristy3ed852e2009-09-05 21:47:34 +000022721for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022722do :
22723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22724ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22725eval as_val=\$$as_ac_var
22726 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022727 cat >>confdefs.h <<_ACEOF
22728#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22729_ACEOF
22730
22731fi
22732done
22733
22734if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022736$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022737if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022738 $as_echo_n "(cached) " >&6
22739else
cristy8b350f62009-11-15 23:12:43 +000022740 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022741 ac_cv_func_fork_works=cross
22742else
cristy8b350f62009-11-15 23:12:43 +000022743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022744/* end confdefs.h. */
22745$ac_includes_default
22746int
22747main ()
22748{
22749
22750 /* By Ruediger Kuhlmann. */
22751 return fork () < 0;
22752
22753 ;
22754 return 0;
22755}
22756_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022757if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022758 ac_cv_func_fork_works=yes
22759else
cristy8b350f62009-11-15 23:12:43 +000022760 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022761fi
cristy8b350f62009-11-15 23:12:43 +000022762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22763 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022764fi
22765
cristy3ed852e2009-09-05 21:47:34 +000022766fi
cristy8b350f62009-11-15 23:12:43 +000022767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022768$as_echo "$ac_cv_func_fork_works" >&6; }
22769
22770else
22771 ac_cv_func_fork_works=$ac_cv_func_fork
22772fi
22773if test "x$ac_cv_func_fork_works" = xcross; then
22774 case $host in
22775 *-*-amigaos* | *-*-msdosdjgpp*)
22776 # Override, as these systems have only a dummy fork() stub
22777 ac_cv_func_fork_works=no
22778 ;;
22779 *)
22780 ac_cv_func_fork_works=yes
22781 ;;
22782 esac
cristy8b350f62009-11-15 23:12:43 +000022783 { $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 +000022784$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22785fi
22786ac_cv_func_vfork_works=$ac_cv_func_vfork
22787if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022789$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022790if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022791 $as_echo_n "(cached) " >&6
22792else
cristy8b350f62009-11-15 23:12:43 +000022793 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022794 ac_cv_func_vfork_works=cross
22795else
cristy8b350f62009-11-15 23:12:43 +000022796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022797/* end confdefs.h. */
22798/* Thanks to Paul Eggert for this test. */
22799$ac_includes_default
22800#include <sys/wait.h>
22801#ifdef HAVE_VFORK_H
22802# include <vfork.h>
22803#endif
22804/* On some sparc systems, changes by the child to local and incoming
22805 argument registers are propagated back to the parent. The compiler
22806 is told about this with #include <vfork.h>, but some compilers
22807 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22808 static variable whose address is put into a register that is
22809 clobbered by the vfork. */
22810static void
22811#ifdef __cplusplus
22812sparc_address_test (int arg)
22813# else
22814sparc_address_test (arg) int arg;
22815#endif
22816{
22817 static pid_t child;
22818 if (!child) {
22819 child = vfork ();
22820 if (child < 0) {
22821 perror ("vfork");
22822 _exit(2);
22823 }
22824 if (!child) {
22825 arg = getpid();
22826 write(-1, "", 0);
22827 _exit (arg);
22828 }
22829 }
22830}
22831
22832int
22833main ()
22834{
22835 pid_t parent = getpid ();
22836 pid_t child;
22837
22838 sparc_address_test (0);
22839
22840 child = vfork ();
22841
22842 if (child == 0) {
22843 /* Here is another test for sparc vfork register problems. This
22844 test uses lots of local variables, at least as many local
22845 variables as main has allocated so far including compiler
22846 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22847 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22848 reuse the register of parent for one of the local variables,
22849 since it will think that parent can't possibly be used any more
22850 in this routine. Assigning to the local variable will thus
22851 munge parent in the parent process. */
22852 pid_t
22853 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22854 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22855 /* Convince the compiler that p..p7 are live; otherwise, it might
22856 use the same hardware register for all 8 local variables. */
22857 if (p != p1 || p != p2 || p != p3 || p != p4
22858 || p != p5 || p != p6 || p != p7)
22859 _exit(1);
22860
22861 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22862 from child file descriptors. If the child closes a descriptor
22863 before it execs or exits, this munges the parent's descriptor
22864 as well. Test for this by closing stdout in the child. */
22865 _exit(close(fileno(stdout)) != 0);
22866 } else {
22867 int status;
22868 struct stat st;
22869
22870 while (wait(&status) != child)
22871 ;
22872 return (
22873 /* Was there some problem with vforking? */
22874 child < 0
22875
22876 /* Did the child fail? (This shouldn't happen.) */
22877 || status
22878
22879 /* Did the vfork/compiler bug occur? */
22880 || parent != getpid()
22881
22882 /* Did the file descriptor bug occur? */
22883 || fstat(fileno(stdout), &st) != 0
22884 );
22885 }
22886}
22887_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022888if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022889 ac_cv_func_vfork_works=yes
22890else
cristy8b350f62009-11-15 23:12:43 +000022891 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022892fi
cristy8b350f62009-11-15 23:12:43 +000022893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22894 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022895fi
22896
cristy3ed852e2009-09-05 21:47:34 +000022897fi
cristy8b350f62009-11-15 23:12:43 +000022898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022899$as_echo "$ac_cv_func_vfork_works" >&6; }
22900
22901fi;
22902if test "x$ac_cv_func_fork_works" = xcross; then
22903 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022904 { $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 +000022905$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22906fi
22907
22908if test "x$ac_cv_func_vfork_works" = xyes; then
22909
cristy8b350f62009-11-15 23:12:43 +000022910$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022911
22912else
22913
cristy8b350f62009-11-15 23:12:43 +000022914$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022915
22916fi
22917if test "x$ac_cv_func_fork_works" = xyes; then
22918
cristy8b350f62009-11-15 23:12:43 +000022919$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022920
22921fi
22922
cristy8b350f62009-11-15 23:12:43 +000022923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022924$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022925if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022926 $as_echo_n "(cached) " >&6
22927else
cristy8b350f62009-11-15 23:12:43 +000022928 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022929 ac_cv_func_memcmp_working=no
22930else
cristy8b350f62009-11-15 23:12:43 +000022931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022932/* end confdefs.h. */
22933$ac_includes_default
22934int
22935main ()
22936{
22937
22938 /* Some versions of memcmp are not 8-bit clean. */
22939 char c0 = '\100', c1 = '\200', c2 = '\201';
22940 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22941 return 1;
22942
22943 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22944 or more and with at least one buffer not starting on a 4-byte boundary.
22945 William Lewis provided this test program. */
22946 {
22947 char foo[21];
22948 char bar[21];
22949 int i;
22950 for (i = 0; i < 4; i++)
22951 {
22952 char *a = foo + i;
22953 char *b = bar + i;
22954 strcpy (a, "--------01111111");
22955 strcpy (b, "--------10000000");
22956 if (memcmp (a, b, 16) >= 0)
22957 return 1;
22958 }
22959 return 0;
22960 }
22961
22962 ;
22963 return 0;
22964}
22965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022966if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022967 ac_cv_func_memcmp_working=yes
22968else
cristy8b350f62009-11-15 23:12:43 +000022969 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022970fi
cristy8b350f62009-11-15 23:12:43 +000022971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22972 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022973fi
22974
cristy3ed852e2009-09-05 21:47:34 +000022975fi
cristy8b350f62009-11-15 23:12:43 +000022976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022977$as_echo "$ac_cv_func_memcmp_working" >&6; }
22978test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22979 *" memcmp.$ac_objext "* ) ;;
22980 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22981 ;;
22982esac
22983
22984
cristy3ed852e2009-09-05 21:47:34 +000022985for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022986do :
22987 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22988ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22989eval as_val=\$$as_ac_Header
22990 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022991 cat >>confdefs.h <<_ACEOF
22992#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22993_ACEOF
22994
22995fi
22996
22997done
22998
cristy8b350f62009-11-15 23:12:43 +000022999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023000$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023001if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023002 $as_echo_n "(cached) " >&6
23003else
23004 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23005 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23006 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023008/* end confdefs.h. */
23009$ac_includes_default
23010#ifdef HAVE_SYS_SELECT_H
23011# include <sys/select.h>
23012#endif
23013#ifdef HAVE_SYS_SOCKET_H
23014# include <sys/socket.h>
23015#endif
23016
23017int
23018main ()
23019{
23020extern int select ($ac_arg1,
23021 $ac_arg234, $ac_arg234, $ac_arg234,
23022 $ac_arg5);
23023 ;
23024 return 0;
23025}
23026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023027if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023028 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023029fi
cristy3ed852e2009-09-05 21:47:34 +000023030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031 done
23032 done
23033done
23034# Provide a safe default value.
23035: ${ac_cv_func_select_args='int,int *,struct timeval *'}
23036
23037fi
cristy8b350f62009-11-15 23:12:43 +000023038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023039$as_echo "$ac_cv_func_select_args" >&6; }
23040ac_save_IFS=$IFS; IFS=','
23041set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23042IFS=$ac_save_IFS
23043shift
23044
23045cat >>confdefs.h <<_ACEOF
23046#define SELECT_TYPE_ARG1 $1
23047_ACEOF
23048
23049
23050cat >>confdefs.h <<_ACEOF
23051#define SELECT_TYPE_ARG234 ($2)
23052_ACEOF
23053
23054
23055cat >>confdefs.h <<_ACEOF
23056#define SELECT_TYPE_ARG5 ($3)
23057_ACEOF
23058
23059rm -f conftest*
23060
cristy8b350f62009-11-15 23:12:43 +000023061if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023062 $as_echo_n "(cached) " >&6
23063else
23064 ac_cv_func_setvbuf_reversed=no
23065fi
23066
23067
cristy8b350f62009-11-15 23:12:43 +000023068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023069$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023070if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023071 $as_echo_n "(cached) " >&6
23072else
cristy8b350f62009-11-15 23:12:43 +000023073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023074/* end confdefs.h. */
23075#include <sys/types.h>
23076#include <signal.h>
23077
23078int
23079main ()
23080{
23081return *(signal (0, 0)) (0) == 1;
23082 ;
23083 return 0;
23084}
23085_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023086if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023087 ac_cv_type_signal=int
23088else
cristy8b350f62009-11-15 23:12:43 +000023089 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023090fi
cristy3ed852e2009-09-05 21:47:34 +000023091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23092fi
cristy8b350f62009-11-15 23:12:43 +000023093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023094$as_echo "$ac_cv_type_signal" >&6; }
23095
23096cat >>confdefs.h <<_ACEOF
23097#define RETSIGTYPE $ac_cv_type_signal
23098_ACEOF
23099
23100
cristy8b350f62009-11-15 23:12:43 +000023101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023102$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023103if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023104 $as_echo_n "(cached) " >&6
23105else
cristy8b350f62009-11-15 23:12:43 +000023106 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023107 ac_cv_func_strtod=no
23108else
cristy8b350f62009-11-15 23:12:43 +000023109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023110/* end confdefs.h. */
23111
23112$ac_includes_default
23113#ifndef strtod
23114double strtod ();
23115#endif
23116int
23117main()
23118{
23119 {
23120 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23121 char *string = " +69";
23122 char *term;
23123 double value;
23124 value = strtod (string, &term);
23125 if (value != 69 || term != (string + 4))
23126 return 1;
23127 }
23128
23129 {
23130 /* Under Solaris 2.4, strtod returns the wrong value for the
23131 terminating character under some conditions. */
23132 char *string = "NaN";
23133 char *term;
23134 strtod (string, &term);
23135 if (term != string && *(term - 1) == 0)
23136 return 1;
23137 }
23138 return 0;
23139}
23140
23141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023142if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023143 ac_cv_func_strtod=yes
23144else
cristy8b350f62009-11-15 23:12:43 +000023145 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023146fi
cristy8b350f62009-11-15 23:12:43 +000023147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23148 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023149fi
23150
cristy3ed852e2009-09-05 21:47:34 +000023151fi
cristy8b350f62009-11-15 23:12:43 +000023152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023153$as_echo "$ac_cv_func_strtod" >&6; }
23154if test $ac_cv_func_strtod = no; then
23155 case " $LIBOBJS " in
23156 *" strtod.$ac_objext "* ) ;;
23157 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23158 ;;
23159esac
23160
cristy8b350f62009-11-15 23:12:43 +000023161ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23162if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023163
cristy3ed852e2009-09-05 21:47:34 +000023164fi
23165
cristy3ed852e2009-09-05 21:47:34 +000023166if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023168$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023169if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023170 $as_echo_n "(cached) " >&6
23171else
23172 ac_check_lib_save_LIBS=$LIBS
23173LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023175/* end confdefs.h. */
23176
23177/* Override any GCC internal prototype to avoid an error.
23178 Use char because int might match the return type of a GCC
23179 builtin and then its argument prototype would still apply. */
23180#ifdef __cplusplus
23181extern "C"
23182#endif
23183char pow ();
23184int
23185main ()
23186{
23187return pow ();
23188 ;
23189 return 0;
23190}
23191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023192if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023193 ac_cv_lib_m_pow=yes
23194else
cristy8b350f62009-11-15 23:12:43 +000023195 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023196fi
cristy8b350f62009-11-15 23:12:43 +000023197rm -f core conftest.err conftest.$ac_objext \
23198 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023199LIBS=$ac_check_lib_save_LIBS
23200fi
cristy8b350f62009-11-15 23:12:43 +000023201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023202$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023203if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023204 POW_LIB=-lm
23205else
cristy8b350f62009-11-15 23:12:43 +000023206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023207$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23208fi
23209
23210fi
23211
23212fi
23213
cristy3ed852e2009-09-05 21:47:34 +000023214for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023215do :
23216 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23217if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023218 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023219#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023220_ACEOF
23221
cristy8b350f62009-11-15 23:12:43 +000023222ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23223if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023224
cristy8b350f62009-11-15 23:12:43 +000023225$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023226
23227fi
23228
23229fi
23230done
23231
23232
23233
cristy161b9262010-03-20 19:34:32 +000023234#
23235# Find math library
23236#
23237MATH_LIBS=''
23238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23239$as_echo_n "checking for sqrt in -lm... " >&6; }
23240if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23241 $as_echo_n "(cached) " >&6
23242else
23243 ac_check_lib_save_LIBS=$LIBS
23244LIBS="-lm $LIBS"
23245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23246/* end confdefs.h. */
23247
23248/* Override any GCC internal prototype to avoid an error.
23249 Use char because int might match the return type of a GCC
23250 builtin and then its argument prototype would still apply. */
23251#ifdef __cplusplus
23252extern "C"
23253#endif
23254char sqrt ();
23255int
23256main ()
23257{
23258return sqrt ();
23259 ;
23260 return 0;
23261}
23262_ACEOF
23263if ac_fn_c_try_link "$LINENO"; then :
23264 ac_cv_lib_m_sqrt=yes
23265else
23266 ac_cv_lib_m_sqrt=no
23267fi
23268rm -f core conftest.err conftest.$ac_objext \
23269 conftest$ac_exeext conftest.$ac_ext
23270LIBS=$ac_check_lib_save_LIBS
23271fi
23272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23273$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23274if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23275 MATH_LIBS="-lm"
23276fi
23277
23278LIBS="$MATH_LIBS $LIBS"
23279
23280
cristy56ed31c2010-03-22 00:46:21 +000023281for 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 +000023282do :
23283 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23284ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23285eval as_val=\$$as_ac_var
23286 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023287 cat >>confdefs.h <<_ACEOF
23288#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23289_ACEOF
23290
23291fi
23292done
23293
23294
cristye43a45e2009-09-28 14:49:00 +000023295#
23296# Check for clock_gettime().
23297#
cristy8b350f62009-11-15 23:12:43 +000023298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023299$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023300if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023301 $as_echo_n "(cached) " >&6
23302else
23303 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023305/* end confdefs.h. */
23306
23307/* Override any GCC internal prototype to avoid an error.
23308 Use char because int might match the return type of a GCC
23309 builtin and then its argument prototype would still apply. */
23310#ifdef __cplusplus
23311extern "C"
23312#endif
23313char clock_gettime ();
23314int
23315main ()
23316{
23317return clock_gettime ();
23318 ;
23319 return 0;
23320}
23321_ACEOF
23322for ac_lib in '' rt; do
23323 if test -z "$ac_lib"; then
23324 ac_res="none required"
23325 else
23326 ac_res=-l$ac_lib
23327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23328 fi
cristy8b350f62009-11-15 23:12:43 +000023329 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023330 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023331fi
cristy8b350f62009-11-15 23:12:43 +000023332rm -f core conftest.err conftest.$ac_objext \
23333 conftest$ac_exeext
23334 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023335 break
23336fi
23337done
cristy8b350f62009-11-15 23:12:43 +000023338if test "${ac_cv_search_clock_gettime+set}" = set; then :
23339
cristye43a45e2009-09-28 14:49:00 +000023340else
23341 ac_cv_search_clock_gettime=no
23342fi
23343rm conftest.$ac_ext
23344LIBS=$ac_func_search_save_LIBS
23345fi
cristy8b350f62009-11-15 23:12:43 +000023346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023347$as_echo "$ac_cv_search_clock_gettime" >&6; }
23348ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023349if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23351
23352
cristy8b350f62009-11-15 23:12:43 +000023353$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023354
cristy8b350f62009-11-15 23:12:43 +000023355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023356$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023358/* end confdefs.h. */
23359#include <time.h>
23360int
23361main ()
23362{
23363clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023364 ;
23365 return 0;
23366}
23367_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023368if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023369
cristy8b350f62009-11-15 23:12:43 +000023370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023371$as_echo "yes" >&6; }
23372
cristy8b350f62009-11-15 23:12:43 +000023373$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023374
23375
23376else
cristy8b350f62009-11-15 23:12:43 +000023377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023378$as_echo "no" >&6; }
23379
23380fi
cristye43a45e2009-09-28 14:49:00 +000023381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23382
23383else
23384
cristy8b350f62009-11-15 23:12:43 +000023385 for ac_func in gettimeofday ftime
23386do :
23387 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23388ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23389eval as_val=\$$as_ac_var
23390 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000023391 cat >>confdefs.h <<_ACEOF
23392#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23393_ACEOF
23394 break
23395fi
23396done
23397
23398
23399
23400fi
23401
23402
cristy3ed852e2009-09-05 21:47:34 +000023403########
23404#
23405# Check for function prototypes
23406#
23407########
23408
cristy8b350f62009-11-15 23:12:43 +000023409ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023410#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023411"
23412if test "x$ac_cv_have_decl_pread" = x""yes; then :
23413 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023414else
cristy8b350f62009-11-15 23:12:43 +000023415 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023416fi
23417
cristy3ed852e2009-09-05 21:47:34 +000023418cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023419#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023421ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023422#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023423"
23424if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23425 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023426else
cristy8b350f62009-11-15 23:12:43 +000023427 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023428fi
23429
cristy3ed852e2009-09-05 21:47:34 +000023430cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023431#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023432_ACEOF
23433
23434
cristy8b350f62009-11-15 23:12:43 +000023435ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023436#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023437"
23438if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23439 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023440else
cristy8b350f62009-11-15 23:12:43 +000023441 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023442fi
23443
cristy3ed852e2009-09-05 21:47:34 +000023444cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023445#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023446_ACEOF
23447
23448
cristy8b350f62009-11-15 23:12:43 +000023449ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023450#include <stdio.h>
23451#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023452"
23453if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23454 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023455else
cristy8b350f62009-11-15 23:12:43 +000023456 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023457fi
23458
cristy3ed852e2009-09-05 21:47:34 +000023459cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023460#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023461_ACEOF
23462
23463
cristy3ed852e2009-09-05 21:47:34 +000023464########
23465#
23466# C++ Support Tests (For Magick++)
23467#
23468########
23469have_magick_plus_plus='no'
23470if test "$with_magick_plus_plus" = 'yes'; then
23471 OLIBS="$LIBS"
23472 LIBS=''
23473 ac_ext=cpp
23474ac_cpp='$CXXCPP $CPPFLAGS'
23475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23478
23479
23480 # Full set of headers used...
23481 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23482 # functional iomanip iosfwd iostream iterator list string strstream utility
23483 ac_ext=cpp
23484ac_cpp='$CXXCPP $CPPFLAGS'
23485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23488
23489 ac_ext=cpp
23490ac_cpp='$CXXCPP $CPPFLAGS'
23491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23494if test -z "$CXX"; then
23495 if test -n "$CCC"; then
23496 CXX=$CCC
23497 else
23498 if test -n "$ac_tool_prefix"; then
23499 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23500 do
23501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23502set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023504$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023505if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023506 $as_echo_n "(cached) " >&6
23507else
23508 if test -n "$CXX"; then
23509 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23510else
23511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23512for as_dir in $PATH
23513do
23514 IFS=$as_save_IFS
23515 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23518 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023520 break 2
23521 fi
23522done
cristy8b350f62009-11-15 23:12:43 +000023523 done
cristy3ed852e2009-09-05 21:47:34 +000023524IFS=$as_save_IFS
23525
23526fi
23527fi
23528CXX=$ac_cv_prog_CXX
23529if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023531$as_echo "$CXX" >&6; }
23532else
cristy8b350f62009-11-15 23:12:43 +000023533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023534$as_echo "no" >&6; }
23535fi
23536
23537
23538 test -n "$CXX" && break
23539 done
23540fi
23541if test -z "$CXX"; then
23542 ac_ct_CXX=$CXX
23543 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23544do
23545 # Extract the first word of "$ac_prog", so it can be a program name with args.
23546set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023548$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023549if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023550 $as_echo_n "(cached) " >&6
23551else
23552 if test -n "$ac_ct_CXX"; then
23553 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23554else
23555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23556for as_dir in $PATH
23557do
23558 IFS=$as_save_IFS
23559 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23562 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023564 break 2
23565 fi
23566done
cristy8b350f62009-11-15 23:12:43 +000023567 done
cristy3ed852e2009-09-05 21:47:34 +000023568IFS=$as_save_IFS
23569
23570fi
23571fi
23572ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23573if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023575$as_echo "$ac_ct_CXX" >&6; }
23576else
cristy8b350f62009-11-15 23:12:43 +000023577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023578$as_echo "no" >&6; }
23579fi
23580
23581
23582 test -n "$ac_ct_CXX" && break
23583done
23584
23585 if test "x$ac_ct_CXX" = x; then
23586 CXX="g++"
23587 else
23588 case $cross_compiling:$ac_tool_warned in
23589yes:)
cristy8b350f62009-11-15 23:12:43 +000023590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23592ac_tool_warned=yes ;;
23593esac
23594 CXX=$ac_ct_CXX
23595 fi
23596fi
23597
23598 fi
23599fi
23600# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023601$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023602set X $ac_compile
23603ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023604for ac_option in --version -v -V -qversion; do
23605 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023606case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23609esac
cristy8b350f62009-11-15 23:12:43 +000023610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23611$as_echo "$ac_try_echo"; } >&5
23612 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023613 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023614 if test -s conftest.err; then
23615 sed '10a\
23616... rest of stderr output deleted ...
23617 10q' conftest.err >conftest.er1
23618 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023619 fi
cristycd4c5312009-11-22 01:19:08 +000023620 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23622 test $ac_status = 0; }
23623done
cristy3ed852e2009-09-05 21:47:34 +000023624
cristy8b350f62009-11-15 23:12:43 +000023625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023626$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023627if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023628 $as_echo_n "(cached) " >&6
23629else
cristy8b350f62009-11-15 23:12:43 +000023630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023631/* end confdefs.h. */
23632
23633int
23634main ()
23635{
23636#ifndef __GNUC__
23637 choke me
23638#endif
23639
23640 ;
23641 return 0;
23642}
23643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023644if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023645 ac_compiler_gnu=yes
23646else
cristy8b350f62009-11-15 23:12:43 +000023647 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023648fi
cristy3ed852e2009-09-05 21:47:34 +000023649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23650ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23651
23652fi
cristy8b350f62009-11-15 23:12:43 +000023653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023654$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23655if test $ac_compiler_gnu = yes; then
23656 GXX=yes
23657else
23658 GXX=
23659fi
23660ac_test_CXXFLAGS=${CXXFLAGS+set}
23661ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023663$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023664if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023665 $as_echo_n "(cached) " >&6
23666else
23667 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23668 ac_cxx_werror_flag=yes
23669 ac_cv_prog_cxx_g=no
23670 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023672/* end confdefs.h. */
23673
23674int
23675main ()
23676{
23677
23678 ;
23679 return 0;
23680}
23681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023682if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023683 ac_cv_prog_cxx_g=yes
23684else
cristy8b350f62009-11-15 23:12:43 +000023685 CXXFLAGS=""
23686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023687/* end confdefs.h. */
23688
23689int
23690main ()
23691{
23692
23693 ;
23694 return 0;
23695}
23696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023697if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023698
cristy8b350f62009-11-15 23:12:43 +000023699else
23700 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023701 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023703/* end confdefs.h. */
23704
23705int
23706main ()
23707{
23708
23709 ;
23710 return 0;
23711}
23712_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023713if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023714 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023715fi
cristy3ed852e2009-09-05 21:47:34 +000023716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23717fi
cristy3ed852e2009-09-05 21:47:34 +000023718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23719fi
cristy3ed852e2009-09-05 21:47:34 +000023720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23721 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23722fi
cristy8b350f62009-11-15 23:12:43 +000023723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023724$as_echo "$ac_cv_prog_cxx_g" >&6; }
23725if test "$ac_test_CXXFLAGS" = set; then
23726 CXXFLAGS=$ac_save_CXXFLAGS
23727elif test $ac_cv_prog_cxx_g = yes; then
23728 if test "$GXX" = yes; then
23729 CXXFLAGS="-g -O2"
23730 else
23731 CXXFLAGS="-g"
23732 fi
23733else
23734 if test "$GXX" = yes; then
23735 CXXFLAGS="-O2"
23736 else
23737 CXXFLAGS=
23738 fi
23739fi
23740ac_ext=cpp
23741ac_cpp='$CXXCPP $CPPFLAGS'
23742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23745
23746depcc="$CXX" am_compiler_list=
23747
cristy8b350f62009-11-15 23:12:43 +000023748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023749$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023750if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023751 $as_echo_n "(cached) " >&6
23752else
23753 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23754 # We make a subdir and do the tests there. Otherwise we can end up
23755 # making bogus files that we don't know about and never remove. For
23756 # instance it was reported that on HP-UX the gcc test will end up
23757 # making a dummy file named `D' -- because `-MD' means `put the output
23758 # in D'.
23759 mkdir conftest.dir
23760 # Copy depcomp to subdir because otherwise we won't find it if we're
23761 # using a relative directory.
23762 cp "$am_depcomp" conftest.dir
23763 cd conftest.dir
23764 # We will build objects and dependencies in a subdirectory because
23765 # it helps to detect inapplicable dependency modes. For instance
23766 # both Tru64's cc and ICC support -MD to output dependencies as a
23767 # side effect of compilation, but ICC will put the dependencies in
23768 # the current directory while Tru64 will put them in the object
23769 # directory.
23770 mkdir sub
23771
23772 am_cv_CXX_dependencies_compiler_type=none
23773 if test "$am_compiler_list" = ""; then
23774 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23775 fi
23776 am__universal=false
23777 case " $depcc " in #(
23778 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23779 esac
23780
23781 for depmode in $am_compiler_list; do
23782 # Setup a source with many dependencies, because some compilers
23783 # like to wrap large dependency lists on column 80 (with \), and
23784 # we should not choose a depcomp mode which is confused by this.
23785 #
23786 # We need to recreate these files for each test, as the compiler may
23787 # overwrite some of them when testing with obscure command lines.
23788 # This happens at least with the AIX C compiler.
23789 : > sub/conftest.c
23790 for i in 1 2 3 4 5 6; do
23791 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23792 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23793 # Solaris 8's {/usr,}/bin/sh.
23794 touch sub/conftst$i.h
23795 done
23796 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23797
23798 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23799 # mode. It turns out that the SunPro C++ compiler does not properly
23800 # handle `-M -o', and we need to detect this. Also, some Intel
23801 # versions had trouble with output in subdirs
23802 am__obj=sub/conftest.${OBJEXT-o}
23803 am__minus_obj="-o $am__obj"
23804 case $depmode in
23805 gcc)
23806 # This depmode causes a compiler race in universal mode.
23807 test "$am__universal" = false || continue
23808 ;;
23809 nosideeffect)
23810 # after this tag, mechanisms are not by side-effect, so they'll
23811 # only be used when explicitly requested
23812 if test "x$enable_dependency_tracking" = xyes; then
23813 continue
23814 else
23815 break
23816 fi
23817 ;;
23818 msvisualcpp | msvcmsys)
23819 # This compiler won't grok `-c -o', but also, the minuso test has
23820 # not run yet. These depmodes are late enough in the game, and
23821 # so weak that their functioning should not be impacted.
23822 am__obj=conftest.${OBJEXT-o}
23823 am__minus_obj=
23824 ;;
23825 none) break ;;
23826 esac
23827 if depmode=$depmode \
23828 source=sub/conftest.c object=$am__obj \
23829 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23830 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23831 >/dev/null 2>conftest.err &&
23832 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23833 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23834 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23835 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23836 # icc doesn't choke on unknown options, it will just issue warnings
23837 # or remarks (even with -Werror). So we grep stderr for any message
23838 # that says an option was ignored or not supported.
23839 # When given -MP, icc 7.0 and 7.1 complain thusly:
23840 # icc: Command line warning: ignoring option '-M'; no argument required
23841 # The diagnosis changed in icc 8.0:
23842 # icc: Command line remark: option '-MP' not supported
23843 if (grep 'ignoring option' conftest.err ||
23844 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23845 am_cv_CXX_dependencies_compiler_type=$depmode
23846 break
23847 fi
23848 fi
23849 done
23850
23851 cd ..
23852 rm -rf conftest.dir
23853else
23854 am_cv_CXX_dependencies_compiler_type=none
23855fi
23856
23857fi
cristy8b350f62009-11-15 23:12:43 +000023858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023859$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23860CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23861
23862 if
23863 test "x$enable_dependency_tracking" != xno \
23864 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23865 am__fastdepCXX_TRUE=
23866 am__fastdepCXX_FALSE='#'
23867else
23868 am__fastdepCXX_TRUE='#'
23869 am__fastdepCXX_FALSE=
23870fi
23871
23872
cristy8b350f62009-11-15 23:12:43 +000023873 { $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 +000023874$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023875if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023876 $as_echo_n "(cached) " >&6
23877else
23878
23879 ac_ext=cpp
23880ac_cpp='$CXXCPP $CPPFLAGS'
23881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23884
cristy8b350f62009-11-15 23:12:43 +000023885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023886/* end confdefs.h. */
23887
23888int f(int x){return 1;}
23889int f(char x){return 1;}
23890int f(bool x){return 1;}
23891
23892int
23893main ()
23894{
23895bool b = true; return f(b);
23896 ;
23897 return 0;
23898}
23899_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023900if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023901 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023902else
cristy964cb7f2010-04-25 23:18:00 +000023903 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023904fi
cristy3ed852e2009-09-05 21:47:34 +000023905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23906 ac_ext=cpp
23907ac_cpp='$CXXCPP $CPPFLAGS'
23908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23911
23912
23913fi
cristy964cb7f2010-04-25 23:18:00 +000023914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23915$as_echo "$ax_cv_cxx_bool" >&6; }
23916if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023917
cristy8b350f62009-11-15 23:12:43 +000023918$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023919
23920fi
23921
cristy8b350f62009-11-15 23:12:43 +000023922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023923$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023924if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023925 $as_echo_n "(cached) " >&6
23926else
23927
23928 ac_ext=cpp
23929ac_cpp='$CXXCPP $CPPFLAGS'
23930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23933
cristy8b350f62009-11-15 23:12:43 +000023934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023935/* end confdefs.h. */
23936namespace Outer { namespace Inner { int i = 0; }}
23937int
23938main ()
23939{
23940using namespace Outer::Inner; return i;
23941 ;
23942 return 0;
23943}
23944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023945if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023946 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023947else
cristy964cb7f2010-04-25 23:18:00 +000023948 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023949fi
cristy3ed852e2009-09-05 21:47:34 +000023950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23951 ac_ext=cpp
23952ac_cpp='$CXXCPP $CPPFLAGS'
23953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23956
23957
23958fi
cristy964cb7f2010-04-25 23:18:00 +000023959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23960$as_echo "$ax_cv_cxx_namespaces" >&6; }
23961if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023962
cristy8b350f62009-11-15 23:12:43 +000023963$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023964
23965fi
23966
cristy964cb7f2010-04-25 23:18:00 +000023967
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23969$as_echo_n "checking if g++ supports namespace std... " >&6; }
23970if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023971 $as_echo_n "(cached) " >&6
23972else
23973
cristy964cb7f2010-04-25 23:18:00 +000023974 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023975ac_cpp='$CXXCPP $CPPFLAGS'
23976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23979
cristy964cb7f2010-04-25 23:18:00 +000023980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023981/* end confdefs.h. */
23982#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000023983 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000023984int
23985main ()
23986{
cristy964cb7f2010-04-25 23:18:00 +000023987
cristy3ed852e2009-09-05 21:47:34 +000023988 ;
23989 return 0;
23990}
23991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023992if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023993 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000023994else
cristy964cb7f2010-04-25 23:18:00 +000023995 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023996fi
cristy3ed852e2009-09-05 21:47:34 +000023997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000023998 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023999ac_cpp='$CXXCPP $CPPFLAGS'
24000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24003
24004
24005fi
cristy964cb7f2010-04-25 23:18:00 +000024006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24007$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24008 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000024009
cristy964cb7f2010-04-25 23:18:00 +000024010$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024011
cristy964cb7f2010-04-25 23:18:00 +000024012 fi
cristy3ed852e2009-09-05 21:47:34 +000024013
cristy8b350f62009-11-15 23:12:43 +000024014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000024015$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024016if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024017 $as_echo_n "(cached) " >&6
24018else
24019
24020
24021 ac_ext=cpp
24022ac_cpp='$CXXCPP $CPPFLAGS'
24023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24026
cristy8b350f62009-11-15 23:12:43 +000024027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024028/* end confdefs.h. */
24029#include <iostream>
24030#include <map>
24031#include <iomanip>
24032#include <cmath>
24033#ifdef HAVE_NAMESPACES
24034using namespace std;
24035#endif
24036int
24037main ()
24038{
24039return 0;
24040 ;
24041 return 0;
24042}
24043_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024044if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024045 ac_cv_cxx_have_std_libs=yes
24046else
cristy8b350f62009-11-15 23:12:43 +000024047 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000024048fi
cristy3ed852e2009-09-05 21:47:34 +000024049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24050 ac_ext=cpp
24051ac_cpp='$CXXCPP $CPPFLAGS'
24052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24055
24056
24057fi
cristy8b350f62009-11-15 23:12:43 +000024058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000024059$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24060if test "$ac_cv_cxx_have_std_libs" = yes; then
24061
cristy8b350f62009-11-15 23:12:43 +000024062$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024063
24064fi
24065
cristy8b350f62009-11-15 23:12:43 +000024066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000024067$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024068if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024069 $as_echo_n "(cached) " >&6
24070else
24071
24072 ac_ext=cpp
24073ac_cpp='$CXXCPP $CPPFLAGS'
24074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24077
cristy8b350f62009-11-15 23:12:43 +000024078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024079/* end confdefs.h. */
24080const wchar_t* s=L"wide string";
24081_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024082if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024083 ac_cv_cxx_have_lstring=yes
24084else
cristy8b350f62009-11-15 23:12:43 +000024085 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000024086fi
cristy3ed852e2009-09-05 21:47:34 +000024087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24088 ac_ext=cpp
24089ac_cpp='$CXXCPP $CPPFLAGS'
24090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24093
24094
24095fi
cristy8b350f62009-11-15 23:12:43 +000024096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000024097$as_echo "$ac_cv_cxx_have_lstring" >&6; }
24098if test "$ac_cv_cxx_have_lstring" = yes; then
24099
cristy8b350f62009-11-15 23:12:43 +000024100$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024101
24102fi
24103
24104
24105 OPENMP_CXXFLAGS=
24106 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024107if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024108 enableval=$enable_openmp;
24109fi
24110
24111 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24113$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024114if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024115 $as_echo_n "(cached) " >&6
24116else
cristy8b350f62009-11-15 23:12:43 +000024117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24118/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024119
24120#ifndef _OPENMP
24121 choke me
24122#endif
24123#include <omp.h>
24124int main () { return omp_get_num_threads (); }
24125
24126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024127if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024128 ac_cv_prog_cxx_openmp='none needed'
24129else
cristy8b350f62009-11-15 23:12:43 +000024130 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024131 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24132 ac_save_CXXFLAGS=$CXXFLAGS
24133 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24135/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024136
24137#ifndef _OPENMP
24138 choke me
24139#endif
24140#include <omp.h>
24141int main () { return omp_get_num_threads (); }
24142
24143_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024144if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024145 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024146fi
cristy8b350f62009-11-15 23:12:43 +000024147rm -f core conftest.err conftest.$ac_objext \
24148 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024149 CXXFLAGS=$ac_save_CXXFLAGS
24150 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24151 break
24152 fi
24153 done
24154fi
cristy8b350f62009-11-15 23:12:43 +000024155rm -f core conftest.err conftest.$ac_objext \
24156 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024157fi
cristy8b350f62009-11-15 23:12:43 +000024158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024159$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24160 case $ac_cv_prog_cxx_openmp in #(
24161 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024162 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024163 *)
cristy8b350f62009-11-15 23:12:43 +000024164 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024165 esac
24166 fi
24167
24168
24169 ac_ext=c
24170ac_cpp='$CPP $CPPFLAGS'
24171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24173ac_compiler_gnu=$ac_cv_c_compiler_gnu
24174
24175
cristy8b350f62009-11-15 23:12:43 +000024176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024177$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24178 if \
cristy964cb7f2010-04-25 23:18:00 +000024179 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024180 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024181 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024182 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024183 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024184 have_magick_plus_plus='yes'
24185 else
24186 have_magick_plus_plus='no (failed tests)'
24187 fi
cristy8b350f62009-11-15 23:12:43 +000024188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024189$as_echo "$have_magick_plus_plus" >&6; }
24190 LIBS="$OLIBS"
24191fi
24192 if test "$have_magick_plus_plus" = 'yes'; then
24193 WITH_MAGICK_PLUS_PLUS_TRUE=
24194 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24195else
24196 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24197 WITH_MAGICK_PLUS_PLUS_FALSE=
24198fi
24199
24200
24201# Only check for delegate libraries in subdirectories if requested.
24202if test "$enable_delegate_build" != 'no'; then
24203 # Check for delegate sub-directories and add -I & -L options as required.
24204 # This presumes that delegates are installed as detailed in the ImageMagick
24205 # README. If delegates are installed in a standard location where the
24206 # compiler will automatically find them then these options should not be
24207 # required.
24208
24209 #
24210 # Most delegates have includes in the same directory as the library, but not all...
24211 #
24212 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024213 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 +000024214 if test -d "$builddir/$dir"; then
24215 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24216 else
24217 if test -d "$srcdirfull/$dir"; then
24218 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24219 fi
24220 fi
24221 done
24222
24223 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024224 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 +000024225 if test -d "$builddir/$dir/.libs"; then
24226 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24227 else
24228 if test -d "$srcdirfull/$dir/.libs"; then
24229 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24230 fi
24231 fi
24232 if test -d "$builddir/$dir"; then
24233 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24234 else
24235 if test -d "$srcdirfull/$dir"; then
24236 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24237 fi
24238 fi
24239 done
24240fi
24241
24242# Assume that delegate headers reside under same directory as ImageMagick
24243# installation prefix.
24244MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24245
24246#
24247# Find the X11 RGB database
24248#
cristy8b350f62009-11-15 23:12:43 +000024249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024250$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024251if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024252 $as_echo_n "(cached) " >&6
24253else
24254 # Look for the header file in a standard set of common directories.
24255# Check X11 before X11Rn because it is often a symlink to the current release.
24256 for ac_dir in \
24257 /lib/usr/lib/X11 \
24258 /usr/X11/lib \
24259 /usr/X11R4/lib \
24260 /usr/X11R5/lib \
24261 /usr/X11R6/lib \
24262 /usr/X11R7/lib \
24263 /usr/X386/lib \
24264 /usr/XFree86/lib/X11 \
24265 /usr/athena/lib \
24266 /usr/lib \
24267 /usr/lib/X11 \
24268 /usr/lib/X11R4 \
24269 /usr/lib/X11R5 \
24270 /usr/lib/X11R6 \
24271 /usr/lib/X11R7 \
24272 /usr/local/X11/lib \
24273 /usr/local/X11R4/lib \
24274 /usr/local/X11R5/lib \
24275 /usr/local/X11R6/lib \
24276 /usr/local/lib \
24277 /usr/local/lib/X11 \
24278 /usr/local/lib/X11R4 \
24279 /usr/local/lib/X11R5 \
24280 /usr/local/lib/X11R6 \
24281 /usr/local/lib/X11R7 \
24282 /usr/local/x11r5/lib \
24283 /usr/lpp/Xamples/lib \
24284 /usr/openwin/lib \
24285 /usr/openwin/share/lib \
24286 /usr/unsupported/lib \
24287 /usr/x386/lib \
24288 ; do
24289 if test -f "$ac_dir/X11/rgb.txt"; then
24290 im_cv_x_configure="$ac_dir/X11/"
24291 break
24292 elif test -f "$ac_dir/rgb.txt"; then
24293 im_cv_x_configure="$ac_dir/"
24294 break
24295 fi
24296
24297 done
24298fi
cristy8b350f62009-11-15 23:12:43 +000024299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024300$as_echo "$im_cv_x_configure" >&6; }
24301X11_CONFIGURE_PATH="$im_cv_x_configure"
24302case "${build_os}" in
24303 mingw* )
24304 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24305 ;;
24306esac
24307
24308cat >>confdefs.h <<_ACEOF
24309#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24310_ACEOF
24311
24312
24313#
24314# Find OpenMP library
24315#
24316GOMP_LIBS=''
24317if test "$enable_openmp" != 'no'; then
24318 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024320$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024321if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024322 $as_echo_n "(cached) " >&6
24323else
24324 ac_check_lib_save_LIBS=$LIBS
24325LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024327/* end confdefs.h. */
24328
24329/* Override any GCC internal prototype to avoid an error.
24330 Use char because int might match the return type of a GCC
24331 builtin and then its argument prototype would still apply. */
24332#ifdef __cplusplus
24333extern "C"
24334#endif
24335char GOMP_parallel_start ();
24336int
24337main ()
24338{
24339return GOMP_parallel_start ();
24340 ;
24341 return 0;
24342}
24343_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024344if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024345 ac_cv_lib_gomp_GOMP_parallel_start=yes
24346else
cristy8b350f62009-11-15 23:12:43 +000024347 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024348fi
cristy8b350f62009-11-15 23:12:43 +000024349rm -f core conftest.err conftest.$ac_objext \
24350 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024351LIBS=$ac_check_lib_save_LIBS
24352fi
cristy8b350f62009-11-15 23:12:43 +000024353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024354$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024355if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024356 GOMP_LIBS="-lgomp"
24357fi
24358 # gcc
24359 else
cristy8b350f62009-11-15 23:12:43 +000024360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024361$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024362if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024363 $as_echo_n "(cached) " >&6
24364else
24365 ac_check_lib_save_LIBS=$LIBS
24366LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024368/* end confdefs.h. */
24369
24370/* Override any GCC internal prototype to avoid an error.
24371 Use char because int might match the return type of a GCC
24372 builtin and then its argument prototype would still apply. */
24373#ifdef __cplusplus
24374extern "C"
24375#endif
24376char sunw_mp_register_warn ();
24377int
24378main ()
24379{
24380return sunw_mp_register_warn ();
24381 ;
24382 return 0;
24383}
24384_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024385if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024386 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24387else
cristy8b350f62009-11-15 23:12:43 +000024388 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024389fi
cristy8b350f62009-11-15 23:12:43 +000024390rm -f core conftest.err conftest.$ac_objext \
24391 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024392LIBS=$ac_check_lib_save_LIBS
24393fi
cristy8b350f62009-11-15 23:12:43 +000024394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024395$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024396if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024397 GOMP_LIBS="-lmtsk"
24398fi
24399 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024401$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024402if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024403 $as_echo_n "(cached) " >&6
24404else
24405 ac_check_lib_save_LIBS=$LIBS
24406LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024408/* end confdefs.h. */
24409
24410/* Override any GCC internal prototype to avoid an error.
24411 Use char because int might match the return type of a GCC
24412 builtin and then its argument prototype would still apply. */
24413#ifdef __cplusplus
24414extern "C"
24415#endif
24416char _xlsmpFlush ();
24417int
24418main ()
24419{
24420return _xlsmpFlush ();
24421 ;
24422 return 0;
24423}
24424_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024425if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024426 ac_cv_lib_xlsmp__xlsmpFlush=yes
24427else
cristy8b350f62009-11-15 23:12:43 +000024428 ac_cv_lib_xlsmp__xlsmpFlush=no
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 +000024432LIBS=$ac_check_lib_save_LIBS
24433fi
cristy8b350f62009-11-15 23:12:43 +000024434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024435$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024436if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024437 GOMP_LIBS="-lxlsmp"
24438fi
24439 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024441$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024442if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024443 $as_echo_n "(cached) " >&6
24444else
24445 ac_check_lib_save_LIBS=$LIBS
24446LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024448/* end confdefs.h. */
24449
24450/* Override any GCC internal prototype to avoid an error.
24451 Use char because int might match the return type of a GCC
24452 builtin and then its argument prototype would still apply. */
24453#ifdef __cplusplus
24454extern "C"
24455#endif
24456char mp_destroy ();
24457int
24458main ()
24459{
24460return mp_destroy ();
24461 ;
24462 return 0;
24463}
24464_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024465if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024466 ac_cv_lib_mp_mp_destroy=yes
24467else
cristy8b350f62009-11-15 23:12:43 +000024468 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024469fi
cristy8b350f62009-11-15 23:12:43 +000024470rm -f core conftest.err conftest.$ac_objext \
24471 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024472LIBS=$ac_check_lib_save_LIBS
24473fi
cristy8b350f62009-11-15 23:12:43 +000024474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024475$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024476if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024477 GOMP_LIBS="-lmp"
24478fi
24479 # SGI IRIX 6.5 MIPSpro C/C++
24480 fi
24481 LIBS="$GOMP_LIBS $LIBS"
24482fi
24483
24484
24485#
24486# Find Posix threads library
24487#
24488THREAD_LIBS=''
24489if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24490
24491 if test "x$PTHREAD_LIBS" = "x"; then
24492 case "${host_cpu}-${host_os}" in
24493 *-freebsd*)
24494
24495
24496
24497ac_ext=c
24498ac_cpp='$CPP $CPPFLAGS'
24499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24501ac_compiler_gnu=$ac_cv_c_compiler_gnu
24502
24503magick_pthread_lib_ok=no
24504
24505LIB=-lc_r
24506save_LIBS="$LIBS"
24507LIBS="$LIBS $LIB"
24508
cristy8b350f62009-11-15 23:12:43 +000024509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024510$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024512/* end confdefs.h. */
24513#include <pthread.h>
24514int
24515main ()
24516{
24517 pthread_t th;
24518 pthread_join(th, 0);
24519 pthread_attr_init(0);
24520 pthread_cleanup_push(0, 0);
24521 pthread_create(0,0,0,0);
24522 pthread_cleanup_pop(0);
24523 ;
24524 return 0;
24525}
24526_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024527if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024528 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024529fi
cristy8b350f62009-11-15 23:12:43 +000024530rm -f core conftest.err conftest.$ac_objext \
24531 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024532
cristy8b350f62009-11-15 23:12:43 +000024533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024534$as_echo "${magick_pthread_lib_ok}" >&6; }
24535if test "$magick_pthread_lib_ok" = yes
24536then
24537 PTHREAD_LIBS=-lc_r
24538 :
24539else
24540
24541 :
24542fi
24543
24544LIBS="$save_LIBS"
24545
24546ac_ext=c
24547ac_cpp='$CPP $CPPFLAGS'
24548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24550ac_compiler_gnu=$ac_cv_c_compiler_gnu
24551
24552 ;;
24553 esac
24554 fi
24555
24556 for lib in pthread pthreads; do
24557 if test "x$PTHREAD_LIBS" = "x"; then
24558
24559
24560
24561ac_ext=c
24562ac_cpp='$CPP $CPPFLAGS'
24563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24565ac_compiler_gnu=$ac_cv_c_compiler_gnu
24566
24567magick_pthread_lib_ok=no
24568
24569LIB=-l$lib
24570save_LIBS="$LIBS"
24571LIBS="$LIBS $LIB"
24572
cristy8b350f62009-11-15 23:12:43 +000024573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024574$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024576/* end confdefs.h. */
24577#include <pthread.h>
24578int
24579main ()
24580{
24581 pthread_t th;
24582 pthread_join(th, 0);
24583 pthread_attr_init(0);
24584 pthread_cleanup_push(0, 0);
24585 pthread_create(0,0,0,0);
24586 pthread_cleanup_pop(0);
24587 ;
24588 return 0;
24589}
24590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024591if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024592 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024593fi
cristy8b350f62009-11-15 23:12:43 +000024594rm -f core conftest.err conftest.$ac_objext \
24595 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024596
cristy8b350f62009-11-15 23:12:43 +000024597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024598$as_echo "${magick_pthread_lib_ok}" >&6; }
24599if test "$magick_pthread_lib_ok" = yes
24600then
24601 PTHREAD_LIBS=-l$lib
24602 :
24603else
24604
24605 :
24606fi
24607
24608LIBS="$save_LIBS"
24609
24610ac_ext=c
24611ac_cpp='$CPP $CPPFLAGS'
24612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24614ac_compiler_gnu=$ac_cv_c_compiler_gnu
24615
24616
24617 fi
24618 done
24619
24620 THREAD_LIBS="$PTHREAD_LIBS"
24621 LIBS="$LIBS $THREAD_LIBS"
24622fi
24623
24624
24625#
24626# Check for umem.
24627#
24628have_umem='no'
24629UMEM_LIBS=''
24630if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024632$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024634$as_echo "" >&6; }
24635 failed=0
24636 passed=0
cristy8b350f62009-11-15 23:12:43 +000024637 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24638if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024639 passed=`expr $passed + 1`
24640else
24641 failed=`expr $failed + 1`
24642fi
24643
24644
cristy8b350f62009-11-15 23:12:43 +000024645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024646$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024647if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024648 $as_echo_n "(cached) " >&6
24649else
24650 ac_check_lib_save_LIBS=$LIBS
24651LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024653/* end confdefs.h. */
24654
24655/* Override any GCC internal prototype to avoid an error.
24656 Use char because int might match the return type of a GCC
24657 builtin and then its argument prototype would still apply. */
24658#ifdef __cplusplus
24659extern "C"
24660#endif
24661char umem_alloc ();
24662int
24663main ()
24664{
24665return umem_alloc ();
24666 ;
24667 return 0;
24668}
24669_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024670if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024671 ac_cv_lib_umem_umem_alloc=yes
24672else
cristy8b350f62009-11-15 23:12:43 +000024673 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024674fi
cristy8b350f62009-11-15 23:12:43 +000024675rm -f core conftest.err conftest.$ac_objext \
24676 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024677LIBS=$ac_check_lib_save_LIBS
24678fi
cristy8b350f62009-11-15 23:12:43 +000024679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024680$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024681if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024682 passed=`expr $passed + 1`
24683else
24684 failed=`expr $failed + 1`
24685fi
24686
cristy8b350f62009-11-15 23:12:43 +000024687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024688$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024689if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024690 $as_echo_n "(cached) " >&6
24691else
24692 ac_check_lib_save_LIBS=$LIBS
24693LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024695/* end confdefs.h. */
24696
24697/* Override any GCC internal prototype to avoid an error.
24698 Use char because int might match the return type of a GCC
24699 builtin and then its argument prototype would still apply. */
24700#ifdef __cplusplus
24701extern "C"
24702#endif
24703char umem_free ();
24704int
24705main ()
24706{
24707return umem_free ();
24708 ;
24709 return 0;
24710}
24711_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024712if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024713 ac_cv_lib_umem_umem_free=yes
24714else
cristy8b350f62009-11-15 23:12:43 +000024715 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024716fi
cristy8b350f62009-11-15 23:12:43 +000024717rm -f core conftest.err conftest.$ac_objext \
24718 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024719LIBS=$ac_check_lib_save_LIBS
24720fi
cristy8b350f62009-11-15 23:12:43 +000024721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024722$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024723if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024724 passed=`expr $passed + 1`
24725else
24726 failed=`expr $failed + 1`
24727fi
24728
cristy8b350f62009-11-15 23:12:43 +000024729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024730$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24731 if test $passed -gt 0; then
24732 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024734$as_echo "no -- some components failed test" >&6; }
24735 have_umem='no (failed tests)'
24736 else
24737 UMEM_LIBS='-lumem'
24738 LIBS="$UMEM_LIBS $LIBS"
24739
cristy8b350f62009-11-15 23:12:43 +000024740$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024741
cristy8b350f62009-11-15 23:12:43 +000024742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024743$as_echo "yes" >&6; }
24744 have_umem='yes'
24745 fi
24746 else
cristy8b350f62009-11-15 23:12:43 +000024747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024748$as_echo "no" >&6; }
24749 fi
24750fi
24751 if test "$have_umem" = 'yes'; then
24752 HasUMEM_TRUE=
24753 HasUMEM_FALSE='#'
24754else
24755 HasUMEM_TRUE='#'
24756 HasUMEM_FALSE=
24757fi
24758
24759
24760
24761#
24762# Add support for ccmalloc memory debugging library if requested
24763#
24764have_ccmalloc='no'
24765CCMALLOC_LIBS=''
24766if test "$enable_ccmalloc" = 'yes'; then
24767 # Extract the first word of "ccmalloc", so it can be a program name with args.
24768set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024770$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024771if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024772 $as_echo_n "(cached) " >&6
24773else
24774 case $CCMALLOCDelegate in
24775 [\\/]* | ?:[\\/]*)
24776 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24777 ;;
24778 *)
24779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24780for as_dir in $PATH
24781do
24782 IFS=$as_save_IFS
24783 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024784 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24786 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024788 break 2
24789 fi
24790done
cristy8b350f62009-11-15 23:12:43 +000024791 done
cristy3ed852e2009-09-05 21:47:34 +000024792IFS=$as_save_IFS
24793
24794 ;;
24795esac
24796fi
24797CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24798if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024800$as_echo "$CCMALLOCDelegate" >&6; }
24801else
cristy8b350f62009-11-15 23:12:43 +000024802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024803$as_echo "no" >&6; }
24804fi
24805
24806
24807 if test -n "$CCMALLOCDelegate"; then
24808 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24809 OLIBS="$LIBS"
24810 # Assume that gcc is used with ccmalloc.
24811 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024813$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024814if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024815 $as_echo_n "(cached) " >&6
24816else
24817 ac_check_lib_save_LIBS=$LIBS
24818LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024820/* end confdefs.h. */
24821
24822/* Override any GCC internal prototype to avoid an error.
24823 Use char because int might match the return type of a GCC
24824 builtin and then its argument prototype would still apply. */
24825#ifdef __cplusplus
24826extern "C"
24827#endif
24828char ccmalloc_malloc ();
24829int
24830main ()
24831{
24832return ccmalloc_malloc ();
24833 ;
24834 return 0;
24835}
24836_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024837if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024838 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24839else
cristy8b350f62009-11-15 23:12:43 +000024840 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024841fi
cristy8b350f62009-11-15 23:12:43 +000024842rm -f core conftest.err conftest.$ac_objext \
24843 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024844LIBS=$ac_check_lib_save_LIBS
24845fi
cristy8b350f62009-11-15 23:12:43 +000024846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024847$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024848if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024849 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24850fi
24851
24852 if test -n "$CCMALLOC_LIBS"; then
24853 LIBS="$OLIBS"
24854 LIBS="$LIBS $CCMALLOC_LIBS"
24855 have_ccmalloc='yes'
24856 else
24857 LIBS="$OLIBS"
24858 fi
24859 fi
24860fi
24861
24862#
24863# Add support for efence memory debugging library if requested
24864#
24865if test "$enable_efence" = 'yes'; then
24866 EFENCE_LIBS='-lefence'
24867 LIBS="$EFENCE_LIBS $LIBS"
24868fi
24869
cristy3ed852e2009-09-05 21:47:34 +000024870
24871#
24872# Check for BZLIB
24873#
24874
24875
24876# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024877if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024878 withval=$with_bzlib; with_bzlib=$withval
24879else
24880 with_bzlib='yes'
24881fi
24882
24883
24884if test "$with_bzlib" != 'yes'; then
24885 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24886fi
24887
24888have_bzlib='no'
24889if test "$with_bzlib" != 'no'; then
24890 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024892$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024894$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024896$as_echo "" >&6; }
24897 failed=0
24898 passed=0
24899 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024900 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24901if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024902 passed=`expr $passed + 1`
24903else
24904 failed=`expr $failed + 1`
24905fi
24906
24907
cristy8b350f62009-11-15 23:12:43 +000024908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024909$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024910if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024911 $as_echo_n "(cached) " >&6
24912else
24913 ac_check_lib_save_LIBS=$LIBS
24914LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024916/* end confdefs.h. */
24917
24918/* Override any GCC internal prototype to avoid an error.
24919 Use char because int might match the return type of a GCC
24920 builtin and then its argument prototype would still apply. */
24921#ifdef __cplusplus
24922extern "C"
24923#endif
24924char BZ2_bzDecompress ();
24925int
24926main ()
24927{
24928return BZ2_bzDecompress ();
24929 ;
24930 return 0;
24931}
24932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024933if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024934 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24935else
cristy8b350f62009-11-15 23:12:43 +000024936 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024937fi
cristy8b350f62009-11-15 23:12:43 +000024938rm -f core conftest.err conftest.$ac_objext \
24939 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024940LIBS=$ac_check_lib_save_LIBS
24941fi
cristy8b350f62009-11-15 23:12:43 +000024942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024943$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024944if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024945 found_libbz=`expr $found_libbz + 1`
24946fi
24947
24948 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024950$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024951if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024952 $as_echo_n "(cached) " >&6
24953else
24954 ac_check_lib_save_LIBS=$LIBS
24955LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024957/* end confdefs.h. */
24958
24959/* Override any GCC internal prototype to avoid an error.
24960 Use char because int might match the return type of a GCC
24961 builtin and then its argument prototype would still apply. */
24962#ifdef __cplusplus
24963extern "C"
24964#endif
24965char _imp__BZ2_decompress ();
24966int
24967main ()
24968{
24969return _imp__BZ2_decompress ();
24970 ;
24971 return 0;
24972}
24973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024974if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024975 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24976else
cristy8b350f62009-11-15 23:12:43 +000024977 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024978fi
cristy8b350f62009-11-15 23:12:43 +000024979rm -f core conftest.err conftest.$ac_objext \
24980 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024981LIBS=$ac_check_lib_save_LIBS
24982fi
cristy8b350f62009-11-15 23:12:43 +000024983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024984$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024985if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024986 found_libbz=`expr $found_libbz + 1`
24987fi
24988
24989 fi
24990 if test $found_libbz -gt 0; then
24991 passed=`expr $passed + 1`
24992 else
24993 failed=`expr $failed + 1`
24994 fi
cristy8b350f62009-11-15 23:12:43 +000024995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024996$as_echo_n "checking if BZLIB package is complete... " >&6; }
24997 if test $passed -gt 0; then
24998 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025000$as_echo "no -- some components failed test" >&6; }
25001 have_bzlib='no (failed tests)'
25002 else
25003 BZLIB_LIBS='-lbz2'
25004 LIBS="$BZLIB_LIBS $LIBS"
25005
cristy8b350f62009-11-15 23:12:43 +000025006$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025007
cristy8b350f62009-11-15 23:12:43 +000025008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025009$as_echo "yes" >&6; }
25010 have_bzlib='yes'
25011 fi
25012 else
cristy8b350f62009-11-15 23:12:43 +000025013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025014$as_echo "no" >&6; }
25015 fi
25016fi
25017 if test "$have_bzlib" = 'yes'; then
25018 BZLIB_DELEGATE_TRUE=
25019 BZLIB_DELEGATE_FALSE='#'
25020else
25021 BZLIB_DELEGATE_TRUE='#'
25022 BZLIB_DELEGATE_FALSE=
25023fi
25024
25025
25026
25027#
25028# Find the X11 include and library directories.
25029#
25030IPC_LIBS=''
25031X11_LIBS=''
25032XEXT_LIBS=''
25033XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025035$as_echo_n "checking for X... " >&6; }
25036
25037
25038# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025039if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025040 withval=$with_x;
25041fi
25042
25043# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25044if test "x$with_x" = xno; then
25045 # The user explicitly disabled X.
25046 have_x=disabled
25047else
25048 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000025049 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
25050 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025051 $as_echo_n "(cached) " >&6
25052else
25053 # One or both of the vars are not set, and there is no cached value.
25054ac_x_includes=no ac_x_libraries=no
25055rm -f -r conftest.dir
25056if mkdir conftest.dir; then
25057 cd conftest.dir
25058 cat >Imakefile <<'_ACEOF'
25059incroot:
25060 @echo incroot='${INCROOT}'
25061usrlibdir:
25062 @echo usrlibdir='${USRLIBDIR}'
25063libdir:
25064 @echo libdir='${LIBDIR}'
25065_ACEOF
25066 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25067 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25068 for ac_var in incroot usrlibdir libdir; do
25069 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25070 done
25071 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25072 for ac_extension in a so sl dylib la dll; do
25073 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25074 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25075 ac_im_usrlibdir=$ac_im_libdir; break
25076 fi
25077 done
25078 # Screen out bogus values from the imake configuration. They are
25079 # bogus both because they are the default anyway, and because
25080 # using them would break gcc on systems where it needs fixed includes.
25081 case $ac_im_incroot in
25082 /usr/include) ac_x_includes= ;;
25083 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25084 esac
25085 case $ac_im_usrlibdir in
25086 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25087 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25088 esac
25089 fi
25090 cd ..
25091 rm -f -r conftest.dir
25092fi
25093
25094# Standard set of common directories for X headers.
25095# Check X11 before X11Rn because it is often a symlink to the current release.
25096ac_x_header_dirs='
25097/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025098/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025099/usr/X11R6/include
25100/usr/X11R5/include
25101/usr/X11R4/include
25102
25103/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025104/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025105/usr/include/X11R6
25106/usr/include/X11R5
25107/usr/include/X11R4
25108
25109/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025110/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025111/usr/local/X11R6/include
25112/usr/local/X11R5/include
25113/usr/local/X11R4/include
25114
25115/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025116/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025117/usr/local/include/X11R6
25118/usr/local/include/X11R5
25119/usr/local/include/X11R4
25120
25121/usr/X386/include
25122/usr/x386/include
25123/usr/XFree86/include/X11
25124
25125/usr/include
25126/usr/local/include
25127/usr/unsupported/include
25128/usr/athena/include
25129/usr/local/x11r5/include
25130/usr/lpp/Xamples/include
25131
25132/usr/openwin/include
25133/usr/openwin/share/include'
25134
25135if test "$ac_x_includes" = no; then
25136 # Guess where to find include files, by looking for Xlib.h.
25137 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025139/* end confdefs.h. */
25140#include <X11/Xlib.h>
25141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025142if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025143 # We can compile using X headers with no special include directory.
25144ac_x_includes=
25145else
cristyc7083c12009-10-14 03:16:55 +000025146 for ac_dir in $ac_x_header_dirs; do
25147 if test -r "$ac_dir/X11/Xlib.h"; then
25148 ac_x_includes=$ac_dir
25149 break
25150 fi
25151done
25152fi
cristyc7083c12009-10-14 03:16:55 +000025153rm -f conftest.err conftest.$ac_ext
25154fi # $ac_x_includes = no
25155
25156if test "$ac_x_libraries" = no; then
25157 # Check for the libraries.
25158 # See if we find them without any special options.
25159 # Don't add to $LIBS permanently.
25160 ac_save_LIBS=$LIBS
25161 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025163/* end confdefs.h. */
25164#include <X11/Xlib.h>
25165int
25166main ()
25167{
25168XrmInitialize ()
25169 ;
25170 return 0;
25171}
25172_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025173if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025174 LIBS=$ac_save_LIBS
25175# We can link X programs with no special library path.
25176ac_x_libraries=
25177else
cristy8b350f62009-11-15 23:12:43 +000025178 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025179for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25180do
25181 # Don't even attempt the hair of trying to link an X program!
25182 for ac_extension in a so sl dylib la dll; do
25183 if test -r "$ac_dir/libX11.$ac_extension"; then
25184 ac_x_libraries=$ac_dir
25185 break 2
25186 fi
25187 done
25188done
25189fi
cristy8b350f62009-11-15 23:12:43 +000025190rm -f core conftest.err conftest.$ac_objext \
25191 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025192fi # $ac_x_libraries = no
25193
25194case $ac_x_includes,$ac_x_libraries in #(
25195 no,* | *,no | *\'*)
25196 # Didn't find X, or a directory has "'" in its name.
25197 ac_cv_have_x="have_x=no";; #(
25198 *)
25199 # Record where we found X for the cache.
25200 ac_cv_have_x="have_x=yes\
25201 ac_x_includes='$ac_x_includes'\
25202 ac_x_libraries='$ac_x_libraries'"
25203esac
25204fi
25205;; #(
25206 *) have_x=yes;;
25207 esac
25208 eval "$ac_cv_have_x"
25209fi # $with_x != no
25210
25211if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025213$as_echo "$have_x" >&6; }
25214 no_x=yes
25215else
25216 # If each of the values was on the command line, it overrides each guess.
25217 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25218 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25219 # Update the cache value to reflect the command line values.
25220 ac_cv_have_x="have_x=yes\
25221 ac_x_includes='$x_includes'\
25222 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025224$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25225fi
25226
cristy3ed852e2009-09-05 21:47:34 +000025227if test "$no_x" = yes; then
25228 # Not all programs may use this symbol, but it does not hurt to define it.
25229
cristy8b350f62009-11-15 23:12:43 +000025230$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025231
25232 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25233else
25234 if test -n "$x_includes"; then
25235 X_CFLAGS="$X_CFLAGS -I$x_includes"
25236 fi
25237
25238 # It would also be nice to do this for all -L options, not just this one.
25239 if test -n "$x_libraries"; then
25240 X_LIBS="$X_LIBS -L$x_libraries"
25241 # For Solaris; some versions of Sun CC require a space after -R and
25242 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025244$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25245 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25246 ac_xsave_c_werror_flag=$ac_c_werror_flag
25247 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025249/* end confdefs.h. */
25250
25251int
25252main ()
25253{
25254
25255 ;
25256 return 0;
25257}
25258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025259if ac_fn_c_try_link "$LINENO"; then :
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025261$as_echo "no" >&6; }
25262 X_LIBS="$X_LIBS -R$x_libraries"
25263else
cristy8b350f62009-11-15 23:12:43 +000025264 LIBS="$ac_xsave_LIBS -R $x_libraries"
25265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025266/* end confdefs.h. */
25267
25268int
25269main ()
25270{
25271
25272 ;
25273 return 0;
25274}
25275_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025276if ac_fn_c_try_link "$LINENO"; then :
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025278$as_echo "yes" >&6; }
25279 X_LIBS="$X_LIBS -R $x_libraries"
25280else
cristy8b350f62009-11-15 23:12:43 +000025281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025282$as_echo "neither works" >&6; }
25283fi
cristy8b350f62009-11-15 23:12:43 +000025284rm -f core conftest.err conftest.$ac_objext \
25285 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025286fi
cristy8b350f62009-11-15 23:12:43 +000025287rm -f core conftest.err conftest.$ac_objext \
25288 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025289 ac_c_werror_flag=$ac_xsave_c_werror_flag
25290 LIBS=$ac_xsave_LIBS
25291 fi
25292
25293 # Check for system-dependent libraries X programs must link with.
25294 # Do this before checking for the system-independent R6 libraries
25295 # (-lICE), since we may need -lsocket or whatever for X linking.
25296
25297 if test "$ISC" = yes; then
25298 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25299 else
25300 # Martyn Johnson says this is needed for Ultrix, if the X
25301 # libraries were built with DECnet support. And Karl Berry says
25302 # the Alpha needs dnet_stub (dnet does not exist).
25303 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025305/* end confdefs.h. */
25306
25307/* Override any GCC internal prototype to avoid an error.
25308 Use char because int might match the return type of a GCC
25309 builtin and then its argument prototype would still apply. */
25310#ifdef __cplusplus
25311extern "C"
25312#endif
25313char XOpenDisplay ();
25314int
25315main ()
25316{
25317return XOpenDisplay ();
25318 ;
25319 return 0;
25320}
25321_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025322if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025323
cristy8b350f62009-11-15 23:12:43 +000025324else
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025326$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025327if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025328 $as_echo_n "(cached) " >&6
25329else
25330 ac_check_lib_save_LIBS=$LIBS
25331LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025333/* end confdefs.h. */
25334
25335/* Override any GCC internal prototype to avoid an error.
25336 Use char because int might match the return type of a GCC
25337 builtin and then its argument prototype would still apply. */
25338#ifdef __cplusplus
25339extern "C"
25340#endif
25341char dnet_ntoa ();
25342int
25343main ()
25344{
25345return dnet_ntoa ();
25346 ;
25347 return 0;
25348}
25349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025351 ac_cv_lib_dnet_dnet_ntoa=yes
25352else
cristy8b350f62009-11-15 23:12:43 +000025353 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025354fi
cristy8b350f62009-11-15 23:12:43 +000025355rm -f core conftest.err conftest.$ac_objext \
25356 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025357LIBS=$ac_check_lib_save_LIBS
25358fi
cristy8b350f62009-11-15 23:12:43 +000025359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025360$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025361if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025362 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25363fi
25364
25365 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025367$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025368if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025369 $as_echo_n "(cached) " >&6
25370else
25371 ac_check_lib_save_LIBS=$LIBS
25372LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025374/* end confdefs.h. */
25375
25376/* Override any GCC internal prototype to avoid an error.
25377 Use char because int might match the return type of a GCC
25378 builtin and then its argument prototype would still apply. */
25379#ifdef __cplusplus
25380extern "C"
25381#endif
25382char dnet_ntoa ();
25383int
25384main ()
25385{
25386return dnet_ntoa ();
25387 ;
25388 return 0;
25389}
25390_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025391if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025392 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25393else
cristy8b350f62009-11-15 23:12:43 +000025394 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025395fi
cristy8b350f62009-11-15 23:12:43 +000025396rm -f core conftest.err conftest.$ac_objext \
25397 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025398LIBS=$ac_check_lib_save_LIBS
25399fi
cristy8b350f62009-11-15 23:12:43 +000025400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025401$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025402if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025403 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25404fi
25405
25406 fi
25407fi
cristy8b350f62009-11-15 23:12:43 +000025408rm -f core conftest.err conftest.$ac_objext \
25409 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025410 LIBS="$ac_xsave_LIBS"
25411
25412 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25413 # to get the SysV transport functions.
25414 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25415 # needs -lnsl.
25416 # The nsl library prevents programs from opening the X display
25417 # on Irix 5.2, according to T.E. Dickey.
25418 # The functions gethostbyname, getservbyname, and inet_addr are
25419 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025420 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25421if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025422
cristy3ed852e2009-09-05 21:47:34 +000025423fi
25424
cristy3ed852e2009-09-05 21:47:34 +000025425 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025427$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025428if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025429 $as_echo_n "(cached) " >&6
25430else
25431 ac_check_lib_save_LIBS=$LIBS
25432LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025434/* end confdefs.h. */
25435
25436/* Override any GCC internal prototype to avoid an error.
25437 Use char because int might match the return type of a GCC
25438 builtin and then its argument prototype would still apply. */
25439#ifdef __cplusplus
25440extern "C"
25441#endif
25442char gethostbyname ();
25443int
25444main ()
25445{
25446return gethostbyname ();
25447 ;
25448 return 0;
25449}
25450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025451if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025452 ac_cv_lib_nsl_gethostbyname=yes
25453else
cristy8b350f62009-11-15 23:12:43 +000025454 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025455fi
cristy8b350f62009-11-15 23:12:43 +000025456rm -f core conftest.err conftest.$ac_objext \
25457 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025458LIBS=$ac_check_lib_save_LIBS
25459fi
cristy8b350f62009-11-15 23:12:43 +000025460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025461$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025462if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025463 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25464fi
25465
25466 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025468$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025469if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025470 $as_echo_n "(cached) " >&6
25471else
25472 ac_check_lib_save_LIBS=$LIBS
25473LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025475/* end confdefs.h. */
25476
25477/* Override any GCC internal prototype to avoid an error.
25478 Use char because int might match the return type of a GCC
25479 builtin and then its argument prototype would still apply. */
25480#ifdef __cplusplus
25481extern "C"
25482#endif
25483char gethostbyname ();
25484int
25485main ()
25486{
25487return gethostbyname ();
25488 ;
25489 return 0;
25490}
25491_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025492if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025493 ac_cv_lib_bsd_gethostbyname=yes
25494else
cristy8b350f62009-11-15 23:12:43 +000025495 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025496fi
cristy8b350f62009-11-15 23:12:43 +000025497rm -f core conftest.err conftest.$ac_objext \
25498 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025499LIBS=$ac_check_lib_save_LIBS
25500fi
cristy8b350f62009-11-15 23:12:43 +000025501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025502$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025503if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025504 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25505fi
25506
25507 fi
25508 fi
25509
25510 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25511 # socket/setsockopt and other routines are undefined under SCO ODT
25512 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25513 # on later versions), says Simon Leinen: it contains gethostby*
25514 # variants that don't use the name server (or something). -lsocket
25515 # must be given before -lnsl if both are needed. We assume that
25516 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025517 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25518if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025519
cristy3ed852e2009-09-05 21:47:34 +000025520fi
25521
cristy3ed852e2009-09-05 21:47:34 +000025522 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025524$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025525if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025526 $as_echo_n "(cached) " >&6
25527else
25528 ac_check_lib_save_LIBS=$LIBS
25529LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025531/* end confdefs.h. */
25532
25533/* Override any GCC internal prototype to avoid an error.
25534 Use char because int might match the return type of a GCC
25535 builtin and then its argument prototype would still apply. */
25536#ifdef __cplusplus
25537extern "C"
25538#endif
25539char connect ();
25540int
25541main ()
25542{
25543return connect ();
25544 ;
25545 return 0;
25546}
25547_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025548if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025549 ac_cv_lib_socket_connect=yes
25550else
cristy8b350f62009-11-15 23:12:43 +000025551 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025552fi
cristy8b350f62009-11-15 23:12:43 +000025553rm -f core conftest.err conftest.$ac_objext \
25554 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025555LIBS=$ac_check_lib_save_LIBS
25556fi
cristy8b350f62009-11-15 23:12:43 +000025557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025558$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025559if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025560 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25561fi
25562
25563 fi
25564
25565 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025566 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25567if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025568
cristy3ed852e2009-09-05 21:47:34 +000025569fi
25570
cristy3ed852e2009-09-05 21:47:34 +000025571 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025573$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025574if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025575 $as_echo_n "(cached) " >&6
25576else
25577 ac_check_lib_save_LIBS=$LIBS
25578LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025580/* end confdefs.h. */
25581
25582/* Override any GCC internal prototype to avoid an error.
25583 Use char because int might match the return type of a GCC
25584 builtin and then its argument prototype would still apply. */
25585#ifdef __cplusplus
25586extern "C"
25587#endif
25588char remove ();
25589int
25590main ()
25591{
25592return remove ();
25593 ;
25594 return 0;
25595}
25596_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025597if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025598 ac_cv_lib_posix_remove=yes
25599else
cristy8b350f62009-11-15 23:12:43 +000025600 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025601fi
cristy8b350f62009-11-15 23:12:43 +000025602rm -f core conftest.err conftest.$ac_objext \
25603 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025604LIBS=$ac_check_lib_save_LIBS
25605fi
cristy8b350f62009-11-15 23:12:43 +000025606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025607$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025608if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025609 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25610fi
25611
25612 fi
25613
25614 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025615 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25616if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025617
cristy3ed852e2009-09-05 21:47:34 +000025618fi
25619
cristy3ed852e2009-09-05 21:47:34 +000025620 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025622$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025623if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025624 $as_echo_n "(cached) " >&6
25625else
25626 ac_check_lib_save_LIBS=$LIBS
25627LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025629/* end confdefs.h. */
25630
25631/* Override any GCC internal prototype to avoid an error.
25632 Use char because int might match the return type of a GCC
25633 builtin and then its argument prototype would still apply. */
25634#ifdef __cplusplus
25635extern "C"
25636#endif
25637char shmat ();
25638int
25639main ()
25640{
25641return shmat ();
25642 ;
25643 return 0;
25644}
25645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025646if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025647 ac_cv_lib_ipc_shmat=yes
25648else
cristy8b350f62009-11-15 23:12:43 +000025649 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025650fi
cristy8b350f62009-11-15 23:12:43 +000025651rm -f core conftest.err conftest.$ac_objext \
25652 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025653LIBS=$ac_check_lib_save_LIBS
25654fi
cristy8b350f62009-11-15 23:12:43 +000025655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025656$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025657if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025658 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25659fi
25660
25661 fi
25662 fi
25663
25664 # Check for libraries that X11R6 Xt/Xaw programs need.
25665 ac_save_LDFLAGS=$LDFLAGS
25666 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25667 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25668 # check for ICE first), but we must link in the order -lSM -lICE or
25669 # we get undefined symbols. So assume we have SM if we have ICE.
25670 # These have to be linked with before -lX11, unlike the other
25671 # libraries we check for below, so use a different variable.
25672 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025674$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025675if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025676 $as_echo_n "(cached) " >&6
25677else
25678 ac_check_lib_save_LIBS=$LIBS
25679LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025681/* end confdefs.h. */
25682
25683/* Override any GCC internal prototype to avoid an error.
25684 Use char because int might match the return type of a GCC
25685 builtin and then its argument prototype would still apply. */
25686#ifdef __cplusplus
25687extern "C"
25688#endif
25689char IceConnectionNumber ();
25690int
25691main ()
25692{
25693return IceConnectionNumber ();
25694 ;
25695 return 0;
25696}
25697_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025698if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025699 ac_cv_lib_ICE_IceConnectionNumber=yes
25700else
cristy8b350f62009-11-15 23:12:43 +000025701 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025702fi
cristy8b350f62009-11-15 23:12:43 +000025703rm -f core conftest.err conftest.$ac_objext \
25704 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025705LIBS=$ac_check_lib_save_LIBS
25706fi
cristy8b350f62009-11-15 23:12:43 +000025707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025708$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025709if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025710 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25711fi
25712
25713 LDFLAGS=$ac_save_LDFLAGS
25714
25715fi
25716
25717if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025719$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025721$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025723$as_echo "" >&6; }
25724 LDFLAGS="$LDFLAGS $X_LIBS"
25725 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25726 LIBS="$X11_LIBS $LIBS"
25727 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25728
25729
cristy8b350f62009-11-15 23:12:43 +000025730$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025731
25732 #
25733 # Check for X11 shared memory extension
25734 #
25735 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025736 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25737if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025738 have_shmctl='yes'
25739fi
25740
25741 if test "$have_shmctl" != 'yes'; then
25742 PERSIST_LIBS=$LIBS
25743 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025745/* end confdefs.h. */
25746
25747/* Override any GCC internal prototype to avoid an error.
25748 Use char because int might match the return type of a GCC
25749 builtin and then its argument prototype would still apply. */
25750#ifdef __cplusplus
25751extern "C"
25752#endif
25753char shmctl ();
25754int
25755main ()
25756{
25757return shmctl ();
25758 ;
25759 return 0;
25760}
25761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025762if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025763 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025764fi
cristy8b350f62009-11-15 23:12:43 +000025765rm -f core conftest.err conftest.$ac_objext \
25766 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025767 LIBS=$PERSIST_LIBS
25768 fi
25769
25770 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025772$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025773if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025774 $as_echo_n "(cached) " >&6
25775else
25776 ac_check_lib_save_LIBS=$LIBS
25777LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025779/* end confdefs.h. */
25780
25781/* Override any GCC internal prototype to avoid an error.
25782 Use char because int might match the return type of a GCC
25783 builtin and then its argument prototype would still apply. */
25784#ifdef __cplusplus
25785extern "C"
25786#endif
25787char XShmAttach ();
25788int
25789main ()
25790{
25791return XShmAttach ();
25792 ;
25793 return 0;
25794}
25795_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025796if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025797 ac_cv_lib_Xext_XShmAttach=yes
25798else
cristy8b350f62009-11-15 23:12:43 +000025799 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025800fi
cristy8b350f62009-11-15 23:12:43 +000025801rm -f core conftest.err conftest.$ac_objext \
25802 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025803LIBS=$ac_check_lib_save_LIBS
25804fi
cristy8b350f62009-11-15 23:12:43 +000025805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025806$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025807if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025808 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025809$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025810
25811fi
25812
25813 fi
25814
25815 #
25816 # Check for X11 shape extension
25817 #
cristy8b350f62009-11-15 23:12:43 +000025818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025819$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025820if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025821 $as_echo_n "(cached) " >&6
25822else
25823 ac_check_lib_save_LIBS=$LIBS
25824LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025826/* end confdefs.h. */
25827
25828/* Override any GCC internal prototype to avoid an error.
25829 Use char because int might match the return type of a GCC
25830 builtin and then its argument prototype would still apply. */
25831#ifdef __cplusplus
25832extern "C"
25833#endif
25834char XShapeCombineMask ();
25835int
25836main ()
25837{
25838return XShapeCombineMask ();
25839 ;
25840 return 0;
25841}
25842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025843if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025844 ac_cv_lib_Xext_XShapeCombineMask=yes
25845else
cristy8b350f62009-11-15 23:12:43 +000025846 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025847fi
cristy8b350f62009-11-15 23:12:43 +000025848rm -f core conftest.err conftest.$ac_objext \
25849 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025850LIBS=$ac_check_lib_save_LIBS
25851fi
cristy8b350f62009-11-15 23:12:43 +000025852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025853$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025854if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025855 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025856$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025857
25858fi
25859
cristy8b350f62009-11-15 23:12:43 +000025860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025861$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025862if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025863 $as_echo_n "(cached) " >&6
25864else
25865 ac_check_lib_save_LIBS=$LIBS
25866LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025868/* end confdefs.h. */
25869
25870/* Override any GCC internal prototype to avoid an error.
25871 Use char because int might match the return type of a GCC
25872 builtin and then its argument prototype would still apply. */
25873#ifdef __cplusplus
25874extern "C"
25875#endif
25876char XtSetEventDispatcher ();
25877int
25878main ()
25879{
25880return XtSetEventDispatcher ();
25881 ;
25882 return 0;
25883}
25884_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025885if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025886 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25887else
cristy8b350f62009-11-15 23:12:43 +000025888 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025889fi
cristy8b350f62009-11-15 23:12:43 +000025890rm -f core conftest.err conftest.$ac_objext \
25891 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025892LIBS=$ac_check_lib_save_LIBS
25893fi
cristy8b350f62009-11-15 23:12:43 +000025894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025895$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025896if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025897 XT_LIBS='-lXt'
25898fi
25899
25900 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25901fi
25902if test "$no_x" != 'yes'; then
25903 have_x='yes'
25904else
25905 have_x='no'
25906fi
25907 if test "$have_x" = 'yes'; then
25908 X11_DELEGATE_TRUE=
25909 X11_DELEGATE_FALSE='#'
25910else
25911 X11_DELEGATE_TRUE='#'
25912 X11_DELEGATE_FALSE=
25913fi
25914
25915
25916
25917
25918
25919#
25920# Check for ZLIB
25921#
25922
25923# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025924if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025925 withval=$with_zlib; with_zlib=$withval
25926else
25927 with_zlib='yes'
25928fi
25929
25930
25931if test "$with_zlib" != 'yes'; then
25932 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25933fi
25934
25935have_zlib='no'
25936ZLIB_LIBS=''
25937if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025939$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025941$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025943$as_echo "" >&6; }
25944 ZLIB_LIBS=''
25945 failed=0
25946 passed=0
cristy8b350f62009-11-15 23:12:43 +000025947 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25948if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025949 passed=`expr $passed + 1`
25950else
25951 failed=`expr $failed + 1`
25952fi
25953
25954
cristy8b350f62009-11-15 23:12:43 +000025955 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25956if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025957 passed=`expr $passed + 1`
25958else
25959 failed=`expr $failed + 1`
25960fi
25961
25962
cristy8b350f62009-11-15 23:12:43 +000025963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025964$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025965if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025966 $as_echo_n "(cached) " >&6
25967else
25968 ac_check_lib_save_LIBS=$LIBS
25969LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025971/* end confdefs.h. */
25972
25973/* Override any GCC internal prototype to avoid an error.
25974 Use char because int might match the return type of a GCC
25975 builtin and then its argument prototype would still apply. */
25976#ifdef __cplusplus
25977extern "C"
25978#endif
25979char compress ();
25980int
25981main ()
25982{
25983return compress ();
25984 ;
25985 return 0;
25986}
25987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025988if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025989 ac_cv_lib_z_compress=yes
25990else
cristy8b350f62009-11-15 23:12:43 +000025991 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025992fi
cristy8b350f62009-11-15 23:12:43 +000025993rm -f core conftest.err conftest.$ac_objext \
25994 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025995LIBS=$ac_check_lib_save_LIBS
25996fi
cristy8b350f62009-11-15 23:12:43 +000025997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025998$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025999if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026000 passed=`expr $passed + 1`
26001else
26002 failed=`expr $failed + 1`
26003fi
26004
cristy8b350f62009-11-15 23:12:43 +000026005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026006$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026007if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026008 $as_echo_n "(cached) " >&6
26009else
26010 ac_check_lib_save_LIBS=$LIBS
26011LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026013/* end confdefs.h. */
26014
26015/* Override any GCC internal prototype to avoid an error.
26016 Use char because int might match the return type of a GCC
26017 builtin and then its argument prototype would still apply. */
26018#ifdef __cplusplus
26019extern "C"
26020#endif
26021char uncompress ();
26022int
26023main ()
26024{
26025return uncompress ();
26026 ;
26027 return 0;
26028}
26029_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026030if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026031 ac_cv_lib_z_uncompress=yes
26032else
cristy8b350f62009-11-15 23:12:43 +000026033 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026034fi
cristy8b350f62009-11-15 23:12:43 +000026035rm -f core conftest.err conftest.$ac_objext \
26036 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026037LIBS=$ac_check_lib_save_LIBS
26038fi
cristy8b350f62009-11-15 23:12:43 +000026039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026040$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026041if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026042 passed=`expr $passed + 1`
26043else
26044 failed=`expr $failed + 1`
26045fi
26046
cristy8b350f62009-11-15 23:12:43 +000026047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026048$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026049if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026050 $as_echo_n "(cached) " >&6
26051else
26052 ac_check_lib_save_LIBS=$LIBS
26053LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026055/* end confdefs.h. */
26056
26057/* Override any GCC internal prototype to avoid an error.
26058 Use char because int might match the return type of a GCC
26059 builtin and then its argument prototype would still apply. */
26060#ifdef __cplusplus
26061extern "C"
26062#endif
26063char deflate ();
26064int
26065main ()
26066{
26067return deflate ();
26068 ;
26069 return 0;
26070}
26071_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026072if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026073 ac_cv_lib_z_deflate=yes
26074else
cristy8b350f62009-11-15 23:12:43 +000026075 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026076fi
cristy8b350f62009-11-15 23:12:43 +000026077rm -f core conftest.err conftest.$ac_objext \
26078 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026079LIBS=$ac_check_lib_save_LIBS
26080fi
cristy8b350f62009-11-15 23:12:43 +000026081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026082$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026083if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026084 passed=`expr $passed + 1`
26085else
26086 failed=`expr $failed + 1`
26087fi
26088
cristy8b350f62009-11-15 23:12:43 +000026089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026090$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026091if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026092 $as_echo_n "(cached) " >&6
26093else
26094 ac_check_lib_save_LIBS=$LIBS
26095LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026097/* end confdefs.h. */
26098
26099/* Override any GCC internal prototype to avoid an error.
26100 Use char because int might match the return type of a GCC
26101 builtin and then its argument prototype would still apply. */
26102#ifdef __cplusplus
26103extern "C"
26104#endif
26105char inflate ();
26106int
26107main ()
26108{
26109return inflate ();
26110 ;
26111 return 0;
26112}
26113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026114if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026115 ac_cv_lib_z_inflate=yes
26116else
cristy8b350f62009-11-15 23:12:43 +000026117 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026118fi
cristy8b350f62009-11-15 23:12:43 +000026119rm -f core conftest.err conftest.$ac_objext \
26120 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026121LIBS=$ac_check_lib_save_LIBS
26122fi
cristy8b350f62009-11-15 23:12:43 +000026123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026124$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026125if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026126 passed=`expr $passed + 1`
26127else
26128 failed=`expr $failed + 1`
26129fi
26130
cristy8b350f62009-11-15 23:12:43 +000026131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026132$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026133if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026134 $as_echo_n "(cached) " >&6
26135else
26136 ac_check_lib_save_LIBS=$LIBS
26137LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026139/* end confdefs.h. */
26140
26141/* Override any GCC internal prototype to avoid an error.
26142 Use char because int might match the return type of a GCC
26143 builtin and then its argument prototype would still apply. */
26144#ifdef __cplusplus
26145extern "C"
26146#endif
26147char gzseek ();
26148int
26149main ()
26150{
26151return gzseek ();
26152 ;
26153 return 0;
26154}
26155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026156if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026157 ac_cv_lib_z_gzseek=yes
26158else
cristy8b350f62009-11-15 23:12:43 +000026159 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026160fi
cristy8b350f62009-11-15 23:12:43 +000026161rm -f core conftest.err conftest.$ac_objext \
26162 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026163LIBS=$ac_check_lib_save_LIBS
26164fi
cristy8b350f62009-11-15 23:12:43 +000026165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026166$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026167if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026168 passed=`expr $passed + 1`
26169else
26170 failed=`expr $failed + 1`
26171fi
26172
cristy8b350f62009-11-15 23:12:43 +000026173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026174$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026175if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026176 $as_echo_n "(cached) " >&6
26177else
26178 ac_check_lib_save_LIBS=$LIBS
26179LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026181/* end confdefs.h. */
26182
26183/* Override any GCC internal prototype to avoid an error.
26184 Use char because int might match the return type of a GCC
26185 builtin and then its argument prototype would still apply. */
26186#ifdef __cplusplus
26187extern "C"
26188#endif
26189char gztell ();
26190int
26191main ()
26192{
26193return gztell ();
26194 ;
26195 return 0;
26196}
26197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026198if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026199 ac_cv_lib_z_gztell=yes
26200else
cristy8b350f62009-11-15 23:12:43 +000026201 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026202fi
cristy8b350f62009-11-15 23:12:43 +000026203rm -f core conftest.err conftest.$ac_objext \
26204 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026205LIBS=$ac_check_lib_save_LIBS
26206fi
cristy8b350f62009-11-15 23:12:43 +000026207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026208$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026209if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026210 passed=`expr $passed + 1`
26211else
26212 failed=`expr $failed + 1`
26213fi
26214
cristy8b350f62009-11-15 23:12:43 +000026215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026216$as_echo_n "checking if ZLIB package is complete... " >&6; }
26217 if test $passed -gt 0; then
26218 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026220$as_echo "no -- some components failed test" >&6; }
26221 have_zlib='no (failed tests)'
26222 else
26223 ZLIB_LIBS='-lz'
26224 LIBS="$ZLIB_LIBS $LIBS"
26225
cristy8b350f62009-11-15 23:12:43 +000026226$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026227
cristy8b350f62009-11-15 23:12:43 +000026228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026229$as_echo "yes" >&6; }
26230 have_zlib='yes'
26231 fi
26232 else
cristy8b350f62009-11-15 23:12:43 +000026233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026234$as_echo "no" >&6; }
26235 fi
26236fi
26237 if test "$have_zlib" = 'yes'; then
26238 ZLIB_DELEGATE_TRUE=
26239 ZLIB_DELEGATE_FALSE='#'
26240else
26241 ZLIB_DELEGATE_TRUE='#'
26242 ZLIB_DELEGATE_FALSE=
26243fi
26244
26245
26246
26247#
26248# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26249#
26250LIB_DL=''
26251if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026253$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026254if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026255 $as_echo_n "(cached) " >&6
26256else
26257 ac_check_lib_save_LIBS=$LIBS
26258LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026260/* end confdefs.h. */
26261
26262/* Override any GCC internal prototype to avoid an error.
26263 Use char because int might match the return type of a GCC
26264 builtin and then its argument prototype would still apply. */
26265#ifdef __cplusplus
26266extern "C"
26267#endif
26268char dlopen ();
26269int
26270main ()
26271{
26272return dlopen ();
26273 ;
26274 return 0;
26275}
26276_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026277if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026278 ac_cv_lib_dl_dlopen=yes
26279else
cristy8b350f62009-11-15 23:12:43 +000026280 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026281fi
cristy8b350f62009-11-15 23:12:43 +000026282rm -f core conftest.err conftest.$ac_objext \
26283 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026284LIBS=$ac_check_lib_save_LIBS
26285fi
cristy8b350f62009-11-15 23:12:43 +000026286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026287$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026288if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026289 LIB_DL='-ldl'
26290fi
26291
26292 LIBS="$LIB_DL $LIBS"
26293fi
26294
26295
26296
26297#
26298# Check for Autotrace delegate library.
26299#
26300
26301# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026302if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026303 withval=$with_autotrace; with_autotrace=$withval
26304else
26305 with_autotrace='no'
26306fi
26307
26308
26309if test "$with_autotrace" != 'yes'; then
26310 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26311fi
26312
26313have_autotrace='no'
26314AUTOTRACE_CFLAGS=""
26315AUTOTRACE_LIBS=""
26316AUTOTRACE_PKG=""
26317if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026319$as_echo "-------------------------------------------------------------" >&6; }
26320
26321pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026323$as_echo_n "checking for AUTOTRACE... " >&6; }
26324
26325if test -n "$AUTOTRACE_CFLAGS"; then
26326 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26327 elif test -n "$PKG_CONFIG"; then
26328 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026329 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026330 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26331 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26333 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026334 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26335else
26336 pkg_failed=yes
26337fi
26338 else
26339 pkg_failed=untried
26340fi
26341if test -n "$AUTOTRACE_LIBS"; then
26342 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26343 elif test -n "$PKG_CONFIG"; then
26344 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026345 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026346 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26347 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26349 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026350 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26351else
26352 pkg_failed=yes
26353fi
26354 else
26355 pkg_failed=untried
26356fi
26357
26358
26359
26360if test $pkg_failed = yes; then
26361
26362if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26363 _pkg_short_errors_supported=yes
26364else
26365 _pkg_short_errors_supported=no
26366fi
26367 if test $_pkg_short_errors_supported = yes; then
26368 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26369 else
26370 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26371 fi
26372 # Put the nasty error message in config.log where it belongs
26373 echo "$AUTOTRACE_PKG_ERRORS" >&5
26374
cristy8b350f62009-11-15 23:12:43 +000026375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026376$as_echo "no" >&6; }
26377 have_autotrace=no
26378elif test $pkg_failed = untried; then
26379 have_autotrace=no
26380else
26381 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26382 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026384$as_echo "yes" >&6; }
26385 have_autotrace=yes
26386fi
cristy8b350f62009-11-15 23:12:43 +000026387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026388$as_echo "" >&6; }
26389fi
26390
26391if test "$have_autotrace" = 'yes'; then
26392 failed=0
26393
cristy8b350f62009-11-15 23:12:43 +000026394$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026395
26396 if test "$with_modules" = 'no'; then
26397 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26398 fi
26399fi
26400
26401 if test "$have_autotrace" = 'yes'; then
26402 AUTOTRACE_DELEGATE_TRUE=
26403 AUTOTRACE_DELEGATE_FALSE='#'
26404else
26405 AUTOTRACE_DELEGATE_TRUE='#'
26406 AUTOTRACE_DELEGATE_FALSE=
26407fi
26408
26409
26410
26411
26412
26413#
26414# Check for Display Postscript delegate library.
26415#
26416
26417# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026418if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026419 withval=$with_dps; with_dps=$withval
26420else
26421 with_dps='yes'
26422fi
26423
26424
26425if test "$with_dps" != 'yes'; then
26426 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26427fi
26428
26429have_dps='no'
26430DPS_LIBS=''
26431if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026433$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026435$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026437$as_echo "" >&6; }
26438 failed=0
26439 passed=0
26440 PERSIST_CPPFLAGS="$CPPFLAGS"
26441 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026442 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26443if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026444 passed=`expr $passed + 1`
26445else
26446 failed=`expr $failed + 1`
26447fi
26448
26449
26450 # DPS issues:
26451 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26452 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26453 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26454 # ImageMagick itself doesn't use -lXt.
26455 have_libdps='no'
26456 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026458$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026459if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026460 $as_echo_n "(cached) " >&6
26461else
26462 ac_check_lib_save_LIBS=$LIBS
26463LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026465/* end confdefs.h. */
26466
26467/* Override any GCC internal prototype to avoid an error.
26468 Use char because int might match the return type of a GCC
26469 builtin and then its argument prototype would still apply. */
26470#ifdef __cplusplus
26471extern "C"
26472#endif
26473char DPSInitialize ();
26474int
26475main ()
26476{
26477return DPSInitialize ();
26478 ;
26479 return 0;
26480}
26481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026482if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026483 ac_cv_lib_dps_DPSInitialize=yes
26484else
cristy8b350f62009-11-15 23:12:43 +000026485 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026486fi
cristy8b350f62009-11-15 23:12:43 +000026487rm -f core conftest.err conftest.$ac_objext \
26488 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026489LIBS=$ac_check_lib_save_LIBS
26490fi
cristy8b350f62009-11-15 23:12:43 +000026491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026492$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026493if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026494 have_libdps='yes'
26495else
26496 have_libdps='no'
26497fi
26498
26499 if test "$have_libdps" != 'yes'; then
26500 # Unset cache variable so we can try again.
26501 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026503$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026504if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026505 $as_echo_n "(cached) " >&6
26506else
26507 ac_check_lib_save_LIBS=$LIBS
26508LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026510/* end confdefs.h. */
26511
26512/* Override any GCC internal prototype to avoid an error.
26513 Use char because int might match the return type of a GCC
26514 builtin and then its argument prototype would still apply. */
26515#ifdef __cplusplus
26516extern "C"
26517#endif
26518char DPSInitialize ();
26519int
26520main ()
26521{
26522return DPSInitialize ();
26523 ;
26524 return 0;
26525}
26526_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026527if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026528 ac_cv_lib_dps_DPSInitialize=yes
26529else
cristy8b350f62009-11-15 23:12:43 +000026530 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026531fi
cristy8b350f62009-11-15 23:12:43 +000026532rm -f core conftest.err conftest.$ac_objext \
26533 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026534LIBS=$ac_check_lib_save_LIBS
26535fi
cristy8b350f62009-11-15 23:12:43 +000026536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026537$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026538if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026539 have_libdps='yes'
26540else
26541 have_libdps='no'
26542fi
26543
26544 if test "$have_libdps" = 'yes'; then
26545 LIBDPS_XT='-lXt'
26546 fi
26547 fi
26548 if test "$have_libdps" = 'yes'; then
26549 passed=`expr $passed + 1`
26550 else
26551 failed=`expr $failed + 1`
26552 fi
cristy8b350f62009-11-15 23:12:43 +000026553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026554$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026555if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026556 $as_echo_n "(cached) " >&6
26557else
26558 ac_check_lib_save_LIBS=$LIBS
26559LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026561/* end confdefs.h. */
26562
26563/* Override any GCC internal prototype to avoid an error.
26564 Use char because int might match the return type of a GCC
26565 builtin and then its argument prototype would still apply. */
26566#ifdef __cplusplus
26567extern "C"
26568#endif
26569char XDPSPixelsPerPoint ();
26570int
26571main ()
26572{
26573return XDPSPixelsPerPoint ();
26574 ;
26575 return 0;
26576}
26577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026578if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026579 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26580else
cristy8b350f62009-11-15 23:12:43 +000026581 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026582fi
cristy8b350f62009-11-15 23:12:43 +000026583rm -f core conftest.err conftest.$ac_objext \
26584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026585LIBS=$ac_check_lib_save_LIBS
26586fi
cristy8b350f62009-11-15 23:12:43 +000026587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026588$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026589if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026590 passed=`expr $passed + 1`
26591else
26592 failed=`expr $failed + 1`
26593fi
26594
cristy8b350f62009-11-15 23:12:43 +000026595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026596$as_echo_n "checking if DPS package is complete... " >&6; }
26597 if test $passed -gt 0; then
26598 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026600$as_echo "no -- some components failed test" >&6; }
26601 have_dps='no (failed tests)'
26602 CPPFLAGS="$PERSIST_CPPFLAGS"
26603 else
26604 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26605 LIBS="$DPS_LIBS $LIBS"
26606
cristy8b350f62009-11-15 23:12:43 +000026607$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026608
cristy8b350f62009-11-15 23:12:43 +000026609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026610$as_echo "yes" >&6; }
26611 have_dps='yes'
26612 fi
26613 else
cristy8b350f62009-11-15 23:12:43 +000026614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026615$as_echo "no" >&6; }
26616 CPPFLAGS=$PERSIST_CPPFLAGS
26617 fi
26618fi
26619 if test "$have_dps" = 'yes'; then
26620 DPS_DELEGATE_TRUE=
26621 DPS_DELEGATE_FALSE='#'
26622else
26623 DPS_DELEGATE_TRUE='#'
26624 DPS_DELEGATE_FALSE=
26625fi
26626
26627
26628
26629
26630#
26631# Check for DJVU delegate library.
26632#
26633
26634# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026635if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026636 withval=$with_djvu; with_djvu=$withval
26637else
26638 with_djvu='yes'
26639fi
26640
26641
26642if test "$with_djvu" != 'yes'; then
26643 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26644fi
26645
26646have_djvu='no'
26647DJVU_LIBS=''
26648if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026650$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026652$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026654$as_echo "" >&6; }
26655 failed=0
26656 passed=0
cristy8b350f62009-11-15 23:12:43 +000026657 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26658if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026659 passed=`expr $passed + 1`
26660else
26661 failed=`expr $failed + 1`
26662fi
26663
26664
cristy8b350f62009-11-15 23:12:43 +000026665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026666$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026667if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026668 $as_echo_n "(cached) " >&6
26669else
26670 ac_check_lib_save_LIBS=$LIBS
26671LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026673/* end confdefs.h. */
26674
26675/* Override any GCC internal prototype to avoid an error.
26676 Use char because int might match the return type of a GCC
26677 builtin and then its argument prototype would still apply. */
26678#ifdef __cplusplus
26679extern "C"
26680#endif
26681char ddjvu_context_create ();
26682int
26683main ()
26684{
26685return ddjvu_context_create ();
26686 ;
26687 return 0;
26688}
26689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026690if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026691 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26692else
cristy8b350f62009-11-15 23:12:43 +000026693 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026694fi
cristy8b350f62009-11-15 23:12:43 +000026695rm -f core conftest.err conftest.$ac_objext \
26696 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026697LIBS=$ac_check_lib_save_LIBS
26698fi
cristy8b350f62009-11-15 23:12:43 +000026699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026700$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026701if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026702 passed=`expr $passed + 1`
26703else
26704 failed=`expr $failed + 1`
26705fi
26706
cristy8b350f62009-11-15 23:12:43 +000026707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026708$as_echo_n "checking if DJVU package is complete... " >&6; }
26709 if test $passed -gt 0; then
26710 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026712$as_echo "no -- some components failed test" >&6; }
26713 have_djvu='no (failed tests)'
26714 else
26715 DJVU_LIBS='-ldjvulibre'
26716 LIBS="$DJVU_LIBS $LIBS"
26717
cristy8b350f62009-11-15 23:12:43 +000026718$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026719
cristy8b350f62009-11-15 23:12:43 +000026720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026721$as_echo "yes" >&6; }
26722 have_djvu='yes'
26723 fi
26724 else
cristy8b350f62009-11-15 23:12:43 +000026725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026726$as_echo "no" >&6; }
26727 fi
26728fi
26729 if test "$have_djvu" = 'yes'; then
26730 DJVU_DELEGATE_TRUE=
26731 DJVU_DELEGATE_FALSE='#'
26732else
26733 DJVU_DELEGATE_TRUE='#'
26734 DJVU_DELEGATE_FALSE=
26735fi
26736
26737
26738
26739
26740#
cristy430a7312010-01-21 20:44:04 +000026741# Set DejaVu font directory.
26742#
26743
26744# Check whether --with-dejavu-font-dir was given.
26745if test "${with_dejavu_font_dir+set}" = set; then :
26746 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26747else
26748 with_dejavu_font_dir='default'
26749fi
26750
26751
26752if test "$with_dejavu_font_dir" != 'default'; then
26753 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26754fi
26755
26756
26757#
cristy3ed852e2009-09-05 21:47:34 +000026758# Check for FFTW delegate library.
26759#
26760
26761# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026762if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026763 withval=$with_fftw; with_fftw=$withval
26764else
26765 with_fftw='yes'
26766fi
26767
26768
26769if test "$with_fftw" != 'yes'; then
26770 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26771fi
26772
26773have_fftw='no'
26774FFTW_LIBS=''
26775if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026777$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026779$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026781$as_echo "" >&6; }
26782 failed=0
26783 passed=0
cristy8b350f62009-11-15 23:12:43 +000026784 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26785if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026786 passed=`expr $passed + 1`
26787else
26788 failed=`expr $failed + 1`
26789fi
26790
26791
cristy8b350f62009-11-15 23:12:43 +000026792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026793$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026794if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026795 $as_echo_n "(cached) " >&6
26796else
26797 ac_check_lib_save_LIBS=$LIBS
26798LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026800/* end confdefs.h. */
26801
26802/* Override any GCC internal prototype to avoid an error.
26803 Use char because int might match the return type of a GCC
26804 builtin and then its argument prototype would still apply. */
26805#ifdef __cplusplus
26806extern "C"
26807#endif
26808char fftw_execute ();
26809int
26810main ()
26811{
26812return fftw_execute ();
26813 ;
26814 return 0;
26815}
26816_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026817if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026818 ac_cv_lib_fftw3_fftw_execute=yes
26819else
cristy8b350f62009-11-15 23:12:43 +000026820 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026821fi
cristy8b350f62009-11-15 23:12:43 +000026822rm -f core conftest.err conftest.$ac_objext \
26823 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026824LIBS=$ac_check_lib_save_LIBS
26825fi
cristy8b350f62009-11-15 23:12:43 +000026826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026827$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026828if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026829 passed=`expr $passed + 1`
26830else
26831 failed=`expr $failed + 1`
26832fi
26833
cristy8b350f62009-11-15 23:12:43 +000026834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026835$as_echo_n "checking if FFTW package is complete... " >&6; }
26836 if test $passed -gt 0; then
26837 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026839$as_echo "no -- some components failed test" >&6; }
26840 have_fftw='no (failed tests)'
26841 else
26842 FFTW_LIBS='-lfftw3'
26843 LIBS="$FFTW_LIBS $LIBS"
26844
cristy8b350f62009-11-15 23:12:43 +000026845$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026846
cristy8b350f62009-11-15 23:12:43 +000026847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026848$as_echo "yes" >&6; }
26849 have_fftw='yes'
26850 fi
26851 else
cristy8b350f62009-11-15 23:12:43 +000026852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026853$as_echo "no" >&6; }
26854 fi
26855fi
26856 if test "$have_fftw" = 'yes'; then
26857 FFTW_DELEGATE_TRUE=
26858 FFTW_DELEGATE_FALSE='#'
26859else
26860 FFTW_DELEGATE_TRUE='#'
26861 FFTW_DELEGATE_FALSE=
26862fi
26863
26864
26865
26866
26867#
26868# Check for FlashPIX delegate library.
26869#
26870
26871# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026872if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026873 withval=$with_fpx; with_fpx=$withval
26874else
26875 with_fpx='yes'
26876fi
26877
26878
26879if test "$with_fpx" != 'yes'; then
26880 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26881fi
26882
26883have_fpx='no'
26884FPX_LIBS=''
26885if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026887$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026889$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026891$as_echo "" >&6; }
26892 failed=0
26893 passed=0
26894 ac_ext=cpp
26895ac_cpp='$CXXCPP $CPPFLAGS'
26896ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26897ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26898ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26899
26900
cristy8b350f62009-11-15 23:12:43 +000026901ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26902if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026903 passed=`expr $passed + 1`
26904else
26905 failed=`expr $failed + 1`
26906fi
26907
26908
cristy8b350f62009-11-15 23:12:43 +000026909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026910$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026911if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026912 $as_echo_n "(cached) " >&6
26913else
26914 ac_check_lib_save_LIBS=$LIBS
26915LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026917/* end confdefs.h. */
26918
26919/* Override any GCC internal prototype to avoid an error.
26920 Use char because int might match the return type of a GCC
26921 builtin and then its argument prototype would still apply. */
26922#ifdef __cplusplus
26923extern "C"
26924#endif
26925char FPX_OpenImageByFilename ();
26926int
26927main ()
26928{
26929return FPX_OpenImageByFilename ();
26930 ;
26931 return 0;
26932}
26933_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026934if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026935 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26936else
cristy8b350f62009-11-15 23:12:43 +000026937 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026938fi
cristy8b350f62009-11-15 23:12:43 +000026939rm -f core conftest.err conftest.$ac_objext \
26940 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026941LIBS=$ac_check_lib_save_LIBS
26942fi
cristy8b350f62009-11-15 23:12:43 +000026943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026944$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026945if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026946 passed=`expr $passed + 1`
26947else
26948 failed=`expr $failed + 1`
26949fi
26950
26951 ac_ext=c
26952ac_cpp='$CPP $CPPFLAGS'
26953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26955ac_compiler_gnu=$ac_cv_c_compiler_gnu
26956
cristy8b350f62009-11-15 23:12:43 +000026957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026958$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26959 if test $passed -gt 0; then
26960 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026962$as_echo "no -- some components failed test" >&6; }
26963 have_fpx='no (failed tests)'
26964 else
26965 FPX_LIBS='-lfpx'
26966
cristy8b350f62009-11-15 23:12:43 +000026967$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026968
cristy8b350f62009-11-15 23:12:43 +000026969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026970$as_echo "yes" >&6; }
26971 have_fpx='yes'
26972 PERLMAINCC="$CXX"
26973 fi
26974 else
cristy8b350f62009-11-15 23:12:43 +000026975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026976$as_echo "no" >&6; }
26977 fi
26978fi
26979 if test "$have_fpx" = 'yes'; then
26980 FPX_DELEGATE_TRUE=
26981 FPX_DELEGATE_FALSE='#'
26982else
26983 FPX_DELEGATE_TRUE='#'
26984 FPX_DELEGATE_FALSE=
26985fi
26986
26987
26988
26989
26990#
26991# Check for fontconfig delegate library.
26992#
26993
26994# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026995if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026996 withval=$with_fontconfig; with_fontconfig=$withval
26997else
26998 with_fontconfig=$have_x
26999fi
27000
27001
27002if test "$with_fontconfig" != 'yes'; then
27003 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27004fi
27005
27006have_fontconfig='no'
27007FONTCONFIG_CFLAGS=""
27008FONTCONFIG_LIBS=""
27009FONTCONFIG_PKG=""
27010if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027012$as_echo "-------------------------------------------------------------" >&6; }
27013
27014pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027016$as_echo_n "checking for FONTCONFIG... " >&6; }
27017
27018if test -n "$FONTCONFIG_CFLAGS"; then
27019 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27020 elif test -n "$PKG_CONFIG"; then
27021 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027022 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027023 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27024 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27026 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027027 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27028else
27029 pkg_failed=yes
27030fi
27031 else
27032 pkg_failed=untried
27033fi
27034if test -n "$FONTCONFIG_LIBS"; then
27035 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27036 elif test -n "$PKG_CONFIG"; then
27037 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027038 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027039 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27040 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27042 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027043 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27044else
27045 pkg_failed=yes
27046fi
27047 else
27048 pkg_failed=untried
27049fi
27050
27051
27052
27053if test $pkg_failed = yes; then
27054
27055if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27056 _pkg_short_errors_supported=yes
27057else
27058 _pkg_short_errors_supported=no
27059fi
27060 if test $_pkg_short_errors_supported = yes; then
27061 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27062 else
27063 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27064 fi
27065 # Put the nasty error message in config.log where it belongs
27066 echo "$FONTCONFIG_PKG_ERRORS" >&5
27067
cristy8b350f62009-11-15 23:12:43 +000027068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027069$as_echo "no" >&6; }
27070 have_fontconfig=no
27071elif test $pkg_failed = untried; then
27072 have_fontconfig=no
27073else
27074 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27075 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027077$as_echo "yes" >&6; }
27078 have_fontconfig=yes
27079fi
cristy8b350f62009-11-15 23:12:43 +000027080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027081$as_echo "" >&6; }
27082fi
27083
27084if test "$have_fontconfig" = 'yes'; then
27085
cristy8b350f62009-11-15 23:12:43 +000027086$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027087
cristyd09bcf92010-03-25 03:04:45 +000027088 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027089 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027090 fi
cristy3ed852e2009-09-05 21:47:34 +000027091fi
27092
27093 if test "$have_fontconfig" = 'yes'; then
27094 FONTCONFIG_DELEGATE_TRUE=
27095 FONTCONFIG_DELEGATE_FALSE='#'
27096else
27097 FONTCONFIG_DELEGATE_TRUE='#'
27098 FONTCONFIG_DELEGATE_FALSE=
27099fi
27100
27101
27102
27103
27104
27105#
27106# Check for freetype delegate library.
27107#
27108
27109# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027110if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027111 withval=$with_freetype; with_freetype=$withval
27112else
27113 with_freetype='yes'
27114fi
27115
27116
27117
27118if test "$with_freetype" != 'yes'; then
27119 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27120fi
27121
27122have_freetype='no'
27123FREETYPE_LIBS=''
27124if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027126$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027128$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027130$as_echo "" >&6; }
27131 failed=0
27132 passed=0
cristy66291112009-10-03 22:44:36 +000027133 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027134 PERSIST_CPPFLAGS="$CPPFLAGS"
27135 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27136 :
27137 else
27138 freetype_config=''
27139 for ac_prog in freetype-config
27140do
27141 # Extract the first word of "$ac_prog", so it can be a program name with args.
27142set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027144$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027145if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027146 $as_echo_n "(cached) " >&6
27147else
27148 if test -n "$freetype_config"; then
27149 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27150else
27151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27152for as_dir in $PATH
27153do
27154 IFS=$as_save_IFS
27155 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027156 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27158 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027160 break 2
27161 fi
27162done
cristy8b350f62009-11-15 23:12:43 +000027163 done
cristy3ed852e2009-09-05 21:47:34 +000027164IFS=$as_save_IFS
27165
27166fi
27167fi
27168freetype_config=$ac_cv_prog_freetype_config
27169if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027171$as_echo "$freetype_config" >&6; }
27172else
cristy8b350f62009-11-15 23:12:43 +000027173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027174$as_echo "no" >&6; }
27175fi
27176
27177
27178 test -n "$freetype_config" && break
27179done
27180 if test -n "$freetype_config"; then
27181 freetype_cflags=`$freetype_config --cflags`
27182 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027183 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027184 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27185 fi
27186 fi
27187
27188 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027190$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027191if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027192 $as_echo_n "(cached) " >&6
27193else
27194 ac_check_lib_save_LIBS=$LIBS
27195LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027197/* end confdefs.h. */
27198
27199/* Override any GCC internal prototype to avoid an error.
27200 Use char because int might match the return type of a GCC
27201 builtin and then its argument prototype would still apply. */
27202#ifdef __cplusplus
27203extern "C"
27204#endif
27205char FT_Init_FreeType ();
27206int
27207main ()
27208{
27209return FT_Init_FreeType ();
27210 ;
27211 return 0;
27212}
27213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027214if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027215 ac_cv_lib_freetype_FT_Init_FreeType=yes
27216else
cristy8b350f62009-11-15 23:12:43 +000027217 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027218fi
cristy8b350f62009-11-15 23:12:43 +000027219rm -f core conftest.err conftest.$ac_objext \
27220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027221LIBS=$ac_check_lib_save_LIBS
27222fi
cristy8b350f62009-11-15 23:12:43 +000027223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027224$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027225if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027226 FREETYPE_LIBS='-lfreetype'
27227fi
27228
27229 if test "$FREETYPE_LIBS" != ''; then
27230 passed=`expr $passed + 1`
27231 else
27232 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027233 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027234 fi
27235 fi
27236
cristy8b350f62009-11-15 23:12:43 +000027237 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27238if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027239 FT2BUILD_H='#include <ft2build.h>'
27240else
27241 ft2build=''
27242fi
27243
27244
cristy8b350f62009-11-15 23:12:43 +000027245 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27246"
27247if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027248 have_freetype_h='yes'
27249else
27250 have_freetype_h='no'
27251fi
27252
27253
27254 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27255 passed=`expr $passed + 1`
27256 else
27257 failed=`expr $failed + 1`
27258 CPPFLAGS="$PERSIST_CPPFLAGS"
27259 fi
27260
cristy8b350f62009-11-15 23:12:43 +000027261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027262$as_echo_n "checking if FreeType package is complete... " >&6; }
27263 if test $passed -gt 0; then
27264 if test $failed -gt 0; then
27265 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027267$as_echo "no -- some components failed test" >&6; }
27268 have_freetype='no (failed tests)'
27269 else
27270 LIBS="$FREETYPE_LIBS $LIBS"
27271
cristy8b350f62009-11-15 23:12:43 +000027272$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027273
27274 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27275
cristy8b350f62009-11-15 23:12:43 +000027276$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027277
27278 fi
cristy8b350f62009-11-15 23:12:43 +000027279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027280$as_echo "yes" >&6; }
27281 have_freetype='yes'
27282 fi
27283 else
cristy8b350f62009-11-15 23:12:43 +000027284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027285$as_echo "no" >&6; }
27286 fi
27287fi
27288 if test "$have_freetype" = 'yes'; then
27289 FREETYPE_DELEGATE_TRUE=
27290 FREETYPE_DELEGATE_FALSE='#'
27291else
27292 FREETYPE_DELEGATE_TRUE='#'
27293 FREETYPE_DELEGATE_FALSE=
27294fi
27295
27296
27297
27298
27299
27300#
27301# Check for Ghostscript library or framework.
27302#
27303# Test for iapi.h & test for gsapi_new_instance in -lgs
27304# or -framework Ghostscript
27305
27306
27307# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027308if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027309 withval=$with_gslib; with_gslib=$withval
27310else
27311 with_gslib='no'
27312fi
27313
27314
cristyb7931f12009-09-25 10:22:21 +000027315gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027316if test "$with_gslib" != 'yes'; then
27317 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27318fi
27319
27320have_gslib='no'
27321GS_LIBS=''
27322if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027324$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027326$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027328$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027329 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027330 failed=0
27331 passed=0
cristy8b350f62009-11-15 23:12:43 +000027332 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27333if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027334 passed=`expr $passed + 1`
27335else
27336 failed=`expr $failed + 1`
27337fi
27338
27339
cristy8b350f62009-11-15 23:12:43 +000027340 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27341if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027342 passed=`expr $passed + 1`
27343else
27344 failed=`expr $failed + 1`
27345fi
27346
27347
cristy8b350f62009-11-15 23:12:43 +000027348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027349$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027350if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027351 $as_echo_n "(cached) " >&6
27352else
27353 ac_check_framework_save_LIBS=$LIBS
27354LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027356/* end confdefs.h. */
27357
27358/* Override any GCC internal prototype to avoid an error.
27359 Use char because int might match the return type of a GCC
27360 builtin and then its argument prototype would still apply. */
27361#ifdef __cplusplus
27362extern "C"
27363#endif
27364char gsapi_new_instance ();
27365int
27366main ()
27367{
27368return gsapi_new_instance ();
27369 ;
27370 return 0;
27371}
27372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027373if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027374 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27375else
cristy8b350f62009-11-15 23:12:43 +000027376 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027377fi
cristy8b350f62009-11-15 23:12:43 +000027378rm -f core conftest.err conftest.$ac_objext \
27379 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027380LIBS=$ac_check_framework_save_LIBS
27381fi
cristy8b350f62009-11-15 23:12:43 +000027382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027383$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027384if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027385 framework=`expr $framework + 1`
27386else
cristy8b350f62009-11-15 23:12:43 +000027387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027388$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027389if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027390 $as_echo_n "(cached) " >&6
27391else
27392 ac_check_lib_save_LIBS=$LIBS
27393LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027395/* end confdefs.h. */
27396
27397/* Override any GCC internal prototype to avoid an error.
27398 Use char because int might match the return type of a GCC
27399 builtin and then its argument prototype would still apply. */
27400#ifdef __cplusplus
27401extern "C"
27402#endif
27403char gsapi_new_instance ();
27404int
27405main ()
27406{
27407return gsapi_new_instance ();
27408 ;
27409 return 0;
27410}
27411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027412if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027413 ac_cv_lib_gs_gsapi_new_instance=yes
27414else
cristy8b350f62009-11-15 23:12:43 +000027415 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027416fi
cristy8b350f62009-11-15 23:12:43 +000027417rm -f core conftest.err conftest.$ac_objext \
27418 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027419LIBS=$ac_check_lib_save_LIBS
27420fi
cristy8b350f62009-11-15 23:12:43 +000027421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027422$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027423if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027424 passed=`expr $passed + 1`
27425else
27426 failed=`expr $failed + 1`
27427fi
27428
27429fi
cristy8b350f62009-11-15 23:12:43 +000027430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027431$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27432 if test $passed -gt 0; then
27433 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027435$as_echo "no -- some components failed test" >&6; }
27436 have_gslib='no (failed tests)'
27437 else
27438 if test $framework -gt 0; then
27439 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027440 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027442$as_echo "yes, using framework." >&6; }
27443 else
cristy8b350f62009-11-15 23:12:43 +000027444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027445$as_echo "yes, using library." >&6; }
27446 GS_LIBS='-lgs'
27447 fi
27448 LIBS="$GS_LIBS $LIBS"
27449
cristy8b350f62009-11-15 23:12:43 +000027450$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027451
27452 have_gslib='yes'
27453 fi
27454 else
cristy8b350f62009-11-15 23:12:43 +000027455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027456$as_echo "no" >&6; }
27457 fi
27458fi
27459 if test "$have_gslib" = 'yes'; then
27460 GS_DELEGATE_TRUE=
27461 GS_DELEGATE_FALSE='#'
27462else
27463 GS_DELEGATE_TRUE='#'
27464 GS_DELEGATE_FALSE=
27465fi
27466
27467
27468
27469# Set default font search path
27470
27471# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027472if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027473 withval=$with_fontpath; with_fontpath=$withval
27474else
27475 with_fontpath=''
27476fi
27477
27478
27479if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27480 with_fontpath=''
27481else
27482
27483cat >>confdefs.h <<_ACEOF
27484#define MAGICK_FONT_PATH "$with_fontpath"
27485_ACEOF
27486
27487fi
27488if test "$with_fontpath=" != ''; then
27489 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27490fi
27491
27492# Set Ghostscript font directory
27493
27494# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027495if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027496 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27497else
27498 with_gs_font_dir='default'
27499fi
27500
27501
27502if test "$with_gs_font_dir" != 'default'; then
27503 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27504fi
27505
27506
27507#
27508# Check for GVC delegate library.
27509#
27510
27511# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027512if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027513 withval=$with_gvc; with_gvc=$withval
27514else
27515 with_gvc='yes'
27516fi
27517
27518
27519if test "$with_gvc" != 'yes'; then
27520 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27521fi
27522
27523GVC_PKG=""
27524if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027526$as_echo "-------------------------------------------------------------" >&6; }
27527
27528pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027530$as_echo_n "checking for GVC... " >&6; }
27531
27532if test -n "$GVC_CFLAGS"; then
27533 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27534 elif test -n "$PKG_CONFIG"; then
27535 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027536 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027537 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27538 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27540 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027541 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27542else
27543 pkg_failed=yes
27544fi
27545 else
27546 pkg_failed=untried
27547fi
27548if test -n "$GVC_LIBS"; then
27549 pkg_cv_GVC_LIBS="$GVC_LIBS"
27550 elif test -n "$PKG_CONFIG"; then
27551 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027552 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027553 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27554 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27556 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027557 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27558else
27559 pkg_failed=yes
27560fi
27561 else
27562 pkg_failed=untried
27563fi
27564
27565
27566
27567if test $pkg_failed = yes; then
27568
27569if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27570 _pkg_short_errors_supported=yes
27571else
27572 _pkg_short_errors_supported=no
27573fi
27574 if test $_pkg_short_errors_supported = yes; then
27575 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27576 else
27577 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27578 fi
27579 # Put the nasty error message in config.log where it belongs
27580 echo "$GVC_PKG_ERRORS" >&5
27581
cristy8b350f62009-11-15 23:12:43 +000027582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027583$as_echo "no" >&6; }
27584 have_gvc=no
27585elif test $pkg_failed = untried; then
27586 have_gvc=no
27587else
27588 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27589 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027591$as_echo "yes" >&6; }
27592 have_gvc=yes
27593fi
cristy8b350f62009-11-15 23:12:43 +000027594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027595$as_echo "" >&6; }
27596fi
27597
27598if test "$have_gvc" = 'yes'; then
27599
cristy8b350f62009-11-15 23:12:43 +000027600$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027601
27602 if test "$with_modules" = 'no'; then
27603 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27604 fi
27605fi
27606
27607 if test "$have_gvc" = 'yes'; then
27608 GVC_DELEGATE_TRUE=
27609 GVC_DELEGATE_FALSE='#'
27610else
27611 GVC_DELEGATE_TRUE='#'
27612 GVC_DELEGATE_FALSE=
27613fi
27614
27615
27616
27617
27618
27619#
27620# Check for JBIG delegate library.
27621#
27622
27623
27624# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027625if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027626 withval=$with_jbig; with_jbig=$withval
27627else
27628 with_jbig='yes'
27629fi
27630
27631
27632have_jbig='no'
27633JBIG_LIBS=''
27634if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027636$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027638$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027640$as_echo "" >&6; }
27641 failed=0
27642 passed=0
cristy8b350f62009-11-15 23:12:43 +000027643 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27644if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027645 passed=`expr $passed + 1`
27646else
27647 failed=`expr $failed + 1`
27648fi
27649
27650
cristy8b350f62009-11-15 23:12:43 +000027651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027652$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027653if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027654 $as_echo_n "(cached) " >&6
27655else
27656 ac_check_lib_save_LIBS=$LIBS
27657LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027659/* end confdefs.h. */
27660
27661/* Override any GCC internal prototype to avoid an error.
27662 Use char because int might match the return type of a GCC
27663 builtin and then its argument prototype would still apply. */
27664#ifdef __cplusplus
27665extern "C"
27666#endif
27667char jbg_dec_init ();
27668int
27669main ()
27670{
27671return jbg_dec_init ();
27672 ;
27673 return 0;
27674}
27675_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027676if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027677 ac_cv_lib_jbig_jbg_dec_init=yes
27678else
cristy8b350f62009-11-15 23:12:43 +000027679 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027680fi
cristy8b350f62009-11-15 23:12:43 +000027681rm -f core conftest.err conftest.$ac_objext \
27682 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027683LIBS=$ac_check_lib_save_LIBS
27684fi
cristy8b350f62009-11-15 23:12:43 +000027685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027686$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027687if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027688 passed=`expr $passed + 1`
27689else
27690 failed=`expr $failed + 1`
27691fi
27692
cristy8b350f62009-11-15 23:12:43 +000027693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027694$as_echo_n "checking if JBIG package is complete... " >&6; }
27695 if test $passed -gt 0; then
27696 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027698$as_echo "no -- some components failed test" >&6; }
27699 have_jbig='no (failed tests)'
27700 else
27701 JBIG_LIBS='-ljbig'
27702 LIBS="$JBIG_LIBS $LIBS"
27703
cristy8b350f62009-11-15 23:12:43 +000027704$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027705
cristy8b350f62009-11-15 23:12:43 +000027706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027707$as_echo "yes" >&6; }
27708 have_jbig='yes'
27709 fi
27710 else
cristy8b350f62009-11-15 23:12:43 +000027711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027712$as_echo "no" >&6; }
27713 fi
27714fi
27715 if test "$have_jbig" = 'yes'; then
27716 JBIG_DELEGATE_TRUE=
27717 JBIG_DELEGATE_FALSE='#'
27718else
27719 JBIG_DELEGATE_TRUE='#'
27720 JBIG_DELEGATE_FALSE=
27721fi
27722
27723
27724
27725
27726#
27727# Check for JPEG delegate library.
27728#
27729
27730# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027731if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027732 withval=$with_jpeg; with_jpeg=$withval
27733else
27734 with_jpeg='yes'
27735fi
27736
27737
27738if test "$with_jpeg" != 'yes'; then
27739 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27740fi
27741
27742have_jpeg='no'
27743JPEG_LIBS=''
27744if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027746$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027748$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027750$as_echo "" >&6; }
27751 failed=0
27752 passed=0
cristy8b350f62009-11-15 23:12:43 +000027753 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27754if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027755 passed=`expr $passed + 1`
27756else
27757 failed=`expr $failed + 1`
27758fi
27759
27760
cristy8b350f62009-11-15 23:12:43 +000027761 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27762if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027763 passed=`expr $passed + 1`
27764else
27765 failed=`expr $failed + 1`
27766fi
27767
27768
cristy8b350f62009-11-15 23:12:43 +000027769 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27770if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027771 passed=`expr $passed + 1`
27772else
27773 failed=`expr $failed + 1`
27774fi
27775
27776
cristy8b350f62009-11-15 23:12:43 +000027777 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27778if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027779 passed=`expr $passed + 1`
27780else
27781 failed=`expr $failed + 1`
27782fi
27783
27784
cristy8b350f62009-11-15 23:12:43 +000027785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027786$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027787if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027788 $as_echo_n "(cached) " >&6
27789else
27790 ac_check_lib_save_LIBS=$LIBS
27791LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027793/* end confdefs.h. */
27794
27795/* Override any GCC internal prototype to avoid an error.
27796 Use char because int might match the return type of a GCC
27797 builtin and then its argument prototype would still apply. */
27798#ifdef __cplusplus
27799extern "C"
27800#endif
27801char jpeg_read_header ();
27802int
27803main ()
27804{
27805return jpeg_read_header ();
27806 ;
27807 return 0;
27808}
27809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027810if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027811 ac_cv_lib_jpeg_jpeg_read_header=yes
27812else
cristy8b350f62009-11-15 23:12:43 +000027813 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027814fi
cristy8b350f62009-11-15 23:12:43 +000027815rm -f core conftest.err conftest.$ac_objext \
27816 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027817LIBS=$ac_check_lib_save_LIBS
27818fi
cristy8b350f62009-11-15 23:12:43 +000027819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027820$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027821if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027822 passed=`expr $passed + 1`
27823else
27824 failed=`expr $failed + 1`
27825fi
27826
27827
27828# Test for compatible JPEG library
27829if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027831$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027832if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027833 $as_echo_n "(cached) " >&6
27834else
cristy8b350f62009-11-15 23:12:43 +000027835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027836/* end confdefs.h. */
27837#include <stdio.h>
27838#include <stdlib.h>
27839#include <jpeglib.h>
27840
27841int
27842main ()
27843{
27844
27845#if JPEG_LIB_VERSION < 62
27846#error IJG JPEG library must be version 6b or newer!
27847#endif
27848return 0;
27849
27850 ;
27851 return 0;
27852}
27853_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027854if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027855 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27856else
cristy8b350f62009-11-15 23:12:43 +000027857 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027858fi
cristy3ed852e2009-09-05 21:47:34 +000027859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27860fi
cristy8b350f62009-11-15 23:12:43 +000027861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027862$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27863fi
cristy8b350f62009-11-15 23:12:43 +000027864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027865$as_echo_n "checking if JPEG package is complete... " >&6; }
27866 if test $passed -gt 0; then
27867 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027869$as_echo "no -- some components failed test" >&6; }
27870 have_jpeg='no (failed tests)'
27871 else
27872 JPEG_LIBS='-ljpeg'
27873 LIBS="$JPEG_LIBS $LIBS"
27874
cristy8b350f62009-11-15 23:12:43 +000027875$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027876
cristy8b350f62009-11-15 23:12:43 +000027877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027878$as_echo "yes" >&6; }
27879 have_jpeg='yes'
27880 fi
27881 else
cristy8b350f62009-11-15 23:12:43 +000027882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027883$as_echo "no" >&6; }
27884 fi
27885fi
27886 if test "$have_jpeg" = 'yes'; then
27887 JPEG_DELEGATE_TRUE=
27888 JPEG_DELEGATE_FALSE='#'
27889else
27890 JPEG_DELEGATE_TRUE='#'
27891 JPEG_DELEGATE_FALSE=
27892fi
27893
27894
27895
27896
27897#
27898# Check for JPEG Version 2 delegate library.
27899#
27900
27901# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027902if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027903 withval=$with_jp2; with_jp2=$withval
27904else
27905 with_jp2='yes'
27906fi
27907
27908
27909if test "$with_jp2" != 'yes'; then
27910 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27911fi
27912
27913have_jp2='no'
27914JP2_LIBS=''
27915if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027917$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027919$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027921$as_echo "" >&6; }
27922 failed=0
27923 passed=0
cristy8b350f62009-11-15 23:12:43 +000027924 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27925if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027926 passed=`expr $passed + 1`
27927else
27928 failed=`expr $failed + 1`
27929fi
27930
27931
cristy8b350f62009-11-15 23:12:43 +000027932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027933$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027934if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027935 $as_echo_n "(cached) " >&6
27936else
27937 ac_check_lib_save_LIBS=$LIBS
27938LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027940/* end confdefs.h. */
27941
27942/* Override any GCC internal prototype to avoid an error.
27943 Use char because int might match the return type of a GCC
27944 builtin and then its argument prototype would still apply. */
27945#ifdef __cplusplus
27946extern "C"
27947#endif
27948char jas_stream_fopen ();
27949int
27950main ()
27951{
27952return jas_stream_fopen ();
27953 ;
27954 return 0;
27955}
27956_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027957if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027958 ac_cv_lib_jasper_jas_stream_fopen=yes
27959else
cristy8b350f62009-11-15 23:12:43 +000027960 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027961fi
cristy8b350f62009-11-15 23:12:43 +000027962rm -f core conftest.err conftest.$ac_objext \
27963 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027964LIBS=$ac_check_lib_save_LIBS
27965fi
cristy8b350f62009-11-15 23:12:43 +000027966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027967$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027968if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027969 passed=`expr $passed + 1`
27970else
27971 failed=`expr $failed + 1`
27972fi
27973
cristy8b350f62009-11-15 23:12:43 +000027974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027975$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27976 if test $passed -gt 0; then
27977 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027979$as_echo "no -- some components failed test" >&6; }
27980 have_jp2='no (failed tests)'
27981 else
27982 JP2_LIBS='-ljasper'
27983 LIBS="$JP2_LIBS $LIBS"
27984
cristy8b350f62009-11-15 23:12:43 +000027985$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027986
cristy8b350f62009-11-15 23:12:43 +000027987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027988$as_echo "yes" >&6; }
27989 have_jp2='yes'
27990 fi
27991 else
cristy8b350f62009-11-15 23:12:43 +000027992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027993$as_echo "no" >&6; }
27994 fi
27995fi
27996 if test "$have_jp2" = 'yes'; then
27997 JP2_DELEGATE_TRUE=
27998 JP2_DELEGATE_FALSE='#'
27999else
28000 JP2_DELEGATE_TRUE='#'
28001 JP2_DELEGATE_FALSE=
28002fi
28003
28004
28005
28006
28007#
28008# Check for LCMS delegate library.
28009#
28010
28011# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028012if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028013 withval=$with_lcms; with_lcms=$withval
28014else
28015 with_lcms='yes'
28016fi
28017
28018
28019if test "$with_lcms" != 'yes'; then
28020 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28021fi
28022
28023have_lcms='no'
28024LCMS_LIBS=''
28025if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028027$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028029$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028031$as_echo "" >&6; }
28032 failed=0
28033 passed=0
28034 have_lcms_header='no'
cristyd09bcf92010-03-25 03:04:45 +000028035 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28036if test "x$ac_cv_header_lcms2_h" = x""yes; then :
28037 have_lcms_header='yes'
28038fi
28039
28040
28041 if test "$have_lcms_header" = 'yes'; then
28042 passed=`expr $passed + 1`
28043
28044$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28045
28046 else
28047 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms2.h" "ac_cv_header_lcms_lcms2_h" "$ac_includes_default"
28048if test "x$ac_cv_header_lcms_lcms2_h" = x""yes; then :
28049 have_lcms_header='yes'
28050fi
28051
28052
28053 if test "$have_lcms_header" = 'yes'; then
28054 passed=`expr $passed + 1`
28055
28056$as_echo "#define HAVE_LCMS_LCMS2_H 1" >>confdefs.h
28057
28058 else
28059 failed=`expr $failed + 1`
28060 fi
28061 fi
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms2" >&5
28063$as_echo_n "checking for cmsOpenProfileFromMem in -llcms2... " >&6; }
28064if test "${ac_cv_lib_lcms2_cmsOpenProfileFromMem+set}" = set; then :
28065 $as_echo_n "(cached) " >&6
28066else
28067 ac_check_lib_save_LIBS=$LIBS
28068LIBS="-llcms2 $LIBS"
28069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28070/* end confdefs.h. */
28071
28072/* Override any GCC internal prototype to avoid an error.
28073 Use char because int might match the return type of a GCC
28074 builtin and then its argument prototype would still apply. */
28075#ifdef __cplusplus
28076extern "C"
28077#endif
28078char cmsOpenProfileFromMem ();
28079int
28080main ()
28081{
28082return cmsOpenProfileFromMem ();
28083 ;
28084 return 0;
28085}
28086_ACEOF
28087if ac_fn_c_try_link "$LINENO"; then :
28088 ac_cv_lib_lcms2_cmsOpenProfileFromMem=yes
28089else
28090 ac_cv_lib_lcms2_cmsOpenProfileFromMem=no
28091fi
28092rm -f core conftest.err conftest.$ac_objext \
28093 conftest$ac_exeext conftest.$ac_ext
28094LIBS=$ac_check_lib_save_LIBS
28095fi
28096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&5
28097$as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&6; }
28098if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromMem" = x""yes; then :
28099 passed=`expr $passed + 1`
28100else
28101 failed=`expr $failed + 1`
28102fi
28103
28104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS2 package is complete" >&5
28105$as_echo_n "checking if LCMS2 package is complete... " >&6; }
28106 if test $passed -gt 0; then
28107 if test $failed -gt 0; then
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28109$as_echo "no -- some components failed test" >&6; }
28110 have_lcms='no (failed tests)'
28111 else
28112 LCMS_LIBS='-llcms2'
28113 LIBS="$LCMS_LIBS $LIBS"
28114
28115$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28116
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28118$as_echo "yes" >&6; }
28119 have_lcms='yes'
28120 fi
28121 else
28122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28123$as_echo "no" >&6; }
28124 fi
28125fi
28126
28127if test "$with_lcms" != 'no'; then
28128if test "$have_lcms" == 'no'; then
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28130$as_echo "-------------------------------------------------------------" >&6; }
28131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
28132$as_echo_n "checking for LCMS... " >&6; }
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28134$as_echo "" >&6; }
28135 failed=0
28136 passed=0
28137 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000028138 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
28139if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028140 have_lcms_header='yes'
28141fi
28142
28143
28144 if test "$have_lcms_header" = 'yes'; then
28145 passed=`expr $passed + 1`
28146
cristy8b350f62009-11-15 23:12:43 +000028147$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028148
28149 else
cristy8b350f62009-11-15 23:12:43 +000028150 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28151if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028152 have_lcms_header='yes'
28153fi
28154
28155
28156 if test "$have_lcms_header" = 'yes'; then
28157 passed=`expr $passed + 1`
28158
cristy8b350f62009-11-15 23:12:43 +000028159$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028160
28161 else
28162 failed=`expr $failed + 1`
28163 fi
28164 fi
cristy8b350f62009-11-15 23:12:43 +000028165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000028166$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028167if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028168 $as_echo_n "(cached) " >&6
28169else
28170 ac_check_lib_save_LIBS=$LIBS
28171LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028173/* end confdefs.h. */
28174
28175/* Override any GCC internal prototype to avoid an error.
28176 Use char because int might match the return type of a GCC
28177 builtin and then its argument prototype would still apply. */
28178#ifdef __cplusplus
28179extern "C"
28180#endif
28181char cmsOpenProfileFromMem ();
28182int
28183main ()
28184{
28185return cmsOpenProfileFromMem ();
28186 ;
28187 return 0;
28188}
28189_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028190if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028191 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
28192else
cristy8b350f62009-11-15 23:12:43 +000028193 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000028194fi
cristy8b350f62009-11-15 23:12:43 +000028195rm -f core conftest.err conftest.$ac_objext \
28196 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028197LIBS=$ac_check_lib_save_LIBS
28198fi
cristy8b350f62009-11-15 23:12:43 +000028199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000028200$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028201if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028202 passed=`expr $passed + 1`
28203else
28204 failed=`expr $failed + 1`
28205fi
28206
cristy8b350f62009-11-15 23:12:43 +000028207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028208$as_echo_n "checking if LCMS package is complete... " >&6; }
28209 if test $passed -gt 0; then
28210 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028212$as_echo "no -- some components failed test" >&6; }
28213 have_lcms='no (failed tests)'
28214 else
28215 LCMS_LIBS='-llcms'
28216 LIBS="$LCMS_LIBS $LIBS"
28217
cristy8b350f62009-11-15 23:12:43 +000028218$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028219
cristy8b350f62009-11-15 23:12:43 +000028220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028221$as_echo "yes" >&6; }
28222 have_lcms='yes'
28223 fi
28224 else
cristy8b350f62009-11-15 23:12:43 +000028225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028226$as_echo "no" >&6; }
28227 fi
28228fi
cristyd09bcf92010-03-25 03:04:45 +000028229fi
cristy3ed852e2009-09-05 21:47:34 +000028230 if test "$have_lcms" = 'yes'; then
28231 LCMS_DELEGATE_TRUE=
28232 LCMS_DELEGATE_FALSE='#'
28233else
28234 LCMS_DELEGATE_TRUE='#'
28235 LCMS_DELEGATE_FALSE=
28236fi
28237
28238
28239
28240
28241#
28242# Check for the LQR (Liquid Rescale) delegate library.
28243#
28244
28245# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028246if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028247 withval=$with_lqr; with_lqr=$withval
28248else
28249 with_lqr='yes'
28250fi
28251
28252
28253if test "$with_lqr" != 'yes'; then
28254 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28255fi
28256
28257have_lqr='no'
28258LQR_CFLAGS=""
28259LQR_LIBS=""
28260LQR_PKG=""
28261if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028263$as_echo "-------------------------------------------------------------" >&6; }
28264
28265pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028267$as_echo_n "checking for LQR... " >&6; }
28268
28269if test -n "$LQR_CFLAGS"; then
28270 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28271 elif test -n "$PKG_CONFIG"; then
28272 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028273 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028274 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28275 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28277 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028278 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28279else
28280 pkg_failed=yes
28281fi
28282 else
28283 pkg_failed=untried
28284fi
28285if test -n "$LQR_LIBS"; then
28286 pkg_cv_LQR_LIBS="$LQR_LIBS"
28287 elif test -n "$PKG_CONFIG"; then
28288 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028289 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028290 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28291 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28293 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028294 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28295else
28296 pkg_failed=yes
28297fi
28298 else
28299 pkg_failed=untried
28300fi
28301
28302
28303
28304if test $pkg_failed = yes; then
28305
28306if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28307 _pkg_short_errors_supported=yes
28308else
28309 _pkg_short_errors_supported=no
28310fi
28311 if test $_pkg_short_errors_supported = yes; then
28312 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28313 else
28314 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28315 fi
28316 # Put the nasty error message in config.log where it belongs
28317 echo "$LQR_PKG_ERRORS" >&5
28318
cristy8b350f62009-11-15 23:12:43 +000028319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028320$as_echo "no" >&6; }
28321 have_lqr=no
28322elif test $pkg_failed = untried; then
28323 have_lqr=no
28324else
28325 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28326 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028328$as_echo "yes" >&6; }
28329 have_lqr=yes
28330fi
cristy8b350f62009-11-15 23:12:43 +000028331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028332$as_echo "" >&6; }
28333fi
28334
28335if test "$have_lqr" = 'yes'; then
28336
cristy8b350f62009-11-15 23:12:43 +000028337$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028338
28339 CFLAGS="$LQR_CFLAGS $CFLAGS"
28340fi
28341
28342 if test "$have_lqr" = 'yes'; then
28343 LQR_DELEGATE_TRUE=
28344 LQR_DELEGATE_FALSE='#'
28345else
28346 LQR_DELEGATE_TRUE='#'
28347 LQR_DELEGATE_FALSE=
28348fi
28349
28350
28351
28352
28353
28354#
28355# Check for the OpenEXR delegate library.
28356#
28357
28358# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028359if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028360 withval=$with_openexr; with_openexr=$withval
28361else
28362 with_openexr='yes'
28363fi
28364
28365
28366if test "$with_openexr" != 'yes'; then
28367 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28368fi
28369
28370have_openexr='no'
28371OPENEXR_CFLAGS=""
28372OPENEXR_LIBS=""
28373OPENEXR_PKG=""
28374if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028376$as_echo "-------------------------------------------------------------" >&6; }
28377
28378pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028380$as_echo_n "checking for OPENEXR... " >&6; }
28381
28382if test -n "$OPENEXR_CFLAGS"; then
28383 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28384 elif test -n "$PKG_CONFIG"; then
28385 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028386 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028387 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28388 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28390 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028391 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28392else
28393 pkg_failed=yes
28394fi
28395 else
28396 pkg_failed=untried
28397fi
28398if test -n "$OPENEXR_LIBS"; then
28399 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28400 elif test -n "$PKG_CONFIG"; then
28401 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028402 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028403 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28404 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28406 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028407 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28408else
28409 pkg_failed=yes
28410fi
28411 else
28412 pkg_failed=untried
28413fi
28414
28415
28416
28417if test $pkg_failed = yes; then
28418
28419if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28420 _pkg_short_errors_supported=yes
28421else
28422 _pkg_short_errors_supported=no
28423fi
28424 if test $_pkg_short_errors_supported = yes; then
28425 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28426 else
28427 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28428 fi
28429 # Put the nasty error message in config.log where it belongs
28430 echo "$OPENEXR_PKG_ERRORS" >&5
28431
cristy8b350f62009-11-15 23:12:43 +000028432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028433$as_echo "no" >&6; }
28434 have_openexr=no
28435elif test $pkg_failed = untried; then
28436 have_openexr=no
28437else
28438 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28439 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028441$as_echo "yes" >&6; }
28442 have_openexr=yes
28443fi
cristy8b350f62009-11-15 23:12:43 +000028444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028445$as_echo "" >&6; }
28446fi
28447
28448if test "$have_openexr" = 'yes'; then
28449
cristy8b350f62009-11-15 23:12:43 +000028450$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028451
28452 if test "$with_modules" = 'no'; then
28453 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28454 fi
28455fi
28456
28457 if test "$have_openexr" = 'yes'; then
28458 OPENEXR_DELEGATE_TRUE=
28459 OPENEXR_DELEGATE_FALSE='#'
28460else
28461 OPENEXR_DELEGATE_TRUE='#'
28462 OPENEXR_DELEGATE_FALSE=
28463fi
28464
28465
28466
28467
28468
28469#
28470# Check for PNG delegate library.
28471#
28472
28473# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028474if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028475 withval=$with_png; with_png=$withval
28476else
28477 with_png='yes'
28478fi
28479
28480
28481if test "$with_png" != 'yes'; then
28482 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28483fi
28484
28485have_png='no'
28486PNG_LIBS=''
28487if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028489$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028491$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028493$as_echo "" >&6; }
28494 failed=0
28495 passed=0
cristy8b350f62009-11-15 23:12:43 +000028496 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28497if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028498 passed=`expr $passed + 1`
28499else
28500 failed=`expr $failed + 1`
28501fi
28502
28503
cristy8b350f62009-11-15 23:12:43 +000028504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028505$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028506if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028507 $as_echo_n "(cached) " >&6
28508else
28509 ac_check_lib_save_LIBS=$LIBS
28510LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028512/* end confdefs.h. */
28513
28514/* Override any GCC internal prototype to avoid an error.
28515 Use char because int might match the return type of a GCC
28516 builtin and then its argument prototype would still apply. */
28517#ifdef __cplusplus
28518extern "C"
28519#endif
28520char png_get_io_ptr ();
28521int
28522main ()
28523{
28524return png_get_io_ptr ();
28525 ;
28526 return 0;
28527}
28528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028529if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028530 ac_cv_lib_png_png_get_io_ptr=yes
28531else
cristy8b350f62009-11-15 23:12:43 +000028532 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028533fi
cristy8b350f62009-11-15 23:12:43 +000028534rm -f core conftest.err conftest.$ac_objext \
28535 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028536LIBS=$ac_check_lib_save_LIBS
28537fi
cristy8b350f62009-11-15 23:12:43 +000028538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028539$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028540if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028541 passed=`expr $passed + 1`
28542else
28543 failed=`expr $failed + 1`
28544fi
28545
cristy8b350f62009-11-15 23:12:43 +000028546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028547$as_echo_n "checking if PNG package is complete... " >&6; }
28548 if test $passed -gt 0; then
28549 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028551$as_echo "no -- some components failed test" >&6; }
28552 have_png='no (failed tests)'
28553 else
28554 PNG_LIBS='-lpng'
28555 LIBS="$PNG_LIBS $LIBS"
28556
cristy8b350f62009-11-15 23:12:43 +000028557$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028558
cristy8b350f62009-11-15 23:12:43 +000028559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028560$as_echo "yes" >&6; }
28561 have_png='yes'
28562 fi
28563 else
cristy8b350f62009-11-15 23:12:43 +000028564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028565$as_echo "no" >&6; }
28566 fi
28567fi
28568 if test "$have_png" = 'yes'; then
28569 PNG_DELEGATE_TRUE=
28570 PNG_DELEGATE_FALSE='#'
28571else
28572 PNG_DELEGATE_TRUE='#'
28573 PNG_DELEGATE_FALSE=
28574fi
28575
28576
28577
28578
28579#
28580# Check for RSVG delegate library.
28581#
28582
28583# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028584if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028585 withval=$with_rsvg; with_rsvg=$withval
28586else
28587 with_rsvg=$have_x
28588fi
28589
28590
28591if test "$with_rsvg" != 'yes'; then
28592 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28593fi
28594
28595have_rsvg='no'
28596have_cairo='no'
28597RSVG_CFLAGS=""
28598RSVG_LIBS=""
28599RSVG_PKG=""
28600if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028602$as_echo "-------------------------------------------------------------" >&6; }
28603
28604pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028606$as_echo_n "checking for RSVG... " >&6; }
28607
28608if test -n "$RSVG_CFLAGS"; then
28609 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28610 elif test -n "$PKG_CONFIG"; then
28611 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028612 { { $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 +000028613 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28614 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28616 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028617 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28618else
28619 pkg_failed=yes
28620fi
28621 else
28622 pkg_failed=untried
28623fi
28624if test -n "$RSVG_LIBS"; then
28625 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28626 elif test -n "$PKG_CONFIG"; then
28627 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028628 { { $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 +000028629 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28630 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28632 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028633 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28634else
28635 pkg_failed=yes
28636fi
28637 else
28638 pkg_failed=untried
28639fi
28640
28641
28642
28643if test $pkg_failed = yes; then
28644
28645if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28646 _pkg_short_errors_supported=yes
28647else
28648 _pkg_short_errors_supported=no
28649fi
28650 if test $_pkg_short_errors_supported = yes; then
28651 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28652 else
28653 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28654 fi
28655 # Put the nasty error message in config.log where it belongs
28656 echo "$RSVG_PKG_ERRORS" >&5
28657
cristy8b350f62009-11-15 23:12:43 +000028658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028659$as_echo "no" >&6; }
28660 have_rsvg=no
28661elif test $pkg_failed = untried; then
28662 have_rsvg=no
28663else
28664 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28665 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028667$as_echo "yes" >&6; }
28668 have_rsvg=yes
28669fi
cristy8b350f62009-11-15 23:12:43 +000028670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028671$as_echo "" >&6; }
28672
28673pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028675$as_echo_n "checking for CAIRO_SVG... " >&6; }
28676
28677if test -n "$CAIRO_SVG_CFLAGS"; then
28678 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28679 elif test -n "$PKG_CONFIG"; then
28680 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028682 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28683 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28685 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028686 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28687else
28688 pkg_failed=yes
28689fi
28690 else
28691 pkg_failed=untried
28692fi
28693if test -n "$CAIRO_SVG_LIBS"; then
28694 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28695 elif test -n "$PKG_CONFIG"; then
28696 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028697 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028698 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28699 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28701 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028702 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28703else
28704 pkg_failed=yes
28705fi
28706 else
28707 pkg_failed=untried
28708fi
28709
28710
28711
28712if test $pkg_failed = yes; then
28713
28714if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28715 _pkg_short_errors_supported=yes
28716else
28717 _pkg_short_errors_supported=no
28718fi
28719 if test $_pkg_short_errors_supported = yes; then
28720 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28721 else
28722 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28723 fi
28724 # Put the nasty error message in config.log where it belongs
28725 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28726
cristy8b350f62009-11-15 23:12:43 +000028727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028728$as_echo "no" >&6; }
28729 have_cairo=no
28730elif test $pkg_failed = untried; then
28731 have_cairo=no
28732else
28733 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28734 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028736$as_echo "yes" >&6; }
28737 have_cairo=yes
28738fi
cristy8b350f62009-11-15 23:12:43 +000028739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028740$as_echo "" >&6; }
28741fi
28742
28743if test "$have_rsvg" = 'yes'; then
28744
cristy8b350f62009-11-15 23:12:43 +000028745$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028746
28747 if test "$with_modules" = 'no'; then
28748 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28749 fi
28750fi
28751
28752if test "$have_cairo" = 'yes'; then
28753
cristy8b350f62009-11-15 23:12:43 +000028754$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028755
28756 if test "$with_modules" = 'no'; then
28757 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28758 fi
28759fi
28760
28761 if test "$have_rsvg" = 'yes'; then
28762 RSVG_DELEGATE_TRUE=
28763 RSVG_DELEGATE_FALSE='#'
28764else
28765 RSVG_DELEGATE_TRUE='#'
28766 RSVG_DELEGATE_FALSE=
28767fi
28768
28769 if test "$have_cairo" = 'yes'; then
28770 CAIRO_DELEGATE_TRUE=
28771 CAIRO_DELEGATE_FALSE='#'
28772else
28773 CAIRO_DELEGATE_TRUE='#'
28774 CAIRO_DELEGATE_FALSE=
28775fi
28776
28777
28778
28779
28780
28781#
28782# Check for TIFF delegate library.
28783#
28784
28785# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028786if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028787 withval=$with_tiff; with_tiff=$withval
28788else
28789 with_tiff='yes'
28790fi
28791
28792
28793if test "$with_tiff" != 'yes'; then
28794 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28795fi
28796
28797have_tiff='no'
28798TIFF_LIBS=''
28799if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028801$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028803$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028805$as_echo "" >&6; }
28806 failed=0
28807 passed=0
cristy8b350f62009-11-15 23:12:43 +000028808 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28809if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028810 passed=`expr $passed + 1`
28811else
28812 failed=`expr $failed + 1`
28813fi
28814
28815
cristy8b350f62009-11-15 23:12:43 +000028816 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28817if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028818 passed=`expr $passed + 1`
28819else
28820 failed=`expr $failed + 1`
28821fi
28822
28823
cristy8b350f62009-11-15 23:12:43 +000028824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028825$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028826if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028827 $as_echo_n "(cached) " >&6
28828else
28829 ac_check_lib_save_LIBS=$LIBS
28830LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028832/* end confdefs.h. */
28833
28834/* Override any GCC internal prototype to avoid an error.
28835 Use char because int might match the return type of a GCC
28836 builtin and then its argument prototype would still apply. */
28837#ifdef __cplusplus
28838extern "C"
28839#endif
28840char TIFFOpen ();
28841int
28842main ()
28843{
28844return TIFFOpen ();
28845 ;
28846 return 0;
28847}
28848_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028849if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028850 ac_cv_lib_tiff_TIFFOpen=yes
28851else
cristy8b350f62009-11-15 23:12:43 +000028852 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028853fi
cristy8b350f62009-11-15 23:12:43 +000028854rm -f core conftest.err conftest.$ac_objext \
28855 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028856LIBS=$ac_check_lib_save_LIBS
28857fi
cristy8b350f62009-11-15 23:12:43 +000028858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028859$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028860if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028861 passed=`expr $passed + 1`
28862else
28863 failed=`expr $failed + 1`
28864fi
28865
cristy8b350f62009-11-15 23:12:43 +000028866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028867$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028868if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028869 $as_echo_n "(cached) " >&6
28870else
28871 ac_check_lib_save_LIBS=$LIBS
28872LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028874/* end confdefs.h. */
28875
28876/* Override any GCC internal prototype to avoid an error.
28877 Use char because int might match the return type of a GCC
28878 builtin and then its argument prototype would still apply. */
28879#ifdef __cplusplus
28880extern "C"
28881#endif
28882char TIFFClientOpen ();
28883int
28884main ()
28885{
28886return TIFFClientOpen ();
28887 ;
28888 return 0;
28889}
28890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028891if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028892 ac_cv_lib_tiff_TIFFClientOpen=yes
28893else
cristy8b350f62009-11-15 23:12:43 +000028894 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028895fi
cristy8b350f62009-11-15 23:12:43 +000028896rm -f core conftest.err conftest.$ac_objext \
28897 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028898LIBS=$ac_check_lib_save_LIBS
28899fi
cristy8b350f62009-11-15 23:12:43 +000028900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028901$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028902if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028903 passed=`expr $passed + 1`
28904else
28905 failed=`expr $failed + 1`
28906fi
28907
cristy8b350f62009-11-15 23:12:43 +000028908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028909$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028910if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028911 $as_echo_n "(cached) " >&6
28912else
28913 ac_check_lib_save_LIBS=$LIBS
28914LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028916/* end confdefs.h. */
28917
28918/* Override any GCC internal prototype to avoid an error.
28919 Use char because int might match the return type of a GCC
28920 builtin and then its argument prototype would still apply. */
28921#ifdef __cplusplus
28922extern "C"
28923#endif
28924char TIFFIsByteSwapped ();
28925int
28926main ()
28927{
28928return TIFFIsByteSwapped ();
28929 ;
28930 return 0;
28931}
28932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028933if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028934 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28935else
cristy8b350f62009-11-15 23:12:43 +000028936 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028937fi
cristy8b350f62009-11-15 23:12:43 +000028938rm -f core conftest.err conftest.$ac_objext \
28939 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028940LIBS=$ac_check_lib_save_LIBS
28941fi
cristy8b350f62009-11-15 23:12:43 +000028942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028943$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028944if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028945 passed=`expr $passed + 1`
28946else
28947 failed=`expr $failed + 1`
28948fi
28949
cristy8b350f62009-11-15 23:12:43 +000028950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028951$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028952if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028953 $as_echo_n "(cached) " >&6
28954else
28955 ac_check_lib_save_LIBS=$LIBS
28956LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028958/* end confdefs.h. */
28959
28960/* Override any GCC internal prototype to avoid an error.
28961 Use char because int might match the return type of a GCC
28962 builtin and then its argument prototype would still apply. */
28963#ifdef __cplusplus
28964extern "C"
28965#endif
28966char TIFFReadRGBATile ();
28967int
28968main ()
28969{
28970return TIFFReadRGBATile ();
28971 ;
28972 return 0;
28973}
28974_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028975if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028976 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28977else
cristy8b350f62009-11-15 23:12:43 +000028978 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028979fi
cristy8b350f62009-11-15 23:12:43 +000028980rm -f core conftest.err conftest.$ac_objext \
28981 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028982LIBS=$ac_check_lib_save_LIBS
28983fi
cristy8b350f62009-11-15 23:12:43 +000028984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028985$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028986if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028987 passed=`expr $passed + 1`
28988else
28989 failed=`expr $failed + 1`
28990fi
28991
cristy8b350f62009-11-15 23:12:43 +000028992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028993$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028994if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028995 $as_echo_n "(cached) " >&6
28996else
28997 ac_check_lib_save_LIBS=$LIBS
28998LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029000/* end confdefs.h. */
29001
29002/* Override any GCC internal prototype to avoid an error.
29003 Use char because int might match the return type of a GCC
29004 builtin and then its argument prototype would still apply. */
29005#ifdef __cplusplus
29006extern "C"
29007#endif
29008char TIFFReadRGBAStrip ();
29009int
29010main ()
29011{
29012return TIFFReadRGBAStrip ();
29013 ;
29014 return 0;
29015}
29016_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029017if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029018 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29019else
cristy8b350f62009-11-15 23:12:43 +000029020 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029021fi
cristy8b350f62009-11-15 23:12:43 +000029022rm -f core conftest.err conftest.$ac_objext \
29023 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029024LIBS=$ac_check_lib_save_LIBS
29025fi
cristy8b350f62009-11-15 23:12:43 +000029026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029027$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029028if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029029 passed=`expr $passed + 1`
29030else
29031 failed=`expr $failed + 1`
29032fi
29033
cristy8b350f62009-11-15 23:12:43 +000029034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029035$as_echo_n "checking if TIFF package is complete... " >&6; }
29036 if test $passed -gt 0; then
29037 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029039$as_echo "no -- some components failed test" >&6; }
29040 have_tiff='no (failed tests)'
29041 else
29042 TIFF_LIBS='-ltiff'
29043 LIBS="$TIFF_LIBS $LIBS"
29044
cristy8b350f62009-11-15 23:12:43 +000029045$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029046
cristy8b350f62009-11-15 23:12:43 +000029047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029048$as_echo "yes" >&6; }
29049 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029050 for ac_header in tiffconf.h
29051do :
29052 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29053if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029054 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029055#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029056_ACEOF
29057
29058fi
29059
29060done
29061
cristy8b350f62009-11-15 23:12:43 +000029062 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029063 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29064 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029065do :
29066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29067ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29068eval as_val=\$$as_ac_var
29069 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029070 cat >>confdefs.h <<_ACEOF
29071#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29072_ACEOF
29073
29074fi
29075done
29076
29077 fi
29078 else
cristy8b350f62009-11-15 23:12:43 +000029079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029080$as_echo "no" >&6; }
29081 fi
29082fi
29083 if test "$have_tiff" = 'yes'; then
29084 TIFF_DELEGATE_TRUE=
29085 TIFF_DELEGATE_FALSE='#'
29086else
29087 TIFF_DELEGATE_TRUE='#'
29088 TIFF_DELEGATE_FALSE=
29089fi
29090
29091
29092
29093
29094#
29095# Set Windows font directory.
29096#
29097
29098# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029099if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029100 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29101else
29102 with_windows_font_dir=''
29103fi
29104
29105if test "$with_windows_font_dir" != '' ; then
29106 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29107fi
29108
29109
29110#
29111# Check for WMF delegate library.
29112#
29113
29114# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029115if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029116 withval=$with_wmf; with_wmf=$withval
29117else
cristy8d63d1d2010-01-06 20:38:37 +000029118 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029119fi
29120
29121
29122if test "$with_wmf" != 'yes'; then
29123 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29124fi
29125
29126have_wmf='no'
29127WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029128if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029130$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029132$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029134$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029135 failed=0
29136 passed=0
29137 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29138if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29139 passed=`expr $passed + 1`
29140else
29141 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029142fi
29143
29144
cristy735e8942010-04-02 20:32:57 +000029145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29146$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29147if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029148 $as_echo_n "(cached) " >&6
29149else
29150 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029151LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029153/* end confdefs.h. */
29154
29155/* Override any GCC internal prototype to avoid an error.
29156 Use char because int might match the return type of a GCC
29157 builtin and then its argument prototype would still apply. */
29158#ifdef __cplusplus
29159extern "C"
29160#endif
cristy735e8942010-04-02 20:32:57 +000029161char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029162int
29163main ()
29164{
cristy735e8942010-04-02 20:32:57 +000029165return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029166 ;
29167 return 0;
29168}
29169_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029170if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029171 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029172else
cristy735e8942010-04-02 20:32:57 +000029173 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029174fi
cristy8b350f62009-11-15 23:12:43 +000029175rm -f core conftest.err conftest.$ac_objext \
29176 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029177LIBS=$ac_check_lib_save_LIBS
29178fi
cristy735e8942010-04-02 20:32:57 +000029179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29180$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29181if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29182 passed=`expr $passed + 1`
29183else
29184 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029185fi
29186
cristy735e8942010-04-02 20:32:57 +000029187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29188$as_echo_n "checking if WMF package is complete... " >&6; }
29189 if test $passed -gt 0; then
29190 if test $failed -gt 0; then
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29192$as_echo "no -- some components failed test" >&6; }
29193 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029194 else
cristy735e8942010-04-02 20:32:57 +000029195 WMF_LIBS='-lwmf -lwmflite'
29196 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029197
cristy8b350f62009-11-15 23:12:43 +000029198$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029199
cristy735e8942010-04-02 20:32:57 +000029200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029201$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029202 have_wmf='yes'
29203 fi
cristy3ed852e2009-09-05 21:47:34 +000029204 else
cristy8b350f62009-11-15 23:12:43 +000029205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029206$as_echo "no" >&6; }
29207 fi
29208fi
29209 if test "$have_wmf" = 'yes'; then
29210 WMF_DELEGATE_TRUE=
29211 WMF_DELEGATE_FALSE='#'
29212else
29213 WMF_DELEGATE_TRUE='#'
29214 WMF_DELEGATE_FALSE=
29215fi
29216
29217
29218
29219
29220
cristy735e8942010-04-02 20:32:57 +000029221
cristy3ed852e2009-09-05 21:47:34 +000029222#
29223# Check for XML delegate library.
29224#
29225
29226# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029227if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029228 withval=$with_xml; with_xml=$withval
29229else
29230 with_xml=$have_x
29231fi
29232
29233
29234if test "$with_xml" != 'yes' ; then
29235 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29236fi
29237
29238have_xml='no'
29239XML_LIBS=''
29240if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029242$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029244$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029246$as_echo "" >&6; }
29247 PERSIST_LDFLAGS=$LDFLAGS
29248 PERSIST_CPPFLAGS=$CPPFLAGS
29249 xml2_config=''
29250 for ac_prog in xml2-config
29251do
29252 # Extract the first word of "$ac_prog", so it can be a program name with args.
29253set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029255$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029256if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029257 $as_echo_n "(cached) " >&6
29258else
29259 if test -n "$xml2_config"; then
29260 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29261else
29262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29263for as_dir in $PATH
29264do
29265 IFS=$as_save_IFS
29266 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029267 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29269 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029271 break 2
29272 fi
29273done
cristy8b350f62009-11-15 23:12:43 +000029274 done
cristy3ed852e2009-09-05 21:47:34 +000029275IFS=$as_save_IFS
29276
29277fi
29278fi
29279xml2_config=$ac_cv_prog_xml2_config
29280if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029282$as_echo "$xml2_config" >&6; }
29283else
cristy8b350f62009-11-15 23:12:43 +000029284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029285$as_echo "no" >&6; }
29286fi
29287
29288
29289 test -n "$xml2_config" && break
29290done
29291 if test -n "$xml2_config"; then
29292 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29293 # the shared library installed under /usr/lib, whereas the package
29294 # installs itself under $prefix/libxml and $prefix/lib.
29295 xml2_prefix=`xml2-config --prefix`
29296 if test -d "${xml2_prefix}/include/libxml2"; then
29297 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29298 fi
29299 if test "${xml2_prefix}" != '/usr'; then
29300 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29301 fi
29302 fi
29303 failed=0
29304 passed=0
cristy8b350f62009-11-15 23:12:43 +000029305 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29306if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029307 passed=`expr $passed + 1`
29308else
29309 failed=`expr $failed + 1`
29310fi
29311
29312
cristy8b350f62009-11-15 23:12:43 +000029313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029314$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029315if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029316 $as_echo_n "(cached) " >&6
29317else
29318 ac_check_lib_save_LIBS=$LIBS
29319LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029321/* end confdefs.h. */
29322
29323/* Override any GCC internal prototype to avoid an error.
29324 Use char because int might match the return type of a GCC
29325 builtin and then its argument prototype would still apply. */
29326#ifdef __cplusplus
29327extern "C"
29328#endif
29329char xmlParseExternalEntity ();
29330int
29331main ()
29332{
29333return xmlParseExternalEntity ();
29334 ;
29335 return 0;
29336}
29337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029338if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029339 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29340else
cristy8b350f62009-11-15 23:12:43 +000029341 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029342fi
cristy8b350f62009-11-15 23:12:43 +000029343rm -f core conftest.err conftest.$ac_objext \
29344 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029345LIBS=$ac_check_lib_save_LIBS
29346fi
cristy8b350f62009-11-15 23:12:43 +000029347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029348$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029349if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029350 passed=`expr $passed + 1`
29351else
29352 failed=`expr $failed + 1`
29353fi
29354
cristy8b350f62009-11-15 23:12:43 +000029355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029356$as_echo_n "checking if XML package is complete... " >&6; }
29357 if test $passed -gt 0; then
29358 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029360$as_echo "no -- some components failed test" >&6; }
29361 have_xml='no (failed tests)'
29362 LDFLAGS="$PERSIST_LDFLAGS"
29363 CPPFLAGS="$PERSIST_CPPFLAGS"
29364 else
29365 XML_LIBS='-lxml2'
29366 LIBS="$XML_LIBS $LIBS"
29367
cristy8b350f62009-11-15 23:12:43 +000029368$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029369
cristy8b350f62009-11-15 23:12:43 +000029370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029371$as_echo "yes" >&6; }
29372 have_xml='yes'
29373 fi
29374 else
cristy8b350f62009-11-15 23:12:43 +000029375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029376$as_echo "no" >&6; }
29377 fi
29378fi
29379 if test "$have_xml" = 'yes'; then
29380 XML_DELEGATE_TRUE=
29381 XML_DELEGATE_FALSE='#'
29382else
29383 XML_DELEGATE_TRUE='#'
29384 XML_DELEGATE_FALSE=
29385fi
29386
29387
29388
29389
29390# Substitute compiler name to build/link PerlMagick
29391#
29392
29393
29394#
29395# Configure install Paths
29396#
29397
29398# Subdirectory under lib to place ImageMagick lib files
29399LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29400
29401cat >>confdefs.h <<_ACEOF
29402#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29403_ACEOF
29404
29405
29406# Path to ImageMagick bin directory
29407EXECUTABLE_PATH="${BIN_DIR}"
29408DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29409case "${build_os}" in
29410 mingw* )
29411 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29412 ;;
29413esac
29414
29415cat >>confdefs.h <<_ACEOF
29416#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29417_ACEOF
29418
29419
29420
29421# Path to ImageMagick lib
29422LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29423DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29424case "${build_os}" in
29425 mingw* )
29426 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29427 ;;
29428esac
29429
29430cat >>confdefs.h <<_ACEOF
29431#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29432_ACEOF
29433
29434
29435
29436# Subdirectory under lib to place ImageMagick configuration files
29437CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29438
29439cat >>confdefs.h <<_ACEOF
29440#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29441_ACEOF
29442
29443CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29444DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29445case "${build_os}" in
29446 mingw* )
29447 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29448 ;;
29449esac
29450
29451cat >>confdefs.h <<_ACEOF
29452#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29453_ACEOF
29454
29455
29456
29457#
29458# Subdirectory under lib to place ImageMagick coder module files
29459CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29460
29461cat >>confdefs.h <<_ACEOF
29462#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29463_ACEOF
29464
29465CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29466DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29467case "${build_os}" in
29468 mingw* )
29469 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29470 ;;
29471esac
29472
29473cat >>confdefs.h <<_ACEOF
29474#define CODER_PATH "$DEFINE_CODER_PATH"
29475_ACEOF
29476
29477
29478
29479#
29480# Subdirectory under lib to place ImageMagick filter module files
29481FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29482
29483cat >>confdefs.h <<_ACEOF
29484#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29485_ACEOF
29486
29487FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29488DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29489case "${build_os}" in
29490 mingw* )
29491 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29492 ;;
29493esac
29494
29495cat >>confdefs.h <<_ACEOF
29496#define FILTER_PATH "$DEFINE_FILTER_PATH"
29497_ACEOF
29498
29499
29500
29501#
29502# Path to ImageMagick documentation files
29503DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29504DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29505DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29506case "${build_os}" in
29507 mingw* )
29508 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29509 ;;
29510esac
29511
29512cat >>confdefs.h <<_ACEOF
29513#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29514_ACEOF
29515
29516
29517
29518#
29519# Path to ImageMagick share files
29520SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29521SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29522DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29523case "${build_os}" in
29524 mingw* )
29525 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29526 ;;
29527esac
29528
29529cat >>confdefs.h <<_ACEOF
29530#define SHARE_PATH "$DEFINE_SHARE_PATH"
29531_ACEOF
29532
29533
29534
29535# Subdirectory under share to place ImageMagick configuration files
29536SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29537
29538cat >>confdefs.h <<_ACEOF
29539#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29540_ACEOF
29541
29542SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29543DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29544case "${build_os}" in
29545 mingw* )
29546 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29547 ;;
29548esac
29549
29550cat >>confdefs.h <<_ACEOF
29551#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29552_ACEOF
29553
29554
29555
29556#
29557# program_transform_name is formed for use in a Makefile, so create a
29558# modified version for use in a shell script.
29559configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29560
29561# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029563$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029565$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029567$as_echo "" >&6; }
29568AutotraceDecodeDelegateDefault='autotrace'
29569AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029570BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029571BZIPDelegateDefault='bzip2'
29572BrowseDelegateDefault='xdg-open'
29573CGMDecodeDelegateDefault='ralcgm'
29574CatDelegateDefault='cat'
29575DNGDecodeDelegateDefault='ufraw-batch'
29576GVCDecodeDelegateDefault='dot'
29577DVIDecodeDelegateDefault='dvips'
29578EchoDelegateDefault='echo'
29579EditorDelegateDefault='xterm'
29580FIGDecodeDelegateDefault='fig2dev'
29581ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29582DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29583MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29584GnuplotDecodeDelegateDefault='gnuplot'
29585HDRDecodeDelegateDefault='ra_pfm'
29586HPGLDecodeDelegateDefault='hp2xx'
29587HTMLDecodeDelegateDefault='html2ps'
29588ILBMDecodeDelegateDefault='ilbmtoppm'
29589ILBMEncodeDelegateDefault='ppmtoilbm'
29590LPDelegateDefault='lp'
29591LPRDelegateDefault='lpr'
29592LZWDecodeDelegateDefault='uncompress'
29593LZWEncodeDelegateDefault='compress'
29594LaunchDelegateDefault='gimp'
29595MANDelegateDefault='groff'
29596MPEGDecodeDelegateDefault='ffmpeg'
29597MPEGEncodeDelegateDefault='ffmpeg'
29598MVDelegateDefault='mv'
29599PCLDelegateDefault='pcl6'
29600PGPDecodeDelegateDefault='pgpv'
29601POVDelegateDefault='povray'
29602if test "$native_win32_build" = 'yes'; then
29603 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029604elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029605 PSDelegateDefault='gsc'
29606else
29607 PSDelegateDefault='gs'
29608fi
29609RLEEncodeDelegateDefault='rawtorle'
29610RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029611RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029612SCANDecodeDelegateDefault='scanimage'
29613TXTDelegateDefault='enscript'
29614WMFDecodeDelegateDefault='wmf2eps'
29615WWWDecodeDelegateDefault='curl'
29616XPSDelegateDefault='gxps'
29617ZipDelegateDefault='gzip'
29618
29619# Search for delegates
29620# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29621set dummy "$AutotraceDecodeDelegateDefault"; 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_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029625 $as_echo_n "(cached) " >&6
29626else
29627 case $AutotraceDecodeDelegate in
29628 [\\/]* | ?:[\\/]*)
29629 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # 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_AutotraceDecodeDelegate="$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_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29648 ;;
29649esac
29650fi
29651AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29652if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029654$as_echo "$AutotraceDecodeDelegate" >&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 ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29662set dummy "$AVIDecodeDelegateDefault"; 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_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029666 $as_echo_n "(cached) " >&6
29667else
29668 case $AVIDecodeDelegate in
29669 [\\/]* | ?:[\\/]*)
29670 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # 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_AVIDecodeDelegate="$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_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29689 ;;
29690esac
29691fi
29692AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29693if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029695$as_echo "$AVIDecodeDelegate" >&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 ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29703set dummy "$BlenderDecodeDelegateDefault"; 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_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029707 $as_echo_n "(cached) " >&6
29708else
29709 case $BlenderDecodeDelegate in
29710 [\\/]* | ?:[\\/]*)
29711 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # 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_BlenderDecodeDelegate="$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_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29730 ;;
29731esac
29732fi
29733BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29734if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029736$as_echo "$BlenderDecodeDelegate" >&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 ""$BZIPDelegateDefault"", so it can be a program name with args.
29744set dummy "$BZIPDelegateDefault"; 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_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029748 $as_echo_n "(cached) " >&6
29749else
29750 case $BZIPDelegate in
29751 [\\/]* | ?:[\\/]*)
29752 ac_cv_path_BZIPDelegate="$BZIPDelegate" # 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_BZIPDelegate="$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_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29771 ;;
29772esac
29773fi
29774BZIPDelegate=$ac_cv_path_BZIPDelegate
29775if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029777$as_echo "$BZIPDelegate" >&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 ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29785set dummy "$BrowseDelegateDefault" mozilla firefox netscape; 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_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029789 $as_echo_n "(cached) " >&6
29790else
29791 case $BrowseDelegate in
29792 [\\/]* | ?:[\\/]*)
29793 ac_cv_path_BrowseDelegate="$BrowseDelegate" # 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_BrowseDelegate="$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_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29812 ;;
29813esac
29814fi
29815BrowseDelegate=$ac_cv_path_BrowseDelegate
29816if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029818$as_echo "$BrowseDelegate" >&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 ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29826set dummy "$CGMDecodeDelegateDefault"; 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_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029830 $as_echo_n "(cached) " >&6
29831else
29832 case $CGMDecodeDelegate in
29833 [\\/]* | ?:[\\/]*)
29834 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # 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_CGMDecodeDelegate="$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_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29853 ;;
29854esac
29855fi
29856CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29857if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029859$as_echo "$CGMDecodeDelegate" >&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 ""$CatDelegateDefault"", so it can be a program name with args.
29867set dummy "$CatDelegateDefault"; 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_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029871 $as_echo_n "(cached) " >&6
29872else
29873 case $CatDelegate in
29874 [\\/]* | ?:[\\/]*)
29875 ac_cv_path_CatDelegate="$CatDelegate" # 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_CatDelegate="$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_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29894 ;;
29895esac
29896fi
29897CatDelegate=$ac_cv_path_CatDelegate
29898if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029900$as_echo "$CatDelegate" >&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 ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29908set dummy "$DNGDecodeDelegateDefault"; 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_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029912 $as_echo_n "(cached) " >&6
29913else
29914 case $DNGDecodeDelegate in
29915 [\\/]* | ?:[\\/]*)
29916 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # 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_DNGDecodeDelegate="$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_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29935 ;;
29936esac
29937fi
29938DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29939if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029941$as_echo "$DNGDecodeDelegate" >&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 ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29949set dummy "$GVCDecodeDelegateDefault"; 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_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029953 $as_echo_n "(cached) " >&6
29954else
29955 case $GVCDecodeDelegate in
29956 [\\/]* | ?:[\\/]*)
29957 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # 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_GVCDecodeDelegate="$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_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29976 ;;
29977esac
29978fi
29979GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29980if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029982$as_echo "$GVCDecodeDelegate" >&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 ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29990set dummy "$DVIDecodeDelegateDefault"; 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_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029994 $as_echo_n "(cached) " >&6
29995else
29996 case $DVIDecodeDelegate in
29997 [\\/]* | ?:[\\/]*)
29998 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # 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_DVIDecodeDelegate="$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_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30017 ;;
30018esac
30019fi
30020DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30021if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030023$as_echo "$DVIDecodeDelegate" >&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 ""$EchoDelegateDefault"", so it can be a program name with args.
30031set dummy "$EchoDelegateDefault"; 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_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030035 $as_echo_n "(cached) " >&6
30036else
30037 case $EchoDelegate in
30038 [\\/]* | ?:[\\/]*)
30039 ac_cv_path_EchoDelegate="$EchoDelegate" # 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_EchoDelegate="$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_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30058 ;;
30059esac
30060fi
30061EchoDelegate=$ac_cv_path_EchoDelegate
30062if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030064$as_echo "$EchoDelegate" >&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 ""$EditorDelegateDefault"", so it can be a program name with args.
30072set dummy "$EditorDelegateDefault"; 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_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030076 $as_echo_n "(cached) " >&6
30077else
30078 case $EditorDelegate in
30079 [\\/]* | ?:[\\/]*)
30080 ac_cv_path_EditorDelegate="$EditorDelegate" # 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_EditorDelegate="$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_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30099 ;;
30100esac
30101fi
30102EditorDelegate=$ac_cv_path_EditorDelegate
30103if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030105$as_echo "$EditorDelegate" >&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 ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30113set dummy "$FIGDecodeDelegateDefault"; 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_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030117 $as_echo_n "(cached) " >&6
30118else
30119 case $FIGDecodeDelegate in
30120 [\\/]* | ?:[\\/]*)
30121 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # 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_FIGDecodeDelegate="$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_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30140 ;;
30141esac
30142fi
30143FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30144if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030146$as_echo "$FIGDecodeDelegate" >&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 ""$ConvertDelegateDefault"", so it can be a program name with args.
30154set dummy "$ConvertDelegateDefault"; 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_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030158 $as_echo_n "(cached) " >&6
30159else
30160 case $ConvertDelegate in
30161 [\\/]* | ?:[\\/]*)
30162 ac_cv_path_ConvertDelegate="$ConvertDelegate" # 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_ConvertDelegate="$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_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30181 ;;
30182esac
30183fi
30184ConvertDelegate=$ac_cv_path_ConvertDelegate
30185if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030187$as_echo "$ConvertDelegate" >&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 ""$DisplayDelegateDefault"", so it can be a program name with args.
30195set dummy "$DisplayDelegateDefault"; 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_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030199 $as_echo_n "(cached) " >&6
30200else
30201 case $DisplayDelegate in
30202 [\\/]* | ?:[\\/]*)
30203 ac_cv_path_DisplayDelegate="$DisplayDelegate" # 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_DisplayDelegate="$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_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30222 ;;
30223esac
30224fi
30225DisplayDelegate=$ac_cv_path_DisplayDelegate
30226if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030228$as_echo "$DisplayDelegate" >&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 ""$MogrifyDelegateDefault"", so it can be a program name with args.
30236set dummy "$MogrifyDelegateDefault"; 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_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030240 $as_echo_n "(cached) " >&6
30241else
30242 case $MogrifyDelegate in
30243 [\\/]* | ?:[\\/]*)
30244 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # 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_MogrifyDelegate="$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_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30263 ;;
30264esac
30265fi
30266MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30267if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030269$as_echo "$MogrifyDelegate" >&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 ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30277set dummy "$GnuplotDecodeDelegateDefault"; 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_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030281 $as_echo_n "(cached) " >&6
30282else
30283 case $GnuplotDecodeDelegate in
30284 [\\/]* | ?:[\\/]*)
30285 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # 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_GnuplotDecodeDelegate="$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_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30304 ;;
30305esac
30306fi
30307GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30308if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030310$as_echo "$GnuplotDecodeDelegate" >&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 ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30318set dummy "$HDRDecodeDelegateDefault"; 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_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030322 $as_echo_n "(cached) " >&6
30323else
30324 case $HDRDecodeDelegate in
30325 [\\/]* | ?:[\\/]*)
30326 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # 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_HDRDecodeDelegate="$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_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30345 ;;
30346esac
30347fi
30348HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30349if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030351$as_echo "$HDRDecodeDelegate" >&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 ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30359set dummy "$HPGLDecodeDelegateDefault"; 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_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030363 $as_echo_n "(cached) " >&6
30364else
30365 case $HPGLDecodeDelegate in
30366 [\\/]* | ?:[\\/]*)
30367 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # 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_HPGLDecodeDelegate="$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_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30386 ;;
30387esac
30388fi
30389HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30390if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030392$as_echo "$HPGLDecodeDelegate" >&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 ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30400set dummy "$HTMLDecodeDelegateDefault"; 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_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030404 $as_echo_n "(cached) " >&6
30405else
30406 case $HTMLDecodeDelegate in
30407 [\\/]* | ?:[\\/]*)
30408 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # 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_HTMLDecodeDelegate="$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_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30427 ;;
30428esac
30429fi
30430HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30431if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030433$as_echo "$HTMLDecodeDelegate" >&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 ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30441set dummy "$ILBMDecodeDelegateDefault"; 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_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030445 $as_echo_n "(cached) " >&6
30446else
30447 case $ILBMDecodeDelegate in
30448 [\\/]* | ?:[\\/]*)
30449 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # 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_ILBMDecodeDelegate="$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_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30468 ;;
30469esac
30470fi
30471ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30472if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030474$as_echo "$ILBMDecodeDelegate" >&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 ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30482set dummy "$ILBMEncodeDelegateDefault"; 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_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030486 $as_echo_n "(cached) " >&6
30487else
30488 case $ILBMEncodeDelegate in
30489 [\\/]* | ?:[\\/]*)
30490 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # 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_ILBMEncodeDelegate="$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_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30509 ;;
30510esac
30511fi
30512ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30513if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030515$as_echo "$ILBMEncodeDelegate" >&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 ""$LPDelegateDefault"", so it can be a program name with args.
30523set dummy "$LPDelegateDefault"; 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_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030527 $as_echo_n "(cached) " >&6
30528else
30529 case $LPDelegate in
30530 [\\/]* | ?:[\\/]*)
30531 ac_cv_path_LPDelegate="$LPDelegate" # 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_LPDelegate="$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_LPDelegate" && ac_cv_path_LPDelegate="no"
30550 ;;
30551esac
30552fi
30553LPDelegate=$ac_cv_path_LPDelegate
30554if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030556$as_echo "$LPDelegate" >&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 ""$LPRDelegateDefault"", so it can be a program name with args.
30564set dummy "$LPRDelegateDefault"; 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_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030568 $as_echo_n "(cached) " >&6
30569else
30570 case $LPRDelegate in
30571 [\\/]* | ?:[\\/]*)
30572 ac_cv_path_LPRDelegate="$LPRDelegate" # 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_LPRDelegate="$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_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30591 ;;
30592esac
30593fi
30594LPRDelegate=$ac_cv_path_LPRDelegate
30595if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030597$as_echo "$LPRDelegate" >&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 ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30605set dummy "$LZWDecodeDelegateDefault"; 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_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030609 $as_echo_n "(cached) " >&6
30610else
30611 case $LZWDecodeDelegate in
30612 [\\/]* | ?:[\\/]*)
30613 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # 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_LZWDecodeDelegate="$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_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30632 ;;
30633esac
30634fi
30635LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30636if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030638$as_echo "$LZWDecodeDelegate" >&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 ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30646set dummy "$LZWEncodeDelegateDefault"; 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_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030650 $as_echo_n "(cached) " >&6
30651else
30652 case $LZWEncodeDelegate in
30653 [\\/]* | ?:[\\/]*)
30654 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # 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_LZWEncodeDelegate="$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_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30673 ;;
30674esac
30675fi
30676LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30677if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030679$as_echo "$LZWEncodeDelegate" >&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 ""$LaunchDelegateDefault"", so it can be a program name with args.
30687set dummy "$LaunchDelegateDefault"; 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_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030691 $as_echo_n "(cached) " >&6
30692else
30693 case $LaunchDelegate in
30694 [\\/]* | ?:[\\/]*)
30695 ac_cv_path_LaunchDelegate="$LaunchDelegate" # 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_LaunchDelegate="$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_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30714 ;;
30715esac
30716fi
30717LaunchDelegate=$ac_cv_path_LaunchDelegate
30718if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030720$as_echo "$LaunchDelegate" >&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
30727# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30728set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030730$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030731if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030732 $as_echo_n "(cached) " >&6
30733else
30734 case $MANDelegate in
30735 [\\/]* | ?:[\\/]*)
30736 ac_cv_path_MANDelegate="$MANDelegate" # 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=.
cristy8b350f62009-11-15 23:12:43 +000030744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030745 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_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030748 break 2
30749 fi
30750done
cristy8b350f62009-11-15 23:12:43 +000030751 done
cristy3ed852e2009-09-05 21:47:34 +000030752IFS=$as_save_IFS
30753
30754 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30755 ;;
30756esac
30757fi
30758MANDelegate=$ac_cv_path_MANDelegate
30759if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030761$as_echo "$MANDelegate" >&6; }
30762else
cristy8b350f62009-11-15 23:12:43 +000030763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030764$as_echo "no" >&6; }
30765fi
30766
30767
30768# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30769set dummy "$MPEGDecodeDelegateDefault"; 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_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030773 $as_echo_n "(cached) " >&6
30774else
30775 case $MPEGDecodeDelegate in
30776 [\\/]* | ?:[\\/]*)
30777 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # 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_MPEGDecodeDelegate="$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_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30796 ;;
30797esac
30798fi
30799MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30800if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030802$as_echo "$MPEGDecodeDelegate" >&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 ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30810set dummy "$MPEGEncodeDelegateDefault"; 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_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030814 $as_echo_n "(cached) " >&6
30815else
30816 case $MPEGEncodeDelegate in
30817 [\\/]* | ?:[\\/]*)
30818 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # 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_MPEGEncodeDelegate="$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_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30837 ;;
30838esac
30839fi
30840MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30841if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030843$as_echo "$MPEGEncodeDelegate" >&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 ""$MVDelegateDefault"", so it can be a program name with args.
30851set dummy "$MVDelegateDefault"; 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_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030855 $as_echo_n "(cached) " >&6
30856else
30857 case $MVDelegate in
30858 [\\/]* | ?:[\\/]*)
30859 ac_cv_path_MVDelegate="$MVDelegate" # 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_MVDelegate="$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_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30878 ;;
30879esac
30880fi
30881MVDelegate=$ac_cv_path_MVDelegate
30882if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030884$as_echo "$MVDelegate" >&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 ""$PCLDelegateDefault"", so it can be a program name with args.
30892set dummy "$PCLDelegateDefault"; 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_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030896 $as_echo_n "(cached) " >&6
30897else
30898 case $PCLDelegate in
30899 [\\/]* | ?:[\\/]*)
30900 ac_cv_path_PCLDelegate="$PCLDelegate" # 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_PCLDelegate="$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_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30919 ;;
30920esac
30921fi
30922PCLDelegate=$ac_cv_path_PCLDelegate
30923if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030925$as_echo "$PCLDelegate" >&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
30932# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30933set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030935$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030936if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030937 $as_echo_n "(cached) " >&6
30938else
30939 case $PGPDecodeDelegate in
30940 [\\/]* | ?:[\\/]*)
30941 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30942 ;;
30943 *)
30944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30945for as_dir in $PATH
30946do
30947 IFS=$as_save_IFS
30948 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30951 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030953 break 2
30954 fi
30955done
cristy8b350f62009-11-15 23:12:43 +000030956 done
cristy3ed852e2009-09-05 21:47:34 +000030957IFS=$as_save_IFS
30958
30959 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30960 ;;
30961esac
30962fi
30963PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30964if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030966$as_echo "$PGPDecodeDelegate" >&6; }
30967else
cristy8b350f62009-11-15 23:12:43 +000030968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030969$as_echo "no" >&6; }
30970fi
30971
30972
30973# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30974set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030976$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030977if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030978 $as_echo_n "(cached) " >&6
30979else
30980 case $POVDelegate in
30981 [\\/]* | ?:[\\/]*)
30982 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30983 ;;
30984 *)
30985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30986for as_dir in $PATH
30987do
30988 IFS=$as_save_IFS
30989 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30992 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030994 break 2
30995 fi
30996done
cristy8b350f62009-11-15 23:12:43 +000030997 done
cristy3ed852e2009-09-05 21:47:34 +000030998IFS=$as_save_IFS
30999
31000 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31001 ;;
31002esac
31003fi
31004POVDelegate=$ac_cv_path_POVDelegate
31005if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031007$as_echo "$POVDelegate" >&6; }
31008else
cristy8b350f62009-11-15 23:12:43 +000031009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031010$as_echo "no" >&6; }
31011fi
31012
31013
31014for ac_prog in gsx gsc "$PSDelegateDefault"
31015do
31016 # Extract the first word of "$ac_prog", so it can be a program name with args.
31017set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031019$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031020if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031021 $as_echo_n "(cached) " >&6
31022else
31023 case $PSDelegate in
31024 [\\/]* | ?:[\\/]*)
31025 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31026 ;;
31027 *)
31028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31029for as_dir in $PATH
31030do
31031 IFS=$as_save_IFS
31032 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031033 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31035 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031037 break 2
31038 fi
31039done
cristy8b350f62009-11-15 23:12:43 +000031040 done
cristy3ed852e2009-09-05 21:47:34 +000031041IFS=$as_save_IFS
31042
31043 ;;
31044esac
31045fi
31046PSDelegate=$ac_cv_path_PSDelegate
31047if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031049$as_echo "$PSDelegate" >&6; }
31050else
cristy8b350f62009-11-15 23:12:43 +000031051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031052$as_echo "no" >&6; }
31053fi
31054
31055
31056 test -n "$PSDelegate" && break
31057done
31058test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31059
31060# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31061set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031063$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031064if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031065 $as_echo_n "(cached) " >&6
31066else
31067 case $RLEEncodeDelegate in
31068 [\\/]* | ?:[\\/]*)
31069 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # 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=.
cristy8b350f62009-11-15 23:12:43 +000031077 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031078 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_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031081 break 2
31082 fi
31083done
cristy8b350f62009-11-15 23:12:43 +000031084 done
cristy3ed852e2009-09-05 21:47:34 +000031085IFS=$as_save_IFS
31086
31087 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31088 ;;
31089esac
31090fi
31091RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31092if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031094$as_echo "$RLEEncodeDelegate" >&6; }
31095else
cristy8b350f62009-11-15 23:12:43 +000031096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031097$as_echo "no" >&6; }
31098fi
31099
31100
31101# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31102set dummy "$RMDelegateDefault"; 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_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031106 $as_echo_n "(cached) " >&6
31107else
31108 case $RMDelegate in
31109 [\\/]* | ?:[\\/]*)
31110 ac_cv_path_RMDelegate="$RMDelegate" # 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_RMDelegate="$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_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31129 ;;
31130esac
31131fi
31132RMDelegate=$ac_cv_path_RMDelegate
31133if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031135$as_echo "$RMDelegate" >&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
cristy4689cf02010-02-17 21:15:45 +000031142# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31143set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31145$as_echo_n "checking for $ac_word... " >&6; }
31146if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31147 $as_echo_n "(cached) " >&6
31148else
31149 case $RSVGDecodeDelegate in
31150 [\\/]* | ?:[\\/]*)
31151 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # 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=.
31159 for ac_exec_ext in '' $ac_executable_extensions; do
31160 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_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31163 break 2
31164 fi
31165done
31166 done
31167IFS=$as_save_IFS
31168
31169 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31170 ;;
31171esac
31172fi
31173RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31174if test -n "$RSVGDecodeDelegate"; then
31175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31176$as_echo "$RSVGDecodeDelegate" >&6; }
31177else
31178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31179$as_echo "no" >&6; }
31180fi
31181
31182
cristy3ed852e2009-09-05 21:47:34 +000031183# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31184set dummy "$SCANDecodeDelegateDefault"; 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_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031188 $as_echo_n "(cached) " >&6
31189else
31190 case $SCANDecodeDelegate in
31191 [\\/]* | ?:[\\/]*)
31192 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # 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_SCANDecodeDelegate="$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_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31211 ;;
31212esac
31213fi
31214SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31215if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031217$as_echo "$SCANDecodeDelegate" >&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 ""$TXTDelegateDefault"", so it can be a program name with args.
31225set dummy "$TXTDelegateDefault"; 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_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031229 $as_echo_n "(cached) " >&6
31230else
31231 case $TXTDelegate in
31232 [\\/]* | ?:[\\/]*)
31233 ac_cv_path_TXTDelegate="$TXTDelegate" # 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_TXTDelegate="$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_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31252 ;;
31253esac
31254fi
31255TXTDelegate=$ac_cv_path_TXTDelegate
31256if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031258$as_echo "$TXTDelegate" >&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 ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31266set dummy "$WMFDecodeDelegateDefault"; 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_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031270 $as_echo_n "(cached) " >&6
31271else
31272 case $WMFDecodeDelegate in
31273 [\\/]* | ?:[\\/]*)
31274 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # 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_WMFDecodeDelegate="$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_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31293 ;;
31294esac
31295fi
31296WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31297if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031299$as_echo "$WMFDecodeDelegate" >&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 ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31307set dummy "$WWWDecodeDelegateDefault"; 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_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031311 $as_echo_n "(cached) " >&6
31312else
31313 case $WWWDecodeDelegate in
31314 [\\/]* | ?:[\\/]*)
31315 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # 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_WWWDecodeDelegate="$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_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31334 ;;
31335esac
31336fi
31337WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31338if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031340$as_echo "$WWWDecodeDelegate" >&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# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31348set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031350$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031351if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031352 $as_echo_n "(cached) " >&6
31353else
31354 case $XPSDelegate in
31355 [\\/]* | ?:[\\/]*)
31356 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31357 ;;
31358 *)
31359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31360for as_dir in $PATH
31361do
31362 IFS=$as_save_IFS
31363 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031364 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31366 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031368 break 2
31369 fi
31370done
cristy8b350f62009-11-15 23:12:43 +000031371 done
cristy3ed852e2009-09-05 21:47:34 +000031372IFS=$as_save_IFS
31373
31374 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31375 ;;
31376esac
31377fi
31378XPSDelegate=$ac_cv_path_XPSDelegate
31379if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031381$as_echo "$XPSDelegate" >&6; }
31382else
cristy8b350f62009-11-15 23:12:43 +000031383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031384$as_echo "no" >&6; }
31385fi
31386
31387
31388# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31389set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031391$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031392if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031393 $as_echo_n "(cached) " >&6
31394else
31395 case $ZipDelegate in
31396 [\\/]* | ?:[\\/]*)
31397 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31398 ;;
31399 *)
31400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31401for as_dir in $PATH
31402do
31403 IFS=$as_save_IFS
31404 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31407 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031409 break 2
31410 fi
31411done
cristy8b350f62009-11-15 23:12:43 +000031412 done
cristy3ed852e2009-09-05 21:47:34 +000031413IFS=$as_save_IFS
31414
31415 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31416 ;;
31417esac
31418fi
31419ZipDelegate=$ac_cv_path_ZipDelegate
31420if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031422$as_echo "$ZipDelegate" >&6; }
31423else
cristy8b350f62009-11-15 23:12:43 +000031424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031425$as_echo "no" >&6; }
31426fi
31427
31428
31429
31430# Prefer lpr to lp; lp needs options tacked on.
31431if test "$LPRDelegate" != no; then
31432 PrintDelegate="$LPRDelegate"
31433else
31434 PrintDelegate="$LPDelegate -c -s"
31435fi
31436
31437
31438# Installed ImageMagick utiltity paths
31439ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31440DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31441MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31442
31443# Set delegate booleans
31444have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31445have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31446have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31447have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31448have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31449have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
31450have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31451have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31452have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31453have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31454have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31455
31456#
31457# Test for font directories
31458#
31459type_include_files=''
31460
cristy430a7312010-01-21 20:44:04 +000031461# Dejavu fonts.
31462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31463$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31464dejavu_font_dir=''
31465if test "${with_dejavu_font_dir}" != 'default'; then
31466 dejavu_font_dir="${with_dejavu_font_dir}/"
31467else
31468 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31469 if test -f "${font_dir}DejaVuSerif.ttf"; then
31470 dejavu_font_dir="${font_dir}"
31471 break 1
31472 fi
31473 done
31474fi
31475if test "${dejavu_font_dir}x" != 'x'; then
31476 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31478$as_echo "$dejavu_font_dir" >&6; }
31479else
31480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31481$as_echo "not found!" >&6; };
31482fi
31483
31484
cristy3ed852e2009-09-05 21:47:34 +000031485# Windows
31486windows_font_dir=''
31487if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31488 windows_font_dir="${with_windows_font_dir}/"
31489fi
cristy430a7312010-01-21 20:44:04 +000031490if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031491 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31492 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31493 fi
31494 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31495 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31496 fi
31497 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31498 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31499 fi
31500fi
cristy430a7312010-01-21 20:44:04 +000031501if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031502 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31503fi
31504
31505
31506# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031508$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31509ghostscript_font_dir=''
31510if test "${with_gs_font_dir}" != 'default'; then
31511 ghostscript_font_dir="${with_gs_font_dir}/"
31512else
31513 if test "${native_win32_build}" = 'yes'; then
31514 # Native Windows Build
31515 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31516 if test -f "${font_dir}a010013l.pfb"; then
31517 ghostscript_font_dir="$font_dir"
31518 break 1
31519 fi
31520 done
31521 if test "${PSDelegate}" != 'gswin32c'; then
31522 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31523 fi
31524 else
31525 # Linux / Mac OS X / Unix Build
31526 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
31527 if test -f "${font_dir}a010013l.pfb"; then
31528 ghostscript_font_dir="${font_dir}"
31529 break 1
31530 fi
31531 done
31532 if test "${ghostscript_font_dir}x" = 'x'; then
31533 if test "$PSDelegate" != 'gs'; then
31534 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31535 fi
31536 fi
31537 fi
31538fi
31539if test "${ghostscript_font_dir}x" != 'x'; then
31540 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031542$as_echo "$ghostscript_font_dir" >&6; }
31543else
cristy8b350f62009-11-15 23:12:43 +000031544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031545$as_echo "not found!" >&6; };
31546fi
31547
31548case "${build_os}" in
31549 mingw* )
31550 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31551 ;;
31552esac
31553
31554
31555
31556#
31557# Handle case where user doesn't want frozen paths
31558#
31559if test "$with_frozenpaths" != 'yes'; then
31560 # Re-set delegate definitions to default (no paths)
31561 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31562 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31563 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31564 BZIPDelegate="$BZIPDelegateDefault"
31565 BrowseDelegate="$BrowseDelegateDefault"
31566 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31567 CatDelegate="$CatDelegateDefault"
31568 ConvertDelegate="$ConvertDelegateDefault"
31569 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31570 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31571 EchoDelegate="$EchoDelegateDefault"
31572 EditorDelegate="$EditorDelegateDefault"
31573 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31574 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31575 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31576 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31577 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31578 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31579 LPDelegate="$LPDelegateDefault"
31580 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31581 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31582 LaunchDelegate="$LaunchDelegateDefault"
31583 MANDelegate="$MANDelegateDefault"
31584 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31585 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31586 MVDelegate="$MVDelegateDefault"
31587 MogrifyDelegate="$MogrifyDelegateDefault"
31588 PCLDelegate="$PCLDelegateDefault"
31589 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31590 POVDelegate="$POVDelegateDefault"
31591 PSDelegate="$PSDelegateDefault"
31592 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31593 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31594 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031595 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031596 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31597 ShowImageDelegate="$ShowImageDelegateDefault"
31598 TXTDelegate="$TXTDelegateDefault"
31599 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31600 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31601 XPSDelegate="$XPSDelegateDefault"
31602 ZipDelegate="$ZipDelegateDefault"
31603fi
31604
31605# Delegate substitutions
31606
31607
31608
31609
31610
31611
31612
31613
31614
31615
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627
31628
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640
31641
31642
31643
31644
31645
31646
31647
31648#
31649# RPM support.
31650#
31651RPM=''
31652for ac_prog in gnutar gtar tar
31653do
31654 # Extract the first word of "$ac_prog", so it can be a program name with args.
31655set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031657$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031658if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031659 $as_echo_n "(cached) " >&6
31660else
31661 if test -n "$TAR"; then
31662 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31663else
31664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31665for as_dir in $PATH
31666do
31667 IFS=$as_save_IFS
31668 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031669 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31671 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031673 break 2
31674 fi
31675done
cristy8b350f62009-11-15 23:12:43 +000031676 done
cristy3ed852e2009-09-05 21:47:34 +000031677IFS=$as_save_IFS
31678
31679fi
31680fi
31681TAR=$ac_cv_prog_TAR
31682if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031684$as_echo "$TAR" >&6; }
31685else
cristy8b350f62009-11-15 23:12:43 +000031686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031687$as_echo "no" >&6; }
31688fi
31689
31690
31691 test -n "$TAR" && break
31692done
31693
31694for ac_prog in perl
31695do
31696 # Extract the first word of "$ac_prog", so it can be a program name with args.
31697set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031699$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031700if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031701 $as_echo_n "(cached) " >&6
31702else
31703 if test -n "$PERL"; then
31704 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31705else
31706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31707for as_dir in $PATH
31708do
31709 IFS=$as_save_IFS
31710 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031711 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31713 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031715 break 2
31716 fi
31717done
cristy8b350f62009-11-15 23:12:43 +000031718 done
cristy3ed852e2009-09-05 21:47:34 +000031719IFS=$as_save_IFS
31720
31721fi
31722fi
31723PERL=$ac_cv_prog_PERL
31724if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031726$as_echo "$PERL" >&6; }
31727else
cristy8b350f62009-11-15 23:12:43 +000031728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031729$as_echo "no" >&6; }
31730fi
31731
31732
31733 test -n "$PERL" && break
31734done
31735
31736for ac_prog in rpmbuild rpm
31737do
31738 # Extract the first word of "$ac_prog", so it can be a program name with args.
31739set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031741$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031742if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031743 $as_echo_n "(cached) " >&6
31744else
31745 if test -n "$RPM"; then
31746 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31747else
31748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31749for as_dir in $PATH
31750do
31751 IFS=$as_save_IFS
31752 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31755 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031757 break 2
31758 fi
31759done
cristy8b350f62009-11-15 23:12:43 +000031760 done
cristy3ed852e2009-09-05 21:47:34 +000031761IFS=$as_save_IFS
31762
31763fi
31764fi
31765RPM=$ac_cv_prog_RPM
31766if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031768$as_echo "$RPM" >&6; }
31769else
cristy8b350f62009-11-15 23:12:43 +000031770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031771$as_echo "no" >&6; }
31772fi
31773
31774
31775 test -n "$RPM" && break
31776done
31777
31778
31779ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31780
31781
31782AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31783
31784
31785AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31786
31787
31788AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31789
31790
31791 if test "x$RPM" != "x" ; then
31792 RPM_DELEGATE_TRUE=
31793 RPM_DELEGATE_FALSE='#'
31794else
31795 RPM_DELEGATE_TRUE='#'
31796 RPM_DELEGATE_FALSE=
31797fi
31798
31799
31800#
31801# 7ZIP support (http://p7zip.sourceforge.net/)
31802#
31803P7ZIP=''
31804for ac_prog in 7za
31805do
31806 # Extract the first word of "$ac_prog", so it can be a program name with args.
31807set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031809$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031810if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031811 $as_echo_n "(cached) " >&6
31812else
31813 if test -n "$P7ZIP"; then
31814 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31815else
31816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31817for as_dir in $PATH
31818do
31819 IFS=$as_save_IFS
31820 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31823 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031825 break 2
31826 fi
31827done
cristy8b350f62009-11-15 23:12:43 +000031828 done
cristy3ed852e2009-09-05 21:47:34 +000031829IFS=$as_save_IFS
31830
31831fi
31832fi
31833P7ZIP=$ac_cv_prog_P7ZIP
31834if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031836$as_echo "$P7ZIP" >&6; }
31837else
cristy8b350f62009-11-15 23:12:43 +000031838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031839$as_echo "no" >&6; }
31840fi
31841
31842
31843 test -n "$P7ZIP" && break
31844done
31845
31846
31847 if test "x$P7ZIP" != "x" ; then
31848 P7ZIP_DELEGATE_TRUE=
31849 P7ZIP_DELEGATE_FALSE='#'
31850else
31851 P7ZIP_DELEGATE_TRUE='#'
31852 P7ZIP_DELEGATE_FALSE=
31853fi
31854
31855
31856#
31857# ZIP support (http://www.info-zip.org/Zip.html)
31858#
31859ZIP=''
31860for ac_prog in zip
31861do
31862 # Extract the first word of "$ac_prog", so it can be a program name with args.
31863set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031865$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031866if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031867 $as_echo_n "(cached) " >&6
31868else
31869 if test -n "$ZIP"; then
31870 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31871else
31872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31873for as_dir in $PATH
31874do
31875 IFS=$as_save_IFS
31876 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31879 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031881 break 2
31882 fi
31883done
cristy8b350f62009-11-15 23:12:43 +000031884 done
cristy3ed852e2009-09-05 21:47:34 +000031885IFS=$as_save_IFS
31886
31887fi
31888fi
31889ZIP=$ac_cv_prog_ZIP
31890if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031892$as_echo "$ZIP" >&6; }
31893else
cristy8b350f62009-11-15 23:12:43 +000031894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031895$as_echo "no" >&6; }
31896fi
31897
31898
31899 test -n "$ZIP" && break
31900done
31901
31902
31903 if test "x$ZIP" != "x" ; then
31904 ZIP_DELEGATE_TRUE=
31905 ZIP_DELEGATE_FALSE='#'
31906else
31907 ZIP_DELEGATE_TRUE='#'
31908 ZIP_DELEGATE_FALSE=
31909fi
31910
31911
31912#
31913# GhostPCL related configuration.
31914#
31915PCLColorDevice=ppmraw
31916PCLCMYKDevice=bmpsep8
31917PCLMonoDevice=pbmraw
31918if test -z "$PCLVersion"; then
31919 PCLVersion='unknown'
31920fi
31921if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031923$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031925$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031927$as_echo "" >&6; }
31928 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031930$as_echo_n "checking for pcl color device... " >&6; }
31931 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31932 :
31933 else
31934 PCLColorDevice=ppmraw
31935 fi
cristy8b350f62009-11-15 23:12:43 +000031936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031937$as_echo "$PCLColorDevice" >&6; }
31938
31939 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031941$as_echo_n "checking for pcl CMYK device... " >&6; }
31942 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31943 :
31944 else
31945 PCLCMYKDevice=$PCLColorDevice
31946 fi
cristy8b350f62009-11-15 23:12:43 +000031947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031948$as_echo "$PCLCMYKDevice" >&6; }
31949
31950 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031952$as_echo_n "checking for pcl mono device... " >&6; }
31953 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31954 :
31955 else
31956 PCLMonoDevice=$PCLColorDevice
31957 fi
cristy8b350f62009-11-15 23:12:43 +000031958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031959$as_echo "$PCLMonoDevice" >&6; }
31960fi
31961
31962
31963
31964
31965
31966
31967#
31968# GhostXPS related configuration.
31969#
31970XPSColorDevice=ppmraw
31971XPSCMYKDevice=bmpsep8
31972XPSMonoDevice=pbmraw
31973if test -z "$XPSVersion"; then
31974 XPSVersion='unknown'
31975fi
31976if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031978$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031980$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031982$as_echo "" >&6; }
31983 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031985$as_echo_n "checking for xps color device... " >&6; }
31986 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31987 :
31988 else
31989 XPSColorDevice=ppmraw
31990 fi
cristy8b350f62009-11-15 23:12:43 +000031991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031992$as_echo "$XPSColorDevice" >&6; }
31993
31994 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031996$as_echo_n "checking for xps CMYK device... " >&6; }
31997 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31998 :
31999 else
32000 XPSCMYKDevice=$XPSColorDevice
32001 fi
cristy8b350f62009-11-15 23:12:43 +000032002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032003$as_echo "$XPSCMYKDevice" >&6; }
32004
32005 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032007$as_echo_n "checking for xps mono device... " >&6; }
32008 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32009 :
32010 else
32011 XPSMonoDevice=$XPSColorDevice
32012 fi
cristy8b350f62009-11-15 23:12:43 +000032013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032014$as_echo "$XPSMonoDevice" >&6; }
32015fi
32016
32017
32018
32019
32020
32021
32022#
32023# Ghostscript related configuration.
32024#
32025if test "$have_png" = 'yes'; then
32026 GSAlphaDevice=pngalpha
32027else
32028 GSAlphaDevice=pnmraw
32029fi
32030GSColorDevice=pnmraw
32031GSCMYKDevice=pam
32032GSMonoDevice=pbmraw
32033GSPDFDevice=pdfwrite
32034GSPSDevice=pswrite
32035GSEPSDevice=epswrite
32036GSVersion='unknown'
32037if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032039$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032041$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032043$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032045$as_echo_n "checking for Ghostscript version... " >&6; }
32046 if GSVersion=`$PSDelegate --version`; then
32047 :
32048 else
32049 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32050 fi
cristy8b350f62009-11-15 23:12:43 +000032051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032052$as_echo "$GSVersion" >&6; }
32053
32054 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032056$as_echo_n "checking for gs alpha device... " >&6; }
32057 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32058 :
32059 else
32060 GSAlphaDevice=pnmraw
32061 fi
cristy8b350f62009-11-15 23:12:43 +000032062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032063$as_echo "$GSAlphaDevice" >&6; }
32064
32065 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032067$as_echo_n "checking for gs color device... " >&6; }
32068 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32069 :
32070 else
32071 GSColorDevice=pnmraw
32072 fi
cristy8b350f62009-11-15 23:12:43 +000032073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032074$as_echo "$GSColorDevice" >&6; }
32075
32076 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032078$as_echo_n "checking for gs CMYK device... " >&6; }
32079 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32080 :
32081 else
32082 GSCMYKDevice=bmpsep8
32083 fi
cristy8b350f62009-11-15 23:12:43 +000032084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032085$as_echo "$GSCMYKDevice" >&6; }
32086
32087 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032089$as_echo_n "checking for gs mono device... " >&6; }
32090 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32091 :
32092 else
32093 GSMonoDevice=$GSColorDevice
32094 fi
cristy8b350f62009-11-15 23:12:43 +000032095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032096$as_echo "$GSMonoDevice" >&6; }
32097
32098 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032100$as_echo_n "checking for gs PDF writing device... " >&6; }
32101 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32102 :
32103 else
32104 GSPDFDevice=nodevice
32105 fi
cristy8b350f62009-11-15 23:12:43 +000032106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032107$as_echo "$GSPDFDevice" >&6; }
32108
32109 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032111$as_echo_n "checking for gs PS writing device... " >&6; }
32112 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32113 :
32114 else
32115 GSPSDevice=nodevice
32116 fi
cristy8b350f62009-11-15 23:12:43 +000032117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032118$as_echo "$GSPSDevice" >&6; }
32119
32120 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032122$as_echo_n "checking for gs EPS writing device... " >&6; }
32123 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32124 :
32125 else
32126 GSEPSDevice=nodevice
32127 fi
cristy8b350f62009-11-15 23:12:43 +000032128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032129$as_echo "$GSEPSDevice" >&6; }
32130fi
32131
32132
32133
32134
32135
32136
32137
32138
32139
32140
32141#
32142# PerlMagick-related configuration
32143#
32144
32145# Look for PERL if PerlMagick requested
32146# If name/path of desired PERL interpreter is specified, look for that one first
32147have_perl='no'
32148if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032150$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032152$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032154$as_echo "" >&6; }
32155 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032157$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032158if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032159 $as_echo_n "(cached) " >&6
32160else
32161 ac_cv_path_PERL="$with_perl"
32162fi
cristy8b350f62009-11-15 23:12:43 +000032163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032164$as_echo "$ac_cv_path_PERL" >&6; };
32165 PERL=$ac_cv_path_PERL
32166 have_perl="$ac_cv_path_PERL"
32167 else
32168 for ac_prog in perl perl5
32169do
32170 # Extract the first word of "$ac_prog", so it can be a program name with args.
32171set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032173$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032174if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032175 $as_echo_n "(cached) " >&6
32176else
32177 case $PERL in
32178 [\\/]* | ?:[\\/]*)
32179 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32180 ;;
32181 *)
32182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32183for as_dir in $PATH
32184do
32185 IFS=$as_save_IFS
32186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032187 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32189 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032191 break 2
32192 fi
32193done
cristy8b350f62009-11-15 23:12:43 +000032194 done
cristy3ed852e2009-09-05 21:47:34 +000032195IFS=$as_save_IFS
32196
32197 ;;
32198esac
32199fi
32200PERL=$ac_cv_path_PERL
32201if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032203$as_echo "$PERL" >&6; }
32204else
cristy8b350f62009-11-15 23:12:43 +000032205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032206$as_echo "no" >&6; }
32207fi
32208
32209
32210 test -n "$PERL" && break
32211done
32212 if test "$ac_cv_path_PERL"; then
32213 have_perl="$ac_cv_path_PERL"
32214 fi
32215 fi
32216fi
32217
cristy949301e2010-01-06 01:38:40 +000032218if test "$with_perl" != 'yes' ; then
32219 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32220fi
32221
32222PERL_SUPPORTS_DESTDIR='no'
32223
cristy3ed852e2009-09-05 21:47:34 +000032224with_perl_static='no'
32225with_perl_dynamic='no'
32226if test "$have_perl" != 'no'; then
32227 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32228 with_perl_static='yes'
32229 fi
32230 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32231 with_perl_dynamic='yes'
32232 fi
32233 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032234
32235
32236
32237
32238 if test -n "$PERL"; then :
32239
32240 ax_perl_version="5.8.1"
32241
32242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32243$as_echo_n "checking for perl version... " >&6; }
32244
32245 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32246
32247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32248$as_echo "$perl_version" >&6; }
32249
32250 PERL_VERSION=$perl_version
32251
32252
32253
32254
32255
32256 # Used to indicate true or false condition
32257 ax_compare_version=false
32258
32259 # Convert the two version strings to be compared into a format that
32260 # allows a simple string comparison. The end result is that a version
32261 # string of the form 1.12.5-r617 will be converted to the form
32262 # 0001001200050617. In other words, each number is zero padded to four
32263 # digits, and non digits are removed.
32264
32265 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32266 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32267 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32268 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32269 -e 's/[^0-9]//g'`
32270
32271
32272 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32273 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32274 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32275 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32276 -e 's/[^0-9]//g'`
32277
32278
32279 ax_compare_version=`echo "x$ax_compare_version_A
32280x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32281
32282
32283
32284 if test "$ax_compare_version" = "true" ; then
32285
32286 :
32287 PERL_SUPPORTS_DESTDIR='yes'
32288
32289 else
32290 :
32291 PERL_SUPPORTS_DESTDIR='no'
32292
cristy3ed852e2009-09-05 21:47:34 +000032293 fi
cristy3ed852e2009-09-05 21:47:34 +000032294
cristy964cb7f2010-04-25 23:18:00 +000032295
cristy3ed852e2009-09-05 21:47:34 +000032296else
cristy3ed852e2009-09-05 21:47:34 +000032297
cristy964cb7f2010-04-25 23:18:00 +000032298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32299$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32300 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032301
32302fi
32303
cristy3ed852e2009-09-05 21:47:34 +000032304fi
32305 if test "$have_perl" != 'no'; then
32306 WITH_PERL_TRUE=
32307 WITH_PERL_FALSE='#'
32308else
32309 WITH_PERL_TRUE='#'
32310 WITH_PERL_FALSE=
32311fi
32312
32313 if test $with_perl_static = 'yes'; then
32314 WITH_PERL_STATIC_TRUE=
32315 WITH_PERL_STATIC_FALSE='#'
32316else
32317 WITH_PERL_STATIC_TRUE='#'
32318 WITH_PERL_STATIC_FALSE=
32319fi
32320
32321 if test $with_perl_dynamic = 'yes'; then
32322 WITH_PERL_DYNAMIC_TRUE=
32323 WITH_PERL_DYNAMIC_FALSE='#'
32324else
32325 WITH_PERL_DYNAMIC_TRUE='#'
32326 WITH_PERL_DYNAMIC_FALSE=
32327fi
32328
32329
32330
32331# Determine path to pick up MagickCore library from for use with building PerlMagick
32332MAGICKCORE_PATH="${LIB_DIR}"
32333if test $with_perl_static = 'yes'; then
32334 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32335 libtool_objdir=$objdir
32336
32337 # Linker search path to library, followed by -lMagickCore
32338 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32339fi
32340
32341
32342# Create a simple string containing format names for all delegate libraries
32343DELEGATES=''
32344if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32345if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32346if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32347if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32348if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32349if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32350if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32351if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32352if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32353if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32354if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32355if test "$have_jpeg" = 'yes'; then
32356 DELEGATES="$DELEGATES jpeg";
32357 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32358fi
32359if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32360if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32361if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32362if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32363if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32364if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32365if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32366if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32367if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32368if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32369if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32370if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32371
32372
32373
32374#
32375# Handle special compiler flags
32376#
32377
32378# Add '-p' if prof source profiling support enabled
32379if test "$enable_prof" = 'yes'; then
32380 CFLAGS="-p $CFLAGS"
32381 CXXFLAGS="-p $CXXFLAGS"
32382 LDFLAGS="-p $LDFLAGS"
32383fi
32384
32385# Add '-pg' if gprof source profiling support enabled
32386if test "$enable_gprof" = 'yes'; then
32387 CFLAGS="-pg $CFLAGS"
32388 CXXFLAGS="-pg $CXXFLAGS"
32389 LDFLAGS="-pg $LDFLAGS"
32390fi
32391
32392# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32393# This is a gcc-specific feature
32394if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032396$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032397if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032398 $as_echo_n "(cached) " >&6
32399else
32400 ac_check_lib_save_LIBS=$LIBS
32401LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032403/* end confdefs.h. */
32404
32405/* Override any GCC internal prototype to avoid an error.
32406 Use char because int might match the return type of a GCC
32407 builtin and then its argument prototype would still apply. */
32408#ifdef __cplusplus
32409extern "C"
32410#endif
32411char _gcov_init ();
32412int
32413main ()
32414{
32415return _gcov_init ();
32416 ;
32417 return 0;
32418}
32419_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032420if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032421 ac_cv_lib_gcov__gcov_init=yes
32422else
cristy8b350f62009-11-15 23:12:43 +000032423 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032424fi
cristy8b350f62009-11-15 23:12:43 +000032425rm -f core conftest.err conftest.$ac_objext \
32426 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032427LIBS=$ac_check_lib_save_LIBS
32428fi
cristy8b350f62009-11-15 23:12:43 +000032429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032430$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032431if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032432 cat >>confdefs.h <<_ACEOF
32433#define HAVE_LIBGCOV 1
32434_ACEOF
32435
32436 LIBS="-lgcov $LIBS"
32437
32438fi
32439
cristy8b350f62009-11-15 23:12:43 +000032440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032441$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032442if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032443 $as_echo_n "(cached) " >&6
32444else
32445 ac_check_lib_save_LIBS=$LIBS
32446LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032448/* end confdefs.h. */
32449
32450/* Override any GCC internal prototype to avoid an error.
32451 Use char because int might match the return type of a GCC
32452 builtin and then its argument prototype would still apply. */
32453#ifdef __cplusplus
32454extern "C"
32455#endif
32456char __gcov_init ();
32457int
32458main ()
32459{
32460return __gcov_init ();
32461 ;
32462 return 0;
32463}
32464_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032465if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032466 ac_cv_lib_gcov___gcov_init=yes
32467else
cristy8b350f62009-11-15 23:12:43 +000032468 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032469fi
cristy8b350f62009-11-15 23:12:43 +000032470rm -f core conftest.err conftest.$ac_objext \
32471 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032472LIBS=$ac_check_lib_save_LIBS
32473fi
cristy8b350f62009-11-15 23:12:43 +000032474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032475$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032476if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032477 cat >>confdefs.h <<_ACEOF
32478#define HAVE_LIBGCOV 1
32479_ACEOF
32480
32481 LIBS="-lgcov $LIBS"
32482
32483fi
32484
32485 case "$target_os" in
32486 darwin*)
32487 OSX_GCOV_LDFLAG="-Wl,-single_module"
32488 ;;
32489 *)
32490 OSX_GCOV_LDFLAG=""
32491 ;;
32492 esac
32493
32494 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32495 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32496 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32497fi
32498
32499#
32500# Build library dependency list for libMagickCore
32501#
32502
32503MAGICK_LIBLTDL='' # Libltdl for build
32504MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32505MAGICK_LTDLDEPS='' # extra libltdl dependencies
32506if test "$with_ltdl" != 'no'
32507then
32508 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32509 MAGICK_API_LIBLTDL='-lltdl'
32510 fi
32511 MAGICK_LIBLTDL=${LIBLTDL}
32512 MAGICK_LTDLDEPS=${LTDLDEPS}
32513fi
32514
32515
32516
32517if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032518 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 +000032519else
cristy2e8b51d2009-10-17 18:26:15 +000032520 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 +000032521fi
32522
32523
32524#
32525# Remove extraneous spaces from output variables (asthetic)
32526#
32527X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32528X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32529X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32530X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32531
32532CC=`echo $CC | sed -e 's/ */ /g'`
32533CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32534CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32535CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32536DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32537DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32538LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32539TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32540MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32541#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32542
32543# Pass only user-provided LIBS as "global" libraries
32544LIBS=$USER_LIBS
32545
32546#AC_SUBST(CPPFLAGS)
32547
32548#AC_SUBST(LDFLAGS)
32549#AC_SUBST(X_PRE_LIBS)
32550#AC_SUBST(X_LIBS)
32551#AC_SUBST(X_EXTRA_LIBS)
32552
32553MAGICK_CFLAGS=$CFLAGS
32554MAGICK_CXXFLAGS="$CXXFLAGS"
32555MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32556MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32557MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32558MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32559
32560
32561
32562
32563
32564
32565
32566
32567# Set configured scripts to executable.
32568ac_config_commands="$ac_config_commands default"
32569
32570ac_config_commands="$ac_config_commands MagickCore-config.in"
32571
32572ac_config_commands="$ac_config_commands Magick-config.in"
32573
32574ac_config_commands="$ac_config_commands MagickWand-config.in"
32575
32576ac_config_commands="$ac_config_commands Wand-config.in"
32577
32578ac_config_commands="$ac_config_commands Magick++-config.in"
32579
32580ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32581
32582
cristy8b350f62009-11-15 23:12:43 +000032583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032584$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032586$as_echo "Update ImageMagick configuration" >&6; }
32587cat >confcache <<\_ACEOF
32588# This file is a shell script that caches the results of configure
32589# tests run on this system so they can be shared between configure
32590# scripts and configure runs, see configure's option --config-cache.
32591# It is not useful on other systems. If it contains results you don't
32592# want to keep, you may remove or edit it.
32593#
32594# config.status only pays attention to the cache file if you give it
32595# the --recheck option to rerun configure.
32596#
32597# `ac_cv_env_foo' variables (set or unset) will be overridden when
32598# loading this file, other *unset* `ac_cv_foo' will be assigned the
32599# following values.
32600
32601_ACEOF
32602
32603# The following way of writing the cache mishandles newlines in values,
32604# but we know of no workaround that is simple, portable, and efficient.
32605# So, we kill variables containing newlines.
32606# Ultrix sh set writes to stderr and can't be redirected directly,
32607# and sets the high bit in the cache file unless we assign to the vars.
32608(
32609 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32610 eval ac_val=\$$ac_var
32611 case $ac_val in #(
32612 *${as_nl}*)
32613 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032614 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032615$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32616 esac
32617 case $ac_var in #(
32618 _ | IFS | as_nl) ;; #(
32619 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032620 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032621 esac ;;
32622 esac
32623 done
32624
32625 (set) 2>&1 |
32626 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32627 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032628 # `set' does not quote correctly, so add quotes: double-quote
32629 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032630 sed -n \
32631 "s/'/'\\\\''/g;
32632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32633 ;; #(
32634 *)
32635 # `set' quotes correctly as required by POSIX, so do not add quotes.
32636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32637 ;;
32638 esac |
32639 sort
32640) |
32641 sed '
32642 /^ac_cv_env_/b end
32643 t clear
32644 :clear
32645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32646 t end
32647 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32648 :end' >>confcache
32649if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32650 if test -w "$cache_file"; then
32651 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032652 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032653$as_echo "$as_me: updating cache $cache_file" >&6;}
32654 cat confcache >$cache_file
32655 else
cristy8b350f62009-11-15 23:12:43 +000032656 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032657$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32658 fi
32659fi
32660rm -f confcache
32661
32662test "x$prefix" = xNONE && prefix=$ac_default_prefix
32663# Let make expand exec_prefix.
32664test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32665
32666DEFS=-DHAVE_CONFIG_H
32667
32668ac_libobjs=
32669ac_ltlibobjs=
32670for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32671 # 1. Remove the extension, and $U if already installed.
32672 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32673 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32674 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32675 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032676 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32677 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032678done
32679LIBOBJS=$ac_libobjs
32680
32681LTLIBOBJS=$ac_ltlibobjs
32682
32683
32684 if test -n "$EXEEXT"; then
32685 am__EXEEXT_TRUE=
32686 am__EXEEXT_FALSE='#'
32687else
32688 am__EXEEXT_TRUE='#'
32689 am__EXEEXT_FALSE=
32690fi
32691
32692if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032693 as_fn_error "conditional \"AMDEP\" was never defined.
32694Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032695fi
32696if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032697 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32698Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032699fi
cristya0b81c32010-01-22 02:54:33 +000032700if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32701 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32702Usually this means the macro was only invoked conditionally." "$LINENO" 5
32703fi
cristy3ed852e2009-09-05 21:47:34 +000032704if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032705 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32706Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032707fi
32708if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032709 as_fn_error "conditional \"WINGDI32_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 "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032713 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32714Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032715fi
32716if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032717 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32718Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032719fi
32720if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032721 as_fn_error "conditional \"USING_CL\" was never defined.
32722Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032723fi
cristy18304f92009-11-22 15:48:26 +000032724if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32725 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32726Usually this means the macro was only invoked conditionally." "$LINENO" 5
32727fi
cristy3ed852e2009-09-05 21:47:34 +000032728if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032729 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32730Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032731fi
32732if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032733 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
32734Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032735fi
32736LT_CONFIG_H=config/config.h
32737
32738 _ltdl_libobjs=
32739 _ltdl_ltlibobjs=
32740 if test -n "$_LT_LIBOBJS"; then
32741 # Remove the extension.
32742 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32743 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32744 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32745 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32746 done
32747 fi
32748 ltdl_LIBOBJS=$_ltdl_libobjs
32749
32750 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32751
32752
cristyfa112112010-01-04 17:48:07 +000032753if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32754 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
32755Usually this means the macro was only invoked conditionally." "$LINENO" 5
32756fi
cristy3ed852e2009-09-05 21:47:34 +000032757if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032758 as_fn_error "conditional \"WITH_MODULES\" was never defined.
32759Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032760fi
32761if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032762 as_fn_error "conditional \"WITH_LTDL\" was never defined.
32763Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032764fi
32765if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032766 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
32767Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032768fi
32769
32770if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032771 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32772Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032773fi
32774if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032775 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32776Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032777fi
32778if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032779 as_fn_error "conditional \"HasUMEM\" was never defined.
32780Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032781fi
32782if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032783 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
32784Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032785fi
32786if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032787 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
32788Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032789fi
32790if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032791 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
32792Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032793fi
32794if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032795 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32796Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032797fi
32798if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032799 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
32800Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032801fi
32802if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032803 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
32804Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032805fi
32806if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032807 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
32808Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032809fi
32810if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032811 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
32812Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032813fi
32814if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032815 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32816Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032817fi
32818if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032819 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32820Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032821fi
32822if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032823 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32824Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032825fi
32826if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032827 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32828Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032829fi
32830if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032831 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32832Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032833fi
32834if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032835 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32836Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032837fi
32838if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032839 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32840Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032841fi
32842if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032843 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32844Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032845fi
32846if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032847 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32848Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032849fi
32850if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032851 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32852Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032853fi
32854if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032855 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32856Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032857fi
32858if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032859 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32860Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032861fi
32862if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032863 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32864Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032865fi
32866if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032867 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32868Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032869fi
32870if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032871 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32872Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032873fi
32874if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032875 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32876Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032877fi
32878if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032879 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32880Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032881fi
32882if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032883 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
32884Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032885fi
32886if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032887 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
32888Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032889fi
32890if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032891 as_fn_error "conditional \"WITH_PERL\" was never defined.
32892Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032893fi
32894if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032895 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
32896Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032897fi
32898if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032899 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32900Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032901fi
32902
32903: ${CONFIG_STATUS=./config.status}
32904ac_write_fail=0
32905ac_clean_files_save=$ac_clean_files
32906ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032907{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032908$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032909as_write_fail=0
32910cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032911#! $SHELL
32912# Generated by $as_me.
32913# Run this file to recreate the current configuration.
32914# Compiler output produced by configure, useful for debugging
32915# configure, is in config.log if it exists.
32916
32917debug=false
32918ac_cs_recheck=false
32919ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032920
cristy8b350f62009-11-15 23:12:43 +000032921SHELL=\${CONFIG_SHELL-$SHELL}
32922export SHELL
32923_ASEOF
32924cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32925## -------------------- ##
32926## M4sh Initialization. ##
32927## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032928
32929# Be more Bourne compatible
32930DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032931if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032932 emulate sh
32933 NULLCMD=:
32934 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32935 # is contrary to our usage. Disable this feature.
32936 alias -g '${1+"$@"}'='"$@"'
32937 setopt NO_GLOB_SUBST
32938else
cristy8b350f62009-11-15 23:12:43 +000032939 case `(set -o) 2>/dev/null` in #(
32940 *posix*) :
32941 set -o posix ;; #(
32942 *) :
32943 ;;
cristy3ed852e2009-09-05 21:47:34 +000032944esac
cristy3ed852e2009-09-05 21:47:34 +000032945fi
32946
32947
cristy3ed852e2009-09-05 21:47:34 +000032948as_nl='
32949'
32950export as_nl
32951# Printing a long string crashes Solaris 7 /usr/bin/printf.
32952as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32953as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32954as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032955# Prefer a ksh shell builtin over an external printf program on Solaris,
32956# but without wasting forks for bash or zsh.
32957if test -z "$BASH_VERSION$ZSH_VERSION" \
32958 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32959 as_echo='print -r --'
32960 as_echo_n='print -rn --'
32961elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032962 as_echo='printf %s\n'
32963 as_echo_n='printf %s'
32964else
32965 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32966 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32967 as_echo_n='/usr/ucb/echo -n'
32968 else
32969 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32970 as_echo_n_body='eval
32971 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032972 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032973 *"$as_nl"*)
32974 expr "X$arg" : "X\\(.*\\)$as_nl";
32975 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32976 esac;
32977 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32978 '
32979 export as_echo_n_body
32980 as_echo_n='sh -c $as_echo_n_body as_echo'
32981 fi
32982 export as_echo_body
32983 as_echo='sh -c $as_echo_body as_echo'
32984fi
32985
32986# The user is always right.
32987if test "${PATH_SEPARATOR+set}" != set; then
32988 PATH_SEPARATOR=:
32989 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32990 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32991 PATH_SEPARATOR=';'
32992 }
32993fi
32994
cristy3ed852e2009-09-05 21:47:34 +000032995
32996# IFS
32997# We need space, tab and new line, in precisely that order. Quoting is
32998# there to prevent editors from complaining about space-tab.
32999# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33000# splitting by setting IFS to empty value.)
33001IFS=" "" $as_nl"
33002
33003# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033004case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033005 *[\\/]* ) as_myself=$0 ;;
33006 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33007for as_dir in $PATH
33008do
33009 IFS=$as_save_IFS
33010 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033011 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33012 done
cristy3ed852e2009-09-05 21:47:34 +000033013IFS=$as_save_IFS
33014
33015 ;;
33016esac
33017# We did not find ourselves, most probably we were run as `sh COMMAND'
33018# in which case we are not to be found in the path.
33019if test "x$as_myself" = x; then
33020 as_myself=$0
33021fi
33022if test ! -f "$as_myself"; then
33023 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033024 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033025fi
33026
cristy8b350f62009-11-15 23:12:43 +000033027# Unset variables that we do not need and which cause bugs (e.g. in
33028# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33029# suppresses any "Segmentation fault" message there. '((' could
33030# trigger a bug in pdksh 5.2.14.
33031for as_var in BASH_ENV ENV MAIL MAILPATH
33032do eval test x\${$as_var+set} = xset \
33033 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033034done
33035PS1='$ '
33036PS2='> '
33037PS4='+ '
33038
33039# NLS nuisances.
33040LC_ALL=C
33041export LC_ALL
33042LANGUAGE=C
33043export LANGUAGE
33044
cristy8b350f62009-11-15 23:12:43 +000033045# CDPATH.
33046(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33047
33048
33049# as_fn_error ERROR [LINENO LOG_FD]
33050# ---------------------------------
33051# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33052# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33053# script with status $?, using 1 if that was 0.
33054as_fn_error ()
33055{
33056 as_status=$?; test $as_status -eq 0 && as_status=1
33057 if test "$3"; then
33058 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33059 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
33060 fi
33061 $as_echo "$as_me: error: $1" >&2
33062 as_fn_exit $as_status
33063} # as_fn_error
33064
33065
33066# as_fn_set_status STATUS
33067# -----------------------
33068# Set $? to STATUS, without forking.
33069as_fn_set_status ()
33070{
33071 return $1
33072} # as_fn_set_status
33073
33074# as_fn_exit STATUS
33075# -----------------
33076# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33077as_fn_exit ()
33078{
33079 set +e
33080 as_fn_set_status $1
33081 exit $1
33082} # as_fn_exit
33083
33084# as_fn_unset VAR
33085# ---------------
33086# Portably unset VAR.
33087as_fn_unset ()
33088{
33089 { eval $1=; unset $1;}
33090}
33091as_unset=as_fn_unset
33092# as_fn_append VAR VALUE
33093# ----------------------
33094# Append the text in VALUE to the end of the definition contained in VAR. Take
33095# advantage of any shell optimizations that allow amortized linear growth over
33096# repeated appends, instead of the typical quadratic growth present in naive
33097# implementations.
33098if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33099 eval 'as_fn_append ()
33100 {
33101 eval $1+=\$2
33102 }'
33103else
33104 as_fn_append ()
33105 {
33106 eval $1=\$$1\$2
33107 }
33108fi # as_fn_append
33109
33110# as_fn_arith ARG...
33111# ------------------
33112# Perform arithmetic evaluation on the ARGs, and store the result in the
33113# global $as_val. Take advantage of shells that can avoid forks. The arguments
33114# must be portable across $(()) and expr.
33115if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33116 eval 'as_fn_arith ()
33117 {
33118 as_val=$(( $* ))
33119 }'
33120else
33121 as_fn_arith ()
33122 {
33123 as_val=`expr "$@" || test $? -eq 1`
33124 }
33125fi # as_fn_arith
33126
33127
cristy3ed852e2009-09-05 21:47:34 +000033128if expr a : '\(a\)' >/dev/null 2>&1 &&
33129 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33130 as_expr=expr
33131else
33132 as_expr=false
33133fi
33134
33135if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33136 as_basename=basename
33137else
33138 as_basename=false
33139fi
33140
cristy8b350f62009-11-15 23:12:43 +000033141if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33142 as_dirname=dirname
33143else
33144 as_dirname=false
33145fi
cristy3ed852e2009-09-05 21:47:34 +000033146
cristy3ed852e2009-09-05 21:47:34 +000033147as_me=`$as_basename -- "$0" ||
33148$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33149 X"$0" : 'X\(//\)$' \| \
33150 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33151$as_echo X/"$0" |
33152 sed '/^.*\/\([^/][^/]*\)\/*$/{
33153 s//\1/
33154 q
33155 }
33156 /^X\/\(\/\/\)$/{
33157 s//\1/
33158 q
33159 }
33160 /^X\/\(\/\).*/{
33161 s//\1/
33162 q
33163 }
33164 s/.*/./; q'`
33165
cristy8b350f62009-11-15 23:12:43 +000033166# Avoid depending upon Character Ranges.
33167as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33168as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33169as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33170as_cr_digits='0123456789'
33171as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033172
33173ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033174case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033175-n*)
cristy8b350f62009-11-15 23:12:43 +000033176 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033177 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033178 xy) ECHO_C='\c';;
33179 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33180 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033181 esac;;
33182*)
33183 ECHO_N='-n';;
33184esac
cristy3ed852e2009-09-05 21:47:34 +000033185
33186rm -f conf$$ conf$$.exe conf$$.file
33187if test -d conf$$.dir; then
33188 rm -f conf$$.dir/conf$$.file
33189else
33190 rm -f conf$$.dir
33191 mkdir conf$$.dir 2>/dev/null
33192fi
33193if (echo >conf$$.file) 2>/dev/null; then
33194 if ln -s conf$$.file conf$$ 2>/dev/null; then
33195 as_ln_s='ln -s'
33196 # ... but there are two gotchas:
33197 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33198 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33199 # In both cases, we have to default to `cp -p'.
33200 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33201 as_ln_s='cp -p'
33202 elif ln conf$$.file conf$$ 2>/dev/null; then
33203 as_ln_s=ln
33204 else
33205 as_ln_s='cp -p'
33206 fi
33207else
33208 as_ln_s='cp -p'
33209fi
33210rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33211rmdir conf$$.dir 2>/dev/null
33212
cristy8b350f62009-11-15 23:12:43 +000033213
33214# as_fn_mkdir_p
33215# -------------
33216# Create "$as_dir" as a directory, including parents if necessary.
33217as_fn_mkdir_p ()
33218{
33219
33220 case $as_dir in #(
33221 -*) as_dir=./$as_dir;;
33222 esac
33223 test -d "$as_dir" || eval $as_mkdir_p || {
33224 as_dirs=
33225 while :; do
33226 case $as_dir in #(
33227 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33228 *) as_qdir=$as_dir;;
33229 esac
33230 as_dirs="'$as_qdir' $as_dirs"
33231 as_dir=`$as_dirname -- "$as_dir" ||
33232$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33233 X"$as_dir" : 'X\(//\)[^/]' \| \
33234 X"$as_dir" : 'X\(//\)$' \| \
33235 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33236$as_echo X"$as_dir" |
33237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33238 s//\1/
33239 q
33240 }
33241 /^X\(\/\/\)[^/].*/{
33242 s//\1/
33243 q
33244 }
33245 /^X\(\/\/\)$/{
33246 s//\1/
33247 q
33248 }
33249 /^X\(\/\).*/{
33250 s//\1/
33251 q
33252 }
33253 s/.*/./; q'`
33254 test -d "$as_dir" && break
33255 done
33256 test -z "$as_dirs" || eval "mkdir $as_dirs"
33257 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
33258
33259
33260} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033261if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033262 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033263else
33264 test -d ./-p && rmdir ./-p
33265 as_mkdir_p=false
33266fi
33267
33268if test -x / >/dev/null 2>&1; then
33269 as_test_x='test -x'
33270else
33271 if ls -dL / >/dev/null 2>&1; then
33272 as_ls_L_option=L
33273 else
33274 as_ls_L_option=
33275 fi
33276 as_test_x='
33277 eval sh -c '\''
33278 if test -d "$1"; then
33279 test -d "$1/.";
33280 else
cristy8b350f62009-11-15 23:12:43 +000033281 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033282 -*)set "./$1";;
33283 esac;
cristy8b350f62009-11-15 23:12:43 +000033284 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033285 ???[sx]*):;;*)false;;esac;fi
33286 '\'' sh
33287 '
33288fi
33289as_executable_p=$as_test_x
33290
33291# Sed expression to map a string onto a valid CPP name.
33292as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33293
33294# Sed expression to map a string onto a valid variable name.
33295as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33296
33297
33298exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033299## ----------------------------------- ##
33300## Main body of $CONFIG_STATUS script. ##
33301## ----------------------------------- ##
33302_ASEOF
33303test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033304
cristy8b350f62009-11-15 23:12:43 +000033305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33306# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033307# report actual input values of CONFIG_FILES etc. instead of their
33308# values after options handling.
33309ac_log="
cristyb36feb22010-03-26 16:54:37 +000033310This file was extended by ImageMagick $as_me 6.6.1, which was
cristycd4c5312009-11-22 01:19:08 +000033311generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033312
33313 CONFIG_FILES = $CONFIG_FILES
33314 CONFIG_HEADERS = $CONFIG_HEADERS
33315 CONFIG_LINKS = $CONFIG_LINKS
33316 CONFIG_COMMANDS = $CONFIG_COMMANDS
33317 $ $0 $@
33318
33319on `(hostname || uname -n) 2>/dev/null | sed 1q`
33320"
33321
33322_ACEOF
33323
33324case $ac_config_files in *"
33325"*) set x $ac_config_files; shift; ac_config_files=$*;;
33326esac
33327
33328case $ac_config_headers in *"
33329"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33330esac
33331
33332
33333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33334# Files that config.status was made for.
33335config_files="$ac_config_files"
33336config_headers="$ac_config_headers"
33337config_commands="$ac_config_commands"
33338
33339_ACEOF
33340
33341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33342ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033343\`$as_me' instantiates files and other configuration actions
33344from templates according to the current configuration. Unless the files
33345and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033346
cristy8b350f62009-11-15 23:12:43 +000033347Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033348
33349 -h, --help print this help, then exit
33350 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033351 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033352 -q, --quiet, --silent
33353 do not print progress messages
33354 -d, --debug don't remove temporary files
33355 --recheck update $as_me by reconfiguring in the same conditions
33356 --file=FILE[:TEMPLATE]
33357 instantiate the configuration file FILE
33358 --header=FILE[:TEMPLATE]
33359 instantiate the configuration header FILE
33360
33361Configuration files:
33362$config_files
33363
33364Configuration headers:
33365$config_headers
33366
33367Configuration commands:
33368$config_commands
33369
cristy8b350f62009-11-15 23:12:43 +000033370Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033371
33372_ACEOF
33373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033374ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033375ac_cs_version="\\
cristyb36feb22010-03-26 16:54:37 +000033376ImageMagick config.status 6.6.1
cristycd4c5312009-11-22 01:19:08 +000033377configured by $0, generated by GNU Autoconf 2.65,
33378 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033379
cristy8b350f62009-11-15 23:12:43 +000033380Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033381This config.status script is free software; the Free Software Foundation
33382gives unlimited permission to copy, distribute and modify it."
33383
33384ac_pwd='$ac_pwd'
33385srcdir='$srcdir'
33386INSTALL='$INSTALL'
33387MKDIR_P='$MKDIR_P'
33388AWK='$AWK'
33389test -n "\$AWK" || AWK=awk
33390_ACEOF
33391
33392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33393# The default lists apply if the user does not specify any file.
33394ac_need_defaults=:
33395while test $# != 0
33396do
33397 case $1 in
33398 --*=*)
33399 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33400 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33401 ac_shift=:
33402 ;;
33403 *)
33404 ac_option=$1
33405 ac_optarg=$2
33406 ac_shift=shift
33407 ;;
33408 esac
33409
33410 case $ac_option in
33411 # Handling of the options.
33412 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33413 ac_cs_recheck=: ;;
33414 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33415 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033416 --config | --confi | --conf | --con | --co | --c )
33417 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033418 --debug | --debu | --deb | --de | --d | -d )
33419 debug=: ;;
33420 --file | --fil | --fi | --f )
33421 $ac_shift
33422 case $ac_optarg in
33423 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33424 esac
cristy8b350f62009-11-15 23:12:43 +000033425 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033426 ac_need_defaults=false;;
33427 --header | --heade | --head | --hea )
33428 $ac_shift
33429 case $ac_optarg in
33430 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33431 esac
cristy8b350f62009-11-15 23:12:43 +000033432 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033433 ac_need_defaults=false;;
33434 --he | --h)
33435 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000033436 as_fn_error "ambiguous option: \`$1'
33437Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033438 --help | --hel | -h )
33439 $as_echo "$ac_cs_usage"; exit ;;
33440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33441 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33442 ac_cs_silent=: ;;
33443
33444 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000033445 -*) as_fn_error "unrecognized option: \`$1'
33446Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033447
cristy8b350f62009-11-15 23:12:43 +000033448 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033449 ac_need_defaults=false ;;
33450
33451 esac
33452 shift
33453done
33454
33455ac_configure_extra_args=
33456
33457if $ac_cs_silent; then
33458 exec 6>/dev/null
33459 ac_configure_extra_args="$ac_configure_extra_args --silent"
33460fi
33461
33462_ACEOF
33463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33464if \$ac_cs_recheck; then
33465 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33466 shift
33467 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33468 CONFIG_SHELL='$SHELL'
33469 export CONFIG_SHELL
33470 exec "\$@"
33471fi
33472
33473_ACEOF
33474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33475exec 5>>config.log
33476{
33477 echo
33478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33479## Running $as_me. ##
33480_ASBOX
33481 $as_echo "$ac_log"
33482} >&5
33483
33484_ACEOF
33485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33486#
33487# INIT-COMMANDS
33488#
33489PACKAGE="$PACKAGE"
33490AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33491
33492
33493# The HP-UX ksh and POSIX shell print the target directory to stdout
33494# if CDPATH is set.
33495(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33496
33497sed_quote_subst='$sed_quote_subst'
33498double_quote_subst='$double_quote_subst'
33499delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000033500SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33501Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33502GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33503EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33504FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33505LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33506macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33507macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33508AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33509DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33510OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33511enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33512enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33513pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33514enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33515host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33516host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33517host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33518build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33519build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33520build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33521NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33522LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33523max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33524ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33525exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33526lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33527lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33528lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33529reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33530reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33531deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33532file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33533AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33534AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33535STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33536RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33537old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33538old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33539old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33540CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33541CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33542compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33543GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33544lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33545lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33546lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
33547lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33548objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33549SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33550ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33551MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33552lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33553lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33554lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33555lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33556lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33557need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33558DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33559NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33560LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33561OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33562OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33563libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33564shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33565extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33566archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33567enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33568export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33569whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33570compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33571old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33572old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33573archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33574archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33575module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33576module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33577with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33578allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33579no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33580hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33581hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33582hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33583hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33584hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33585hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33586hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33587hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33588inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33589link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33590fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33591always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33592export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33593exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33594include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33595prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33596file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33597variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33598need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33599need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33600version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33601runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33602shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33603shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33604libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33605library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33606soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33607postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33608postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33609finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33610finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33611hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33612sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33613sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33614hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33615enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33616enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33617enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33618old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33619striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33620compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33621predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33622postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33623predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33624postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33625compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33626LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33627old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33628compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33629GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33630lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33631lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33632lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33633lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33634lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33635archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33636enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33637export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33638whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33639compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33640old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33641old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33642archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33643archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33644module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33645module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33646with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33647allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33648no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33649hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33650hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33651hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33652hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33653hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33654hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33655hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33656hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33657inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33658link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33659fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33660always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33661export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33662exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33663include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33664prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33665file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33666hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33667compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33668predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33669postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33670predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33671postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33672compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033673
33674LTCC='$LTCC'
33675LTCFLAGS='$LTCFLAGS'
33676compiler='$compiler_DEFAULT'
33677
33678# Quote evaled strings.
33679for var in SED \
33680GREP \
33681EGREP \
33682FGREP \
33683LD \
33684NM \
33685LN_S \
33686lt_SP2NL \
33687lt_NL2SP \
33688reload_flag \
33689deplibs_check_method \
33690file_magic_cmd \
33691AR \
33692AR_FLAGS \
33693STRIP \
33694RANLIB \
33695CC \
33696CFLAGS \
33697compiler \
33698lt_cv_sys_global_symbol_pipe \
33699lt_cv_sys_global_symbol_to_cdecl \
33700lt_cv_sys_global_symbol_to_c_name_address \
33701lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000033702SHELL \
33703ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033704lt_prog_compiler_no_builtin_flag \
33705lt_prog_compiler_wl \
33706lt_prog_compiler_pic \
33707lt_prog_compiler_static \
33708lt_cv_prog_compiler_c_o \
33709need_locks \
33710DSYMUTIL \
33711NMEDIT \
33712LIPO \
33713OTOOL \
33714OTOOL64 \
33715shrext_cmds \
33716export_dynamic_flag_spec \
33717whole_archive_flag_spec \
33718compiler_needs_object \
33719with_gnu_ld \
33720allow_undefined_flag \
33721no_undefined_flag \
33722hardcode_libdir_flag_spec \
33723hardcode_libdir_flag_spec_ld \
33724hardcode_libdir_separator \
33725fix_srcfile_path \
33726exclude_expsyms \
33727include_expsyms \
33728file_list_spec \
33729variables_saved_for_relink \
33730libname_spec \
33731library_names_spec \
33732soname_spec \
33733finish_eval \
33734old_striplib \
33735striplib \
33736compiler_lib_search_dirs \
33737predep_objects \
33738postdep_objects \
33739predeps \
33740postdeps \
33741compiler_lib_search_path \
33742LD_CXX \
33743compiler_CXX \
33744lt_prog_compiler_no_builtin_flag_CXX \
33745lt_prog_compiler_wl_CXX \
33746lt_prog_compiler_pic_CXX \
33747lt_prog_compiler_static_CXX \
33748lt_cv_prog_compiler_c_o_CXX \
33749export_dynamic_flag_spec_CXX \
33750whole_archive_flag_spec_CXX \
33751compiler_needs_object_CXX \
33752with_gnu_ld_CXX \
33753allow_undefined_flag_CXX \
33754no_undefined_flag_CXX \
33755hardcode_libdir_flag_spec_CXX \
33756hardcode_libdir_flag_spec_ld_CXX \
33757hardcode_libdir_separator_CXX \
33758fix_srcfile_path_CXX \
33759exclude_expsyms_CXX \
33760include_expsyms_CXX \
33761file_list_spec_CXX \
33762compiler_lib_search_dirs_CXX \
33763predep_objects_CXX \
33764postdep_objects_CXX \
33765predeps_CXX \
33766postdeps_CXX \
33767compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000033768 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033769 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033770 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033771 ;;
33772 *)
33773 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33774 ;;
33775 esac
33776done
33777
33778# Double-quote double-evaled strings.
33779for var in reload_cmds \
33780old_postinstall_cmds \
33781old_postuninstall_cmds \
33782old_archive_cmds \
33783extract_expsyms_cmds \
33784old_archive_from_new_cmds \
33785old_archive_from_expsyms_cmds \
33786archive_cmds \
33787archive_expsym_cmds \
33788module_cmds \
33789module_expsym_cmds \
33790export_symbols_cmds \
33791prelink_cmds \
33792postinstall_cmds \
33793postuninstall_cmds \
33794finish_cmds \
33795sys_lib_search_path_spec \
33796sys_lib_dlsearch_path_spec \
33797old_archive_cmds_CXX \
33798old_archive_from_new_cmds_CXX \
33799old_archive_from_expsyms_cmds_CXX \
33800archive_cmds_CXX \
33801archive_expsym_cmds_CXX \
33802module_cmds_CXX \
33803module_expsym_cmds_CXX \
33804export_symbols_cmds_CXX \
33805prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000033806 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033807 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033808 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033809 ;;
33810 *)
33811 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33812 ;;
33813 esac
33814done
33815
cristy18304f92009-11-22 15:48:26 +000033816# Fix-up fallback echo if it was mangled by the above quoting rules.
33817case \$lt_ECHO in
33818*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33819 ;;
33820esac
33821
cristy3ed852e2009-09-05 21:47:34 +000033822ac_aux_dir='$ac_aux_dir'
33823xsi_shell='$xsi_shell'
33824lt_shell_append='$lt_shell_append'
33825
33826# See if we are running on zsh, and set the options which allow our
33827# commands through without removal of \ escapes INIT.
33828if test -n "\${ZSH_VERSION+set}" ; then
33829 setopt NO_GLOB_SUBST
33830fi
33831
33832
33833 PACKAGE='$PACKAGE'
33834 VERSION='$VERSION'
33835 TIMESTAMP='$TIMESTAMP'
33836 RM='$RM'
33837 ofile='$ofile'
33838
33839
33840
33841
33842
33843
33844_ACEOF
33845
33846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33847
33848# Handling of arguments.
33849for ac_config_target in $ac_config_targets
33850do
33851 case $ac_config_target in
33852 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33853 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33854 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33855 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33856 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33857 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33858 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033859 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033860 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33861 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33862 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33863 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33864 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33865 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33866 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33867 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33868 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33869 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33870 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33871 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33872 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33873 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33874 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33875 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33876 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33877 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33878 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33879 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33880 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33881 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33882 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33883 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33884 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33885 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33886 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33887 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33888 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33889 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33890 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33891 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33892 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33893 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33894 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33895 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33896 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33897 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33898 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33899 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33900 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33901 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33902
cristy8b350f62009-11-15 23:12:43 +000033903 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033904 esac
33905done
33906
33907
33908# If the user did not use the arguments to specify the items to instantiate,
33909# then the envvar interface is used. Set only those that are not.
33910# We use the long form for the default assignment because of an extremely
33911# bizarre bug on SunOS 4.1.3.
33912if $ac_need_defaults; then
33913 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33914 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33915 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33916fi
33917
33918# Have a temporary directory for convenience. Make it in the build tree
33919# simply because there is no reason against having it here, and in addition,
33920# creating and moving files from /tmp can sometimes cause problems.
33921# Hook for its removal unless debugging.
33922# Note that there is a small window in which the directory will not be cleaned:
33923# after its creation but before its name has been assigned to `$tmp'.
33924$debug ||
33925{
33926 tmp=
33927 trap 'exit_status=$?
33928 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33929' 0
cristy8b350f62009-11-15 23:12:43 +000033930 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033931}
33932# Create a (secure) tmp directory for tmp files.
33933
33934{
33935 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33936 test -n "$tmp" && test -d "$tmp"
33937} ||
33938{
33939 tmp=./conf$$-$RANDOM
33940 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000033941} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033942
33943# Set up the scripts for CONFIG_FILES section.
33944# No need to generate them if there are no CONFIG_FILES.
33945# This happens for instance with `./config.status config.h'.
33946if test -n "$CONFIG_FILES"; then
33947
33948
cristy8b350f62009-11-15 23:12:43 +000033949ac_cr=`echo X | tr X '\015'`
33950# On cygwin, bash can eat \r inside `` if the user requested igncr.
33951# But we know of no other shell where ac_cr would be empty at this
33952# point, so we can use a bashism as a fallback.
33953if test "x$ac_cr" = x; then
33954 eval ac_cr=\$\'\\r\'
33955fi
cristy3ed852e2009-09-05 21:47:34 +000033956ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33957if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000033958 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000033959else
33960 ac_cs_awk_cr=$ac_cr
33961fi
33962
33963echo 'BEGIN {' >"$tmp/subs1.awk" &&
33964_ACEOF
33965
33966
33967{
33968 echo "cat >conf$$subs.awk <<_ACEOF" &&
33969 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33970 echo "_ACEOF"
33971} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033972 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033973ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33974ac_delim='%!_!# '
33975for ac_last_try in false false false false false :; do
33976 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033977 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033978
33979 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33980 if test $ac_delim_n = $ac_delim_num; then
33981 break
33982 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033983 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033984 else
33985 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33986 fi
33987done
33988rm -f conf$$subs.sh
33989
33990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33991cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33992_ACEOF
33993sed -n '
33994h
33995s/^/S["/; s/!.*/"]=/
33996p
33997g
33998s/^[^!]*!//
33999:repl
34000t repl
34001s/'"$ac_delim"'$//
34002t delim
34003:nl
34004h
cristycd4c5312009-11-22 01:19:08 +000034005s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034006t more1
34007s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34008p
34009n
34010b repl
34011:more1
34012s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34013p
34014g
34015s/.\{148\}//
34016t nl
34017:delim
34018h
cristycd4c5312009-11-22 01:19:08 +000034019s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034020t more2
34021s/["\\]/\\&/g; s/^/"/; s/$/"/
34022p
34023b
34024:more2
34025s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34026p
34027g
34028s/.\{148\}//
34029t delim
34030' <conf$$subs.awk | sed '
34031/^[^""]/{
34032 N
34033 s/\n//
34034}
34035' >>$CONFIG_STATUS || ac_write_fail=1
34036rm -f conf$$subs.awk
34037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34038_ACAWK
34039cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34040 for (key in S) S_is_set[key] = 1
34041 FS = ""
34042
34043}
34044{
34045 line = $ 0
34046 nfields = split(line, field, "@")
34047 substed = 0
34048 len = length(field[1])
34049 for (i = 2; i < nfields; i++) {
34050 key = field[i]
34051 keylen = length(key)
34052 if (S_is_set[key]) {
34053 value = S[key]
34054 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34055 len += length(value) + length(field[++i])
34056 substed = 1
34057 } else
34058 len += 1 + keylen
34059 }
34060
34061 print line
34062}
34063
34064_ACAWK
34065_ACEOF
34066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34067if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34068 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34069else
34070 cat
34071fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000034072 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034073_ACEOF
34074
34075# VPATH may cause trouble with some makes, so we remove $(srcdir),
34076# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34077# trailing colons and then remove the whole line if VPATH becomes empty
34078# (actually we leave an empty line to preserve line numbers).
34079if test "x$srcdir" = x.; then
34080 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34081s/:*\$(srcdir):*/:/
34082s/:*\${srcdir}:*/:/
34083s/:*@srcdir@:*/:/
34084s/^\([^=]*=[ ]*\):*/\1/
34085s/:*$//
34086s/^[^=]*=[ ]*$//
34087}'
34088fi
34089
34090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34091fi # test -n "$CONFIG_FILES"
34092
34093# Set up the scripts for CONFIG_HEADERS section.
34094# No need to generate them if there are no CONFIG_HEADERS.
34095# This happens for instance with `./config.status Makefile'.
34096if test -n "$CONFIG_HEADERS"; then
34097cat >"$tmp/defines.awk" <<\_ACAWK ||
34098BEGIN {
34099_ACEOF
34100
34101# Transform confdefs.h into an awk script `defines.awk', embedded as
34102# here-document in config.status, that substitutes the proper values into
34103# config.h.in to produce config.h.
34104
34105# Create a delimiter string that does not exist in confdefs.h, to ease
34106# handling of long lines.
34107ac_delim='%!_!# '
34108for ac_last_try in false false :; do
34109 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34110 if test -z "$ac_t"; then
34111 break
34112 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000034113 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034114 else
34115 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34116 fi
34117done
34118
34119# For the awk script, D is an array of macro values keyed by name,
34120# likewise P contains macro parameters if any. Preserve backslash
34121# newline sequences.
34122
34123ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34124sed -n '
34125s/.\{148\}/&'"$ac_delim"'/g
34126t rset
34127:rset
34128s/^[ ]*#[ ]*define[ ][ ]*/ /
34129t def
34130d
34131:def
34132s/\\$//
34133t bsnl
34134s/["\\]/\\&/g
34135s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34136D["\1"]=" \3"/p
34137s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34138d
34139:bsnl
34140s/["\\]/\\&/g
34141s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34142D["\1"]=" \3\\\\\\n"\\/p
34143t cont
34144s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34145t cont
34146d
34147:cont
34148n
34149s/.\{148\}/&'"$ac_delim"'/g
34150t clear
34151:clear
34152s/\\$//
34153t bsnlc
34154s/["\\]/\\&/g; s/^/"/; s/$/"/p
34155d
34156:bsnlc
34157s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34158b cont
34159' <confdefs.h | sed '
34160s/'"$ac_delim"'/"\\\
34161"/g' >>$CONFIG_STATUS || ac_write_fail=1
34162
34163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34164 for (key in D) D_is_set[key] = 1
34165 FS = ""
34166}
34167/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34168 line = \$ 0
34169 split(line, arg, " ")
34170 if (arg[1] == "#") {
34171 defundef = arg[2]
34172 mac1 = arg[3]
34173 } else {
34174 defundef = substr(arg[1], 2)
34175 mac1 = arg[2]
34176 }
34177 split(mac1, mac2, "(") #)
34178 macro = mac2[1]
34179 prefix = substr(line, 1, index(line, defundef) - 1)
34180 if (D_is_set[macro]) {
34181 # Preserve the white space surrounding the "#".
34182 print prefix "define", macro P[macro] D[macro]
34183 next
34184 } else {
34185 # Replace #undef with comments. This is necessary, for example,
34186 # in the case of _POSIX_SOURCE, which is predefined and required
34187 # on some systems where configure will not decide to define it.
34188 if (defundef == "undef") {
34189 print "/*", prefix defundef, macro, "*/"
34190 next
34191 }
34192 }
34193}
34194{ print }
34195_ACAWK
34196_ACEOF
34197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000034198 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034199fi # test -n "$CONFIG_HEADERS"
34200
34201
34202eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34203shift
34204for ac_tag
34205do
34206 case $ac_tag in
34207 :[FHLC]) ac_mode=$ac_tag; continue;;
34208 esac
34209 case $ac_mode$ac_tag in
34210 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000034211 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034212 :[FH]-) ac_tag=-:-;;
34213 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34214 esac
34215 ac_save_IFS=$IFS
34216 IFS=:
34217 set x $ac_tag
34218 IFS=$ac_save_IFS
34219 shift
34220 ac_file=$1
34221 shift
34222
34223 case $ac_mode in
34224 :L) ac_source=$1;;
34225 :[FH])
34226 ac_file_inputs=
34227 for ac_f
34228 do
34229 case $ac_f in
34230 -) ac_f="$tmp/stdin";;
34231 *) # Look for the file first in the build tree, then in the source tree
34232 # (if the path is not absolute). The absolute path cannot be DOS-style,
34233 # because $ac_f cannot contain `:'.
34234 test -f "$ac_f" ||
34235 case $ac_f in
34236 [\\/$]*) false;;
34237 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34238 esac ||
cristy8b350f62009-11-15 23:12:43 +000034239 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034240 esac
34241 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034242 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034243 done
34244
34245 # Let's still pretend it is `configure' which instantiates (i.e., don't
34246 # use $as_me), people would be surprised to read:
34247 # /* config.h. Generated by config.status. */
34248 configure_input='Generated from '`
34249 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34250 `' by configure.'
34251 if test x"$ac_file" != x-; then
34252 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034254$as_echo "$as_me: creating $ac_file" >&6;}
34255 fi
34256 # Neutralize special characters interpreted by sed in replacement strings.
34257 case $configure_input in #(
34258 *\&* | *\|* | *\\* )
34259 ac_sed_conf_input=`$as_echo "$configure_input" |
34260 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34261 *) ac_sed_conf_input=$configure_input;;
34262 esac
34263
34264 case $ac_tag in
34265 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000034266 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034267 esac
34268 ;;
34269 esac
34270
34271 ac_dir=`$as_dirname -- "$ac_file" ||
34272$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34273 X"$ac_file" : 'X\(//\)[^/]' \| \
34274 X"$ac_file" : 'X\(//\)$' \| \
34275 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34276$as_echo X"$ac_file" |
34277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34278 s//\1/
34279 q
34280 }
34281 /^X\(\/\/\)[^/].*/{
34282 s//\1/
34283 q
34284 }
34285 /^X\(\/\/\)$/{
34286 s//\1/
34287 q
34288 }
34289 /^X\(\/\).*/{
34290 s//\1/
34291 q
34292 }
34293 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034294 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034295 ac_builddir=.
34296
34297case "$ac_dir" in
34298.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34299*)
34300 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34301 # A ".." for each directory in $ac_dir_suffix.
34302 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34303 case $ac_top_builddir_sub in
34304 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34305 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34306 esac ;;
34307esac
34308ac_abs_top_builddir=$ac_pwd
34309ac_abs_builddir=$ac_pwd$ac_dir_suffix
34310# for backward compatibility:
34311ac_top_builddir=$ac_top_build_prefix
34312
34313case $srcdir in
34314 .) # We are building in place.
34315 ac_srcdir=.
34316 ac_top_srcdir=$ac_top_builddir_sub
34317 ac_abs_top_srcdir=$ac_pwd ;;
34318 [\\/]* | ?:[\\/]* ) # Absolute name.
34319 ac_srcdir=$srcdir$ac_dir_suffix;
34320 ac_top_srcdir=$srcdir
34321 ac_abs_top_srcdir=$srcdir ;;
34322 *) # Relative name.
34323 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34324 ac_top_srcdir=$ac_top_build_prefix$srcdir
34325 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34326esac
34327ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34328
34329
34330 case $ac_mode in
34331 :F)
34332 #
34333 # CONFIG_FILE
34334 #
34335
34336 case $INSTALL in
34337 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34338 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34339 esac
34340 ac_MKDIR_P=$MKDIR_P
34341 case $MKDIR_P in
34342 [\\/$]* | ?:[\\/]* ) ;;
34343 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34344 esac
34345_ACEOF
34346
34347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34348# If the template does not know about datarootdir, expand it.
34349# FIXME: This hack should be removed a few years after 2.60.
34350ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034351ac_sed_dataroot='
34352/datarootdir/ {
34353 p
34354 q
34355}
34356/@datadir@/p
34357/@docdir@/p
34358/@infodir@/p
34359/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034360/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034361case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34362*datarootdir*) ac_datarootdir_seen=yes;;
34363*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034365$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34366_ACEOF
34367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34368 ac_datarootdir_hack='
34369 s&@datadir@&$datadir&g
34370 s&@docdir@&$docdir&g
34371 s&@infodir@&$infodir&g
34372 s&@localedir@&$localedir&g
34373 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034374 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034375esac
34376_ACEOF
34377
34378# Neutralize VPATH when `$srcdir' = `.'.
34379# Shell code in configure.ac might set extrasub.
34380# FIXME: do we really want to maintain this feature?
34381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34382ac_sed_extra="$ac_vpsub
34383$extrasub
34384_ACEOF
34385cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34386:t
34387/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34388s|@configure_input@|$ac_sed_conf_input|;t t
34389s&@top_builddir@&$ac_top_builddir_sub&;t t
34390s&@top_build_prefix@&$ac_top_build_prefix&;t t
34391s&@srcdir@&$ac_srcdir&;t t
34392s&@abs_srcdir@&$ac_abs_srcdir&;t t
34393s&@top_srcdir@&$ac_top_srcdir&;t t
34394s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34395s&@builddir@&$ac_builddir&;t t
34396s&@abs_builddir@&$ac_abs_builddir&;t t
34397s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34398s&@INSTALL@&$ac_INSTALL&;t t
34399s&@MKDIR_P@&$ac_MKDIR_P&;t t
34400$ac_datarootdir_hack
34401"
34402eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000034403 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034404
34405test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34406 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34407 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000034409which seems to be undefined. Please make sure it is defined." >&5
34410$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34411which seems to be undefined. Please make sure it is defined." >&2;}
34412
34413 rm -f "$tmp/stdin"
34414 case $ac_file in
34415 -) cat "$tmp/out" && rm -f "$tmp/out";;
34416 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34417 esac \
cristy8b350f62009-11-15 23:12:43 +000034418 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034419 ;;
34420 :H)
34421 #
34422 # CONFIG_HEADER
34423 #
34424 if test x"$ac_file" != x-; then
34425 {
34426 $as_echo "/* $configure_input */" \
34427 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34428 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000034429 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034430 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034431 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034432$as_echo "$as_me: $ac_file is unchanged" >&6;}
34433 else
34434 rm -f "$ac_file"
34435 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000034436 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034437 fi
34438 else
34439 $as_echo "/* $configure_input */" \
34440 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000034441 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034442 fi
34443# Compute "$ac_file"'s index in $config_headers.
34444_am_arg="$ac_file"
34445_am_stamp_count=1
34446for _am_header in $config_headers :; do
34447 case $_am_header in
34448 $_am_arg | $_am_arg:* )
34449 break ;;
34450 * )
34451 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34452 esac
34453done
34454echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34455$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34456 X"$_am_arg" : 'X\(//\)[^/]' \| \
34457 X"$_am_arg" : 'X\(//\)$' \| \
34458 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34459$as_echo X"$_am_arg" |
34460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34461 s//\1/
34462 q
34463 }
34464 /^X\(\/\/\)[^/].*/{
34465 s//\1/
34466 q
34467 }
34468 /^X\(\/\/\)$/{
34469 s//\1/
34470 q
34471 }
34472 /^X\(\/\).*/{
34473 s//\1/
34474 q
34475 }
34476 s/.*/./; q'`/stamp-h$_am_stamp_count
34477 ;;
34478
cristy8b350f62009-11-15 23:12:43 +000034479 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034480$as_echo "$as_me: executing $ac_file commands" >&6;}
34481 ;;
34482 esac
34483
34484
34485 case $ac_file$ac_mode in
34486 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34487ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34488ac_prefix_conf_PKG=`echo MagickCore`
34489ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34490ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34491ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34492if test ".$ac_prefix_conf_INP" = "."; then
34493 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34494 case "$ac_file" in
34495 *.h) ac_prefix_conf_INP=$ac_file ;;
34496 *)
34497 esac
34498 test ".$ac_prefix_conf_INP" != "." && break
34499 done
34500fi
34501if test ".$ac_prefix_conf_INP" = "."; then
34502 case "$ac_prefix_conf_OUT" in
34503 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34504 ;;
34505 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34506 ;;
34507 *) ac_prefix_conf_INP=config.h
34508 ;;
34509 esac
34510fi
34511if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000034512 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034513else
34514 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34515 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34516 fi fi
cristy8b350f62009-11-15 23:12:43 +000034517 { $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 +000034518$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34519 if test -f $ac_prefix_conf_INP ; then
34520 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34521 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034522 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34523 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034524 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034525 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34526 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034527 echo "#endif/" >> conftest.prefix
34528 # now executing _script on _DEF input to create _OUT output file
34529 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34530 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34531 echo ' ' >>$tmp/pconfig.h
34532 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34533
34534 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34535 echo ' ' >>$tmp/pconfig.h
34536 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34537 echo "#endif" >>$tmp/pconfig.h
34538 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034539 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034540$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34541 else
34542 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34543$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34544 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34545 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34546 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34547$as_echo X"$ac_prefix_conf_OUT" |
34548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34549 s//\1/
34550 q
34551 }
34552 /^X\(\/\/\)[^/].*/{
34553 s//\1/
34554 q
34555 }
34556 /^X\(\/\/\)$/{
34557 s//\1/
34558 q
34559 }
34560 /^X\(\/\).*/{
34561 s//\1/
34562 q
34563 }
34564 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034565 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034566 rm -f "$ac_prefix_conf_OUT"
34567 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34568 fi
34569 cp conftest.prefix _configs.sed
34570 else
cristy8b350f62009-11-15 23:12:43 +000034571 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 +000034572 fi
34573 rm -f conftest.*
34574fi
34575 ;;
34576 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34577 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34578 # are listed without --file. Let's play safe and only enable the eval
34579 # if we detect the quoting.
34580 case $CONFIG_FILES in
34581 *\'*) eval set x "$CONFIG_FILES" ;;
34582 *) set x $CONFIG_FILES ;;
34583 esac
34584 shift
34585 for mf
34586 do
34587 # Strip MF so we end up with the name of the file.
34588 mf=`echo "$mf" | sed -e 's/:.*$//'`
34589 # Check whether this is an Automake generated Makefile or not.
34590 # We used to match only the files named `Makefile.in', but
34591 # some people rename them; so instead we look at the file content.
34592 # Grep'ing the first line is not enough: some people post-process
34593 # each Makefile.in and add a new line on top of each file to say so.
34594 # Grep'ing the whole file is not good either: AIX grep has a line
34595 # limit of 2048, but all sed's we know have understand at least 4000.
34596 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34597 dirpart=`$as_dirname -- "$mf" ||
34598$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34599 X"$mf" : 'X\(//\)[^/]' \| \
34600 X"$mf" : 'X\(//\)$' \| \
34601 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34602$as_echo X"$mf" |
34603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34604 s//\1/
34605 q
34606 }
34607 /^X\(\/\/\)[^/].*/{
34608 s//\1/
34609 q
34610 }
34611 /^X\(\/\/\)$/{
34612 s//\1/
34613 q
34614 }
34615 /^X\(\/\).*/{
34616 s//\1/
34617 q
34618 }
34619 s/.*/./; q'`
34620 else
34621 continue
34622 fi
34623 # Extract the definition of DEPDIR, am__include, and am__quote
34624 # from the Makefile without running `make'.
34625 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34626 test -z "$DEPDIR" && continue
34627 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34628 test -z "am__include" && continue
34629 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34630 # When using ansi2knr, U may be empty or an underscore; expand it
34631 U=`sed -n 's/^U = //p' < "$mf"`
34632 # Find all dependency output files, they are included files with
34633 # $(DEPDIR) in their names. We invoke sed twice because it is the
34634 # simplest approach to changing $(DEPDIR) to its actual value in the
34635 # expansion.
34636 for file in `sed -n "
34637 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34638 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34639 # Make sure the directory exists.
34640 test -f "$dirpart/$file" && continue
34641 fdir=`$as_dirname -- "$file" ||
34642$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34643 X"$file" : 'X\(//\)[^/]' \| \
34644 X"$file" : 'X\(//\)$' \| \
34645 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34646$as_echo X"$file" |
34647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34648 s//\1/
34649 q
34650 }
34651 /^X\(\/\/\)[^/].*/{
34652 s//\1/
34653 q
34654 }
34655 /^X\(\/\/\)$/{
34656 s//\1/
34657 q
34658 }
34659 /^X\(\/\).*/{
34660 s//\1/
34661 q
34662 }
34663 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034664 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034665 # echo "creating $dirpart/$file"
34666 echo '# dummy' > "$dirpart/$file"
34667 done
34668 done
34669}
34670 ;;
34671 "libtool":C)
34672
34673 # See if we are running on zsh, and set the options which allow our
34674 # commands through without removal of \ escapes.
34675 if test -n "${ZSH_VERSION+set}" ; then
34676 setopt NO_GLOB_SUBST
34677 fi
34678
34679 cfgfile="${ofile}T"
34680 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34681 $RM "$cfgfile"
34682
34683 cat <<_LT_EOF >> "$cfgfile"
34684#! $SHELL
34685
34686# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34687# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34688# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34689# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34690#
34691# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000034692# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034693# Written by Gordon Matzigkeit, 1996
34694#
34695# This file is part of GNU Libtool.
34696#
34697# GNU Libtool is free software; you can redistribute it and/or
34698# modify it under the terms of the GNU General Public License as
34699# published by the Free Software Foundation; either version 2 of
34700# the License, or (at your option) any later version.
34701#
34702# As a special exception to the GNU General Public License,
34703# if you distribute this file as part of a program or library that
34704# is built using GNU Libtool, you may include this file under the
34705# same distribution terms that you use for the rest of that program.
34706#
34707# GNU Libtool is distributed in the hope that it will be useful,
34708# but WITHOUT ANY WARRANTY; without even the implied warranty of
34709# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34710# GNU General Public License for more details.
34711#
34712# You should have received a copy of the GNU General Public License
34713# along with GNU Libtool; see the file COPYING. If not, a copy
34714# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34715# obtained by writing to the Free Software Foundation, Inc.,
34716# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34717
34718
34719# The names of the tagged configurations supported by this script.
34720available_tags="CXX "
34721
34722# ### BEGIN LIBTOOL CONFIG
34723
34724# A sed program that does not truncate output.
34725SED=$lt_SED
34726
34727# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34728Xsed="\$SED -e 1s/^X//"
34729
34730# A grep program that handles long lines.
34731GREP=$lt_GREP
34732
34733# An ERE matcher.
34734EGREP=$lt_EGREP
34735
34736# A literal string matcher.
34737FGREP=$lt_FGREP
34738
34739# Which release of libtool.m4 was used?
34740macro_version=$macro_version
34741macro_revision=$macro_revision
34742
34743# Assembler program.
cristy18304f92009-11-22 15:48:26 +000034744AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000034745
34746# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000034747DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034748
34749# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000034750OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034751
34752# Whether or not to build shared libraries.
34753build_libtool_libs=$enable_shared
34754
34755# Whether or not to build static libraries.
34756build_old_libs=$enable_static
34757
34758# What type of objects to build.
34759pic_mode=$pic_mode
34760
34761# Whether or not to optimize for fast installation.
34762fast_install=$enable_fast_install
34763
34764# The host system.
34765host_alias=$host_alias
34766host=$host
34767host_os=$host_os
34768
34769# The build system.
34770build_alias=$build_alias
34771build=$build
34772build_os=$build_os
34773
34774# A BSD- or MS-compatible name lister.
34775NM=$lt_NM
34776
34777# Whether we need soft or hard links.
34778LN_S=$lt_LN_S
34779
34780# What is the maximum length of a command?
34781max_cmd_len=$max_cmd_len
34782
34783# Object file suffix (normally "o").
34784objext=$ac_objext
34785
34786# Executable file suffix (normally "").
34787exeext=$exeext
34788
34789# whether the shell understands "unset".
34790lt_unset=$lt_unset
34791
34792# turn spaces into newlines.
34793SP2NL=$lt_lt_SP2NL
34794
34795# turn newlines into spaces.
34796NL2SP=$lt_lt_NL2SP
34797
cristy18304f92009-11-22 15:48:26 +000034798# How to create reloadable object files.
34799reload_flag=$lt_reload_flag
34800reload_cmds=$lt_reload_cmds
34801
cristy3ed852e2009-09-05 21:47:34 +000034802# Method to check whether dependent libraries are shared objects.
34803deplibs_check_method=$lt_deplibs_check_method
34804
34805# Command to use when deplibs_check_method == "file_magic".
34806file_magic_cmd=$lt_file_magic_cmd
34807
34808# The archiver.
34809AR=$lt_AR
34810AR_FLAGS=$lt_AR_FLAGS
34811
34812# A symbol stripping program.
34813STRIP=$lt_STRIP
34814
34815# Commands used to install an old-style archive.
34816RANLIB=$lt_RANLIB
34817old_postinstall_cmds=$lt_old_postinstall_cmds
34818old_postuninstall_cmds=$lt_old_postuninstall_cmds
34819
34820# A C compiler.
34821LTCC=$lt_CC
34822
34823# LTCC compiler flags.
34824LTCFLAGS=$lt_CFLAGS
34825
34826# Take the output of nm and produce a listing of raw symbols and C names.
34827global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34828
34829# Transform the output of nm in a proper C declaration.
34830global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34831
34832# Transform the output of nm in a C name address pair.
34833global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34834
34835# Transform the output of nm in a C name address pair when lib prefix is needed.
34836global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34837
34838# The name of the directory that contains temporary libtool files.
34839objdir=$objdir
34840
cristy18304f92009-11-22 15:48:26 +000034841# Shell to use when invoking shell scripts.
34842SHELL=$lt_SHELL
34843
34844# An echo program that does not interpret backslashes.
34845ECHO=$lt_ECHO
34846
cristy3ed852e2009-09-05 21:47:34 +000034847# Used to examine libraries when file_magic_cmd begins with "file".
34848MAGIC_CMD=$MAGIC_CMD
34849
34850# Must we lock files when doing compilation?
34851need_locks=$lt_need_locks
34852
34853# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34854DSYMUTIL=$lt_DSYMUTIL
34855
34856# Tool to change global to local symbols on Mac OS X.
34857NMEDIT=$lt_NMEDIT
34858
34859# Tool to manipulate fat objects and archives on Mac OS X.
34860LIPO=$lt_LIPO
34861
34862# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34863OTOOL=$lt_OTOOL
34864
34865# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34866OTOOL64=$lt_OTOOL64
34867
34868# Old archive suffix (normally "a").
34869libext=$libext
34870
34871# Shared library suffix (normally ".so").
34872shrext_cmds=$lt_shrext_cmds
34873
34874# The commands to extract the exported symbol list from a shared archive.
34875extract_expsyms_cmds=$lt_extract_expsyms_cmds
34876
34877# Variables whose values should be saved in libtool wrapper scripts and
34878# restored at link time.
34879variables_saved_for_relink=$lt_variables_saved_for_relink
34880
34881# Do we need the "lib" prefix for modules?
34882need_lib_prefix=$need_lib_prefix
34883
34884# Do we need a version for libraries?
34885need_version=$need_version
34886
34887# Library versioning type.
34888version_type=$version_type
34889
34890# Shared library runtime path variable.
34891runpath_var=$runpath_var
34892
34893# Shared library path variable.
34894shlibpath_var=$shlibpath_var
34895
34896# Is shlibpath searched before the hard-coded library search path?
34897shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34898
34899# Format of library name prefix.
34900libname_spec=$lt_libname_spec
34901
34902# List of archive names. First name is the real one, the rest are links.
34903# The last name is the one that the linker finds with -lNAME
34904library_names_spec=$lt_library_names_spec
34905
34906# The coded name of the library, if different from the real name.
34907soname_spec=$lt_soname_spec
34908
34909# Command to use after installation of a shared archive.
34910postinstall_cmds=$lt_postinstall_cmds
34911
34912# Command to use after uninstallation of a shared archive.
34913postuninstall_cmds=$lt_postuninstall_cmds
34914
34915# Commands used to finish a libtool library installation in a directory.
34916finish_cmds=$lt_finish_cmds
34917
34918# As "finish_cmds", except a single script fragment to be evaled but
34919# not shown.
34920finish_eval=$lt_finish_eval
34921
34922# Whether we should hardcode library paths into libraries.
34923hardcode_into_libs=$hardcode_into_libs
34924
34925# Compile-time system search path for libraries.
34926sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34927
34928# Run-time system search path for libraries.
34929sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34930
34931# Whether dlopen is supported.
34932dlopen_support=$enable_dlopen
34933
34934# Whether dlopen of programs is supported.
34935dlopen_self=$enable_dlopen_self
34936
34937# Whether dlopen of statically linked programs is supported.
34938dlopen_self_static=$enable_dlopen_self_static
34939
34940# Commands to strip libraries.
34941old_striplib=$lt_old_striplib
34942striplib=$lt_striplib
34943
34944
34945# The linker used to build libraries.
34946LD=$lt_LD
34947
34948# Commands used to build an old-style archive.
34949old_archive_cmds=$lt_old_archive_cmds
34950
34951# A language specific compiler.
34952CC=$lt_compiler
34953
34954# Is the compiler the GNU compiler?
34955with_gcc=$GCC
34956
34957# Compiler flag to turn off builtin functions.
34958no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34959
34960# How to pass a linker flag through the compiler.
34961wl=$lt_lt_prog_compiler_wl
34962
34963# Additional compiler flags for building library objects.
34964pic_flag=$lt_lt_prog_compiler_pic
34965
34966# Compiler flag to prevent dynamic linking.
34967link_static_flag=$lt_lt_prog_compiler_static
34968
34969# Does compiler simultaneously support -c and -o options?
34970compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34971
34972# Whether or not to add -lc for building shared libraries.
34973build_libtool_need_lc=$archive_cmds_need_lc
34974
34975# Whether or not to disallow shared libs when runtime libs are static.
34976allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34977
34978# Compiler flag to allow reflexive dlopens.
34979export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34980
34981# Compiler flag to generate shared objects directly from archives.
34982whole_archive_flag_spec=$lt_whole_archive_flag_spec
34983
34984# Whether the compiler copes with passing no objects directly.
34985compiler_needs_object=$lt_compiler_needs_object
34986
34987# Create an old-style archive from a shared archive.
34988old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34989
34990# Create a temporary old-style archive to link instead of a shared archive.
34991old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34992
34993# Commands used to build a shared archive.
34994archive_cmds=$lt_archive_cmds
34995archive_expsym_cmds=$lt_archive_expsym_cmds
34996
34997# Commands used to build a loadable module if different from building
34998# a shared archive.
34999module_cmds=$lt_module_cmds
35000module_expsym_cmds=$lt_module_expsym_cmds
35001
35002# Whether we are building with GNU ld or not.
35003with_gnu_ld=$lt_with_gnu_ld
35004
35005# Flag that allows shared libraries with undefined symbols to be built.
35006allow_undefined_flag=$lt_allow_undefined_flag
35007
35008# Flag that enforces no undefined symbols.
35009no_undefined_flag=$lt_no_undefined_flag
35010
35011# Flag to hardcode \$libdir into a binary during linking.
35012# This must work even if \$libdir does not exist
35013hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35014
35015# If ld is used when linking, flag to hardcode \$libdir into a binary
35016# during linking. This must work even if \$libdir does not exist.
35017hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35018
35019# Whether we need a single "-rpath" flag with a separated argument.
35020hardcode_libdir_separator=$lt_hardcode_libdir_separator
35021
35022# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35023# DIR into the resulting binary.
35024hardcode_direct=$hardcode_direct
35025
35026# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35027# DIR into the resulting binary and the resulting library dependency is
35028# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35029# library is relocated.
35030hardcode_direct_absolute=$hardcode_direct_absolute
35031
35032# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35033# into the resulting binary.
35034hardcode_minus_L=$hardcode_minus_L
35035
35036# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35037# into the resulting binary.
35038hardcode_shlibpath_var=$hardcode_shlibpath_var
35039
35040# Set to "yes" if building a shared library automatically hardcodes DIR
35041# into the library and all subsequent libraries and executables linked
35042# against it.
35043hardcode_automatic=$hardcode_automatic
35044
35045# Set to yes if linker adds runtime paths of dependent libraries
35046# to runtime path list.
35047inherit_rpath=$inherit_rpath
35048
35049# Whether libtool must link a program against all its dependency libraries.
35050link_all_deplibs=$link_all_deplibs
35051
35052# Fix the shell variable \$srcfile for the compiler.
35053fix_srcfile_path=$lt_fix_srcfile_path
35054
35055# Set to "yes" if exported symbols are required.
35056always_export_symbols=$always_export_symbols
35057
35058# The commands to list exported symbols.
35059export_symbols_cmds=$lt_export_symbols_cmds
35060
35061# Symbols that should not be listed in the preloaded symbols.
35062exclude_expsyms=$lt_exclude_expsyms
35063
35064# Symbols that must always be exported.
35065include_expsyms=$lt_include_expsyms
35066
35067# Commands necessary for linking programs (against libraries) with templates.
35068prelink_cmds=$lt_prelink_cmds
35069
35070# Specify filename containing input files.
35071file_list_spec=$lt_file_list_spec
35072
35073# How to hardcode a shared library path into an executable.
35074hardcode_action=$hardcode_action
35075
35076# The directories searched by this compiler when creating a shared library.
35077compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35078
35079# Dependencies to place before and after the objects being linked to
35080# create a shared library.
35081predep_objects=$lt_predep_objects
35082postdep_objects=$lt_postdep_objects
35083predeps=$lt_predeps
35084postdeps=$lt_postdeps
35085
35086# The library search path used internally by the compiler when linking
35087# a shared library.
35088compiler_lib_search_path=$lt_compiler_lib_search_path
35089
35090# ### END LIBTOOL CONFIG
35091
35092_LT_EOF
35093
35094 case $host_os in
35095 aix3*)
35096 cat <<\_LT_EOF >> "$cfgfile"
35097# AIX sometimes has problems with the GCC collect2 program. For some
35098# reason, if we set the COLLECT_NAMES environment variable, the problems
35099# vanish in a puff of smoke.
35100if test "X${COLLECT_NAMES+set}" != Xset; then
35101 COLLECT_NAMES=
35102 export COLLECT_NAMES
35103fi
35104_LT_EOF
35105 ;;
35106 esac
35107
35108
35109ltmain="$ac_aux_dir/ltmain.sh"
35110
35111
35112 # We use sed instead of cat because bash on DJGPP gets confused if
35113 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35114 # text mode, it properly converts lines to CR/LF. This bash problem
35115 # is reportedly fixed, but why not run on old versions too?
35116 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35117 || (rm -f "$cfgfile"; exit 1)
35118
35119 case $xsi_shell in
35120 yes)
35121 cat << \_LT_EOF >> "$cfgfile"
35122
35123# func_dirname file append nondir_replacement
35124# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35125# otherwise set result to NONDIR_REPLACEMENT.
35126func_dirname ()
35127{
35128 case ${1} in
35129 */*) func_dirname_result="${1%/*}${2}" ;;
35130 * ) func_dirname_result="${3}" ;;
35131 esac
35132}
35133
35134# func_basename file
35135func_basename ()
35136{
35137 func_basename_result="${1##*/}"
35138}
35139
35140# func_dirname_and_basename file append nondir_replacement
35141# perform func_basename and func_dirname in a single function
35142# call:
35143# dirname: Compute the dirname of FILE. If nonempty,
35144# add APPEND to the result, otherwise set result
35145# to NONDIR_REPLACEMENT.
35146# value returned in "$func_dirname_result"
35147# basename: Compute filename of FILE.
35148# value retuned in "$func_basename_result"
35149# Implementation must be kept synchronized with func_dirname
35150# and func_basename. For efficiency, we do not delegate to
35151# those functions but instead duplicate the functionality here.
35152func_dirname_and_basename ()
35153{
35154 case ${1} in
35155 */*) func_dirname_result="${1%/*}${2}" ;;
35156 * ) func_dirname_result="${3}" ;;
35157 esac
35158 func_basename_result="${1##*/}"
35159}
35160
35161# func_stripname prefix suffix name
35162# strip PREFIX and SUFFIX off of NAME.
35163# PREFIX and SUFFIX must not contain globbing or regex special
35164# characters, hashes, percent signs, but SUFFIX may contain a leading
35165# dot (in which case that matches only a dot).
35166func_stripname ()
35167{
35168 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35169 # positional parameters, so assign one to ordinary parameter first.
35170 func_stripname_result=${3}
35171 func_stripname_result=${func_stripname_result#"${1}"}
35172 func_stripname_result=${func_stripname_result%"${2}"}
35173}
35174
35175# func_opt_split
35176func_opt_split ()
35177{
35178 func_opt_split_opt=${1%%=*}
35179 func_opt_split_arg=${1#*=}
35180}
35181
35182# func_lo2o object
35183func_lo2o ()
35184{
35185 case ${1} in
35186 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35187 *) func_lo2o_result=${1} ;;
35188 esac
35189}
35190
35191# func_xform libobj-or-source
35192func_xform ()
35193{
35194 func_xform_result=${1%.*}.lo
35195}
35196
35197# func_arith arithmetic-term...
35198func_arith ()
35199{
35200 func_arith_result=$(( $* ))
35201}
35202
35203# func_len string
35204# STRING may not start with a hyphen.
35205func_len ()
35206{
35207 func_len_result=${#1}
35208}
35209
35210_LT_EOF
35211 ;;
35212 *) # Bourne compatible functions.
35213 cat << \_LT_EOF >> "$cfgfile"
35214
35215# func_dirname file append nondir_replacement
35216# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35217# otherwise set result to NONDIR_REPLACEMENT.
35218func_dirname ()
35219{
35220 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000035221 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035222 if test "X$func_dirname_result" = "X${1}"; then
35223 func_dirname_result="${3}"
35224 else
35225 func_dirname_result="$func_dirname_result${2}"
35226 fi
35227}
35228
35229# func_basename file
35230func_basename ()
35231{
cristy18304f92009-11-22 15:48:26 +000035232 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035233}
35234
35235
35236# func_stripname prefix suffix name
35237# strip PREFIX and SUFFIX off of NAME.
35238# PREFIX and SUFFIX must not contain globbing or regex special
35239# characters, hashes, percent signs, but SUFFIX may contain a leading
35240# dot (in which case that matches only a dot).
35241# func_strip_suffix prefix name
35242func_stripname ()
35243{
35244 case ${2} in
cristy18304f92009-11-22 15:48:26 +000035245 .*) func_stripname_result=`$ECHO "X${3}" \
35246 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35247 *) func_stripname_result=`$ECHO "X${3}" \
35248 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035249 esac
35250}
35251
35252# sed scripts:
35253my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35254my_sed_long_arg='1s/^-[^=]*=//'
35255
35256# func_opt_split
35257func_opt_split ()
35258{
cristy18304f92009-11-22 15:48:26 +000035259 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35260 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035261}
35262
35263# func_lo2o object
35264func_lo2o ()
35265{
cristy18304f92009-11-22 15:48:26 +000035266 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035267}
35268
35269# func_xform libobj-or-source
35270func_xform ()
35271{
cristy18304f92009-11-22 15:48:26 +000035272 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035273}
35274
35275# func_arith arithmetic-term...
35276func_arith ()
35277{
35278 func_arith_result=`expr "$@"`
35279}
35280
35281# func_len string
35282# STRING may not start with a hyphen.
35283func_len ()
35284{
35285 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35286}
35287
35288_LT_EOF
35289esac
35290
35291case $lt_shell_append in
35292 yes)
35293 cat << \_LT_EOF >> "$cfgfile"
35294
35295# func_append var value
35296# Append VALUE to the end of shell variable VAR.
35297func_append ()
35298{
35299 eval "$1+=\$2"
35300}
35301_LT_EOF
35302 ;;
35303 *)
35304 cat << \_LT_EOF >> "$cfgfile"
35305
35306# func_append var value
35307# Append VALUE to the end of shell variable VAR.
35308func_append ()
35309{
35310 eval "$1=\$$1\$2"
35311}
35312
35313_LT_EOF
35314 ;;
35315 esac
35316
35317
35318 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35319 || (rm -f "$cfgfile"; exit 1)
35320
35321 mv -f "$cfgfile" "$ofile" ||
35322 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35323 chmod +x "$ofile"
35324
35325
35326 cat <<_LT_EOF >> "$ofile"
35327
35328# ### BEGIN LIBTOOL TAG CONFIG: CXX
35329
35330# The linker used to build libraries.
35331LD=$lt_LD_CXX
35332
35333# Commands used to build an old-style archive.
35334old_archive_cmds=$lt_old_archive_cmds_CXX
35335
35336# A language specific compiler.
35337CC=$lt_compiler_CXX
35338
35339# Is the compiler the GNU compiler?
35340with_gcc=$GCC_CXX
35341
35342# Compiler flag to turn off builtin functions.
35343no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35344
35345# How to pass a linker flag through the compiler.
35346wl=$lt_lt_prog_compiler_wl_CXX
35347
35348# Additional compiler flags for building library objects.
35349pic_flag=$lt_lt_prog_compiler_pic_CXX
35350
35351# Compiler flag to prevent dynamic linking.
35352link_static_flag=$lt_lt_prog_compiler_static_CXX
35353
35354# Does compiler simultaneously support -c and -o options?
35355compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35356
35357# Whether or not to add -lc for building shared libraries.
35358build_libtool_need_lc=$archive_cmds_need_lc_CXX
35359
35360# Whether or not to disallow shared libs when runtime libs are static.
35361allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35362
35363# Compiler flag to allow reflexive dlopens.
35364export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35365
35366# Compiler flag to generate shared objects directly from archives.
35367whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35368
35369# Whether the compiler copes with passing no objects directly.
35370compiler_needs_object=$lt_compiler_needs_object_CXX
35371
35372# Create an old-style archive from a shared archive.
35373old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35374
35375# Create a temporary old-style archive to link instead of a shared archive.
35376old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35377
35378# Commands used to build a shared archive.
35379archive_cmds=$lt_archive_cmds_CXX
35380archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35381
35382# Commands used to build a loadable module if different from building
35383# a shared archive.
35384module_cmds=$lt_module_cmds_CXX
35385module_expsym_cmds=$lt_module_expsym_cmds_CXX
35386
35387# Whether we are building with GNU ld or not.
35388with_gnu_ld=$lt_with_gnu_ld_CXX
35389
35390# Flag that allows shared libraries with undefined symbols to be built.
35391allow_undefined_flag=$lt_allow_undefined_flag_CXX
35392
35393# Flag that enforces no undefined symbols.
35394no_undefined_flag=$lt_no_undefined_flag_CXX
35395
35396# Flag to hardcode \$libdir into a binary during linking.
35397# This must work even if \$libdir does not exist
35398hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35399
35400# If ld is used when linking, flag to hardcode \$libdir into a binary
35401# during linking. This must work even if \$libdir does not exist.
35402hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35403
35404# Whether we need a single "-rpath" flag with a separated argument.
35405hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35406
35407# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35408# DIR into the resulting binary.
35409hardcode_direct=$hardcode_direct_CXX
35410
35411# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35412# DIR into the resulting binary and the resulting library dependency is
35413# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35414# library is relocated.
35415hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35416
35417# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35418# into the resulting binary.
35419hardcode_minus_L=$hardcode_minus_L_CXX
35420
35421# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35422# into the resulting binary.
35423hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35424
35425# Set to "yes" if building a shared library automatically hardcodes DIR
35426# into the library and all subsequent libraries and executables linked
35427# against it.
35428hardcode_automatic=$hardcode_automatic_CXX
35429
35430# Set to yes if linker adds runtime paths of dependent libraries
35431# to runtime path list.
35432inherit_rpath=$inherit_rpath_CXX
35433
35434# Whether libtool must link a program against all its dependency libraries.
35435link_all_deplibs=$link_all_deplibs_CXX
35436
35437# Fix the shell variable \$srcfile for the compiler.
35438fix_srcfile_path=$lt_fix_srcfile_path_CXX
35439
35440# Set to "yes" if exported symbols are required.
35441always_export_symbols=$always_export_symbols_CXX
35442
35443# The commands to list exported symbols.
35444export_symbols_cmds=$lt_export_symbols_cmds_CXX
35445
35446# Symbols that should not be listed in the preloaded symbols.
35447exclude_expsyms=$lt_exclude_expsyms_CXX
35448
35449# Symbols that must always be exported.
35450include_expsyms=$lt_include_expsyms_CXX
35451
35452# Commands necessary for linking programs (against libraries) with templates.
35453prelink_cmds=$lt_prelink_cmds_CXX
35454
35455# Specify filename containing input files.
35456file_list_spec=$lt_file_list_spec_CXX
35457
35458# How to hardcode a shared library path into an executable.
35459hardcode_action=$hardcode_action_CXX
35460
35461# The directories searched by this compiler when creating a shared library.
35462compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35463
35464# Dependencies to place before and after the objects being linked to
35465# create a shared library.
35466predep_objects=$lt_predep_objects_CXX
35467postdep_objects=$lt_postdep_objects_CXX
35468predeps=$lt_predeps_CXX
35469postdeps=$lt_postdeps_CXX
35470
35471# The library search path used internally by the compiler when linking
35472# a shared library.
35473compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35474
35475# ### END LIBTOOL TAG CONFIG: CXX
35476_LT_EOF
35477
35478 ;;
35479 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35480 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35481 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35482 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35483 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35484 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35485
35486 esac
35487done # for ac_tag
35488
35489
cristy8b350f62009-11-15 23:12:43 +000035490as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035491_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035492ac_clean_files=$ac_clean_files_save
35493
35494test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000035495 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035496
35497
35498# configure is writing to config.log, and then calls config.status.
35499# config.status does its own redirection, appending to config.log.
35500# Unfortunately, on DOS this fails, as config.log is still kept open
35501# by configure, so config.status won't be able to write to it; its
35502# output is simply discarded. So we exec the FD to /dev/null,
35503# effectively closing config.log, so it can be properly (re)opened and
35504# appended to by config.status. When coming back to configure, we
35505# need to make the FD available again.
35506if test "$no_create" != yes; then
35507 ac_cs_success=:
35508 ac_config_status_args=
35509 test "$silent" = yes &&
35510 ac_config_status_args="$ac_config_status_args --quiet"
35511 exec 5>/dev/null
35512 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35513 exec 5>>config.log
35514 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35515 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000035516 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000035517fi
35518if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035520$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35521fi
35522
35523
35524rm -f magick-version
35525
cristy430a7312010-01-21 20:44:04 +000035526result_dejavu_font_dir='none'
35527if test "${dejavu_font_dir}x" != 'x'; then
35528 result_dejavu_font_dir=$dejavu_font_dir
35529fi
35530
cristy3ed852e2009-09-05 21:47:34 +000035531result_ghostscript_font_dir='none'
35532if test "${ghostscript_font_dir}x" != 'x'; then
35533 result_ghostscript_font_dir=$ghostscript_font_dir
35534fi
35535
35536result_windows_font_dir='none'
35537if test "${windows_font_dir}x" != 'x'; then
35538 result_windows_font_dir=${windows_font_dir}
35539fi
35540
cristy8b350f62009-11-15 23:12:43 +000035541{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035542ImageMagick is configured as follows. Please verify that this configuration
35543matches your expectations.
35544
35545Host system type: $host
35546Build system type: $build
35547
35548 Option Value
35549-------------------------------------------------------------------------------
35550Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35551Static libraries --enable-static=$enable_static $libtool_build_static_libs
35552Module support --with-modules=$with_modules $with_modules
35553GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35554Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35555High Dynamic Range Imagery
35556 --enable-hdri=$enable_hdri $enable_hdri
35557
35558Delegate Configuration:
35559BZLIB --with-bzlib=$with_bzlib $have_bzlib
35560Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035561Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035562DJVU --with-djvu=$with_djvu $have_djvu
35563DPS --with-dps=$with_dps $have_dps
35564FFTW --with-fftw=$with_fftw $have_fftw
35565FlashPIX --with-fpx=$with_fpx $have_fpx
35566FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35567FreeType --with-freetype=$with_freetype $have_freetype
35568GhostPCL None $PCLDelegate ($PCLVersion)
35569GhostXPS None $XPSDelegate ($XPSVersion)
35570Ghostscript None $PSDelegate ($GSVersion)
35571Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35572Ghostscript lib --with-gslib=$with_gslib $have_gslib
35573Graphviz --with-gvc=$with_gvc $have_gvc
35574JBIG --with-jbig=$with_jbig $have_jbig
35575JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35576JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35577LCMS --with-lcms=$with_lcms $have_lcms
35578LQR --with-lqr=$with_lqr $have_lqr
35579Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35580OpenEXR --with-openexr=$with_openexr $have_openexr
35581PERL --with-perl=$with_perl $have_perl
35582PNG --with-png=$with_png $have_png
35583RSVG --with-rsvg=$with_rsvg $have_rsvg
35584TIFF --with-tiff=$with_tiff $have_tiff
35585Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35586WMF --with-wmf=$with_wmf $have_wmf
35587X11 --with-x=$with_x $have_x
35588XML --with-xml=$with_xml $have_xml
35589ZLIB --with-zlib=$with_zlib $have_zlib
35590
35591X11 Configuration:
35592 X_CFLAGS = $X_CFLAGS
35593 X_PRE_LIBS = $X_PRE_LIBS
35594 X_LIBS = $X_LIBS
35595 X_EXTRA_LIBS = $X_EXTRA_LIBS
35596
35597Options used to compile and link:
35598 PREFIX = $PREFIX_DIR
35599 EXEC-PREFIX = $EXEC_PREFIX_DIR
35600 VERSION = $PACKAGE_VERSION
35601 CC = $CC
35602 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035603 CPPFLAGS = $MAGICK_CPPFLAGS
35604 PCFLAGS = $MAGICK_PCFLAGS
35605 DEFS = $DEFS
35606 LDFLAGS = $LDFLAGS
35607 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35608 LIBS = $MAGICK_LIBS
35609 CXX = $CXX
35610 CXXFLAGS = $CXXFLAGS
35611" >&5
35612$as_echo "
35613ImageMagick is configured as follows. Please verify that this configuration
35614matches your expectations.
35615
35616Host system type: $host
35617Build system type: $build
35618
35619 Option Value
35620-------------------------------------------------------------------------------
35621Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35622Static libraries --enable-static=$enable_static $libtool_build_static_libs
35623Module support --with-modules=$with_modules $with_modules
35624GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35625Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35626High Dynamic Range Imagery
35627 --enable-hdri=$enable_hdri $enable_hdri
35628
35629Delegate Configuration:
35630BZLIB --with-bzlib=$with_bzlib $have_bzlib
35631Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035632Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035633DJVU --with-djvu=$with_djvu $have_djvu
35634DPS --with-dps=$with_dps $have_dps
35635FFTW --with-fftw=$with_fftw $have_fftw
35636FlashPIX --with-fpx=$with_fpx $have_fpx
35637FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35638FreeType --with-freetype=$with_freetype $have_freetype
35639GhostPCL None $PCLDelegate ($PCLVersion)
35640GhostXPS None $XPSDelegate ($XPSVersion)
35641Ghostscript None $PSDelegate ($GSVersion)
35642Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35643Ghostscript lib --with-gslib=$with_gslib $have_gslib
35644Graphviz --with-gvc=$with_gvc $have_gvc
35645JBIG --with-jbig=$with_jbig $have_jbig
35646JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35647JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35648LCMS --with-lcms=$with_lcms $have_lcms
35649LQR --with-lqr=$with_lqr $have_lqr
35650Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35651OpenEXR --with-openexr=$with_openexr $have_openexr
35652PERL --with-perl=$with_perl $have_perl
35653PNG --with-png=$with_png $have_png
35654RSVG --with-rsvg=$with_rsvg $have_rsvg
35655TIFF --with-tiff=$with_tiff $have_tiff
35656Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35657WMF --with-wmf=$with_wmf $have_wmf
35658X11 --with-x=$with_x $have_x
35659XML --with-xml=$with_xml $have_xml
35660ZLIB --with-zlib=$with_zlib $have_zlib
35661
35662X11 Configuration:
35663 X_CFLAGS = $X_CFLAGS
35664 X_PRE_LIBS = $X_PRE_LIBS
35665 X_LIBS = $X_LIBS
35666 X_EXTRA_LIBS = $X_EXTRA_LIBS
35667
35668Options used to compile and link:
35669 PREFIX = $PREFIX_DIR
35670 EXEC-PREFIX = $EXEC_PREFIX_DIR
35671 VERSION = $PACKAGE_VERSION
35672 CC = $CC
35673 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035674 CPPFLAGS = $MAGICK_CPPFLAGS
35675 PCFLAGS = $MAGICK_PCFLAGS
35676 DEFS = $DEFS
35677 LDFLAGS = $LDFLAGS
35678 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35679 LIBS = $MAGICK_LIBS
35680 CXX = $CXX
35681 CXXFLAGS = $CXXFLAGS
35682" >&6; }