]> jfr.im git - irc/rqf/shadowircd.git/blame - libratbox/configure
run autoconf, autoheader and make depend
[irc/rqf/shadowircd.git] / libratbox / configure
CommitLineData
b57f37fb
WP
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
12e39525 3# Generated by GNU Autoconf 2.68 for libratbox devel.
b57f37fb 4#
f030cae8 5# $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
b57f37fb 6#
1800d973 7#
b57f37fb 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
12e39525
JH
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
1800d973 11#
042acc47 12#
b57f37fb
WP
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
042acc47
WP
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
b57f37fb
WP
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
042acc47 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b57f37fb
WP
22 emulate sh
23 NULLCMD=:
f030cae8 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b57f37fb
WP
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
042acc47
WP
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
b57f37fb 34esac
b57f37fb
WP
35fi
36
37
f030cae8
VY
38as_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
042acc47
WP
45# 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
f030cae8
VY
52 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'
b57f37fb 58 else
f030cae8
VY
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
042acc47 62 case $arg in #(
f030cae8
VY
63 *"$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'
b57f37fb 71 fi
f030cae8
VY
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 }
b57f37fb
WP
83fi
84
b57f37fb
WP
85
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.)
b57f37fb
WP
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
12e39525 94as_myself=
042acc47 95case $0 in #((
b57f37fb
WP
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
042acc47
WP
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
b57f37fb
WP
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
f030cae8 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
042acc47 115 exit 1
b57f37fb
WP
116fi
117
042acc47
WP
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
b57f37fb
WP
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
f030cae8
VY
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
b57f37fb 135
042acc47
WP
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
bf9bfd26
JH
177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
042acc47
WP
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
12e39525 228 # Preserve -v and -x to the replacement shell.
042acc47
WP
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
12e39525
JH
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
042acc47
WP
240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
250$0: including any error possibly output before this
251$0: message. Then install a modern shell, or manually run
252$0: the script under such a shell if you do have one."
253 fi
254 exit 1
255fi
256fi
257fi
258SHELL=${CONFIG_SHELL-/bin/sh}
259export SHELL
260# Unset more variables known to interfere with behavior of common tools.
261CLICOLOR_FORCE= GREP_OPTIONS=
262unset CLICOLOR_FORCE GREP_OPTIONS
263
264## --------------------- ##
265## M4sh Shell Functions. ##
266## --------------------- ##
267# as_fn_unset VAR
268# ---------------
269# Portably unset VAR.
270as_fn_unset ()
271{
272 { eval $1=; unset $1;}
273}
274as_unset=as_fn_unset
275
276# as_fn_set_status STATUS
277# -----------------------
278# Set $? to STATUS, without forking.
279as_fn_set_status ()
280{
281 return $1
282} # as_fn_set_status
283
284# as_fn_exit STATUS
285# -----------------
286# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
287as_fn_exit ()
288{
289 set +e
290 as_fn_set_status $1
291 exit $1
292} # as_fn_exit
293
294# as_fn_mkdir_p
295# -------------
296# Create "$as_dir" as a directory, including parents if necessary.
297as_fn_mkdir_p ()
298{
299
300 case $as_dir in #(
301 -*) as_dir=./$as_dir;;
302 esac
303 test -d "$as_dir" || eval $as_mkdir_p || {
304 as_dirs=
305 while :; do
306 case $as_dir in #(
307 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 *) as_qdir=$as_dir;;
309 esac
310 as_dirs="'$as_qdir' $as_dirs"
311 as_dir=`$as_dirname -- "$as_dir" ||
312$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
313 X"$as_dir" : 'X\(//\)[^/]' \| \
314 X"$as_dir" : 'X\(//\)$' \| \
315 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
316$as_echo X"$as_dir" |
317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
318 s//\1/
319 q
320 }
321 /^X\(\/\/\)[^/].*/{
322 s//\1/
323 q
324 }
325 /^X\(\/\/\)$/{
326 s//\1/
327 q
328 }
329 /^X\(\/\).*/{
330 s//\1/
331 q
332 }
333 s/.*/./; q'`
334 test -d "$as_dir" && break
335 done
336 test -z "$as_dirs" || eval "mkdir $as_dirs"
12e39525 337 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
042acc47
WP
338
339
340} # as_fn_mkdir_p
341# as_fn_append VAR VALUE
342# ----------------------
343# Append the text in VALUE to the end of the definition contained in VAR. Take
344# advantage of any shell optimizations that allow amortized linear growth over
345# repeated appends, instead of the typical quadratic growth present in naive
346# implementations.
347if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
348 eval 'as_fn_append ()
349 {
350 eval $1+=\$2
351 }'
352else
353 as_fn_append ()
354 {
355 eval $1=\$$1\$2
356 }
357fi # as_fn_append
358
359# as_fn_arith ARG...
360# ------------------
361# Perform arithmetic evaluation on the ARGs, and store the result in the
362# global $as_val. Take advantage of shells that can avoid forks. The arguments
363# must be portable across $(()) and expr.
364if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 eval 'as_fn_arith ()
366 {
367 as_val=$(( $* ))
368 }'
369else
370 as_fn_arith ()
371 {
372 as_val=`expr "$@" || test $? -eq 1`
373 }
374fi # as_fn_arith
375
376
12e39525
JH
377# as_fn_error STATUS ERROR [LINENO LOG_FD]
378# ----------------------------------------
042acc47
WP
379# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
380# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12e39525 381# script with STATUS, using 1 if that was 0.
042acc47
WP
382as_fn_error ()
383{
12e39525
JH
384 as_status=$1; test $as_status -eq 0 && as_status=1
385 if test "$4"; then
386 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
387 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
042acc47 388 fi
12e39525 389 $as_echo "$as_me: error: $2" >&2
042acc47
WP
390 as_fn_exit $as_status
391} # as_fn_error
392
b57f37fb
WP
393if expr a : '\(a\)' >/dev/null 2>&1 &&
394 test "X`expr 00001 : '.*\(...\)'`" = X001; then
395 as_expr=expr
396else
397 as_expr=false
398fi
399
400if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
401 as_basename=basename
402else
403 as_basename=false
404fi
405
042acc47
WP
406if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
407 as_dirname=dirname
408else
409 as_dirname=false
410fi
b57f37fb 411
b57f37fb
WP
412as_me=`$as_basename -- "$0" ||
413$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
414 X"$0" : 'X\(//\)$' \| \
415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
f030cae8 416$as_echo X/"$0" |
b57f37fb
WP
417 sed '/^.*\/\([^/][^/]*\)\/*$/{
418 s//\1/
419 q
420 }
421 /^X\/\(\/\/\)$/{
422 s//\1/
423 q
424 }
425 /^X\/\(\/\).*/{
426 s//\1/
427 q
428 }
429 s/.*/./; q'`
430
042acc47
WP
431# Avoid depending upon Character Ranges.
432as_cr_letters='abcdefghijklmnopqrstuvwxyz'
433as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
434as_cr_Letters=$as_cr_letters$as_cr_LETTERS
435as_cr_digits='0123456789'
436as_cr_alnum=$as_cr_Letters$as_cr_digits
b57f37fb
WP
437
438
042acc47
WP
439 as_lineno_1=$LINENO as_lineno_1a=$LINENO
440 as_lineno_2=$LINENO as_lineno_2a=$LINENO
441 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
442 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
443 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
444 sed -n '
445 p
446 /[$]LINENO/=
447 ' <$as_myself |
448 sed '
449 s/[$]LINENO.*/&-/
450 t lineno
451 b
452 :lineno
453 N
454 :loop
455 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 t loop
457 s/-\n.*//
458 ' >$as_me.lineno &&
459 chmod +x "$as_me.lineno" ||
460 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b57f37fb 461
042acc47
WP
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
465 . "./$as_me.lineno"
466 # Exit status is that of the last command.
467 exit
b57f37fb
WP
468}
469
042acc47
WP
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in #(((((
472-n*)
473 case `echo 'xy\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 xy) ECHO_C='\c';;
476 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 ECHO_T=' ';;
478 esac;;
479*)
480 ECHO_N='-n';;
481esac
b57f37fb 482
042acc47
WP
483rm -f conf$$ conf$$.exe conf$$.file
484if test -d conf$$.dir; then
485 rm -f conf$$.dir/conf$$.file
486else
487 rm -f conf$$.dir
488 mkdir conf$$.dir 2>/dev/null
b57f37fb 489fi
042acc47
WP
490if (echo >conf$$.file) 2>/dev/null; then
491 if ln -s conf$$.file conf$$ 2>/dev/null; then
492 as_ln_s='ln -s'
493 # ... but there are two gotchas:
494 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
495 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
496 # In both cases, we have to default to `cp -p'.
497 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
498 as_ln_s='cp -p'
499 elif ln conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s=ln
501 else
502 as_ln_s='cp -p'
503 fi
b57f37fb 504else
042acc47 505 as_ln_s='cp -p'
b57f37fb 506fi
042acc47
WP
507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
b57f37fb 509
042acc47
WP
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p='mkdir -p "$as_dir"'
512else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
b57f37fb
WP
515fi
516
042acc47
WP
517if test -x / >/dev/null 2>&1; then
518 as_test_x='test -x'
b57f37fb 519else
042acc47
WP
520 if ls -dL / >/dev/null 2>&1; then
521 as_ls_L_option=L
522 else
523 as_ls_L_option=
524 fi
525 as_test_x='
526 eval sh -c '\''
527 if test -d "$1"; then
528 test -d "$1/.";
529 else
530 case $1 in #(
531 -*)set "./$1";;
532 esac;
533 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
534 ???[sx]*):;;*)false;;esac;fi
535 '\'' sh
536 '
b57f37fb 537fi
042acc47 538as_executable_p=$as_test_x
b57f37fb 539
042acc47
WP
540# Sed expression to map a string onto a valid CPP name.
541as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b57f37fb 542
042acc47
WP
543# Sed expression to map a string onto a valid variable name.
544as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b57f37fb 545
b57f37fb
WP
546SHELL=${CONFIG_SHELL-/bin/sh}
547
b57f37fb 548
1800d973
WP
549test -n "$DJDIR" || exec 7<&0 </dev/null
550exec 6>&1
b57f37fb
WP
551
552# Name of the host.
12e39525 553# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b57f37fb
WP
554# so uname gets run too.
555ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
556
557#
558# Initializations.
559#
560ac_default_prefix=/usr/local
561ac_clean_files=
562ac_config_libobj_dir=.
563LIBOBJS=
564cross_compiling=no
565subdirs=
566MFLAGS=
567MAKEFLAGS=
b57f37fb
WP
568
569# Identity of this package.
570PACKAGE_NAME='libratbox'
571PACKAGE_TARNAME='libratbox'
572PACKAGE_VERSION='devel'
573PACKAGE_STRING='libratbox devel'
574PACKAGE_BUGREPORT=''
042acc47 575PACKAGE_URL=''
b57f37fb
WP
576
577ac_default_prefix=/usr/local/libratbox
578# Factoring default headers for most tests.
579ac_includes_default="\
580#include <stdio.h>
581#ifdef HAVE_SYS_TYPES_H
582# include <sys/types.h>
583#endif
584#ifdef HAVE_SYS_STAT_H
585# include <sys/stat.h>
586#endif
587#ifdef STDC_HEADERS
588# include <stdlib.h>
589# include <stddef.h>
590#else
591# ifdef HAVE_STDLIB_H
592# include <stdlib.h>
593# endif
594#endif
595#ifdef HAVE_STRING_H
596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597# include <memory.h>
598# endif
599# include <string.h>
600#endif
601#ifdef HAVE_STRINGS_H
602# include <strings.h>
603#endif
604#ifdef HAVE_INTTYPES_H
605# include <inttypes.h>
606#endif
607#ifdef HAVE_STDINT_H
608# include <stdint.h>
609#endif
610#ifdef HAVE_UNISTD_H
611# include <unistd.h>
612#endif"
613
1800d973 614ac_header_list=
042acc47
WP
615ac_subst_vars='am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
f030cae8
VY
618LIBOBJS
619RB_PREFIX
620SSL_LIBS
621SSL_CFLAGS
622SEDOBJ
623PICFLAGS
624GNUTLS_LIBS
625GNUTLS_CFLAGS
bf9bfd26
JH
626PKG_CONFIG_LIBDIR
627PKG_CONFIG_PATH
f030cae8
VY
628PKG_CONFIG
629ALLOCA
f030cae8
VY
630MINGW_FALSE
631MINGW_TRUE
042acc47
WP
632OTOOL64
633OTOOL
634LIPO
f030cae8
VY
635NMEDIT
636DSYMUTIL
bf9bfd26 637MANIFEST_TOOL
f030cae8 638RANLIB
bf9bfd26 639ac_ct_AR
f030cae8 640AR
bf9bfd26 641DLLTOOL
042acc47 642OBJDUMP
f030cae8 643LN_S
042acc47
WP
644NM
645ac_ct_DUMPBIN
646DUMPBIN
647LD
648FGREP
f030cae8
VY
649host_os
650host_vendor
651host_cpu
652host
653build_os
654build_vendor
655build_cpu
656build
042acc47 657LIBTOOL
f030cae8
VY
658TOUCH
659LN
660MV
661CP
662RM
663AS
664MAINT
665MAINTAINER_MODE_FALSE
666MAINTAINER_MODE_TRUE
667SED
668EGREP
669GREP
670CPP
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
674AMDEPBACKSLASH
675AMDEP_FALSE
676AMDEP_TRUE
677am__quote
678am__include
679DEPDIR
680OBJEXT
681EXEEXT
682ac_ct_CC
683CPPFLAGS
684LDFLAGS
685CFLAGS
686CC
687am__untar
688am__tar
689AMTAR
690am__leading_dot
691SET_MAKE
692AWK
693mkdir_p
694MKDIR_P
695INSTALL_STRIP_PROGRAM
696STRIP
697install_sh
698MAKEINFO
699AUTOHEADER
700AUTOMAKE
701AUTOCONF
702ACLOCAL
703VERSION
704PACKAGE
705CYGPATH_W
706am__isrc
707INSTALL_DATA
708INSTALL_SCRIPT
709INSTALL_PROGRAM
710target_alias
711host_alias
b57f37fb 712build_alias
f030cae8
VY
713LIBS
714ECHO_T
715ECHO_N
716ECHO_C
717DEFS
718mandir
719localedir
720libdir
721psdir
722pdfdir
723dvidir
724htmldir
725infodir
726docdir
727oldincludedir
728includedir
729localstatedir
730sharedstatedir
731sysconfdir
732datadir
733datarootdir
734libexecdir
735sbindir
736bindir
737program_transform_name
738prefix
739exec_prefix
042acc47 740PACKAGE_URL
f030cae8
VY
741PACKAGE_BUGREPORT
742PACKAGE_STRING
743PACKAGE_VERSION
744PACKAGE_TARNAME
745PACKAGE_NAME
746PATH_SEPARATOR
747SHELL'
748ac_subst_files=''
749ac_user_opts='
750enable_option_checking
751enable_dependency_tracking
752enable_static
753enable_shared
754enable_maintainer_mode
042acc47 755with_pic
f030cae8
VY
756enable_fast_install
757with_gnu_ld
bf9bfd26 758with_sysroot
f030cae8 759enable_libtool_lock
f030cae8
VY
760enable_ipv6
761enable_openssl
762enable_gnutls
763enable_assert
764enable_profile
765enable_balloc
766enable_warnings
767'
768 ac_precious_vars='build_alias
b57f37fb
WP
769host_alias
770target_alias
b57f37fb
WP
771CC
772CFLAGS
773LDFLAGS
f030cae8 774LIBS
b57f37fb 775CPPFLAGS
b57f37fb 776CPP
dd910409 777PKG_CONFIG
bf9bfd26
JH
778PKG_CONFIG_PATH
779PKG_CONFIG_LIBDIR
dd910409
WP
780GNUTLS_CFLAGS
781GNUTLS_LIBS'
94b4fbf9 782
b57f37fb
WP
783
784# Initialize some variables set by options.
785ac_init_help=
786ac_init_version=false
f030cae8
VY
787ac_unrecognized_opts=
788ac_unrecognized_sep=
b57f37fb
WP
789# The variables have the same names as the options, with
790# dashes changed to underlines.
791cache_file=/dev/null
792exec_prefix=NONE
793no_create=
794no_recursion=
795prefix=NONE
796program_prefix=NONE
797program_suffix=NONE
798program_transform_name=s,x,x,
799silent=
800site=
801srcdir=
802verbose=
803x_includes=NONE
804x_libraries=NONE
805
806# Installation directory options.
807# These are left unexpanded so users can "make install exec_prefix=/foo"
808# and all the variables that are supposed to be based on exec_prefix
809# by default will actually change.
810# Use braces instead of parens because sh, perl, etc. also accept them.
811# (The list follows the same order as the GNU Coding Standards.)
812bindir='${exec_prefix}/bin'
813sbindir='${exec_prefix}/sbin'
814libexecdir='${exec_prefix}/libexec'
815datarootdir='${prefix}/share'
816datadir='${datarootdir}'
817sysconfdir='${prefix}/etc'
818sharedstatedir='${prefix}/com'
819localstatedir='${prefix}/var'
820includedir='${prefix}/include'
821oldincludedir='/usr/include'
822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823infodir='${datarootdir}/info'
824htmldir='${docdir}'
825dvidir='${docdir}'
826pdfdir='${docdir}'
827psdir='${docdir}'
828libdir='${exec_prefix}/lib'
829localedir='${datarootdir}/locale'
830mandir='${datarootdir}/man'
831
832ac_prev=
833ac_dashdash=
834for ac_option
835do
836 # If the previous option needs an argument, assign it.
837 if test -n "$ac_prev"; then
838 eval $ac_prev=\$ac_option
839 ac_prev=
840 continue
841 fi
842
843 case $ac_option in
12e39525
JH
844 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 *=) ac_optarg= ;;
846 *) ac_optarg=yes ;;
b57f37fb
WP
847 esac
848
849 # Accept the important Cygnus configure options, so we can diagnose typos.
850
851 case $ac_dashdash$ac_option in
852 --)
853 ac_dashdash=yes ;;
854
855 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 ac_prev=bindir ;;
857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 bindir=$ac_optarg ;;
859
860 -build | --build | --buil | --bui | --bu)
861 ac_prev=build_alias ;;
862 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863 build_alias=$ac_optarg ;;
864
865 -cache-file | --cache-file | --cache-fil | --cache-fi \
866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867 ac_prev=cache_file ;;
868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870 cache_file=$ac_optarg ;;
871
872 --config-cache | -C)
873 cache_file=config.cache ;;
874
875 -datadir | --datadir | --datadi | --datad)
876 ac_prev=datadir ;;
877 -datadir=* | --datadir=* | --datadi=* | --datad=*)
878 datadir=$ac_optarg ;;
879
880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881 | --dataroo | --dataro | --datar)
882 ac_prev=datarootdir ;;
883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885 datarootdir=$ac_optarg ;;
886
887 -disable-* | --disable-*)
f030cae8 888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b57f37fb 889 # Reject names that are not valid shell variable names.
f030cae8 890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12e39525 891 as_fn_error $? "invalid feature name: $ac_useropt"
f030cae8
VY
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
895 *"
896"enable_$ac_useropt"
897"*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=no ;;
b57f37fb
WP
902
903 -docdir | --docdir | --docdi | --doc | --do)
904 ac_prev=docdir ;;
905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 docdir=$ac_optarg ;;
907
908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 ac_prev=dvidir ;;
910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 dvidir=$ac_optarg ;;
912
913 -enable-* | --enable-*)
f030cae8 914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b57f37fb 915 # Reject names that are not valid shell variable names.
f030cae8 916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12e39525 917 as_fn_error $? "invalid feature name: $ac_useropt"
f030cae8
VY
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922"enable_$ac_useropt"
923"*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=\$ac_optarg ;;
b57f37fb
WP
928
929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931 | --exec | --exe | --ex)
932 ac_prev=exec_prefix ;;
933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935 | --exec=* | --exe=* | --ex=*)
936 exec_prefix=$ac_optarg ;;
937
938 -gas | --gas | --ga | --g)
939 # Obsolete; use --with-gas.
940 with_gas=yes ;;
941
942 -help | --help | --hel | --he | -h)
943 ac_init_help=long ;;
944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945 ac_init_help=recursive ;;
946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947 ac_init_help=short ;;
948
949 -host | --host | --hos | --ho)
950 ac_prev=host_alias ;;
951 -host=* | --host=* | --hos=* | --ho=*)
952 host_alias=$ac_optarg ;;
953
954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 ac_prev=htmldir ;;
956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 | --ht=*)
958 htmldir=$ac_optarg ;;
959
960 -includedir | --includedir | --includedi | --included | --include \
961 | --includ | --inclu | --incl | --inc)
962 ac_prev=includedir ;;
963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964 | --includ=* | --inclu=* | --incl=* | --inc=*)
965 includedir=$ac_optarg ;;
966
967 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 ac_prev=infodir ;;
969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970 infodir=$ac_optarg ;;
971
972 -libdir | --libdir | --libdi | --libd)
973 ac_prev=libdir ;;
974 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 libdir=$ac_optarg ;;
976
977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978 | --libexe | --libex | --libe)
979 ac_prev=libexecdir ;;
980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981 | --libexe=* | --libex=* | --libe=*)
982 libexecdir=$ac_optarg ;;
983
984 -localedir | --localedir | --localedi | --localed | --locale)
985 ac_prev=localedir ;;
986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987 localedir=$ac_optarg ;;
988
989 -localstatedir | --localstatedir | --localstatedi | --localstated \
990 | --localstate | --localstat | --localsta | --localst | --locals)
991 ac_prev=localstatedir ;;
992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994 localstatedir=$ac_optarg ;;
995
996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 ac_prev=mandir ;;
998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 mandir=$ac_optarg ;;
1000
1001 -nfp | --nfp | --nf)
1002 # Obsolete; use --without-fp.
1003 with_fp=no ;;
1004
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n)
1007 no_create=yes ;;
1008
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 no_recursion=yes ;;
1012
1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015 | --oldin | --oldi | --old | --ol | --o)
1016 ac_prev=oldincludedir ;;
1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020 oldincludedir=$ac_optarg ;;
1021
1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 ac_prev=prefix ;;
1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025 prefix=$ac_optarg ;;
1026
1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028 | --program-pre | --program-pr | --program-p)
1029 ac_prev=program_prefix ;;
1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032 program_prefix=$ac_optarg ;;
1033
1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035 | --program-suf | --program-su | --program-s)
1036 ac_prev=program_suffix ;;
1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039 program_suffix=$ac_optarg ;;
1040
1041 -program-transform-name | --program-transform-name \
1042 | --program-transform-nam | --program-transform-na \
1043 | --program-transform-n | --program-transform- \
1044 | --program-transform | --program-transfor \
1045 | --program-transfo | --program-transf \
1046 | --program-trans | --program-tran \
1047 | --progr-tra | --program-tr | --program-t)
1048 ac_prev=program_transform_name ;;
1049 -program-transform-name=* | --program-transform-name=* \
1050 | --program-transform-nam=* | --program-transform-na=* \
1051 | --program-transform-n=* | --program-transform-=* \
1052 | --program-transform=* | --program-transfor=* \
1053 | --program-transfo=* | --program-transf=* \
1054 | --program-trans=* | --program-tran=* \
1055 | --progr-tra=* | --program-tr=* | --program-t=*)
1056 program_transform_name=$ac_optarg ;;
1057
1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 ac_prev=pdfdir ;;
1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061 pdfdir=$ac_optarg ;;
1062
1063 -psdir | --psdir | --psdi | --psd | --ps)
1064 ac_prev=psdir ;;
1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 psdir=$ac_optarg ;;
1067
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 silent=yes ;;
1071
1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 ac_prev=sbindir ;;
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 | --sbi=* | --sb=*)
1076 sbindir=$ac_optarg ;;
1077
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1081 | --sha | --sh)
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 | --sha=* | --sh=*)
1087 sharedstatedir=$ac_optarg ;;
1088
1089 -site | --site | --sit)
1090 ac_prev=site ;;
1091 -site=* | --site=* | --sit=*)
1092 site=$ac_optarg ;;
1093
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 ac_prev=srcdir ;;
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097 srcdir=$ac_optarg ;;
1098
1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104 sysconfdir=$ac_optarg ;;
1105
1106 -target | --target | --targe | --targ | --tar | --ta | --t)
1107 ac_prev=target_alias ;;
1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109 target_alias=$ac_optarg ;;
1110
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 verbose=yes ;;
1113
1114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
1116
1117 -with-* | --with-*)
f030cae8 1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b57f37fb 1119 # Reject names that are not valid shell variable names.
f030cae8 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12e39525 1121 as_fn_error $? "invalid package name: $ac_useropt"
f030cae8
VY
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126"with_$ac_useropt"
1127"*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=\$ac_optarg ;;
b57f37fb
WP
1132
1133 -without-* | --without-*)
f030cae8 1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b57f37fb 1135 # Reject names that are not valid shell variable names.
f030cae8 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12e39525 1137 as_fn_error $? "invalid package name: $ac_useropt"
f030cae8
VY
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142"with_$ac_useropt"
1143"*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=no ;;
b57f37fb
WP
1148
1149 --x)
1150 # Obsolete; use --with-x.
1151 with_x=yes ;;
1152
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1159
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1166
12e39525
JH
1167 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1168Try \`$0 --help' for more information"
b57f37fb
WP
1169 ;;
1170
1171 *=*)
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
042acc47
WP
1174 case $ac_envvar in #(
1175 '' | [0-9]* | *[!_$as_cr_alnum]* )
12e39525 1176 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
042acc47 1177 esac
b57f37fb
WP
1178 eval $ac_envvar=\$ac_optarg
1179 export $ac_envvar ;;
1180
1181 *)
1182 # FIXME: should be removed in autoconf 3.0.
f030cae8 1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b57f37fb 1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
f030cae8 1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
12e39525 1186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
b57f37fb
WP
1187 ;;
1188
1189 esac
1190done
1191
1192if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12e39525 1194 as_fn_error $? "missing argument to $ac_option"
b57f37fb
WP
1195fi
1196
f030cae8
VY
1197if test -n "$ac_unrecognized_opts"; then
1198 case $enable_option_checking in
1199 no) ;;
12e39525 1200 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
f030cae8
VY
1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 esac
1203fi
1204
1205# Check all directory arguments for consistency.
b57f37fb
WP
1206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1210do
1211 eval ac_val=\$$ac_var
f030cae8
VY
1212 # Remove trailing slashes.
1213 case $ac_val in
1214 */ )
1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\$ac_val;;
1217 esac
1218 # Be sure to have absolute directory names.
b57f37fb
WP
1219 case $ac_val in
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 esac
12e39525 1223 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
b57f37fb
WP
1224done
1225
1226# There might be people who depend on the old broken behavior: `$host'
1227# used to hold the argument of --host etc.
1228# FIXME: To remove some day.
1229build=$build_alias
1230host=$host_alias
1231target=$target_alias
1232
1233# FIXME: To remove some day.
1234if test "x$host_alias" != x; then
1235 if test "x$build_alias" = x; then
1236 cross_compiling=maybe
12e39525
JH
1237 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1238 If a cross compiler is detected then cross compile mode will be used" >&2
b57f37fb
WP
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1241 fi
1242fi
1243
1244ac_tool_prefix=
1245test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247test "$silent" = yes && exec 6>/dev/null
1248
1249
1250ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251ac_ls_di=`ls -di .` &&
1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12e39525 1253 as_fn_error $? "working directory cannot be determined"
b57f37fb 1254test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12e39525 1255 as_fn_error $? "pwd does not report name of working directory"
b57f37fb
WP
1256
1257
1258# Find the source files, if location was not specified.
1259if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
f030cae8
VY
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267$as_echo X"$as_myself" |
b57f37fb
WP
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\).*/{
1281 s//\1/
1282 q
1283 }
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1288 fi
1289else
1290 ac_srcdir_defaulted=no
1291fi
1292if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12e39525 1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
b57f37fb
WP
1295fi
1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297ac_abs_confdir=`(
12e39525 1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
b57f37fb
WP
1299 pwd)`
1300# When building in place, set srcdir=.
1301if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303fi
1304# Remove unnecessary trailing slashes from srcdir.
1305# Double slashes in file names in object file debugging info
1306# mess up M-x gdb in Emacs.
1307case $srcdir in
1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309esac
1310for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315done
1316
1317#
1318# Report the --help message.
1319#
1320if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324\`configure' configures libratbox devel to adapt to many kinds of systems.
1325
1326Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331Defaults for the options are specified in brackets.
1332
1333Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
12e39525 1338 -q, --quiet, --silent do not print \`checking ...' messages
b57f37fb
WP
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343
1344Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
f030cae8 1346 [$ac_default_prefix]
b57f37fb 1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
f030cae8 1348 [PREFIX]
b57f37fb
WP
1349
1350By default, \`make install' will install all the files in
1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353for instance \`--prefix=\$HOME'.
1354
1355For better control, use the options below.
1356
1357Fine tuning of the installation directories:
f030cae8
VY
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
b57f37fb
WP
1377_ACEOF
1378
1379 cat <<\_ACEOF
1380
1381Program names:
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1385
1386System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389_ACEOF
1390fi
1391
1392if test -n "$ac_init_help"; then
1393 case $ac_init_help in
1394 short | recursive ) echo "Configuration of libratbox devel:";;
1395 esac
1396 cat <<\_ACEOF
1397
1398Optional Features:
f030cae8 1399 --disable-option-checking ignore unrecognized --enable/--with options
b57f37fb
WP
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --disable-dependency-tracking speeds up one-time build
1403 --enable-dependency-tracking do not reject slow dependency extractors
1404 --enable-static[=PKGS] build static libraries [default=no]
1405 --enable-shared[=PKGS] build shared libraries [default=yes]
1406 --enable-maintainer-mode enable make rules and dependencies not useful
1407 (and sometimes confusing) to the casual installer
1408 --enable-fast-install[=PKGS]
1409 optimize for fast installation [default=yes]
1410 --disable-libtool-lock avoid locking (might break parallel builds)
1411 --disable-ipv6 Disable IPv6 support
1412 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1413 --disable-openssl Disable OpenSSL support.
033be687
VY
1414 --enable-gnutls Enable GnuTLS support.
1415 --disable-gnutls Disable GnuTLS support.
b57f37fb
WP
1416 --enable-assert Enable assert(). Choose between soft(warnings) and
1417 hard(aborts the daemon)
1418 --enable-profile Enable profiling
1419 --disable-balloc Disable the block allocator.
1420 --enable-warnings Enable all sorts of warnings for debugging.
1421
1422Optional Packages:
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b57f37fb
WP
1425 --with-pic try to use only PIC/non-PIC objects [default=use
1426 both]
042acc47 1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
bf9bfd26
JH
1428 --with-sysroot=DIR Search for dependent libraries within DIR
1429 (or the compiler's sysroot if not specified).
b57f37fb
WP
1430
1431Some influential environment variables:
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
1436 LIBS libraries to pass to the linker, e.g. -l<library>
1800d973 1437 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
b57f37fb
WP
1438 you have headers in a nonstandard directory <include dir>
1439 CPP C preprocessor
dd910409 1440 PKG_CONFIG path to pkg-config utility
bf9bfd26
JH
1441 PKG_CONFIG_PATH
1442 directories to add to pkg-config's search path
1443 PKG_CONFIG_LIBDIR
1444 path overriding pkg-config's built-in search path
dd910409
WP
1445 GNUTLS_CFLAGS
1446 C compiler flags for GNUTLS, overriding pkg-config
1447 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
b57f37fb
WP
1448
1449Use these variables to override the choices made by `configure' or to help
1450it to find libraries and programs with nonstandard names/locations.
1451
042acc47 1452Report bugs to the package provider.
b57f37fb
WP
1453_ACEOF
1454ac_status=$?
1455fi
1456
1457if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
f030cae8
VY
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
b57f37fb
WP
1463 ac_builddir=.
1464
1465case "$ac_dir" in
1466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467*)
f030cae8 1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
b57f37fb 1469 # A ".." for each directory in $ac_dir_suffix.
f030cae8 1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
b57f37fb
WP
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475esac
1476ac_abs_top_builddir=$ac_pwd
1477ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478# for backward compatibility:
1479ac_top_builddir=$ac_top_build_prefix
1480
1481case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494esac
1495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
f030cae8 1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b57f37fb
WP
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1510fi
1511
1512test -n "$ac_init_help" && exit $ac_status
1513if $ac_init_version; then
1514 cat <<\_ACEOF
1515libratbox configure devel
12e39525 1516generated by GNU Autoconf 2.68
b57f37fb 1517
12e39525 1518Copyright (C) 2010 Free Software Foundation, Inc.
b57f37fb
WP
1519This configure script is free software; the Free Software Foundation
1520gives unlimited permission to copy, distribute and modify it.
1521
f030cae8 1522$Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
b57f37fb
WP
1523_ACEOF
1524 exit
1525fi
042acc47
WP
1526
1527## ------------------------ ##
1528## Autoconf initialization. ##
1529## ------------------------ ##
1530
1531# ac_fn_c_try_compile LINENO
1532# --------------------------
1533# Try to compile conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_compile ()
1535{
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558else
1559 $as_echo "$as_me: failed program was:" >&5
1560sed 's/^/| /' conftest.$ac_ext >&5
1561
1562 ac_retval=1
1563fi
12e39525 1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800d973 1565 as_fn_set_status $ac_retval
042acc47
WP
1566
1567} # ac_fn_c_try_compile
1568
1569# ac_fn_c_try_cpp LINENO
1570# ----------------------
1571# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_c_try_cpp ()
1573{
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 if { { ac_try="$ac_cpp conftest.$ac_ext"
1576case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581$as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1588 fi
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12e39525 1590 test $ac_status = 0; } > conftest.i && {
042acc47
WP
1591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 }; then :
1594 ac_retval=0
1595else
1596 $as_echo "$as_me: failed program was:" >&5
1597sed 's/^/| /' conftest.$ac_ext >&5
1598
1599 ac_retval=1
1600fi
12e39525 1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800d973 1602 as_fn_set_status $ac_retval
042acc47
WP
1603
1604} # ac_fn_c_try_cpp
1605
1606# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1607# -------------------------------------------------------
1608# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1609# the include files in INCLUDES and setting the cache variable VAR
1610# accordingly.
1611ac_fn_c_check_header_mongrel ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12e39525 1614 if eval \${$3+:} false; then :
042acc47
WP
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616$as_echo_n "checking for $2... " >&6; }
12e39525 1617if eval \${$3+:} false; then :
042acc47
WP
1618 $as_echo_n "(cached) " >&6
1619fi
1620eval ac_res=\$$3
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622$as_echo "$ac_res" >&6; }
1623else
1624 # Is the header compilable?
1625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1626$as_echo_n "checking $2 usability... " >&6; }
1627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628/* end confdefs.h. */
1629$4
1630#include <$2>
1631_ACEOF
1632if ac_fn_c_try_compile "$LINENO"; then :
1633 ac_header_compiler=yes
1634else
1635 ac_header_compiler=no
1636fi
1637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1639$as_echo "$ac_header_compiler" >&6; }
1640
1641# Is the header present?
1642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1643$as_echo_n "checking $2 presence... " >&6; }
1644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645/* end confdefs.h. */
1646#include <$2>
1647_ACEOF
1648if ac_fn_c_try_cpp "$LINENO"; then :
1649 ac_header_preproc=yes
1650else
1651 ac_header_preproc=no
1652fi
12e39525 1653rm -f conftest.err conftest.i conftest.$ac_ext
042acc47
WP
1654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1655$as_echo "$ac_header_preproc" >&6; }
1656
1657# So? What about this header?
1658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1659 yes:no: )
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1661$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1663$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1664 ;;
1665 no:yes:* )
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1667$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1669$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1671$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1673$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1675$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1676 ;;
1677esac
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679$as_echo_n "checking for $2... " >&6; }
12e39525 1680if eval \${$3+:} false; then :
042acc47
WP
1681 $as_echo_n "(cached) " >&6
1682else
1683 eval "$3=\$ac_header_compiler"
1684fi
1685eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687$as_echo "$ac_res" >&6; }
1688fi
12e39525 1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
042acc47
WP
1690
1691} # ac_fn_c_check_header_mongrel
1692
1693# ac_fn_c_try_run LINENO
1694# ----------------------
1695# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696# that executables *can* be run.
1697ac_fn_c_try_run ()
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_link"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711 { { case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_try") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; }; }; then :
1721 ac_retval=0
1722else
1723 $as_echo "$as_me: program exited with status $ac_status" >&5
1724 $as_echo "$as_me: failed program was:" >&5
1725sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=$ac_status
1728fi
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
12e39525 1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800d973 1731 as_fn_set_status $ac_retval
042acc47
WP
1732
1733} # ac_fn_c_try_run
1734
1735# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736# -------------------------------------------------------
1737# Tests whether HEADER exists and can be compiled using the include files in
1738# INCLUDES, setting the cache variable VAR accordingly.
1739ac_fn_c_check_header_compile ()
1740{
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743$as_echo_n "checking for $2... " >&6; }
12e39525 1744if eval \${$3+:} false; then :
042acc47
WP
1745 $as_echo_n "(cached) " >&6
1746else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h. */
1749$4
1750#include <$2>
1751_ACEOF
1752if ac_fn_c_try_compile "$LINENO"; then :
1753 eval "$3=yes"
1754else
1755 eval "$3=no"
1756fi
1757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758fi
1759eval ac_res=\$$3
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761$as_echo "$ac_res" >&6; }
12e39525 1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
042acc47
WP
1763
1764} # ac_fn_c_check_header_compile
1765
1766# ac_fn_c_try_link LINENO
1767# -----------------------
1768# Try to link conftest.$ac_ext, and return whether this succeeded.
1769ac_fn_c_try_link ()
1770{
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext conftest$ac_exeext
1773 if { { ac_try="$ac_link"
1774case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777esac
1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779$as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_link") 2>conftest.err
1781 ac_status=$?
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1786 fi
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest$ac_exeext && {
1792 test "$cross_compiling" = yes ||
1793 $as_test_x conftest$ac_exeext
1794 }; then :
1795 ac_retval=0
1796else
1797 $as_echo "$as_me: failed program was:" >&5
1798sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=1
1801fi
1802 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1803 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1804 # interfere with the next link command; also delete a directory that is
1805 # left behind by Apple's compiler. We do this before executing the actions.
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
12e39525 1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800d973 1808 as_fn_set_status $ac_retval
042acc47
WP
1809
1810} # ac_fn_c_try_link
1811
1812# ac_fn_c_check_func LINENO FUNC VAR
1813# ----------------------------------
1814# Tests whether FUNC exists, setting the cache variable VAR accordingly
1815ac_fn_c_check_func ()
1816{
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819$as_echo_n "checking for $2... " >&6; }
12e39525 1820if eval \${$3+:} false; then :
042acc47
WP
1821 $as_echo_n "(cached) " >&6
1822else
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h. */
1825/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827#define $2 innocuous_$2
1828
1829/* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below.
1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832 <limits.h> exists even on freestanding compilers. */
1833
1834#ifdef __STDC__
1835# include <limits.h>
1836#else
1837# include <assert.h>
1838#endif
1839
1840#undef $2
1841
1842/* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1845#ifdef __cplusplus
1846extern "C"
1847#endif
1848char $2 ();
1849/* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852#if defined __stub_$2 || defined __stub___$2
1853choke me
1854#endif
1855
1856int
1857main ()
1858{
1859return $2 ();
1860 ;
1861 return 0;
1862}
1863_ACEOF
1864if ac_fn_c_try_link "$LINENO"; then :
1865 eval "$3=yes"
1866else
1867 eval "$3=no"
1868fi
1869rm -f core conftest.err conftest.$ac_objext \
1870 conftest$ac_exeext conftest.$ac_ext
1871fi
1872eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874$as_echo "$ac_res" >&6; }
12e39525 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
042acc47
WP
1876
1877} # ac_fn_c_check_func
1878
1879# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1880# -------------------------------------------
1881# Tests whether TYPE exists after having included INCLUDES, setting cache
1882# variable VAR accordingly.
1883ac_fn_c_check_type ()
1884{
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887$as_echo_n "checking for $2... " >&6; }
12e39525 1888if eval \${$3+:} false; then :
042acc47
WP
1889 $as_echo_n "(cached) " >&6
1890else
1891 eval "$3=no"
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h. */
1894$4
1895int
1896main ()
1897{
1898if (sizeof ($2))
1899 return 0;
1900 ;
1901 return 0;
1902}
1903_ACEOF
1904if ac_fn_c_try_compile "$LINENO"; then :
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h. */
1907$4
1908int
1909main ()
1910{
1911if (sizeof (($2)))
1912 return 0;
1913 ;
1914 return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_compile "$LINENO"; then :
1918
1919else
1920 eval "$3=yes"
1921fi
1922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923fi
1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925fi
1926eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
12e39525 1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
042acc47
WP
1930
1931} # ac_fn_c_check_type
1932
1933# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1934# ----------------------------------------------------
1935# Tries to find if the field MEMBER exists in type AGGR, after including
1936# INCLUDES, setting cache variable VAR accordingly.
1937ac_fn_c_check_member ()
1938{
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1941$as_echo_n "checking for $2.$3... " >&6; }
12e39525 1942if eval \${$4+:} false; then :
042acc47
WP
1943 $as_echo_n "(cached) " >&6
1944else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h. */
1947$5
1948int
1949main ()
1950{
1951static $2 ac_aggr;
1952if (ac_aggr.$3)
1953return 0;
1954 ;
1955 return 0;
1956}
1957_ACEOF
1958if ac_fn_c_try_compile "$LINENO"; then :
1959 eval "$4=yes"
1960else
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h. */
1963$5
1964int
1965main ()
1966{
1967static $2 ac_aggr;
1968if (sizeof ac_aggr.$3)
1969return 0;
1970 ;
1971 return 0;
1972}
1973_ACEOF
1974if ac_fn_c_try_compile "$LINENO"; then :
1975 eval "$4=yes"
1976else
1977 eval "$4=no"
1978fi
1979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980fi
1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982fi
1983eval ac_res=\$$4
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985$as_echo "$ac_res" >&6; }
12e39525 1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
042acc47
WP
1987
1988} # ac_fn_c_check_member
b57f37fb
WP
1989cat >config.log <<_ACEOF
1990This file contains any messages produced by compilers while
1991running configure, to aid debugging if configure makes a mistake.
1992
1993It was created by libratbox $as_me devel, which was
12e39525 1994generated by GNU Autoconf 2.68. Invocation command line was
b57f37fb
WP
1995
1996 $ $0 $@
1997
1998_ACEOF
1999exec 5>>config.log
2000{
2001cat <<_ASUNAME
2002## --------- ##
2003## Platform. ##
2004## --------- ##
2005
2006hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2007uname -m = `(uname -m) 2>/dev/null || echo unknown`
2008uname -r = `(uname -r) 2>/dev/null || echo unknown`
2009uname -s = `(uname -s) 2>/dev/null || echo unknown`
2010uname -v = `(uname -v) 2>/dev/null || echo unknown`
2011
2012/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2013/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2014
2015/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2016/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2017/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2018/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2019/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2020/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2021/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2022
2023_ASUNAME
2024
2025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026for as_dir in $PATH
2027do
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
042acc47
WP
2030 $as_echo "PATH: $as_dir"
2031 done
b57f37fb
WP
2032IFS=$as_save_IFS
2033
2034} >&5
2035
2036cat >&5 <<_ACEOF
2037
2038
2039## ----------- ##
2040## Core tests. ##
2041## ----------- ##
2042
2043_ACEOF
2044
2045
2046# Keep a trace of the command line.
2047# Strip out --no-create and --no-recursion so they do not pile up.
2048# Strip out --silent because we don't want to record it for future runs.
2049# Also quote any args containing shell meta-characters.
2050# Make two passes to allow for proper duplicate-argument suppression.
2051ac_configure_args=
2052ac_configure_args0=
2053ac_configure_args1=
2054ac_must_keep_next=false
2055for ac_pass in 1 2
2056do
2057 for ac_arg
2058 do
2059 case $ac_arg in
2060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2062 | -silent | --silent | --silen | --sile | --sil)
2063 continue ;;
2064 *\'*)
f030cae8 2065 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b57f37fb
WP
2066 esac
2067 case $ac_pass in
042acc47 2068 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b57f37fb 2069 2)
042acc47 2070 as_fn_append ac_configure_args1 " '$ac_arg'"
b57f37fb
WP
2071 if test $ac_must_keep_next = true; then
2072 ac_must_keep_next=false # Got value, back to normal.
2073 else
2074 case $ac_arg in
2075 *=* | --config-cache | -C | -disable-* | --disable-* \
2076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2078 | -with-* | --with-* | -without-* | --without-* | --x)
2079 case "$ac_configure_args0 " in
2080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2081 esac
2082 ;;
2083 -* ) ac_must_keep_next=true ;;
2084 esac
2085 fi
042acc47 2086 as_fn_append ac_configure_args " '$ac_arg'"
b57f37fb
WP
2087 ;;
2088 esac
2089 done
2090done
042acc47
WP
2091{ ac_configure_args0=; unset ac_configure_args0;}
2092{ ac_configure_args1=; unset ac_configure_args1;}
b57f37fb
WP
2093
2094# When interrupted or exit'd, cleanup temporary files, and complete
2095# config.log. We remove comments because anyway the quotes in there
2096# would cause problems or look ugly.
2097# WARNING: Use '\'' to represent an apostrophe within the trap.
2098# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2099trap 'exit_status=$?
2100 # Save into config.log some information that might help in debugging.
2101 {
2102 echo
2103
12e39525 2104 $as_echo "## ---------------- ##
b57f37fb 2105## Cache variables. ##
12e39525 2106## ---------------- ##"
b57f37fb
WP
2107 echo
2108 # The following way of writing the cache mishandles newlines in values,
2109(
2110 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2111 eval ac_val=\$$ac_var
2112 case $ac_val in #(
2113 *${as_nl}*)
2114 case $ac_var in #(
042acc47 2115 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
f030cae8 2116$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
b57f37fb
WP
2117 esac
2118 case $ac_var in #(
2119 _ | IFS | as_nl) ;; #(
f030cae8 2120 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
042acc47 2121 *) { eval $ac_var=; unset $ac_var;} ;;
b57f37fb
WP
2122 esac ;;
2123 esac
2124 done
2125 (set) 2>&1 |
2126 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2127 *${as_nl}ac_space=\ *)
2128 sed -n \
2129 "s/'\''/'\''\\\\'\'''\''/g;
2130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2131 ;; #(
2132 *)
2133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2134 ;;
2135 esac |
2136 sort
2137)
2138 echo
2139
12e39525 2140 $as_echo "## ----------------- ##
b57f37fb 2141## Output variables. ##
12e39525 2142## ----------------- ##"
b57f37fb
WP
2143 echo
2144 for ac_var in $ac_subst_vars
2145 do
2146 eval ac_val=\$$ac_var
2147 case $ac_val in
f030cae8 2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
b57f37fb 2149 esac
f030cae8 2150 $as_echo "$ac_var='\''$ac_val'\''"
b57f37fb
WP
2151 done | sort
2152 echo
2153
2154 if test -n "$ac_subst_files"; then
12e39525 2155 $as_echo "## ------------------- ##
b57f37fb 2156## File substitutions. ##
12e39525 2157## ------------------- ##"
b57f37fb
WP
2158 echo
2159 for ac_var in $ac_subst_files
2160 do
2161 eval ac_val=\$$ac_var
2162 case $ac_val in
f030cae8 2163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
b57f37fb 2164 esac
f030cae8 2165 $as_echo "$ac_var='\''$ac_val'\''"
b57f37fb
WP
2166 done | sort
2167 echo
2168 fi
2169
2170 if test -s confdefs.h; then
12e39525 2171 $as_echo "## ----------- ##
b57f37fb 2172## confdefs.h. ##
12e39525 2173## ----------- ##"
b57f37fb
WP
2174 echo
2175 cat confdefs.h
2176 echo
2177 fi
2178 test "$ac_signal" != 0 &&
f030cae8
VY
2179 $as_echo "$as_me: caught signal $ac_signal"
2180 $as_echo "$as_me: exit $exit_status"
b57f37fb
WP
2181 } >&5
2182 rm -f core *.core core.conftest.* &&
2183 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2184 exit $exit_status
2185' 0
2186for ac_signal in 1 2 13 15; do
042acc47 2187 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b57f37fb
WP
2188done
2189ac_signal=0
2190
2191# confdefs.h avoids OS command line length limits that DEFS can exceed.
2192rm -f -r conftest* confdefs.h
2193
042acc47
WP
2194$as_echo "/* confdefs.h */" > confdefs.h
2195
b57f37fb
WP
2196# Predefined preprocessor variables.
2197
2198cat >>confdefs.h <<_ACEOF
2199#define PACKAGE_NAME "$PACKAGE_NAME"
2200_ACEOF
2201
b57f37fb
WP
2202cat >>confdefs.h <<_ACEOF
2203#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2204_ACEOF
2205
b57f37fb
WP
2206cat >>confdefs.h <<_ACEOF
2207#define PACKAGE_VERSION "$PACKAGE_VERSION"
2208_ACEOF
2209
b57f37fb
WP
2210cat >>confdefs.h <<_ACEOF
2211#define PACKAGE_STRING "$PACKAGE_STRING"
2212_ACEOF
2213
b57f37fb
WP
2214cat >>confdefs.h <<_ACEOF
2215#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2216_ACEOF
2217
042acc47
WP
2218cat >>confdefs.h <<_ACEOF
2219#define PACKAGE_URL "$PACKAGE_URL"
2220_ACEOF
2221
b57f37fb
WP
2222
2223# Let the site file select an alternate cache file if it wants to.
f030cae8
VY
2224# Prefer an explicitly selected file to automatically selected ones.
2225ac_site_file1=NONE
2226ac_site_file2=NONE
b57f37fb 2227if test -n "$CONFIG_SITE"; then
12e39525
JH
2228 # We do not want a PATH search for config.site.
2229 case $CONFIG_SITE in #((
2230 -*) ac_site_file1=./$CONFIG_SITE;;
2231 */*) ac_site_file1=$CONFIG_SITE;;
2232 *) ac_site_file1=./$CONFIG_SITE;;
2233 esac
b57f37fb 2234elif test "x$prefix" != xNONE; then
f030cae8
VY
2235 ac_site_file1=$prefix/share/config.site
2236 ac_site_file2=$prefix/etc/config.site
b57f37fb 2237else
f030cae8
VY
2238 ac_site_file1=$ac_default_prefix/share/config.site
2239 ac_site_file2=$ac_default_prefix/etc/config.site
b57f37fb 2240fi
f030cae8 2241for ac_site_file in "$ac_site_file1" "$ac_site_file2"
b57f37fb 2242do
f030cae8 2243 test "x$ac_site_file" = xNONE && continue
1800d973 2244 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
042acc47 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
f030cae8 2246$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b57f37fb 2247 sed 's/^/| /' "$ac_site_file" >&5
12e39525
JH
2248 . "$ac_site_file" \
2249 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251as_fn_error $? "failed to load site script $ac_site_file
2252See \`config.log' for more details" "$LINENO" 5; }
b57f37fb
WP
2253 fi
2254done
2255
2256if test -r "$cache_file"; then
1800d973
WP
2257 # Some versions of bash will fail to source /dev/null (special files
2258 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2259 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
042acc47 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
f030cae8 2261$as_echo "$as_me: loading cache $cache_file" >&6;}
b57f37fb
WP
2262 case $cache_file in
2263 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2264 *) . "./$cache_file";;
2265 esac
2266 fi
2267else
042acc47 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
f030cae8 2269$as_echo "$as_me: creating cache $cache_file" >&6;}
b57f37fb
WP
2270 >$cache_file
2271fi
2272
1800d973
WP
2273as_fn_append ac_header_list " stdlib.h"
2274as_fn_append ac_header_list " unistd.h"
2275as_fn_append ac_header_list " sys/param.h"
b57f37fb
WP
2276# Check that the precious variables saved in the cache have kept the same
2277# value.
2278ac_cache_corrupted=false
2279for ac_var in $ac_precious_vars; do
2280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2281 eval ac_new_set=\$ac_env_${ac_var}_set
2282 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2283 eval ac_new_val=\$ac_env_${ac_var}_value
2284 case $ac_old_set,$ac_new_set in
2285 set,)
042acc47 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
f030cae8 2287$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b57f37fb
WP
2288 ac_cache_corrupted=: ;;
2289 ,set)
042acc47 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
f030cae8 2291$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b57f37fb
WP
2292 ac_cache_corrupted=: ;;
2293 ,);;
2294 *)
2295 if test "x$ac_old_val" != "x$ac_new_val"; then
f030cae8
VY
2296 # differences in whitespace do not lead to failure.
2297 ac_old_val_w=`echo x $ac_old_val`
2298 ac_new_val_w=`echo x $ac_new_val`
2299 if test "$ac_old_val_w" != "$ac_new_val_w"; then
042acc47 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
f030cae8
VY
2301$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2302 ac_cache_corrupted=:
2303 else
042acc47 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
f030cae8
VY
2305$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2306 eval $ac_var=\$ac_old_val
2307 fi
042acc47 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
f030cae8 2309$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
042acc47 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
f030cae8 2311$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b57f37fb
WP
2312 fi;;
2313 esac
2314 # Pass precious variables to config.status.
2315 if test "$ac_new_set" = set; then
2316 case $ac_new_val in
f030cae8 2317 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b57f37fb
WP
2318 *) ac_arg=$ac_var=$ac_new_val ;;
2319 esac
2320 case " $ac_configure_args " in
2321 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
042acc47 2322 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b57f37fb
WP
2323 esac
2324 fi
2325done
2326if $ac_cache_corrupted; then
042acc47 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 2328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
042acc47 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
f030cae8 2330$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12e39525 2331 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b57f37fb 2332fi
042acc47
WP
2333## -------------------- ##
2334## Main body of script. ##
2335## -------------------- ##
b57f37fb 2336
042acc47
WP
2337ac_ext=c
2338ac_cpp='$CPP $CPPFLAGS'
2339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341ac_compiler_gnu=$ac_cv_c_compiler_gnu
b57f37fb
WP
2342
2343
042acc47 2344am__api_version='1.11'
b57f37fb 2345
042acc47
WP
2346ac_aux_dir=
2347for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
12e39525
JH
2348 if test -f "$ac_dir/install-sh"; then
2349 ac_aux_dir=$ac_dir
2350 ac_install_sh="$ac_aux_dir/install-sh -c"
2351 break
2352 elif test -f "$ac_dir/install.sh"; then
2353 ac_aux_dir=$ac_dir
2354 ac_install_sh="$ac_aux_dir/install.sh -c"
2355 break
2356 elif test -f "$ac_dir/shtool"; then
2357 ac_aux_dir=$ac_dir
2358 ac_install_sh="$ac_aux_dir/shtool install -c"
2359 break
2360 fi
042acc47
WP
2361done
2362if test -z "$ac_aux_dir"; then
12e39525 2363 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
042acc47 2364fi
b57f37fb 2365
042acc47
WP
2366# These three variables are undocumented and unsupported,
2367# and are intended to be withdrawn in a future Autoconf release.
2368# They can cause serious problems if a builder's source tree is in a directory
2369# whose full name contains unusual characters.
2370ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2371ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2372ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
b57f37fb
WP
2373
2374
2375# Find a good install program. We prefer a C program (faster),
2376# so one script is as good as another. But avoid the broken or
2377# incompatible versions:
2378# SysV /etc/install, /usr/sbin/install
2379# SunOS /usr/etc/install
2380# IRIX /sbin/install
2381# AIX /bin/install
2382# AmigaOS /C/install, which installs bootblocks on floppy discs
2383# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2384# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2385# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2386# OS/2's system install, which has a completely different semantic
2387# ./install, which can be erroneously created by make from ./install.sh.
f030cae8 2388# Reject install programs that cannot install multiple files.
042acc47 2389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
f030cae8 2390$as_echo_n "checking for a BSD-compatible install... " >&6; }
b57f37fb 2391if test -z "$INSTALL"; then
12e39525 2392if ${ac_cv_path_install+:} false; then :
f030cae8 2393 $as_echo_n "(cached) " >&6
b57f37fb
WP
2394else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH
2397do
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
042acc47
WP
2400 # Account for people who put trailing slashes in PATH elements.
2401case $as_dir/ in #((
2402 ./ | .// | /[cC]/* | \
b57f37fb 2403 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
042acc47 2404 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b57f37fb
WP
2405 /usr/ucb/* ) ;;
2406 *)
2407 # OSF1 and SCO ODT 3.0 have their own names for install.
2408 # Don't use installbsd from OSF since it installs stuff as root
2409 # by default.
2410 for ac_prog in ginstall scoinst install; do
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2413 if test $ac_prog = install &&
2414 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2415 # AIX install. It has an incompatible calling convention.
2416 :
2417 elif test $ac_prog = install &&
2418 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2419 # program-specific install script used by HP pwplus--don't use.
2420 :
2421 else
f030cae8
VY
2422 rm -rf conftest.one conftest.two conftest.dir
2423 echo one > conftest.one
2424 echo two > conftest.two
2425 mkdir conftest.dir
2426 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2427 test -s conftest.one && test -s conftest.two &&
2428 test -s conftest.dir/conftest.one &&
2429 test -s conftest.dir/conftest.two
2430 then
2431 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2432 break 3
2433 fi
b57f37fb
WP
2434 fi
2435 fi
2436 done
2437 done
2438 ;;
2439esac
f030cae8 2440
042acc47 2441 done
b57f37fb
WP
2442IFS=$as_save_IFS
2443
f030cae8 2444rm -rf conftest.one conftest.two conftest.dir
b57f37fb
WP
2445
2446fi
2447 if test "${ac_cv_path_install+set}" = set; then
2448 INSTALL=$ac_cv_path_install
2449 else
2450 # As a last resort, use the slow shell script. Don't cache a
2451 # value for INSTALL within a source directory, because that will
2452 # break other packages using the cache if that directory is
2453 # removed, or if the value is a relative name.
2454 INSTALL=$ac_install_sh
2455 fi
2456fi
042acc47 2457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
f030cae8 2458$as_echo "$INSTALL" >&6; }
b57f37fb
WP
2459
2460# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2461# It thinks the first close brace ends the variable substitution.
2462test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2463
2464test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2465
2466test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2467
042acc47 2468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
f030cae8 2469$as_echo_n "checking whether build environment is sane... " >&6; }
b57f37fb
WP
2470# Just in case
2471sleep 1
2472echo timestamp > conftest.file
042acc47
WP
2473# Reject unsafe characters in $srcdir or the absolute working directory
2474# name. Accept space and tab only in the latter.
2475am_lf='
2476'
2477case `pwd` in
2478 *[\\\"\#\$\&\'\`$am_lf]*)
12e39525 2479 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
042acc47
WP
2480esac
2481case $srcdir in
2482 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12e39525 2483 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
042acc47
WP
2484esac
2485
b57f37fb
WP
2486# Do `set' in a subshell so we don't clobber the current shell's
2487# arguments. Must try -L first in case configure is actually a
2488# symlink; some systems play weird games with the mod time of symlinks
2489# (eg FreeBSD returns the mod time of the symlink's containing
2490# directory).
2491if (
042acc47 2492 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
b57f37fb
WP
2493 if test "$*" = "X"; then
2494 # -L didn't work.
042acc47 2495 set X `ls -t "$srcdir/configure" conftest.file`
b57f37fb
WP
2496 fi
2497 rm -f conftest.file
2498 if test "$*" != "X $srcdir/configure conftest.file" \
2499 && test "$*" != "X conftest.file $srcdir/configure"; then
2500
2501 # If neither matched, then we have a broken ls. This can happen
2502 # if, for instance, CONFIG_SHELL is bash and it inherits a
2503 # broken ls alias from the environment. This has actually
2504 # happened. Such a system could not be considered "sane".
12e39525 2505 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
042acc47 2506alias in your environment" "$LINENO" 5
b57f37fb
WP
2507 fi
2508
2509 test "$2" = conftest.file
2510 )
2511then
2512 # Ok.
2513 :
2514else
12e39525 2515 as_fn_error $? "newly created file is older than distributed files!
042acc47 2516Check your system clock" "$LINENO" 5
b57f37fb 2517fi
042acc47 2518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
f030cae8 2519$as_echo "yes" >&6; }
b57f37fb
WP
2520test "$program_prefix" != NONE &&
2521 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2522# Use a double $ so make ignores it.
2523test "$program_suffix" != NONE &&
2524 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
f030cae8 2525# Double any \ or $.
b57f37fb 2526# By default was `s,x,x', remove it if useless.
f030cae8
VY
2527ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2528program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b57f37fb
WP
2529
2530# expand $ac_aux_dir to an absolute path
2531am_aux_dir=`cd $ac_aux_dir && pwd`
2532
042acc47
WP
2533if test x"${MISSING+set}" != xset; then
2534 case $am_aux_dir in
2535 *\ * | *\ *)
2536 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2537 *)
2538 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2539 esac
2540fi
b57f37fb
WP
2541# Use eval to expand $SHELL
2542if eval "$MISSING --run true"; then
2543 am_missing_run="$MISSING --run "
2544else
2545 am_missing_run=
042acc47 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
f030cae8 2547$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
b57f37fb
WP
2548fi
2549
042acc47
WP
2550if test x"${install_sh}" != xset; then
2551 case $am_aux_dir in
2552 *\ * | *\ *)
2553 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2554 *)
2555 install_sh="\${SHELL} $am_aux_dir/install-sh"
2556 esac
2557fi
2558
2559# Installed binaries are usually stripped using `strip' when the user
2560# run `make install-strip'. However `strip' might not be the right
2561# tool to use in cross-compilation environments, therefore Automake
2562# will honor the `STRIP' environment variable to overrule this program.
2563if test "$cross_compiling" != no; then
2564 if test -n "$ac_tool_prefix"; then
2565 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2566set dummy ${ac_tool_prefix}strip; ac_word=$2
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568$as_echo_n "checking for $ac_word... " >&6; }
12e39525 2569if ${ac_cv_prog_STRIP+:} false; then :
042acc47
WP
2570 $as_echo_n "(cached) " >&6
2571else
2572 if test -n "$STRIP"; then
2573 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2574else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586done
2587 done
2588IFS=$as_save_IFS
2589
2590fi
2591fi
2592STRIP=$ac_cv_prog_STRIP
2593if test -n "$STRIP"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2595$as_echo "$STRIP" >&6; }
2596else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598$as_echo "no" >&6; }
2599fi
2600
2601
2602fi
2603if test -z "$ac_cv_prog_STRIP"; then
2604 ac_ct_STRIP=$STRIP
2605 # Extract the first word of "strip", so it can be a program name with args.
2606set dummy strip; ac_word=$2
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608$as_echo_n "checking for $ac_word... " >&6; }
12e39525 2609if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
042acc47
WP
2610 $as_echo_n "(cached) " >&6
2611else
2612 if test -n "$ac_ct_STRIP"; then
2613 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_ac_ct_STRIP="strip"
2623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626done
2627 done
2628IFS=$as_save_IFS
2629
2630fi
2631fi
2632ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2633if test -n "$ac_ct_STRIP"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2635$as_echo "$ac_ct_STRIP" >&6; }
2636else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638$as_echo "no" >&6; }
2639fi
2640
2641 if test "x$ac_ct_STRIP" = x; then
2642 STRIP=":"
2643 else
2644 case $cross_compiling:$ac_tool_warned in
2645yes:)
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648ac_tool_warned=yes ;;
2649esac
2650 STRIP=$ac_ct_STRIP
2651 fi
2652else
2653 STRIP="$ac_cv_prog_STRIP"
2654fi
2655
2656fi
2657INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2658
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
f030cae8 2660$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
b57f37fb 2661if test -z "$MKDIR_P"; then
12e39525 2662 if ${ac_cv_path_mkdir+:} false; then :
f030cae8 2663 $as_echo_n "(cached) " >&6
b57f37fb
WP
2664else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2667do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
042acc47 2670 for ac_prog in mkdir gmkdir; do
b57f37fb
WP
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2673 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2674 'mkdir (GNU coreutils) '* | \
2675 'mkdir (coreutils) '* | \
2676 'mkdir (fileutils) '4.1*)
2677 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2678 break 3;;
2679 esac
2680 done
2681 done
042acc47 2682 done
b57f37fb
WP
2683IFS=$as_save_IFS
2684
2685fi
2686
1800d973 2687 test -d ./--version && rmdir ./--version
b57f37fb
WP
2688 if test "${ac_cv_path_mkdir+set}" = set; then
2689 MKDIR_P="$ac_cv_path_mkdir -p"
2690 else
2691 # As a last resort, use the slow shell script. Don't cache a
2692 # value for MKDIR_P within a source directory, because that will
2693 # break other packages using the cache if that directory is
2694 # removed, or if the value is a relative name.
b57f37fb
WP
2695 MKDIR_P="$ac_install_sh -d"
2696 fi
2697fi
042acc47 2698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
f030cae8 2699$as_echo "$MKDIR_P" >&6; }
b57f37fb
WP
2700
2701mkdir_p="$MKDIR_P"
2702case $mkdir_p in
2703 [\\/$]* | ?:[\\/]*) ;;
2704 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2705esac
2706
2707for ac_prog in gawk mawk nawk awk
2708do
2709 # Extract the first word of "$ac_prog", so it can be a program name with args.
2710set dummy $ac_prog; ac_word=$2
042acc47 2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 2712$as_echo_n "checking for $ac_word... " >&6; }
12e39525 2713if ${ac_cv_prog_AWK+:} false; then :
f030cae8 2714 $as_echo_n "(cached) " >&6
b57f37fb
WP
2715else
2716 if test -n "$AWK"; then
2717 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2718else
2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
042acc47 2724 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_AWK="$ac_prog"
042acc47 2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
2728 break 2
2729 fi
2730done
042acc47 2731 done
b57f37fb
WP
2732IFS=$as_save_IFS
2733
2734fi
2735fi
2736AWK=$ac_cv_prog_AWK
2737if test -n "$AWK"; then
042acc47 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
f030cae8 2739$as_echo "$AWK" >&6; }
b57f37fb 2740else
042acc47 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 2742$as_echo "no" >&6; }
b57f37fb
WP
2743fi
2744
2745
2746 test -n "$AWK" && break
2747done
2748
042acc47 2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
f030cae8
VY
2750$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2751set x ${MAKE-make}
2752ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12e39525 2753if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
f030cae8 2754 $as_echo_n "(cached) " >&6
b57f37fb
WP
2755else
2756 cat >conftest.make <<\_ACEOF
2757SHELL = /bin/sh
2758all:
2759 @echo '@@@%%%=$(MAKE)=@@@%%%'
2760_ACEOF
12e39525 2761# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
b57f37fb
WP
2762case `${MAKE-make} -f conftest.make 2>/dev/null` in
2763 *@@@%%%=?*=@@@%%%*)
2764 eval ac_cv_prog_make_${ac_make}_set=yes;;
2765 *)
2766 eval ac_cv_prog_make_${ac_make}_set=no;;
2767esac
2768rm -f conftest.make
2769fi
2770if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
042acc47 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
f030cae8 2772$as_echo "yes" >&6; }
b57f37fb
WP
2773 SET_MAKE=
2774else
042acc47 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 2776$as_echo "no" >&6; }
b57f37fb
WP
2777 SET_MAKE="MAKE=${MAKE-make}"
2778fi
2779
2780rm -rf .tst 2>/dev/null
2781mkdir .tst 2>/dev/null
2782if test -d .tst; then
2783 am__leading_dot=.
2784else
2785 am__leading_dot=_
2786fi
2787rmdir .tst 2>/dev/null
2788
2789if test "`cd $srcdir && pwd`" != "`pwd`"; then
2790 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2791 # is not polluted with repeated "-I."
2792 am__isrc=' -I$(srcdir)'
2793 # test to see if srcdir already configured
2794 if test -f $srcdir/config.status; then
12e39525 2795 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
b57f37fb
WP
2796 fi
2797fi
2798
2799# test whether we have cygpath
2800if test -z "$CYGPATH_W"; then
2801 if (cygpath --version) >/dev/null 2>/dev/null; then
2802 CYGPATH_W='cygpath -w'
2803 else
2804 CYGPATH_W=echo
2805 fi
2806fi
2807
2808
2809# Define the identity of the package.
2810 PACKAGE=libratbox
2811 VERSION=devel
2812
2813
2814# Some tools Automake needs.
2815
2816ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2817
2818
2819AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2820
2821
2822AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2823
2824
2825AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2826
2827
2828MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2829
b57f37fb
WP
2830# We need awk for the "check" target. The system "awk" is bad on
2831# some platforms.
2832# Always define AMTAR for backward compatibility.
2833
2834AMTAR=${AMTAR-"${am_missing_run}tar"}
2835
2836am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2837
2838
2839
2840
2841
2842
2843ac_config_headers="$ac_config_headers include/libratbox_config.h"
2844
2845
2846
b57f37fb
WP
2847DEPDIR="${am__leading_dot}deps"
2848
2849ac_config_commands="$ac_config_commands depfiles"
2850
2851
2852am_make=${MAKE-make}
2853cat > confinc << 'END'
2854am__doit:
042acc47 2855 @echo this is the am__doit target
b57f37fb
WP
2856.PHONY: am__doit
2857END
2858# If we don't find an include directive, just comment out the code.
042acc47 2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
f030cae8 2860$as_echo_n "checking for style of include used by $am_make... " >&6; }
b57f37fb
WP
2861am__include="#"
2862am__quote=
2863_am_result=none
2864# First try GNU make style include.
2865echo "include confinc" > confmf
042acc47
WP
2866# Ignore all kinds of additional output from `make'.
2867case `$am_make -s -f confmf 2> /dev/null` in #(
2868*the\ am__doit\ target*)
2869 am__include=include
2870 am__quote=
2871 _am_result=GNU
2872 ;;
2873esac
b57f37fb
WP
2874# Now try BSD make style include.
2875if test "$am__include" = "#"; then
2876 echo '.include "confinc"' > confmf
042acc47
WP
2877 case `$am_make -s -f confmf 2> /dev/null` in #(
2878 *the\ am__doit\ target*)
2879 am__include=.include
2880 am__quote="\""
2881 _am_result=BSD
2882 ;;
2883 esac
b57f37fb
WP
2884fi
2885
2886
042acc47 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
f030cae8 2888$as_echo "$_am_result" >&6; }
b57f37fb
WP
2889rm -f confinc confmf
2890
2891# Check whether --enable-dependency-tracking was given.
042acc47 2892if test "${enable_dependency_tracking+set}" = set; then :
b57f37fb
WP
2893 enableval=$enable_dependency_tracking;
2894fi
2895
2896if test "x$enable_dependency_tracking" != xno; then
2897 am_depcomp="$ac_aux_dir/depcomp"
2898 AMDEPBACKSLASH='\'
2899fi
2900 if test "x$enable_dependency_tracking" != xno; then
2901 AMDEP_TRUE=
2902 AMDEP_FALSE='#'
2903else
2904 AMDEP_TRUE='#'
2905 AMDEP_FALSE=
2906fi
2907
2908
2909ac_ext=c
2910ac_cpp='$CPP $CPPFLAGS'
2911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914if test -n "$ac_tool_prefix"; then
2915 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2916set dummy ${ac_tool_prefix}gcc; ac_word=$2
042acc47 2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 2918$as_echo_n "checking for $ac_word... " >&6; }
12e39525 2919if ${ac_cv_prog_CC+:} false; then :
f030cae8 2920 $as_echo_n "(cached) " >&6
b57f37fb
WP
2921else
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2924else
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
042acc47 2930 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_CC="${ac_tool_prefix}gcc"
042acc47 2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
2934 break 2
2935 fi
2936done
042acc47 2937 done
b57f37fb
WP
2938IFS=$as_save_IFS
2939
2940fi
2941fi
2942CC=$ac_cv_prog_CC
2943if test -n "$CC"; then
042acc47 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
f030cae8 2945$as_echo "$CC" >&6; }
b57f37fb 2946else
042acc47 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 2948$as_echo "no" >&6; }
b57f37fb
WP
2949fi
2950
2951
2952fi
2953if test -z "$ac_cv_prog_CC"; then
2954 ac_ct_CC=$CC
2955 # Extract the first word of "gcc", so it can be a program name with args.
2956set dummy gcc; ac_word=$2
042acc47 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 2958$as_echo_n "checking for $ac_word... " >&6; }
12e39525 2959if ${ac_cv_prog_ac_ct_CC+:} false; then :
f030cae8 2960 $as_echo_n "(cached) " >&6
b57f37fb
WP
2961else
2962 if test -n "$ac_ct_CC"; then
2963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2964else
2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966for as_dir in $PATH
2967do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
042acc47 2970 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_ac_ct_CC="gcc"
042acc47 2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
2974 break 2
2975 fi
2976done
042acc47 2977 done
b57f37fb
WP
2978IFS=$as_save_IFS
2979
2980fi
2981fi
2982ac_ct_CC=$ac_cv_prog_ac_ct_CC
2983if test -n "$ac_ct_CC"; then
042acc47 2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
f030cae8 2985$as_echo "$ac_ct_CC" >&6; }
b57f37fb 2986else
042acc47 2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 2988$as_echo "no" >&6; }
b57f37fb
WP
2989fi
2990
2991 if test "x$ac_ct_CC" = x; then
2992 CC=""
2993 else
2994 case $cross_compiling:$ac_tool_warned in
2995yes:)
042acc47 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 2997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
2998ac_tool_warned=yes ;;
2999esac
3000 CC=$ac_ct_CC
3001 fi
3002else
3003 CC="$ac_cv_prog_CC"
3004fi
3005
3006if test -z "$CC"; then
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3009set dummy ${ac_tool_prefix}cc; ac_word=$2
042acc47 3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3011$as_echo_n "checking for $ac_word... " >&6; }
12e39525 3012if ${ac_cv_prog_CC+:} false; then :
f030cae8 3013 $as_echo_n "(cached) " >&6
b57f37fb
WP
3014else
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC="$CC" # Let the user override the test.
3017else
3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019for as_dir in $PATH
3020do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
042acc47 3023 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_CC="${ac_tool_prefix}cc"
042acc47 3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3027 break 2
3028 fi
3029done
042acc47 3030 done
b57f37fb
WP
3031IFS=$as_save_IFS
3032
3033fi
3034fi
3035CC=$ac_cv_prog_CC
3036if test -n "$CC"; then
042acc47 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
f030cae8 3038$as_echo "$CC" >&6; }
b57f37fb 3039else
042acc47 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3041$as_echo "no" >&6; }
b57f37fb
WP
3042fi
3043
3044
3045 fi
3046fi
3047if test -z "$CC"; then
3048 # Extract the first word of "cc", so it can be a program name with args.
3049set dummy cc; ac_word=$2
042acc47 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3051$as_echo_n "checking for $ac_word... " >&6; }
12e39525 3052if ${ac_cv_prog_CC+:} false; then :
f030cae8 3053 $as_echo_n "(cached) " >&6
b57f37fb
WP
3054else
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3057else
3058 ac_prog_rejected=no
3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060for as_dir in $PATH
3061do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
042acc47 3064 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3067 ac_prog_rejected=yes
3068 continue
3069 fi
3070 ac_cv_prog_CC="cc"
042acc47 3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3072 break 2
3073 fi
3074done
042acc47 3075 done
b57f37fb
WP
3076IFS=$as_save_IFS
3077
3078if test $ac_prog_rejected = yes; then
3079 # We found a bogon in the path, so make sure we never use it.
3080 set dummy $ac_cv_prog_CC
3081 shift
3082 if test $# != 0; then
3083 # We chose a different compiler from the bogus one.
3084 # However, it has the same basename, so the bogon will be chosen
3085 # first if we set CC to just the basename; use the full file name.
3086 shift
3087 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3088 fi
3089fi
3090fi
3091fi
3092CC=$ac_cv_prog_CC
3093if test -n "$CC"; then
042acc47 3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
f030cae8 3095$as_echo "$CC" >&6; }
b57f37fb 3096else
042acc47 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3098$as_echo "no" >&6; }
b57f37fb
WP
3099fi
3100
3101
3102fi
3103if test -z "$CC"; then
3104 if test -n "$ac_tool_prefix"; then
3105 for ac_prog in cl.exe
3106 do
3107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3108set dummy $ac_tool_prefix$ac_prog; ac_word=$2
042acc47 3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3110$as_echo_n "checking for $ac_word... " >&6; }
12e39525 3111if ${ac_cv_prog_CC+:} false; then :
f030cae8 3112 $as_echo_n "(cached) " >&6
b57f37fb
WP
3113else
3114 if test -n "$CC"; then
3115 ac_cv_prog_CC="$CC" # Let the user override the test.
3116else
3117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH
3119do
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
042acc47 3122 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
042acc47 3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3126 break 2
3127 fi
3128done
042acc47 3129 done
b57f37fb
WP
3130IFS=$as_save_IFS
3131
3132fi
3133fi
3134CC=$ac_cv_prog_CC
3135if test -n "$CC"; then
042acc47 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
f030cae8 3137$as_echo "$CC" >&6; }
b57f37fb 3138else
042acc47 3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3140$as_echo "no" >&6; }
b57f37fb
WP
3141fi
3142
3143
3144 test -n "$CC" && break
3145 done
3146fi
3147if test -z "$CC"; then
3148 ac_ct_CC=$CC
3149 for ac_prog in cl.exe
3150do
3151 # Extract the first word of "$ac_prog", so it can be a program name with args.
3152set dummy $ac_prog; ac_word=$2
042acc47 3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3154$as_echo_n "checking for $ac_word... " >&6; }
12e39525 3155if ${ac_cv_prog_ac_ct_CC+:} false; then :
f030cae8 3156 $as_echo_n "(cached) " >&6
b57f37fb
WP
3157else
3158 if test -n "$ac_ct_CC"; then
3159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3160else
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
042acc47 3166 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3168 ac_cv_prog_ac_ct_CC="$ac_prog"
042acc47 3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3170 break 2
3171 fi
3172done
042acc47 3173 done
b57f37fb
WP
3174IFS=$as_save_IFS
3175
3176fi
3177fi
3178ac_ct_CC=$ac_cv_prog_ac_ct_CC
3179if test -n "$ac_ct_CC"; then
042acc47 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
f030cae8 3181$as_echo "$ac_ct_CC" >&6; }
b57f37fb 3182else
042acc47 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3184$as_echo "no" >&6; }
b57f37fb
WP
3185fi
3186
3187
3188 test -n "$ac_ct_CC" && break
3189done
3190
3191 if test "x$ac_ct_CC" = x; then
3192 CC=""
3193 else
3194 case $cross_compiling:$ac_tool_warned in
3195yes:)
042acc47 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 3197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
3198ac_tool_warned=yes ;;
3199esac
3200 CC=$ac_ct_CC
3201 fi
3202fi
3203
3204fi
3205
3206
042acc47 3207test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 3208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525
JH
3209as_fn_error $? "no acceptable C compiler found in \$PATH
3210See \`config.log' for more details" "$LINENO" 5; }
b57f37fb
WP
3211
3212# Provide some information about the compiler.
042acc47 3213$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
f030cae8
VY
3214set X $ac_compile
3215ac_compiler=$2
042acc47
WP
3216for ac_option in --version -v -V -qversion; do
3217 { { ac_try="$ac_compiler $ac_option >&5"
b57f37fb
WP
3218case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221esac
042acc47
WP
3222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223$as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b57f37fb 3225 ac_status=$?
042acc47
WP
3226 if test -s conftest.err; then
3227 sed '10a\
3228... rest of stderr output deleted ...
3229 10q' conftest.err >conftest.er1
3230 cat conftest.er1 >&5
042acc47 3231 fi
1800d973 3232 rm -f conftest.er1 conftest.err
042acc47
WP
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }
3235done
b57f37fb 3236
042acc47 3237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 3238/* end confdefs.h. */
1800d973 3239
b57f37fb
WP
3240int
3241main ()
3242{
3243
3244 ;
3245 return 0;
3246}
3247_ACEOF
3248ac_clean_files_save=$ac_clean_files
1800d973 3249ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b57f37fb
WP
3250# Try to create an executable without -o first, disregard a.out.
3251# It will help us diagnose broken compilers, and finding out an intuition
3252# of exeext.
1800d973
WP
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3254$as_echo_n "checking whether the C compiler works... " >&6; }
f030cae8
VY
3255ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3256
3257# The possible output files:
3258ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3259
b57f37fb
WP
3260ac_rmfiles=
3261for ac_file in $ac_files
3262do
3263 case $ac_file in
f030cae8 3264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b57f37fb
WP
3265 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3266 esac
3267done
3268rm -f $ac_rmfiles
3269
042acc47 3270if { { ac_try="$ac_link_default"
b57f37fb
WP
3271case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274esac
042acc47
WP
3275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276$as_echo "$ac_try_echo"; } >&5
b57f37fb
WP
3277 (eval "$ac_link_default") 2>&5
3278 ac_status=$?
042acc47
WP
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; then :
b57f37fb
WP
3281 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3282# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3283# in a Makefile. We should not override ac_cv_exeext if it was cached,
3284# so that the user can short-circuit this test for compilers unknown to
3285# Autoconf.
3286for ac_file in $ac_files ''
3287do
3288 test -f "$ac_file" || continue
3289 case $ac_file in
f030cae8 3290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b57f37fb
WP
3291 ;;
3292 [ab].out )
3293 # We found the default executable, but exeext='' is most
3294 # certainly right.
3295 break;;
3296 *.* )
042acc47 3297 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
b57f37fb
WP
3298 then :; else
3299 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3300 fi
3301 # We set ac_cv_exeext here because the later test for it is not
3302 # safe: cross compilers may not add the suffix if given an `-o'
3303 # argument, so we may need to know it at that point already.
3304 # Even if this section looks crufty: it has the advantage of
3305 # actually working.
3306 break;;
3307 * )
3308 break;;
3309 esac
3310done
3311test "$ac_cv_exeext" = no && ac_cv_exeext=
3312
3313else
3314 ac_file=''
3315fi
042acc47 3316if test -z "$ac_file"; then :
1800d973
WP
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
3319$as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
3320sed 's/^/| /' conftest.$ac_ext >&5
3321
042acc47 3322{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 3323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525
JH
3324as_fn_error 77 "C compiler cannot create executables
3325See \`config.log' for more details" "$LINENO" 5; }
1800d973
WP
3326else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328$as_echo "yes" >&6; }
b57f37fb 3329fi
1800d973
WP
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3331$as_echo_n "checking for C compiler default output file name... " >&6; }
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3333$as_echo "$ac_file" >&6; }
b57f37fb
WP
3334ac_exeext=$ac_cv_exeext
3335
1800d973 3336rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b57f37fb 3337ac_clean_files=$ac_clean_files_save
042acc47 3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
f030cae8 3339$as_echo_n "checking for suffix of executables... " >&6; }
042acc47 3340if { { ac_try="$ac_link"
b57f37fb
WP
3341case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344esac
042acc47
WP
3345eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346$as_echo "$ac_try_echo"; } >&5
b57f37fb
WP
3347 (eval "$ac_link") 2>&5
3348 ac_status=$?
042acc47
WP
3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }; then :
b57f37fb
WP
3351 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3352# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3353# work properly (i.e., refer to `conftest.exe'), while it won't with
3354# `rm'.
3355for ac_file in conftest.exe conftest conftest.*; do
3356 test -f "$ac_file" || continue
3357 case $ac_file in
f030cae8 3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b57f37fb
WP
3359 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3360 break;;
3361 * ) break;;
3362 esac
3363done
3364else
042acc47 3365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 3366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525
JH
3367as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3368See \`config.log' for more details" "$LINENO" 5; }
b57f37fb 3369fi
1800d973 3370rm -f conftest conftest$ac_cv_exeext
042acc47 3371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
f030cae8 3372$as_echo "$ac_cv_exeext" >&6; }
b57f37fb
WP
3373
3374rm -f conftest.$ac_ext
3375EXEEXT=$ac_cv_exeext
3376ac_exeext=$EXEEXT
1800d973
WP
3377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378/* end confdefs.h. */
3379#include <stdio.h>
3380int
3381main ()
3382{
3383FILE *f = fopen ("conftest.out", "w");
3384 return ferror (f) || fclose (f) != 0;
3385
3386 ;
3387 return 0;
3388}
3389_ACEOF
3390ac_clean_files="$ac_clean_files conftest.out"
3391# Check that the compiler produces executables we can run. If not, either
3392# the compiler is broken, or we cross compile.
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3394$as_echo_n "checking whether we are cross compiling... " >&6; }
3395if test "$cross_compiling" != yes; then
3396 { { ac_try="$ac_link"
3397case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400esac
3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402$as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_link") 2>&5
3404 ac_status=$?
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }
3407 if { ac_try='./conftest$ac_cv_exeext'
3408 { { case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411esac
3412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413$as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_try") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; }; then
3418 cross_compiling=no
3419 else
3420 if test "$cross_compiling" = maybe; then
3421 cross_compiling=yes
3422 else
3423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525 3425as_fn_error $? "cannot run C compiled programs.
1800d973 3426If you meant to cross compile, use \`--host'.
12e39525 3427See \`config.log' for more details" "$LINENO" 5; }
1800d973
WP
3428 fi
3429 fi
3430fi
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3432$as_echo "$cross_compiling" >&6; }
3433
3434rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3435ac_clean_files=$ac_clean_files_save
042acc47 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
f030cae8 3437$as_echo_n "checking for suffix of object files... " >&6; }
12e39525 3438if ${ac_cv_objext+:} false; then :
f030cae8 3439 $as_echo_n "(cached) " >&6
b57f37fb 3440else
042acc47 3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3442/* end confdefs.h. */
3443
3444int
3445main ()
3446{
3447
3448 ;
3449 return 0;
3450}
3451_ACEOF
3452rm -f conftest.o conftest.obj
042acc47 3453if { { ac_try="$ac_compile"
b57f37fb
WP
3454case "(($ac_try" in
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3457esac
042acc47
WP
3458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459$as_echo "$ac_try_echo"; } >&5
b57f37fb
WP
3460 (eval "$ac_compile") 2>&5
3461 ac_status=$?
042acc47
WP
3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463 test $ac_status = 0; }; then :
b57f37fb
WP
3464 for ac_file in conftest.o conftest.obj conftest.*; do
3465 test -f "$ac_file" || continue;
3466 case $ac_file in
f030cae8 3467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b57f37fb
WP
3468 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3469 break;;
3470 esac
3471done
3472else
f030cae8 3473 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
3474sed 's/^/| /' conftest.$ac_ext >&5
3475
042acc47 3476{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 3477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525
JH
3478as_fn_error $? "cannot compute suffix of object files: cannot compile
3479See \`config.log' for more details" "$LINENO" 5; }
b57f37fb 3480fi
b57f37fb
WP
3481rm -f conftest.$ac_cv_objext conftest.$ac_ext
3482fi
042acc47 3483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
f030cae8 3484$as_echo "$ac_cv_objext" >&6; }
b57f37fb
WP
3485OBJEXT=$ac_cv_objext
3486ac_objext=$OBJEXT
042acc47 3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
f030cae8 3488$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12e39525 3489if ${ac_cv_c_compiler_gnu+:} false; then :
f030cae8 3490 $as_echo_n "(cached) " >&6
b57f37fb 3491else
042acc47 3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3493/* end confdefs.h. */
3494
3495int
3496main ()
3497{
3498#ifndef __GNUC__
3499 choke me
3500#endif
3501
3502 ;
3503 return 0;
3504}
3505_ACEOF
042acc47 3506if ac_fn_c_try_compile "$LINENO"; then :
b57f37fb
WP
3507 ac_compiler_gnu=yes
3508else
042acc47 3509 ac_compiler_gnu=no
b57f37fb 3510fi
b57f37fb
WP
3511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512ac_cv_c_compiler_gnu=$ac_compiler_gnu
3513
3514fi
042acc47 3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
f030cae8
VY
3516$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3517if test $ac_compiler_gnu = yes; then
3518 GCC=yes
3519else
3520 GCC=
3521fi
b57f37fb
WP
3522ac_test_CFLAGS=${CFLAGS+set}
3523ac_save_CFLAGS=$CFLAGS
042acc47 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
f030cae8 3525$as_echo_n "checking whether $CC accepts -g... " >&6; }
12e39525 3526if ${ac_cv_prog_cc_g+:} false; then :
f030cae8 3527 $as_echo_n "(cached) " >&6
b57f37fb
WP
3528else
3529 ac_save_c_werror_flag=$ac_c_werror_flag
3530 ac_c_werror_flag=yes
3531 ac_cv_prog_cc_g=no
3532 CFLAGS="-g"
042acc47 3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3534/* end confdefs.h. */
3535
3536int
3537main ()
3538{
3539
3540 ;
3541 return 0;
3542}
3543_ACEOF
042acc47 3544if ac_fn_c_try_compile "$LINENO"; then :
b57f37fb
WP
3545 ac_cv_prog_cc_g=yes
3546else
042acc47
WP
3547 CFLAGS=""
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3549/* end confdefs.h. */
3550
3551int
3552main ()
3553{
3554
3555 ;
3556 return 0;
3557}
3558_ACEOF
042acc47 3559if ac_fn_c_try_compile "$LINENO"; then :
b57f37fb 3560
042acc47
WP
3561else
3562 ac_c_werror_flag=$ac_save_c_werror_flag
b57f37fb 3563 CFLAGS="-g"
042acc47 3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3565/* end confdefs.h. */
3566
3567int
3568main ()
3569{
3570
3571 ;
3572 return 0;
3573}
3574_ACEOF
042acc47 3575if ac_fn_c_try_compile "$LINENO"; then :
b57f37fb 3576 ac_cv_prog_cc_g=yes
b57f37fb 3577fi
b57f37fb
WP
3578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579fi
b57f37fb
WP
3580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581fi
b57f37fb
WP
3582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 ac_c_werror_flag=$ac_save_c_werror_flag
3584fi
042acc47 3585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
f030cae8 3586$as_echo "$ac_cv_prog_cc_g" >&6; }
b57f37fb
WP
3587if test "$ac_test_CFLAGS" = set; then
3588 CFLAGS=$ac_save_CFLAGS
3589elif test $ac_cv_prog_cc_g = yes; then
3590 if test "$GCC" = yes; then
3591 CFLAGS="-g -O2"
3592 else
3593 CFLAGS="-g"
3594 fi
3595else
3596 if test "$GCC" = yes; then
3597 CFLAGS="-O2"
3598 else
3599 CFLAGS=
3600 fi
3601fi
042acc47 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
f030cae8 3603$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12e39525 3604if ${ac_cv_prog_cc_c89+:} false; then :
f030cae8 3605 $as_echo_n "(cached) " >&6
b57f37fb
WP
3606else
3607 ac_cv_prog_cc_c89=no
3608ac_save_CC=$CC
042acc47 3609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3610/* end confdefs.h. */
3611#include <stdarg.h>
3612#include <stdio.h>
3613#include <sys/types.h>
3614#include <sys/stat.h>
3615/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3616struct buf { int x; };
3617FILE * (*rcsopen) (struct buf *, struct stat *, int);
3618static char *e (p, i)
3619 char **p;
3620 int i;
3621{
3622 return p[i];
3623}
3624static char *f (char * (*g) (char **, int), char **p, ...)
3625{
3626 char *s;
3627 va_list v;
3628 va_start (v,p);
3629 s = g (p, va_arg (v,int));
3630 va_end (v);
3631 return s;
3632}
3633
3634/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3635 function prototypes and stuff, but not '\xHH' hex character constants.
3636 These don't provoke an error unfortunately, instead are silently treated
3637 as 'x'. The following induces an error, until -std is added to get
3638 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3639 array size at least. It's necessary to write '\x00'==0 to get something
3640 that's true only with -std. */
3641int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3642
3643/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3644 inside strings and character constants. */
3645#define FOO(x) 'x'
3646int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3647
3648int test (int i, double x);
3649struct s1 {int (*f) (int a);};
3650struct s2 {int (*f) (double a);};
3651int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3652int argc;
3653char **argv;
3654int
3655main ()
3656{
3657return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3658 ;
3659 return 0;
3660}
3661_ACEOF
3662for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3663 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3664do
3665 CC="$ac_save_CC $ac_arg"
042acc47 3666 if ac_fn_c_try_compile "$LINENO"; then :
b57f37fb 3667 ac_cv_prog_cc_c89=$ac_arg
b57f37fb 3668fi
b57f37fb
WP
3669rm -f core conftest.err conftest.$ac_objext
3670 test "x$ac_cv_prog_cc_c89" != "xno" && break
3671done
3672rm -f conftest.$ac_ext
3673CC=$ac_save_CC
3674
3675fi
3676# AC_CACHE_VAL
3677case "x$ac_cv_prog_cc_c89" in
3678 x)
042acc47 3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
f030cae8 3680$as_echo "none needed" >&6; } ;;
b57f37fb 3681 xno)
042acc47 3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
f030cae8 3683$as_echo "unsupported" >&6; } ;;
b57f37fb
WP
3684 *)
3685 CC="$CC $ac_cv_prog_cc_c89"
042acc47 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
f030cae8 3687$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b57f37fb 3688esac
042acc47 3689if test "x$ac_cv_prog_cc_c89" != xno; then :
b57f37fb 3690
042acc47 3691fi
b57f37fb
WP
3692
3693ac_ext=c
3694ac_cpp='$CPP $CPPFLAGS'
3695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698
3699depcc="$CC" am_compiler_list=
3700
042acc47 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
f030cae8 3702$as_echo_n "checking dependency style of $depcc... " >&6; }
12e39525 3703if ${am_cv_CC_dependencies_compiler_type+:} false; then :
f030cae8 3704 $as_echo_n "(cached) " >&6
b57f37fb
WP
3705else
3706 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3707 # We make a subdir and do the tests there. Otherwise we can end up
3708 # making bogus files that we don't know about and never remove. For
3709 # instance it was reported that on HP-UX the gcc test will end up
3710 # making a dummy file named `D' -- because `-MD' means `put the output
3711 # in D'.
3712 mkdir conftest.dir
3713 # Copy depcomp to subdir because otherwise we won't find it if we're
3714 # using a relative directory.
3715 cp "$am_depcomp" conftest.dir
3716 cd conftest.dir
3717 # We will build objects and dependencies in a subdirectory because
3718 # it helps to detect inapplicable dependency modes. For instance
3719 # both Tru64's cc and ICC support -MD to output dependencies as a
3720 # side effect of compilation, but ICC will put the dependencies in
3721 # the current directory while Tru64 will put them in the object
3722 # directory.
3723 mkdir sub
3724
3725 am_cv_CC_dependencies_compiler_type=none
3726 if test "$am_compiler_list" = ""; then
3727 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3728 fi
042acc47
WP
3729 am__universal=false
3730 case " $depcc " in #(
3731 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3732 esac
3733
b57f37fb
WP
3734 for depmode in $am_compiler_list; do
3735 # Setup a source with many dependencies, because some compilers
3736 # like to wrap large dependency lists on column 80 (with \), and
3737 # we should not choose a depcomp mode which is confused by this.
3738 #
3739 # We need to recreate these files for each test, as the compiler may
3740 # overwrite some of them when testing with obscure command lines.
3741 # This happens at least with the AIX C compiler.
3742 : > sub/conftest.c
3743 for i in 1 2 3 4 5 6; do
3744 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3745 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3746 # Solaris 8's {/usr,}/bin/sh.
3747 touch sub/conftst$i.h
3748 done
3749 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3750
042acc47
WP
3751 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3752 # mode. It turns out that the SunPro C++ compiler does not properly
3753 # handle `-M -o', and we need to detect this. Also, some Intel
3754 # versions had trouble with output in subdirs
3755 am__obj=sub/conftest.${OBJEXT-o}
3756 am__minus_obj="-o $am__obj"
b57f37fb 3757 case $depmode in
042acc47
WP
3758 gcc)
3759 # This depmode causes a compiler race in universal mode.
3760 test "$am__universal" = false || continue
3761 ;;
b57f37fb
WP
3762 nosideeffect)
3763 # after this tag, mechanisms are not by side-effect, so they'll
3764 # only be used when explicitly requested
3765 if test "x$enable_dependency_tracking" = xyes; then
3766 continue
3767 else
3768 break
3769 fi
3770 ;;
042acc47
WP
3771 msvisualcpp | msvcmsys)
3772 # This compiler won't grok `-c -o', but also, the minuso test has
3773 # not run yet. These depmodes are late enough in the game, and
3774 # so weak that their functioning should not be impacted.
3775 am__obj=conftest.${OBJEXT-o}
3776 am__minus_obj=
3777 ;;
b57f37fb
WP
3778 none) break ;;
3779 esac
b57f37fb 3780 if depmode=$depmode \
042acc47 3781 source=sub/conftest.c object=$am__obj \
b57f37fb 3782 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
042acc47 3783 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
b57f37fb
WP
3784 >/dev/null 2>conftest.err &&
3785 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3786 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
042acc47 3787 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
b57f37fb
WP
3788 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3789 # icc doesn't choke on unknown options, it will just issue warnings
3790 # or remarks (even with -Werror). So we grep stderr for any message
3791 # that says an option was ignored or not supported.
3792 # When given -MP, icc 7.0 and 7.1 complain thusly:
3793 # icc: Command line warning: ignoring option '-M'; no argument required
3794 # The diagnosis changed in icc 8.0:
3795 # icc: Command line remark: option '-MP' not supported
3796 if (grep 'ignoring option' conftest.err ||
3797 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3798 am_cv_CC_dependencies_compiler_type=$depmode
3799 break
3800 fi
3801 fi
3802 done
3803
3804 cd ..
3805 rm -rf conftest.dir
3806else
3807 am_cv_CC_dependencies_compiler_type=none
3808fi
3809
3810fi
042acc47 3811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
f030cae8 3812$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
b57f37fb
WP
3813CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3814
3815 if
3816 test "x$enable_dependency_tracking" != xno \
3817 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3818 am__fastdepCC_TRUE=
3819 am__fastdepCC_FALSE='#'
3820else
3821 am__fastdepCC_TRUE='#'
3822 am__fastdepCC_FALSE=
3823fi
3824
3825
f030cae8
VY
3826
3827ac_ext=c
3828ac_cpp='$CPP $CPPFLAGS'
3829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831ac_compiler_gnu=$ac_cv_c_compiler_gnu
042acc47 3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
f030cae8
VY
3833$as_echo_n "checking how to run the C preprocessor... " >&6; }
3834# On Suns, sometimes $CPP names a directory.
3835if test -n "$CPP" && test -d "$CPP"; then
3836 CPP=
3837fi
3838if test -z "$CPP"; then
12e39525 3839 if ${ac_cv_prog_CPP+:} false; then :
f030cae8 3840 $as_echo_n "(cached) " >&6
b57f37fb 3841else
f030cae8
VY
3842 # Double quotes because CPP needs to be expanded
3843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3844 do
3845 ac_preproc_ok=false
3846for ac_c_preproc_warn_flag in '' yes
3847do
3848 # Use a header file that comes with gcc, so configuring glibc
3849 # with a fresh cross-compiler works.
3850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851 # <limits.h> exists even on freestanding compilers.
3852 # On the NeXT, cc -E runs the code through the compiler's parser,
3853 # not just through cpp. "Syntax error" is here to catch this case.
042acc47 3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 3855/* end confdefs.h. */
f030cae8
VY
3856#ifdef __STDC__
3857# include <limits.h>
b57f37fb 3858#else
f030cae8 3859# include <assert.h>
b57f37fb 3860#endif
f030cae8 3861 Syntax error
b57f37fb 3862_ACEOF
042acc47 3863if ac_fn_c_try_cpp "$LINENO"; then :
b57f37fb 3864
042acc47 3865else
f030cae8
VY
3866 # Broken: fails on valid input.
3867continue
b57f37fb 3868fi
12e39525 3869rm -f conftest.err conftest.i conftest.$ac_ext
b57f37fb 3870
f030cae8
VY
3871 # OK, works on sane cases. Now check whether nonexistent headers
3872 # can be detected and how.
042acc47 3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
3874/* end confdefs.h. */
3875#include <ac_nonexistent.h>
3876_ACEOF
042acc47 3877if ac_fn_c_try_cpp "$LINENO"; then :
f030cae8
VY
3878 # Broken: success on invalid input.
3879continue
3880else
f030cae8
VY
3881 # Passes both tests.
3882ac_preproc_ok=:
3883break
3884fi
12e39525 3885rm -f conftest.err conftest.i conftest.$ac_ext
b57f37fb 3886
f030cae8
VY
3887done
3888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12e39525 3889rm -f conftest.i conftest.err conftest.$ac_ext
042acc47 3890if $ac_preproc_ok; then :
f030cae8 3891 break
b57f37fb
WP
3892fi
3893
f030cae8
VY
3894 done
3895 ac_cv_prog_CPP=$CPP
b57f37fb 3896
f030cae8
VY
3897fi
3898 CPP=$ac_cv_prog_CPP
b57f37fb 3899else
f030cae8
VY
3900 ac_cv_prog_CPP=$CPP
3901fi
042acc47 3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
f030cae8
VY
3903$as_echo "$CPP" >&6; }
3904ac_preproc_ok=false
3905for ac_c_preproc_warn_flag in '' yes
b57f37fb 3906do
f030cae8
VY
3907 # Use a header file that comes with gcc, so configuring glibc
3908 # with a fresh cross-compiler works.
3909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3910 # <limits.h> exists even on freestanding compilers.
3911 # On the NeXT, cc -E runs the code through the compiler's parser,
3912 # not just through cpp. "Syntax error" is here to catch this case.
042acc47 3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
3914/* end confdefs.h. */
3915#ifdef __STDC__
3916# include <limits.h>
3917#else
3918# include <assert.h>
3919#endif
3920 Syntax error
3921_ACEOF
042acc47 3922if ac_fn_c_try_cpp "$LINENO"; then :
b57f37fb 3923
042acc47 3924else
f030cae8
VY
3925 # Broken: fails on valid input.
3926continue
b57f37fb 3927fi
12e39525 3928rm -f conftest.err conftest.i conftest.$ac_ext
b57f37fb 3929
f030cae8
VY
3930 # OK, works on sane cases. Now check whether nonexistent headers
3931 # can be detected and how.
042acc47 3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
3933/* end confdefs.h. */
3934#include <ac_nonexistent.h>
3935_ACEOF
042acc47 3936if ac_fn_c_try_cpp "$LINENO"; then :
f030cae8
VY
3937 # Broken: success on invalid input.
3938continue
3939else
f030cae8
VY
3940 # Passes both tests.
3941ac_preproc_ok=:
3942break
3943fi
12e39525 3944rm -f conftest.err conftest.i conftest.$ac_ext
f030cae8
VY
3945
3946done
3947# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12e39525 3948rm -f conftest.i conftest.err conftest.$ac_ext
042acc47
WP
3949if $ac_preproc_ok; then :
3950
b57f37fb 3951else
042acc47 3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 3953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525
JH
3954as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3955See \`config.log' for more details" "$LINENO" 5; }
f030cae8
VY
3956fi
3957
3958ac_ext=c
3959ac_cpp='$CPP $CPPFLAGS'
3960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964
042acc47 3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
f030cae8 3966$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12e39525 3967if ${ac_cv_path_GREP+:} false; then :
f030cae8 3968 $as_echo_n "(cached) " >&6
b57f37fb 3969else
f030cae8 3970 if test -z "$GREP"; then
b57f37fb 3971 ac_path_GREP_found=false
f030cae8
VY
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b57f37fb
WP
3974for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
042acc47 3978 for ac_prog in grep ggrep; do
f030cae8
VY
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3982# Check for GNU ac_path_GREP and select it if it is found.
b57f37fb
WP
3983 # Check for GNU $ac_path_GREP
3984case `"$ac_path_GREP" --version 2>&1` in
3985*GNU*)
3986 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3987*)
3988 ac_count=0
f030cae8 3989 $as_echo_n 0123456789 >"conftest.in"
b57f37fb
WP
3990 while :
3991 do
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
f030cae8 3995 $as_echo 'GREP' >> "conftest.nl"
b57f37fb
WP
3996 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
042acc47 3998 as_fn_arith $ac_count + 1 && ac_count=$as_val
b57f37fb
WP
3999 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_GREP="$ac_path_GREP"
4002 ac_path_GREP_max=$ac_count
4003 fi
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4006 done
4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008esac
4009
f030cae8
VY
4010 $ac_path_GREP_found && break 3
4011 done
b57f37fb 4012 done
042acc47 4013 done
b57f37fb 4014IFS=$as_save_IFS
f030cae8 4015 if test -z "$ac_cv_path_GREP"; then
12e39525 4016 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f030cae8 4017 fi
b57f37fb
WP
4018else
4019 ac_cv_path_GREP=$GREP
4020fi
4021
b57f37fb 4022fi
042acc47 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
f030cae8 4024$as_echo "$ac_cv_path_GREP" >&6; }
b57f37fb
WP
4025 GREP="$ac_cv_path_GREP"
4026
4027
042acc47 4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
f030cae8 4029$as_echo_n "checking for egrep... " >&6; }
12e39525 4030if ${ac_cv_path_EGREP+:} false; then :
f030cae8 4031 $as_echo_n "(cached) " >&6
b57f37fb
WP
4032else
4033 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4034 then ac_cv_path_EGREP="$GREP -E"
4035 else
f030cae8 4036 if test -z "$EGREP"; then
b57f37fb 4037 ac_path_EGREP_found=false
f030cae8
VY
4038 # Loop through the user's path and test for each of PROGNAME-LIST
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b57f37fb
WP
4040for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4041do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
042acc47 4044 for ac_prog in egrep; do
f030cae8
VY
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4047 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4048# Check for GNU ac_path_EGREP and select it if it is found.
b57f37fb
WP
4049 # Check for GNU $ac_path_EGREP
4050case `"$ac_path_EGREP" --version 2>&1` in
4051*GNU*)
4052 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4053*)
4054 ac_count=0
f030cae8 4055 $as_echo_n 0123456789 >"conftest.in"
b57f37fb
WP
4056 while :
4057 do
4058 cat "conftest.in" "conftest.in" >"conftest.tmp"
4059 mv "conftest.tmp" "conftest.in"
4060 cp "conftest.in" "conftest.nl"
f030cae8 4061 $as_echo 'EGREP' >> "conftest.nl"
b57f37fb
WP
4062 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
042acc47 4064 as_fn_arith $ac_count + 1 && ac_count=$as_val
b57f37fb
WP
4065 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4066 # Best one so far, save it but keep looking for a better one
4067 ac_cv_path_EGREP="$ac_path_EGREP"
4068 ac_path_EGREP_max=$ac_count
4069 fi
4070 # 10*(2^10) chars as input seems more than enough
4071 test $ac_count -gt 10 && break
4072 done
4073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4074esac
4075
f030cae8
VY
4076 $ac_path_EGREP_found && break 3
4077 done
b57f37fb 4078 done
042acc47 4079 done
b57f37fb 4080IFS=$as_save_IFS
f030cae8 4081 if test -z "$ac_cv_path_EGREP"; then
12e39525 4082 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f030cae8 4083 fi
b57f37fb
WP
4084else
4085 ac_cv_path_EGREP=$EGREP
4086fi
4087
b57f37fb
WP
4088 fi
4089fi
042acc47 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
f030cae8 4091$as_echo "$ac_cv_path_EGREP" >&6; }
b57f37fb
WP
4092 EGREP="$ac_cv_path_EGREP"
4093
4094
042acc47 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
f030cae8 4096$as_echo_n "checking for ANSI C header files... " >&6; }
12e39525 4097if ${ac_cv_header_stdc+:} false; then :
f030cae8 4098 $as_echo_n "(cached) " >&6
b57f37fb 4099else
042acc47 4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 4101/* end confdefs.h. */
f030cae8
VY
4102#include <stdlib.h>
4103#include <stdarg.h>
4104#include <string.h>
4105#include <float.h>
b57f37fb 4106
b57f37fb
WP
4107int
4108main ()
4109{
f030cae8 4110
b57f37fb
WP
4111 ;
4112 return 0;
4113}
4114_ACEOF
042acc47 4115if ac_fn_c_try_compile "$LINENO"; then :
f030cae8 4116 ac_cv_header_stdc=yes
b57f37fb 4117else
042acc47 4118 ac_cv_header_stdc=no
b57f37fb 4119fi
f030cae8
VY
4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121
4122if test $ac_cv_header_stdc = yes; then
4123 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
042acc47 4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4125/* end confdefs.h. */
4126#include <string.h>
4127
4128_ACEOF
4129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
042acc47
WP
4130 $EGREP "memchr" >/dev/null 2>&1; then :
4131
b57f37fb 4132else
f030cae8 4133 ac_cv_header_stdc=no
b57f37fb 4134fi
f030cae8 4135rm -f conftest*
b57f37fb
WP
4136
4137fi
4138
f030cae8
VY
4139if test $ac_cv_header_stdc = yes; then
4140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
042acc47 4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 4142/* end confdefs.h. */
f030cae8 4143#include <stdlib.h>
b57f37fb
WP
4144
4145_ACEOF
f030cae8 4146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
042acc47
WP
4147 $EGREP "free" >/dev/null 2>&1; then :
4148
b57f37fb 4149else
f030cae8 4150 ac_cv_header_stdc=no
b57f37fb 4151fi
f030cae8 4152rm -f conftest*
b57f37fb
WP
4153
4154fi
b57f37fb 4155
f030cae8
VY
4156if test $ac_cv_header_stdc = yes; then
4157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
042acc47 4158 if test "$cross_compiling" = yes; then :
f030cae8 4159 :
b57f37fb 4160else
042acc47 4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 4162/* end confdefs.h. */
f030cae8
VY
4163#include <ctype.h>
4164#include <stdlib.h>
4165#if ((' ' & 0x0FF) == 0x020)
4166# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4167# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4168#else
4169# define ISLOWER(c) \
4170 (('a' <= (c) && (c) <= 'i') \
4171 || ('j' <= (c) && (c) <= 'r') \
4172 || ('s' <= (c) && (c) <= 'z'))
4173# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
b57f37fb
WP
4174#endif
4175
f030cae8
VY
4176#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4177int
4178main ()
4179{
4180 int i;
4181 for (i = 0; i < 256; i++)
4182 if (XOR (islower (i), ISLOWER (i))
4183 || toupper (i) != TOUPPER (i))
4184 return 2;
b57f37fb
WP
4185 return 0;
4186}
4187_ACEOF
042acc47 4188if ac_fn_c_try_run "$LINENO"; then :
f030cae8 4189
042acc47
WP
4190else
4191 ac_cv_header_stdc=no
f030cae8 4192fi
042acc47
WP
4193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4194 conftest.$ac_objext conftest.beam conftest.$ac_ext
f030cae8
VY
4195fi
4196
f030cae8
VY
4197fi
4198fi
042acc47 4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
f030cae8
VY
4200$as_echo "$ac_cv_header_stdc" >&6; }
4201if test $ac_cv_header_stdc = yes; then
4202
042acc47 4203$as_echo "#define STDC_HEADERS 1" >>confdefs.h
f030cae8
VY
4204
4205fi
4206
4207# On IRIX 5.3, sys/types and inttypes.h are conflicting.
042acc47
WP
4208for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4209 inttypes.h stdint.h unistd.h
4210do :
4211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4212ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4213"
12e39525 4214if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
042acc47
WP
4215 cat >>confdefs.h <<_ACEOF
4216#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4217_ACEOF
f030cae8 4218
042acc47 4219fi
f030cae8 4220
042acc47 4221done
f030cae8
VY
4222
4223
4224
042acc47 4225 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
12e39525 4226if test "x$ac_cv_header_minix_config_h" = xyes; then :
042acc47
WP
4227 MINIX=yes
4228else
4229 MINIX=
4230fi
f030cae8
VY
4231
4232
042acc47 4233 if test "$MINIX" = yes; then
f030cae8 4234
042acc47 4235$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
f030cae8 4236
b57f37fb 4237
042acc47 4238$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
b57f37fb 4239
b57f37fb 4240
042acc47 4241$as_echo "#define _MINIX 1" >>confdefs.h
f030cae8 4242
042acc47 4243 fi
f030cae8
VY
4244
4245
042acc47 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
f030cae8 4247$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
12e39525 4248if ${ac_cv_safe_to_define___extensions__+:} false; then :
f030cae8 4249 $as_echo_n "(cached) " >&6
b57f37fb 4250else
042acc47 4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8 4252/* end confdefs.h. */
b57f37fb 4253
f030cae8
VY
4254# define __EXTENSIONS__ 1
4255 $ac_includes_default
4256int
4257main ()
4258{
4259
4260 ;
4261 return 0;
4262}
4263_ACEOF
042acc47 4264if ac_fn_c_try_compile "$LINENO"; then :
f030cae8 4265 ac_cv_safe_to_define___extensions__=yes
b57f37fb 4266else
042acc47 4267 ac_cv_safe_to_define___extensions__=no
b57f37fb 4268fi
f030cae8
VY
4269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270fi
042acc47 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
f030cae8
VY
4272$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4273 test $ac_cv_safe_to_define___extensions__ = yes &&
042acc47 4274 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
b57f37fb 4275
042acc47 4276 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
f030cae8 4277
042acc47 4278 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
f030cae8 4279
042acc47
WP
4280 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4281
4282 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
f030cae8 4283
f030cae8
VY
4284
4285
4286
042acc47 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
f030cae8 4288$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12e39525 4289if ${ac_cv_prog_cc_c99+:} false; then :
f030cae8 4290 $as_echo_n "(cached) " >&6
b57f37fb 4291else
f030cae8
VY
4292 ac_cv_prog_cc_c99=no
4293ac_save_CC=$CC
042acc47 4294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4295/* end confdefs.h. */
4296#include <stdarg.h>
4297#include <stdbool.h>
4298#include <stdlib.h>
4299#include <wchar.h>
4300#include <stdio.h>
b57f37fb 4301
f030cae8
VY
4302// Check varargs macros. These examples are taken from C99 6.10.3.5.
4303#define debug(...) fprintf (stderr, __VA_ARGS__)
4304#define showlist(...) puts (#__VA_ARGS__)
4305#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4306static void
4307test_varargs_macros (void)
4308{
4309 int x = 1234;
4310 int y = 5678;
4311 debug ("Flag");
4312 debug ("X = %d\n", x);
4313 showlist (The first, second, and third items.);
4314 report (x>y, "x is %d but y is %d", x, y);
4315}
b57f37fb 4316
f030cae8
VY
4317// Check long long types.
4318#define BIG64 18446744073709551615ull
4319#define BIG32 4294967295ul
4320#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4321#if !BIG_OK
4322 your preprocessor is broken;
4323#endif
4324#if BIG_OK
4325#else
4326 your preprocessor is broken;
4327#endif
4328static long long int bignum = -9223372036854775807LL;
4329static unsigned long long int ubignum = BIG64;
b57f37fb 4330
f030cae8
VY
4331struct incomplete_array
4332{
4333 int datasize;
4334 double data[];
4335};
b57f37fb 4336
f030cae8
VY
4337struct named_init {
4338 int number;
4339 const wchar_t *name;
4340 double average;
4341};
b57f37fb 4342
f030cae8 4343typedef const char *ccp;
b57f37fb 4344
f030cae8
VY
4345static inline int
4346test_restrict (ccp restrict text)
4347{
4348 // See if C++-style comments work.
4349 // Iterate through items via the restricted pointer.
4350 // Also check for declarations in for loops.
4351 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4352 continue;
4353 return 0;
4354}
b57f37fb 4355
f030cae8
VY
4356// Check varargs and va_copy.
4357static void
4358test_varargs (const char *format, ...)
4359{
4360 va_list args;
4361 va_start (args, format);
4362 va_list args_copy;
4363 va_copy (args_copy, args);
b57f37fb 4364
f030cae8
VY
4365 const char *str;
4366 int number;
4367 float fnumber;
b57f37fb 4368
f030cae8
VY
4369 while (*format)
4370 {
4371 switch (*format++)
4372 {
4373 case 's': // string
4374 str = va_arg (args_copy, const char *);
4375 break;
4376 case 'd': // int
4377 number = va_arg (args_copy, int);
4378 break;
4379 case 'f': // float
4380 fnumber = va_arg (args_copy, double);
4381 break;
4382 default:
4383 break;
4384 }
4385 }
4386 va_end (args_copy);
4387 va_end (args);
4388}
b57f37fb 4389
f030cae8
VY
4390int
4391main ()
4392{
b57f37fb 4393
f030cae8
VY
4394 // Check bool.
4395 _Bool success = false;
b57f37fb 4396
f030cae8
VY
4397 // Check restrict.
4398 if (test_restrict ("String literal") == 0)
4399 success = true;
4400 char *restrict newvar = "Another string";
b57f37fb 4401
f030cae8
VY
4402 // Check varargs.
4403 test_varargs ("s, d' f .", "string", 65, 34.234);
4404 test_varargs_macros ();
b57f37fb 4405
f030cae8
VY
4406 // Check flexible array members.
4407 struct incomplete_array *ia =
4408 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4409 ia->datasize = 10;
4410 for (int i = 0; i < ia->datasize; ++i)
4411 ia->data[i] = i * 1.234;
b57f37fb 4412
f030cae8
VY
4413 // Check named initializers.
4414 struct named_init ni = {
4415 .number = 34,
4416 .name = L"Test wide string",
4417 .average = 543.34343,
4418 };
b57f37fb 4419
f030cae8 4420 ni.number = 58;
b57f37fb 4421
f030cae8
VY
4422 int dynamic_array[ni.number];
4423 dynamic_array[ni.number - 1] = 543;
4424
4425 // work around unused variable warnings
4426 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4427 || dynamic_array[ni.number - 1] != 543);
4428
4429 ;
4430 return 0;
4431}
4432_ACEOF
4433for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4434do
4435 CC="$ac_save_CC $ac_arg"
042acc47 4436 if ac_fn_c_try_compile "$LINENO"; then :
f030cae8 4437 ac_cv_prog_cc_c99=$ac_arg
b57f37fb 4438fi
f030cae8
VY
4439rm -f core conftest.err conftest.$ac_objext
4440 test "x$ac_cv_prog_cc_c99" != "xno" && break
4441done
4442rm -f conftest.$ac_ext
4443CC=$ac_save_CC
4444
b57f37fb 4445fi
f030cae8
VY
4446# AC_CACHE_VAL
4447case "x$ac_cv_prog_cc_c99" in
4448 x)
042acc47 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
f030cae8
VY
4450$as_echo "none needed" >&6; } ;;
4451 xno)
042acc47 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
f030cae8
VY
4453$as_echo "unsupported" >&6; } ;;
4454 *)
4455 CC="$CC $ac_cv_prog_cc_c99"
042acc47 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
f030cae8 4457$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
b57f37fb 4458esac
042acc47 4459if test "x$ac_cv_prog_cc_c99" != xno; then :
b57f37fb 4460
f030cae8
VY
4461fi
4462
4463
f030cae8 4464
042acc47 4465if test x"$ac_cv_prog_cc_c99" = "xno"; then
12e39525 4466 as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
f030cae8 4467fi
b57f37fb 4468
b57f37fb
WP
4469
4470
042acc47 4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
f030cae8 4472$as_echo_n "checking for egrep... " >&6; }
12e39525 4473if ${ac_cv_path_EGREP+:} false; then :
f030cae8 4474 $as_echo_n "(cached) " >&6
b57f37fb 4475else
f030cae8
VY
4476 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4477 then ac_cv_path_EGREP="$GREP -E"
4478 else
4479 if test -z "$EGREP"; then
4480 ac_path_EGREP_found=false
4481 # Loop through the user's path and test for each of PROGNAME-LIST
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4484do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
042acc47 4487 for ac_prog in egrep; do
f030cae8
VY
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4490 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4491# Check for GNU ac_path_EGREP and select it if it is found.
4492 # Check for GNU $ac_path_EGREP
4493case `"$ac_path_EGREP" --version 2>&1` in
4494*GNU*)
4495 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4496*)
4497 ac_count=0
4498 $as_echo_n 0123456789 >"conftest.in"
4499 while :
4500 do
4501 cat "conftest.in" "conftest.in" >"conftest.tmp"
4502 mv "conftest.tmp" "conftest.in"
4503 cp "conftest.in" "conftest.nl"
4504 $as_echo 'EGREP' >> "conftest.nl"
4505 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
042acc47 4507 as_fn_arith $ac_count + 1 && ac_count=$as_val
f030cae8
VY
4508 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4509 # Best one so far, save it but keep looking for a better one
4510 ac_cv_path_EGREP="$ac_path_EGREP"
4511 ac_path_EGREP_max=$ac_count
4512 fi
4513 # 10*(2^10) chars as input seems more than enough
4514 test $ac_count -gt 10 && break
4515 done
4516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4517esac
b57f37fb 4518
f030cae8
VY
4519 $ac_path_EGREP_found && break 3
4520 done
4521 done
042acc47 4522 done
f030cae8
VY
4523IFS=$as_save_IFS
4524 if test -z "$ac_cv_path_EGREP"; then
12e39525 4525 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f030cae8 4526 fi
b57f37fb 4527else
f030cae8 4528 ac_cv_path_EGREP=$EGREP
b57f37fb 4529fi
f030cae8
VY
4530
4531 fi
4532fi
042acc47 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
f030cae8
VY
4534$as_echo "$ac_cv_path_EGREP" >&6; }
4535 EGREP="$ac_cv_path_EGREP"
4536
4537
042acc47 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
f030cae8 4539$as_echo_n "checking for a sed that does not truncate output... " >&6; }
12e39525 4540if ${ac_cv_path_SED+:} false; then :
f030cae8
VY
4541 $as_echo_n "(cached) " >&6
4542else
4543 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4544 for ac_i in 1 2 3 4 5 6 7; do
4545 ac_script="$ac_script$as_nl$ac_script"
4546 done
4547 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
042acc47 4548 { ac_script=; unset ac_script;}
f030cae8
VY
4549 if test -z "$SED"; then
4550 ac_path_SED_found=false
4551 # Loop through the user's path and test for each of PROGNAME-LIST
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
042acc47 4557 for ac_prog in sed gsed; do
f030cae8
VY
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4560 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4561# Check for GNU ac_path_SED and select it if it is found.
4562 # Check for GNU $ac_path_SED
4563case `"$ac_path_SED" --version 2>&1` in
4564*GNU*)
4565 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4566*)
4567 ac_count=0
4568 $as_echo_n 0123456789 >"conftest.in"
4569 while :
4570 do
4571 cat "conftest.in" "conftest.in" >"conftest.tmp"
4572 mv "conftest.tmp" "conftest.in"
4573 cp "conftest.in" "conftest.nl"
4574 $as_echo '' >> "conftest.nl"
4575 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
042acc47 4577 as_fn_arith $ac_count + 1 && ac_count=$as_val
f030cae8
VY
4578 if test $ac_count -gt ${ac_path_SED_max-0}; then
4579 # Best one so far, save it but keep looking for a better one
4580 ac_cv_path_SED="$ac_path_SED"
4581 ac_path_SED_max=$ac_count
b57f37fb 4582 fi
f030cae8
VY
4583 # 10*(2^10) chars as input seems more than enough
4584 test $ac_count -gt 10 && break
b57f37fb 4585 done
f030cae8
VY
4586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4587esac
4588
4589 $ac_path_SED_found && break 3
4590 done
4591 done
042acc47 4592 done
f030cae8
VY
4593IFS=$as_save_IFS
4594 if test -z "$ac_cv_path_SED"; then
12e39525 4595 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
f030cae8 4596 fi
b57f37fb 4597else
f030cae8 4598 ac_cv_path_SED=$SED
b57f37fb 4599fi
f030cae8 4600
b57f37fb 4601fi
042acc47 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
f030cae8
VY
4603$as_echo "$ac_cv_path_SED" >&6; }
4604 SED="$ac_cv_path_SED"
4605 rm -f conftest.sed
b57f37fb 4606
f030cae8
VY
4607
4608F77=no
4609CXX=no
4610GCJ=no
4611
4612# Check whether --enable-static was given.
042acc47 4613if test "${enable_static+set}" = set; then :
f030cae8
VY
4614 enableval=$enable_static; p=${PACKAGE-default}
4615 case $enableval in
4616 yes) enable_static=yes ;;
4617 no) enable_static=no ;;
4618 *)
4619 enable_static=no
4620 # Look at the argument we got. We use all the common list separators.
4621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4622 for pkg in $enableval; do
4623 IFS="$lt_save_ifs"
4624 if test "X$pkg" = "X$p"; then
4625 enable_static=yes
4626 fi
4627 done
4628 IFS="$lt_save_ifs"
4629 ;;
4630 esac
b57f37fb 4631else
f030cae8 4632 enable_static=no
b57f37fb 4633fi
f030cae8
VY
4634
4635
4636
042acc47
WP
4637
4638
4639
4640
4641
4642
f030cae8 4643# Check whether --enable-shared was given.
042acc47 4644if test "${enable_shared+set}" = set; then :
f030cae8
VY
4645 enableval=$enable_shared; p=${PACKAGE-default}
4646 case $enableval in
4647 yes) enable_shared=yes ;;
4648 no) enable_shared=no ;;
4649 *)
4650 enable_shared=no
4651 # Look at the argument we got. We use all the common list separators.
4652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4653 for pkg in $enableval; do
4654 IFS="$lt_save_ifs"
4655 if test "X$pkg" = "X$p"; then
4656 enable_shared=yes
4657 fi
4658 done
4659 IFS="$lt_save_ifs"
4660 ;;
4661 esac
b57f37fb 4662else
f030cae8 4663 enable_shared=yes
b57f37fb 4664fi
b57f37fb
WP
4665
4666
042acc47
WP
4667
4668
4669
4670
4671
4672
4673
4674
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
f030cae8
VY
4676$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4677 # Check whether --enable-maintainer-mode was given.
042acc47 4678if test "${enable_maintainer_mode+set}" = set; then :
f030cae8 4679 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
b57f37fb 4680else
f030cae8 4681 USE_MAINTAINER_MODE=no
b57f37fb 4682fi
f030cae8 4683
042acc47 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
f030cae8
VY
4685$as_echo "$USE_MAINTAINER_MODE" >&6; }
4686 if test $USE_MAINTAINER_MODE = yes; then
4687 MAINTAINER_MODE_TRUE=
4688 MAINTAINER_MODE_FALSE='#'
4689else
4690 MAINTAINER_MODE_TRUE='#'
4691 MAINTAINER_MODE_FALSE=
4692fi
4693
4694 MAINT=$MAINTAINER_MODE_TRUE
4695
4696
4697
042acc47 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
f030cae8 4699$as_echo_n "checking for library containing strerror... " >&6; }
12e39525 4700if ${ac_cv_search_strerror+:} false; then :
f030cae8
VY
4701 $as_echo_n "(cached) " >&6
4702else
4703 ac_func_search_save_LIBS=$LIBS
042acc47 4704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4705/* end confdefs.h. */
4706
4707/* Override any GCC internal prototype to avoid an error.
4708 Use char because int might match the return type of a GCC
4709 builtin and then its argument prototype would still apply. */
4710#ifdef __cplusplus
4711extern "C"
4712#endif
4713char strerror ();
4714int
4715main ()
4716{
4717return strerror ();
4718 ;
4719 return 0;
4720}
4721_ACEOF
4722for ac_lib in '' cposix; do
4723 if test -z "$ac_lib"; then
4724 ac_res="none required"
4725 else
4726 ac_res=-l$ac_lib
4727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4728 fi
042acc47 4729 if ac_fn_c_try_link "$LINENO"; then :
f030cae8 4730 ac_cv_search_strerror=$ac_res
f030cae8 4731fi
042acc47
WP
4732rm -f core conftest.err conftest.$ac_objext \
4733 conftest$ac_exeext
12e39525 4734 if ${ac_cv_search_strerror+:} false; then :
f030cae8
VY
4735 break
4736fi
4737done
12e39525 4738if ${ac_cv_search_strerror+:} false; then :
042acc47 4739
f030cae8
VY
4740else
4741 ac_cv_search_strerror=no
4742fi
4743rm conftest.$ac_ext
4744LIBS=$ac_func_search_save_LIBS
4745fi
042acc47 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
f030cae8
VY
4747$as_echo "$ac_cv_search_strerror" >&6; }
4748ac_res=$ac_cv_search_strerror
042acc47 4749if test "$ac_res" != no; then :
f030cae8
VY
4750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4751
4752fi
4753
042acc47 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
f030cae8 4755$as_echo_n "checking for inline... " >&6; }
12e39525 4756if ${ac_cv_c_inline+:} false; then :
f030cae8
VY
4757 $as_echo_n "(cached) " >&6
4758else
4759 ac_cv_c_inline=no
4760for ac_kw in inline __inline__ __inline; do
042acc47 4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4762/* end confdefs.h. */
4763#ifndef __cplusplus
4764typedef int foo_t;
4765static $ac_kw foo_t static_foo () {return 0; }
4766$ac_kw foo_t foo () {return 0; }
4767#endif
4768
4769_ACEOF
042acc47 4770if ac_fn_c_try_compile "$LINENO"; then :
f030cae8 4771 ac_cv_c_inline=$ac_kw
f030cae8 4772fi
f030cae8
VY
4773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 test "$ac_cv_c_inline" != no && break
4775done
4776
4777fi
042acc47 4778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
f030cae8
VY
4779$as_echo "$ac_cv_c_inline" >&6; }
4780
f030cae8
VY
4781case $ac_cv_c_inline in
4782 inline | yes) ;;
4783 *)
4784 case $ac_cv_c_inline in
4785 no) ac_val=;;
4786 *) ac_val=$ac_cv_c_inline;;
4787 esac
4788 cat >>confdefs.h <<_ACEOF
4789#ifndef __cplusplus
4790#define inline $ac_val
4791#endif
4792_ACEOF
b57f37fb
WP
4793 ;;
4794esac
4795
042acc47 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
f030cae8 4797$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12e39525 4798if ${ac_cv_c_const+:} false; then :
f030cae8 4799 $as_echo_n "(cached) " >&6
b57f37fb 4800else
042acc47 4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4802/* end confdefs.h. */
4803
4804int
4805main ()
4806{
4807/* FIXME: Include the comments suggested by Paul. */
4808#ifndef __cplusplus
4809 /* Ultrix mips cc rejects this. */
4810 typedef int charset[2];
4811 const charset cs;
4812 /* SunOS 4.1.1 cc rejects this. */
4813 char const *const *pcpcc;
4814 char **ppc;
4815 /* NEC SVR4.0.2 mips cc rejects this. */
4816 struct point {int x, y;};
4817 static struct point const zero = {0,0};
4818 /* AIX XL C 1.02.0.0 rejects this.
4819 It does not let you subtract one const X* pointer from another in
4820 an arm of an if-expression whose if-part is not a constant
4821 expression */
4822 const char *g = "string";
4823 pcpcc = &g + (g ? g-g : 0);
4824 /* HPUX 7.0 cc rejects these. */
4825 ++pcpcc;
4826 ppc = (char**) pcpcc;
4827 pcpcc = (char const *const *) ppc;
4828 { /* SCO 3.2v4 cc rejects this. */
4829 char *t;
4830 char const *s = 0 ? (char *) 0 : (char const *) 0;
4831
4832 *t++ = 0;
4833 if (s) return 0;
4834 }
4835 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4836 int x[] = {25, 17};
4837 const int *foo = &x[0];
4838 ++foo;
4839 }
4840 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4841 typedef const int *iptr;
4842 iptr p = 0;
4843 ++p;
4844 }
4845 { /* AIX XL C 1.02.0.0 rejects this saying
4846 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4847 struct s { int j; const int *ap[3]; };
4848 struct s *b; b->j = 5;
4849 }
4850 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4851 const int foo = 10;
4852 if (!foo) return 0;
4853 }
4854 return !cs[0] && !zero.x;
4855#endif
4856
4857 ;
4858 return 0;
4859}
4860_ACEOF
042acc47 4861if ac_fn_c_try_compile "$LINENO"; then :
f030cae8 4862 ac_cv_c_const=yes
b57f37fb 4863else
042acc47 4864 ac_cv_c_const=no
f030cae8 4865fi
f030cae8
VY
4866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867fi
042acc47 4868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
f030cae8
VY
4869$as_echo "$ac_cv_c_const" >&6; }
4870if test $ac_cv_c_const = no; then
4871
042acc47 4872$as_echo "#define const /**/" >>confdefs.h
f030cae8
VY
4873
4874fi
4875
6dec141a
JH
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4877$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4878if ${ac_cv_c_bigendian+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880else
4881 ac_cv_c_bigendian=unknown
4882 # See if we're dealing with a universal compiler.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884/* end confdefs.h. */
4885#ifndef __APPLE_CC__
4886 not a universal capable compiler
4887 #endif
4888 typedef int dummy;
4889
4890_ACEOF
4891if ac_fn_c_try_compile "$LINENO"; then :
4892
4893 # Check for potential -arch flags. It is not universal unless
4894 # there are at least two -arch flags with different values.
4895 ac_arch=
4896 ac_prev=
4897 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4898 if test -n "$ac_prev"; then
4899 case $ac_word in
4900 i?86 | x86_64 | ppc | ppc64)
4901 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4902 ac_arch=$ac_word
4903 else
4904 ac_cv_c_bigendian=universal
4905 break
4906 fi
4907 ;;
4908 esac
4909 ac_prev=
4910 elif test "x$ac_word" = "x-arch"; then
4911 ac_prev=arch
4912 fi
4913 done
4914fi
4915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 if test $ac_cv_c_bigendian = unknown; then
4917 # See if sys/param.h defines the BYTE_ORDER macro.
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919/* end confdefs.h. */
4920#include <sys/types.h>
4921 #include <sys/param.h>
4922
4923int
4924main ()
4925{
4926#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4927 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4928 && LITTLE_ENDIAN)
4929 bogus endian macros
4930 #endif
4931
4932 ;
4933 return 0;
4934}
4935_ACEOF
4936if ac_fn_c_try_compile "$LINENO"; then :
4937 # It does; now see whether it defined to BIG_ENDIAN or not.
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939/* end confdefs.h. */
4940#include <sys/types.h>
4941 #include <sys/param.h>
4942
4943int
4944main ()
4945{
4946#if BYTE_ORDER != BIG_ENDIAN
4947 not big endian
4948 #endif
4949
4950 ;
4951 return 0;
4952}
4953_ACEOF
4954if ac_fn_c_try_compile "$LINENO"; then :
4955 ac_cv_c_bigendian=yes
4956else
4957 ac_cv_c_bigendian=no
4958fi
4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960fi
4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 fi
4963 if test $ac_cv_c_bigendian = unknown; then
4964 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966/* end confdefs.h. */
4967#include <limits.h>
4968
4969int
4970main ()
4971{
4972#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4973 bogus endian macros
4974 #endif
4975
4976 ;
4977 return 0;
4978}
4979_ACEOF
4980if ac_fn_c_try_compile "$LINENO"; then :
4981 # It does; now see whether it defined to _BIG_ENDIAN or not.
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h. */
4984#include <limits.h>
4985
4986int
4987main ()
4988{
4989#ifndef _BIG_ENDIAN
4990 not big endian
4991 #endif
4992
4993 ;
4994 return 0;
4995}
4996_ACEOF
4997if ac_fn_c_try_compile "$LINENO"; then :
4998 ac_cv_c_bigendian=yes
4999else
5000 ac_cv_c_bigendian=no
5001fi
5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003fi
5004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005 fi
5006 if test $ac_cv_c_bigendian = unknown; then
5007 # Compile a test program.
5008 if test "$cross_compiling" = yes; then :
5009 # Try to guess by grepping values from an object file.
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011/* end confdefs.h. */
5012short int ascii_mm[] =
5013 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5014 short int ascii_ii[] =
5015 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5016 int use_ascii (int i) {
5017 return ascii_mm[i] + ascii_ii[i];
5018 }
5019 short int ebcdic_ii[] =
5020 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5021 short int ebcdic_mm[] =
5022 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5023 int use_ebcdic (int i) {
5024 return ebcdic_mm[i] + ebcdic_ii[i];
5025 }
5026 extern int foo;
5027
5028int
5029main ()
5030{
5031return use_ascii (foo) == use_ebcdic (foo);
5032 ;
5033 return 0;
5034}
5035_ACEOF
5036if ac_fn_c_try_compile "$LINENO"; then :
5037 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5038 ac_cv_c_bigendian=yes
5039 fi
5040 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5041 if test "$ac_cv_c_bigendian" = unknown; then
5042 ac_cv_c_bigendian=no
5043 else
5044 # finding both strings is unlikely to happen, but who knows?
5045 ac_cv_c_bigendian=unknown
5046 fi
5047 fi
5048fi
5049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050else
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052/* end confdefs.h. */
5053$ac_includes_default
5054int
5055main ()
5056{
5057
5058 /* Are we little or big endian? From Harbison&Steele. */
5059 union
5060 {
5061 long int l;
5062 char c[sizeof (long int)];
5063 } u;
5064 u.l = 1;
5065 return u.c[sizeof (long int) - 1] == 1;
5066
5067 ;
5068 return 0;
5069}
5070_ACEOF
5071if ac_fn_c_try_run "$LINENO"; then :
5072 ac_cv_c_bigendian=no
5073else
5074 ac_cv_c_bigendian=yes
5075fi
5076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5077 conftest.$ac_objext conftest.beam conftest.$ac_ext
5078fi
5079
5080 fi
5081fi
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5083$as_echo "$ac_cv_c_bigendian" >&6; }
5084 case $ac_cv_c_bigendian in #(
5085 yes)
5086 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5087;; #(
5088 no)
5089 ;; #(
5090 universal)
5091
5092$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5093
5094 ;; #(
5095 *)
5096 as_fn_error $? "unknown endianness
5097 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5098 esac
5099
042acc47 5100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
f030cae8
VY
5101$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5102set x ${MAKE-make}
5103ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12e39525 5104if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
f030cae8
VY
5105 $as_echo_n "(cached) " >&6
5106else
5107 cat >conftest.make <<\_ACEOF
5108SHELL = /bin/sh
5109all:
5110 @echo '@@@%%%=$(MAKE)=@@@%%%'
5111_ACEOF
12e39525 5112# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
f030cae8
VY
5113case `${MAKE-make} -f conftest.make 2>/dev/null` in
5114 *@@@%%%=?*=@@@%%%*)
5115 eval ac_cv_prog_make_${ac_make}_set=yes;;
5116 *)
5117 eval ac_cv_prog_make_${ac_make}_set=no;;
5118esac
5119rm -f conftest.make
5120fi
5121if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
042acc47 5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
f030cae8
VY
5123$as_echo "yes" >&6; }
5124 SET_MAKE=
5125else
042acc47 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5127$as_echo "no" >&6; }
5128 SET_MAKE="MAKE=${MAKE-make}"
5129fi
5130
b57f37fb 5131
f030cae8
VY
5132# Extract the first word of "automake", so it can be a program name with args.
5133set dummy automake; ac_word=$2
042acc47 5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5135$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5136if ${ac_cv_path_AUTOMAKE+:} false; then :
f030cae8
VY
5137 $as_echo_n "(cached) " >&6
5138else
5139 case $AUTOMAKE in
5140 [\\/]* | ?:[\\/]*)
5141 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
b57f37fb 5142 ;;
f030cae8
VY
5143 *)
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145for as_dir in $PATH
5146do
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
042acc47 5149 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
042acc47 5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5153 break 2
5154 fi
5155done
042acc47 5156 done
f030cae8 5157IFS=$as_save_IFS
b57f37fb 5158
b57f37fb 5159 ;;
f030cae8
VY
5160esac
5161fi
5162AUTOMAKE=$ac_cv_path_AUTOMAKE
5163if test -n "$AUTOMAKE"; then
042acc47 5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
f030cae8
VY
5165$as_echo "$AUTOMAKE" >&6; }
5166else
042acc47 5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5168$as_echo "no" >&6; }
5169fi
b57f37fb 5170
b57f37fb 5171
f030cae8
VY
5172# Extract the first word of "aclocal", so it can be a program name with args.
5173set dummy aclocal; ac_word=$2
042acc47 5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5175$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5176if ${ac_cv_path_ACLOCAL+:} false; then :
f030cae8
VY
5177 $as_echo_n "(cached) " >&6
5178else
5179 case $ACLOCAL in
5180 [\\/]* | ?:[\\/]*)
5181 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
b57f37fb 5182 ;;
b57f37fb 5183 *)
f030cae8
VY
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH
5186do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
042acc47 5189 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
042acc47 5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5193 break 2
5194 fi
5195done
042acc47 5196 done
f030cae8 5197IFS=$as_save_IFS
b57f37fb 5198
b57f37fb 5199 ;;
f030cae8
VY
5200esac
5201fi
5202ACLOCAL=$ac_cv_path_ACLOCAL
5203if test -n "$ACLOCAL"; then
042acc47 5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
f030cae8
VY
5205$as_echo "$ACLOCAL" >&6; }
5206else
042acc47 5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5208$as_echo "no" >&6; }
5209fi
b57f37fb 5210
b57f37fb 5211
f030cae8
VY
5212# Extract the first word of "autoheader", so it can be a program name with args.
5213set dummy autoheader; ac_word=$2
042acc47 5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5215$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5216if ${ac_cv_path_AUTOHEADER+:} false; then :
f030cae8
VY
5217 $as_echo_n "(cached) " >&6
5218else
5219 case $AUTOHEADER in
5220 [\\/]* | ?:[\\/]*)
5221 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
b57f37fb 5222 ;;
f030cae8
VY
5223 *)
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225for as_dir in $PATH
5226do
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
042acc47 5229 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
042acc47 5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8 5233 break 2
b57f37fb 5234 fi
f030cae8 5235done
042acc47 5236 done
f030cae8
VY
5237IFS=$as_save_IFS
5238
b57f37fb 5239 ;;
f030cae8
VY
5240esac
5241fi
5242AUTOHEADER=$ac_cv_path_AUTOHEADER
5243if test -n "$AUTOHEADER"; then
042acc47 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
f030cae8
VY
5245$as_echo "$AUTOHEADER" >&6; }
5246else
042acc47 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5248$as_echo "no" >&6; }
5249fi
b57f37fb 5250
f030cae8
VY
5251
5252# Extract the first word of "as", so it can be a program name with args.
5253set dummy as; ac_word=$2
042acc47 5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5255$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5256if ${ac_cv_path_AS+:} false; then :
f030cae8
VY
5257 $as_echo_n "(cached) " >&6
5258else
5259 case $AS in
5260 [\\/]* | ?:[\\/]*)
5261 ac_cv_path_AS="$AS" # Let the user override the test with a path.
b57f37fb 5262 ;;
f030cae8
VY
5263 *)
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH
5266do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
042acc47 5269 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
042acc47 5272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5273 break 2
5274 fi
5275done
042acc47 5276 done
f030cae8 5277IFS=$as_save_IFS
b57f37fb 5278
b57f37fb 5279 ;;
f030cae8
VY
5280esac
5281fi
5282AS=$ac_cv_path_AS
5283if test -n "$AS"; then
042acc47 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
f030cae8
VY
5285$as_echo "$AS" >&6; }
5286else
042acc47 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5288$as_echo "no" >&6; }
5289fi
b57f37fb 5290
b57f37fb 5291
f030cae8
VY
5292# Extract the first word of "rm", so it can be a program name with args.
5293set dummy rm; ac_word=$2
042acc47 5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5295$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5296if ${ac_cv_path_RM+:} false; then :
f030cae8
VY
5297 $as_echo_n "(cached) " >&6
5298else
5299 case $RM in
5300 [\\/]* | ?:[\\/]*)
5301 ac_cv_path_RM="$RM" # Let the user override the test with a path.
b57f37fb 5302 ;;
f030cae8
VY
5303 *)
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305for as_dir in $PATH
5306do
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
042acc47 5309 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
042acc47 5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5313 break 2
5314 fi
5315done
042acc47 5316 done
f030cae8 5317IFS=$as_save_IFS
b57f37fb 5318
b57f37fb 5319 ;;
f030cae8
VY
5320esac
5321fi
5322RM=$ac_cv_path_RM
5323if test -n "$RM"; then
042acc47 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
f030cae8
VY
5325$as_echo "$RM" >&6; }
5326else
042acc47 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5328$as_echo "no" >&6; }
5329fi
b57f37fb 5330
b57f37fb 5331
f030cae8
VY
5332# Extract the first word of "cp", so it can be a program name with args.
5333set dummy cp; ac_word=$2
042acc47 5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5335$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5336if ${ac_cv_path_CP+:} false; then :
f030cae8
VY
5337 $as_echo_n "(cached) " >&6
5338else
5339 case $CP in
5340 [\\/]* | ?:[\\/]*)
5341 ac_cv_path_CP="$CP" # Let the user override the test with a path.
b57f37fb 5342 ;;
f030cae8
VY
5343 *)
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345for as_dir in $PATH
5346do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
042acc47 5349 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
042acc47 5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5353 break 2
5354 fi
5355done
042acc47 5356 done
f030cae8 5357IFS=$as_save_IFS
b57f37fb 5358
b57f37fb
WP
5359 ;;
5360esac
b57f37fb 5361fi
f030cae8
VY
5362CP=$ac_cv_path_CP
5363if test -n "$CP"; then
042acc47 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
f030cae8
VY
5365$as_echo "$CP" >&6; }
5366else
042acc47 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 5368$as_echo "no" >&6; }
b57f37fb
WP
5369fi
5370
b57f37fb 5371
f030cae8
VY
5372# Extract the first word of "mv", so it can be a program name with args.
5373set dummy mv; ac_word=$2
042acc47 5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5375$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5376if ${ac_cv_path_MV+:} false; then :
f030cae8
VY
5377 $as_echo_n "(cached) " >&6
5378else
5379 case $MV in
5380 [\\/]* | ?:[\\/]*)
5381 ac_cv_path_MV="$MV" # Let the user override the test with a path.
b57f37fb 5382 ;;
f030cae8
VY
5383 *)
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385for as_dir in $PATH
5386do
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
042acc47 5389 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
042acc47 5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8 5393 break 2
b57f37fb 5394 fi
f030cae8 5395done
042acc47 5396 done
f030cae8 5397IFS=$as_save_IFS
b57f37fb 5398
b57f37fb 5399 ;;
f030cae8
VY
5400esac
5401fi
5402MV=$ac_cv_path_MV
5403if test -n "$MV"; then
042acc47 5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
f030cae8
VY
5405$as_echo "$MV" >&6; }
5406else
042acc47 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5408$as_echo "no" >&6; }
5409fi
5410
5411
5412# Extract the first word of "ln", so it can be a program name with args.
5413set dummy ln; ac_word=$2
042acc47 5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5415$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5416if ${ac_cv_path_LN+:} false; then :
f030cae8
VY
5417 $as_echo_n "(cached) " >&6
5418else
5419 case $LN in
5420 [\\/]* | ?:[\\/]*)
5421 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5422 ;;
5423 *)
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425for as_dir in $PATH
5426do
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
042acc47 5429 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
042acc47 5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5433 break 2
5434 fi
5435done
042acc47 5436 done
f030cae8 5437IFS=$as_save_IFS
b57f37fb 5438
f030cae8
VY
5439 ;;
5440esac
5441fi
5442LN=$ac_cv_path_LN
5443if test -n "$LN"; then
042acc47 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
f030cae8 5445$as_echo "$LN" >&6; }
b57f37fb 5446else
042acc47 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5448$as_echo "no" >&6; }
5449fi
b57f37fb 5450
b57f37fb 5451
f030cae8
VY
5452# Extract the first word of "touch", so it can be a program name with args.
5453set dummy touch; ac_word=$2
042acc47 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5455$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5456if ${ac_cv_path_TOUCH+:} false; then :
f030cae8
VY
5457 $as_echo_n "(cached) " >&6
5458else
5459 case $TOUCH in
5460 [\\/]* | ?:[\\/]*)
5461 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5462 ;;
5463 *)
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465for as_dir in $PATH
5466do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
042acc47 5469 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
042acc47 5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5473 break 2
5474 fi
5475done
042acc47 5476 done
f030cae8 5477IFS=$as_save_IFS
b57f37fb 5478
f030cae8 5479 ;;
b57f37fb 5480esac
f030cae8
VY
5481fi
5482TOUCH=$ac_cv_path_TOUCH
5483if test -n "$TOUCH"; then
042acc47 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
f030cae8 5485$as_echo "$TOUCH" >&6; }
b57f37fb 5486else
042acc47 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 5488$as_echo "no" >&6; }
b57f37fb
WP
5489fi
5490
f030cae8
VY
5491
5492ac_ext=c
b57f37fb
WP
5493ac_cpp='$CPP $CPPFLAGS'
5494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497
f030cae8 5498
042acc47
WP
5499case `pwd` in
5500 *\ * | *\ *)
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5502$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5503esac
5504
5505
5506
bf9bfd26
JH
5507macro_version='2.4'
5508macro_revision='1.3293'
042acc47
WP
5509
5510
5511
5512
5513
5514
5515
5516
5517
f030cae8
VY
5518
5519
042acc47
WP
5520
5521
5522ltmain="$ac_aux_dir/ltmain.sh"
5523
f030cae8
VY
5524# Make sure we can run config.sub.
5525$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
12e39525 5526 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
f030cae8 5527
042acc47 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
f030cae8 5529$as_echo_n "checking build system type... " >&6; }
12e39525 5530if ${ac_cv_build+:} false; then :
f030cae8
VY
5531 $as_echo_n "(cached) " >&6
5532else
5533 ac_build_alias=$build_alias
5534test "x$ac_build_alias" = x &&
5535 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5536test "x$ac_build_alias" = x &&
12e39525 5537 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
f030cae8 5538ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
12e39525 5539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
f030cae8
VY
5540
5541fi
042acc47 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
f030cae8
VY
5543$as_echo "$ac_cv_build" >&6; }
5544case $ac_cv_build in
5545*-*-*) ;;
12e39525 5546*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
f030cae8
VY
5547esac
5548build=$ac_cv_build
5549ac_save_IFS=$IFS; IFS='-'
5550set x $ac_cv_build
5551shift
5552build_cpu=$1
5553build_vendor=$2
5554shift; shift
5555# Remember, the first character of IFS is used to create $*,
5556# except with old shells:
5557build_os=$*
5558IFS=$ac_save_IFS
5559case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5560
5561
042acc47 5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
f030cae8 5563$as_echo_n "checking host system type... " >&6; }
12e39525 5564if ${ac_cv_host+:} false; then :
f030cae8
VY
5565 $as_echo_n "(cached) " >&6
5566else
5567 if test "x$host_alias" = x; then
5568 ac_cv_host=$ac_cv_build
5569else
5570 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12e39525 5571 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
f030cae8
VY
5572fi
5573
5574fi
042acc47 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
f030cae8
VY
5576$as_echo "$ac_cv_host" >&6; }
5577case $ac_cv_host in
5578*-*-*) ;;
12e39525 5579*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
f030cae8
VY
5580esac
5581host=$ac_cv_host
5582ac_save_IFS=$IFS; IFS='-'
5583set x $ac_cv_host
5584shift
5585host_cpu=$1
5586host_vendor=$2
5587shift; shift
5588# Remember, the first character of IFS is used to create $*,
5589# except with old shells:
5590host_os=$*
5591IFS=$ac_save_IFS
5592case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5593
5594
bf9bfd26
JH
5595# Backslashify metacharacters that are still active within
5596# double-quoted strings.
5597sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5598
5599# Same as above, but do not quote variable references.
5600double_quote_subst='s/\(["`\\]\)/\\\1/g'
5601
5602# Sed substitution to delay expansion of an escaped shell variable in a
5603# double_quote_subst'ed string.
5604delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5605
5606# Sed substitution to delay expansion of an escaped single quote.
5607delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5608
5609# Sed substitution to avoid accidental globbing in evaled expressions
5610no_glob_subst='s/\*/\\\*/g'
5611
5612ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5613ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5614ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5615
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5617$as_echo_n "checking how to print strings... " >&6; }
5618# Test print first, because it will be a builtin if present.
5619if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5620 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5621 ECHO='print -r --'
5622elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5623 ECHO='printf %s\n'
5624else
5625 # Use this function as a fallback that always works.
5626 func_fallback_echo ()
5627 {
5628 eval 'cat <<_LTECHO_EOF
5629$1
5630_LTECHO_EOF'
5631 }
5632 ECHO='func_fallback_echo'
5633fi
5634
5635# func_echo_all arg...
5636# Invoke $ECHO with all args, space-separated.
5637func_echo_all ()
5638{
5639 $ECHO ""
5640}
5641
5642case "$ECHO" in
5643 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5644$as_echo "printf" >&6; } ;;
5645 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5646$as_echo "print -r" >&6; } ;;
5647 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5648$as_echo "cat" >&6; } ;;
5649esac
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
042acc47 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
f030cae8 5665$as_echo_n "checking for a sed that does not truncate output... " >&6; }
12e39525 5666if ${ac_cv_path_SED+:} false; then :
f030cae8
VY
5667 $as_echo_n "(cached) " >&6
5668else
042acc47
WP
5669 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5670 for ac_i in 1 2 3 4 5 6 7; do
5671 ac_script="$ac_script$as_nl$ac_script"
5672 done
5673 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5674 { ac_script=; unset ac_script;}
5675 if test -z "$SED"; then
5676 ac_path_SED_found=false
5677 # Loop through the user's path and test for each of PROGNAME-LIST
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f030cae8
VY
5679for as_dir in $PATH
5680do
5681 IFS=$as_save_IFS
5682 test -z "$as_dir" && as_dir=.
042acc47 5683 for ac_prog in sed gsed; do
f030cae8 5684 for ac_exec_ext in '' $ac_executable_extensions; do
042acc47
WP
5685 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5686 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5687# Check for GNU ac_path_SED and select it if it is found.
5688 # Check for GNU $ac_path_SED
5689case `"$ac_path_SED" --version 2>&1` in
5690*GNU*)
5691 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5692*)
5693 ac_count=0
5694 $as_echo_n 0123456789 >"conftest.in"
5695 while :
5696 do
5697 cat "conftest.in" "conftest.in" >"conftest.tmp"
5698 mv "conftest.tmp" "conftest.in"
5699 cp "conftest.in" "conftest.nl"
5700 $as_echo '' >> "conftest.nl"
5701 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5703 as_fn_arith $ac_count + 1 && ac_count=$as_val
5704 if test $ac_count -gt ${ac_path_SED_max-0}; then
5705 # Best one so far, save it but keep looking for a better one
5706 ac_cv_path_SED="$ac_path_SED"
5707 ac_path_SED_max=$ac_count
5708 fi
5709 # 10*(2^10) chars as input seems more than enough
5710 test $ac_count -gt 10 && break
5711 done
5712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5713esac
5714
5715 $ac_path_SED_found && break 3
f030cae8
VY
5716 done
5717 done
042acc47 5718 done
f030cae8 5719IFS=$as_save_IFS
042acc47 5720 if test -z "$ac_cv_path_SED"; then
12e39525 5721 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
b57f37fb 5722 fi
042acc47
WP
5723else
5724 ac_cv_path_SED=$SED
5725fi
b57f37fb 5726
f030cae8 5727fi
042acc47
WP
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5729$as_echo "$ac_cv_path_SED" >&6; }
5730 SED="$ac_cv_path_SED"
5731 rm -f conftest.sed
b57f37fb 5732
042acc47
WP
5733test -z "$SED" && SED=sed
5734Xsed="$SED -e 1s/^X//"
b57f37fb 5735
b57f37fb
WP
5736
5737
b57f37fb 5738
042acc47
WP
5739
5740
5741
5742
5743
5744
5745
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5747$as_echo_n "checking for fgrep... " >&6; }
12e39525 5748if ${ac_cv_path_FGREP+:} false; then :
042acc47
WP
5749 $as_echo_n "(cached) " >&6
5750else
5751 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5752 then ac_cv_path_FGREP="$GREP -F"
5753 else
5754 if test -z "$FGREP"; then
5755 ac_path_FGREP_found=false
5756 # Loop through the user's path and test for each of PROGNAME-LIST
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5759do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_prog in fgrep; do
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5765 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5766# Check for GNU ac_path_FGREP and select it if it is found.
5767 # Check for GNU $ac_path_FGREP
5768case `"$ac_path_FGREP" --version 2>&1` in
5769*GNU*)
5770 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5771*)
5772 ac_count=0
5773 $as_echo_n 0123456789 >"conftest.in"
5774 while :
5775 do
5776 cat "conftest.in" "conftest.in" >"conftest.tmp"
5777 mv "conftest.tmp" "conftest.in"
5778 cp "conftest.in" "conftest.nl"
5779 $as_echo 'FGREP' >> "conftest.nl"
5780 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5782 as_fn_arith $ac_count + 1 && ac_count=$as_val
5783 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5784 # Best one so far, save it but keep looking for a better one
5785 ac_cv_path_FGREP="$ac_path_FGREP"
5786 ac_path_FGREP_max=$ac_count
5787 fi
5788 # 10*(2^10) chars as input seems more than enough
5789 test $ac_count -gt 10 && break
5790 done
5791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5792esac
5793
5794 $ac_path_FGREP_found && break 3
5795 done
5796 done
5797 done
5798IFS=$as_save_IFS
5799 if test -z "$ac_cv_path_FGREP"; then
12e39525 5800 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
042acc47
WP
5801 fi
5802else
5803 ac_cv_path_FGREP=$FGREP
5804fi
5805
5806 fi
5807fi
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5809$as_echo "$ac_cv_path_FGREP" >&6; }
5810 FGREP="$ac_cv_path_FGREP"
5811
5812
5813test -z "$GREP" && GREP=grep
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833# Check whether --with-gnu-ld was given.
5834if test "${with_gnu_ld+set}" = set; then :
5835 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5836else
5837 with_gnu_ld=no
5838fi
5839
5840ac_prog=ld
5841if test "$GCC" = yes; then
5842 # Check if gcc -print-prog-name=ld gives a path.
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5844$as_echo_n "checking for ld used by $CC... " >&6; }
5845 case $host in
5846 *-*-mingw*)
5847 # gcc leaves a trailing carriage return which upsets mingw
5848 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5849 *)
5850 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5851 esac
5852 case $ac_prog in
5853 # Accept absolute paths.
5854 [\\/]* | ?:[\\/]*)
5855 re_direlt='/[^/][^/]*/\.\./'
5856 # Canonicalize the pathname of ld
5857 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5858 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5859 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5860 done
5861 test -z "$LD" && LD="$ac_prog"
5862 ;;
5863 "")
5864 # If it fails, then pretend we aren't using GCC.
5865 ac_prog=ld
5866 ;;
5867 *)
5868 # If it is relative, then search for the first ld in PATH.
5869 with_gnu_ld=unknown
5870 ;;
5871 esac
5872elif test "$with_gnu_ld" = yes; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5874$as_echo_n "checking for GNU ld... " >&6; }
5875else
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
f030cae8 5877$as_echo_n "checking for non-GNU ld... " >&6; }
b57f37fb 5878fi
12e39525 5879if ${lt_cv_path_LD+:} false; then :
f030cae8
VY
5880 $as_echo_n "(cached) " >&6
5881else
5882 if test -z "$LD"; then
5883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5884 for ac_dir in $PATH; do
5885 IFS="$lt_save_ifs"
5886 test -z "$ac_dir" && ac_dir=.
5887 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5888 lt_cv_path_LD="$ac_dir/$ac_prog"
5889 # Check to see if the program is GNU ld. I'd rather use --version,
5890 # but apparently some variants of GNU ld only accept -v.
5891 # Break only if it was the GNU/non-GNU ld that we prefer.
5892 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5893 *GNU* | *'with BFD'*)
5894 test "$with_gnu_ld" != no && break
5895 ;;
5896 *)
5897 test "$with_gnu_ld" != yes && break
5898 ;;
5899 esac
5900 fi
5901 done
5902 IFS="$lt_save_ifs"
5903else
5904 lt_cv_path_LD="$LD" # Let the user override the test with a path.
b57f37fb 5905fi
b57f37fb 5906fi
f030cae8
VY
5907
5908LD="$lt_cv_path_LD"
5909if test -n "$LD"; then
042acc47 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
f030cae8 5911$as_echo "$LD" >&6; }
b57f37fb 5912else
042acc47 5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 5914$as_echo "no" >&6; }
b57f37fb 5915fi
12e39525 5916test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
042acc47 5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
f030cae8 5918$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12e39525 5919if ${lt_cv_prog_gnu_ld+:} false; then :
f030cae8 5920 $as_echo_n "(cached) " >&6
b57f37fb 5921else
f030cae8
VY
5922 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5923case `$LD -v 2>&1 </dev/null` in
5924*GNU* | *'with BFD'*)
5925 lt_cv_prog_gnu_ld=yes
5926 ;;
5927*)
5928 lt_cv_prog_gnu_ld=no
5929 ;;
5930esac
b57f37fb 5931fi
042acc47 5932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
f030cae8
VY
5933$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5934with_gnu_ld=$lt_cv_prog_gnu_ld
b57f37fb 5935
b57f37fb 5936
b57f37fb 5937
042acc47
WP
5938
5939
5940
5941
5942
5943
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5945$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12e39525 5946if ${lt_cv_path_NM+:} false; then :
f030cae8
VY
5947 $as_echo_n "(cached) " >&6
5948else
5949 if test -n "$NM"; then
5950 # Let the user override the test.
5951 lt_cv_path_NM="$NM"
5952else
5953 lt_nm_to_check="${ac_tool_prefix}nm"
5954 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5955 lt_nm_to_check="$lt_nm_to_check nm"
5956 fi
5957 for lt_tmp_nm in $lt_nm_to_check; do
5958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5959 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5960 IFS="$lt_save_ifs"
5961 test -z "$ac_dir" && ac_dir=.
5962 tmp_nm="$ac_dir/$lt_tmp_nm"
5963 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5964 # Check to see if the nm accepts a BSD-compat flag.
5965 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5966 # nm: unknown option "B" ignored
5967 # Tru64's nm complains that /dev/null is an invalid object file
5968 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5969 */dev/null* | *'Invalid file or object type'*)
5970 lt_cv_path_NM="$tmp_nm -B"
5971 break
5972 ;;
5973 *)
5974 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5975 */dev/null*)
5976 lt_cv_path_NM="$tmp_nm -p"
5977 break
5978 ;;
5979 *)
5980 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5981 continue # so that we can try to find one that supports BSD flags
5982 ;;
5983 esac
5984 ;;
5985 esac
5986 fi
5987 done
5988 IFS="$lt_save_ifs"
5989 done
042acc47 5990 : ${lt_cv_path_NM=no}
b57f37fb 5991fi
f030cae8 5992fi
042acc47 5993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
f030cae8 5994$as_echo "$lt_cv_path_NM" >&6; }
042acc47
WP
5995if test "$lt_cv_path_NM" != "no"; then
5996 NM="$lt_cv_path_NM"
5997else
5998 # Didn't find any BSD compatible name lister, look for dumpbin.
bf9bfd26
JH
5999 if test -n "$DUMPBIN"; then :
6000 # Let the user override the test.
6001 else
6002 if test -n "$ac_tool_prefix"; then
6003 for ac_prog in dumpbin "link -dump"
042acc47
WP
6004 do
6005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6006set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008$as_echo_n "checking for $ac_word... " >&6; }
12e39525 6009if ${ac_cv_prog_DUMPBIN+:} false; then :
042acc47
WP
6010 $as_echo_n "(cached) " >&6
6011else
6012 if test -n "$DUMPBIN"; then
6013 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6014else
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6022 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
6025 fi
6026done
6027 done
6028IFS=$as_save_IFS
b57f37fb 6029
042acc47
WP
6030fi
6031fi
6032DUMPBIN=$ac_cv_prog_DUMPBIN
6033if test -n "$DUMPBIN"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6035$as_echo "$DUMPBIN" >&6; }
b57f37fb 6036else
042acc47
WP
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038$as_echo "no" >&6; }
b57f37fb
WP
6039fi
6040
042acc47
WP
6041
6042 test -n "$DUMPBIN" && break
6043 done
6044fi
6045if test -z "$DUMPBIN"; then
6046 ac_ct_DUMPBIN=$DUMPBIN
bf9bfd26 6047 for ac_prog in dumpbin "link -dump"
042acc47
WP
6048do
6049 # Extract the first word of "$ac_prog", so it can be a program name with args.
6050set dummy $ac_prog; ac_word=$2
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052$as_echo_n "checking for $ac_word... " >&6; }
12e39525 6053if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
f030cae8
VY
6054 $as_echo_n "(cached) " >&6
6055else
042acc47
WP
6056 if test -n "$ac_ct_DUMPBIN"; then
6057 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070done
6071 done
6072IFS=$as_save_IFS
b57f37fb 6073
042acc47
WP
6074fi
6075fi
6076ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6077if test -n "$ac_ct_DUMPBIN"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6079$as_echo "$ac_ct_DUMPBIN" >&6; }
6080else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082$as_echo "no" >&6; }
6083fi
b57f37fb 6084
b57f37fb 6085
042acc47
WP
6086 test -n "$ac_ct_DUMPBIN" && break
6087done
b57f37fb 6088
042acc47
WP
6089 if test "x$ac_ct_DUMPBIN" = x; then
6090 DUMPBIN=":"
f030cae8 6091 else
042acc47
WP
6092 case $cross_compiling:$ac_tool_warned in
6093yes:)
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096ac_tool_warned=yes ;;
6097esac
6098 DUMPBIN=$ac_ct_DUMPBIN
f030cae8 6099 fi
042acc47 6100fi
b57f37fb 6101
bf9bfd26
JH
6102 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6103 *COFF*)
6104 DUMPBIN="$DUMPBIN -symbols"
6105 ;;
6106 *)
6107 DUMPBIN=:
6108 ;;
6109 esac
6110 fi
b57f37fb 6111
042acc47
WP
6112 if test "$DUMPBIN" != ":"; then
6113 NM="$DUMPBIN"
f030cae8 6114 fi
042acc47
WP
6115fi
6116test -z "$NM" && NM=nm
b57f37fb 6117
b57f37fb 6118
b57f37fb 6119
b57f37fb 6120
f030cae8 6121
f030cae8 6122
042acc47
WP
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6124$as_echo_n "checking the name lister ($NM) interface... " >&6; }
12e39525 6125if ${lt_cv_nm_interface+:} false; then :
042acc47
WP
6126 $as_echo_n "(cached) " >&6
6127else
6128 lt_cv_nm_interface="BSD nm"
6129 echo "int some_variable = 0;" > conftest.$ac_ext
bf9bfd26 6130 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
042acc47
WP
6131 (eval "$ac_compile" 2>conftest.err)
6132 cat conftest.err >&5
bf9bfd26 6133 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
042acc47
WP
6134 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6135 cat conftest.err >&5
bf9bfd26 6136 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
042acc47
WP
6137 cat conftest.out >&5
6138 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6139 lt_cv_nm_interface="MS dumpbin"
f030cae8 6140 fi
042acc47
WP
6141 rm -f conftest*
6142fi
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6144$as_echo "$lt_cv_nm_interface" >&6; }
b57f37fb 6145
042acc47
WP
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6147$as_echo_n "checking whether ln -s works... " >&6; }
6148LN_S=$as_ln_s
6149if test "$LN_S" = "ln -s"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6151$as_echo "yes" >&6; }
6152else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6154$as_echo "no, using $LN_S" >&6; }
6155fi
b57f37fb 6156
042acc47
WP
6157# find the maximum length of command line arguments
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6159$as_echo_n "checking the maximum length of command line arguments... " >&6; }
12e39525 6160if ${lt_cv_sys_max_cmd_len+:} false; then :
042acc47
WP
6161 $as_echo_n "(cached) " >&6
6162else
6163 i=0
6164 teststring="ABCD"
b57f37fb 6165
042acc47
WP
6166 case $build_os in
6167 msdosdjgpp*)
6168 # On DJGPP, this test can blow up pretty badly due to problems in libc
6169 # (any single argument exceeding 2000 bytes causes a buffer overrun
6170 # during glob expansion). Even if it were fixed, the result of this
6171 # check would be larger than it should be.
6172 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6173 ;;
b57f37fb 6174
042acc47
WP
6175 gnu*)
6176 # Under GNU Hurd, this test is not required because there is
6177 # no limit to the length of command line arguments.
6178 # Libtool will interpret -1 as no limit whatsoever
6179 lt_cv_sys_max_cmd_len=-1;
6180 ;;
b57f37fb 6181
042acc47
WP
6182 cygwin* | mingw* | cegcc*)
6183 # On Win9x/ME, this test blows up -- it succeeds, but takes
6184 # about 5 minutes as the teststring grows exponentially.
6185 # Worse, since 9x/ME are not pre-emptively multitasking,
6186 # you end up with a "frozen" computer, even though with patience
6187 # the test eventually succeeds (with a max line length of 256k).
6188 # Instead, let's just punt: use the minimum linelength reported by
6189 # all of the supported platforms: 8192 (on NT/2K/XP).
6190 lt_cv_sys_max_cmd_len=8192;
6191 ;;
b57f37fb 6192
bf9bfd26
JH
6193 mint*)
6194 # On MiNT this can take a long time and run out of memory.
6195 lt_cv_sys_max_cmd_len=8192;
6196 ;;
6197
042acc47
WP
6198 amigaos*)
6199 # On AmigaOS with pdksh, this test takes hours, literally.
6200 # So we just punt and use a minimum line length of 8192.
6201 lt_cv_sys_max_cmd_len=8192;
6202 ;;
b57f37fb 6203
042acc47
WP
6204 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6205 # This has been around since 386BSD, at least. Likely further.
6206 if test -x /sbin/sysctl; then
6207 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6208 elif test -x /usr/sbin/sysctl; then
6209 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6210 else
6211 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6212 fi
6213 # And add a safety zone
6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
f030cae8 6216 ;;
042acc47
WP
6217
6218 interix*)
6219 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6220 lt_cv_sys_max_cmd_len=196608
f030cae8 6221 ;;
042acc47
WP
6222
6223 osf*)
6224 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6225 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6226 # nice to cause kernel panics so lets avoid the loop below.
6227 # First set a reasonable default.
6228 lt_cv_sys_max_cmd_len=16384
6229 #
6230 if test -x /sbin/sysconfig; then
6231 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6232 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6233 esac
6234 fi
f030cae8 6235 ;;
042acc47
WP
6236 sco3.2v5*)
6237 lt_cv_sys_max_cmd_len=102400
f030cae8 6238 ;;
042acc47
WP
6239 sysv5* | sco5v6* | sysv4.2uw2*)
6240 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6241 if test -n "$kargmax"; then
6242 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6243 else
6244 lt_cv_sys_max_cmd_len=32768
6245 fi
f030cae8 6246 ;;
042acc47
WP
6247 *)
6248 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6249 if test -n "$lt_cv_sys_max_cmd_len"; then
6250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6252 else
6253 # Make teststring a little bigger before we do anything with it.
6254 # a 1K string should be a reasonable start.
6255 for i in 1 2 3 4 5 6 7 8 ; do
6256 teststring=$teststring$teststring
6257 done
6258 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6259 # If test is not a shell built-in, we'll probably end up computing a
6260 # maximum length that is only half of the actual maximum length, but
6261 # we can't tell.
bf9bfd26
JH
6262 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6263 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
042acc47
WP
6264 test $i != 17 # 1/2 MB should be enough
6265 do
6266 i=`expr $i + 1`
6267 teststring=$teststring$teststring
6268 done
6269 # Only check the string length outside the loop.
6270 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6271 teststring=
6272 # Add a significant safety factor because C++ compilers can tack on
6273 # massive amounts of additional arguments before passing them to the
6274 # linker. It appears as though 1/2 is a usable value.
6275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6276 fi
f030cae8
VY
6277 ;;
6278 esac
f030cae8 6279
042acc47 6280fi
b57f37fb 6281
042acc47
WP
6282if test -n $lt_cv_sys_max_cmd_len ; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6284$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6285else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6287$as_echo "none" >&6; }
b57f37fb 6288fi
042acc47 6289max_cmd_len=$lt_cv_sys_max_cmd_len
f030cae8 6290
b57f37fb 6291
b57f37fb
WP
6292
6293
6294
6295
042acc47
WP
6296: ${CP="cp -f"}
6297: ${MV="mv -f"}
6298: ${RM="rm -f"}
b57f37fb 6299
042acc47
WP
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6301$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6302# Try some XSI features
6303xsi_shell=no
6304( _lt_dummy="a/b/c"
bf9bfd26
JH
6305 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6306 = c,a/b,b/c, \
042acc47
WP
6307 && eval 'test $(( 1 + 1 )) -eq 2 \
6308 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6309 && xsi_shell=yes
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6311$as_echo "$xsi_shell" >&6; }
6312
6313
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6315$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6316lt_shell_append=no
6317( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6318 >/dev/null 2>&1 \
6319 && lt_shell_append=yes
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6321$as_echo "$lt_shell_append" >&6; }
6322
6323
6324if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6325 lt_unset=unset
6326else
6327 lt_unset=false
f030cae8 6328fi
b57f37fb
WP
6329
6330
042acc47
WP
6331
6332
6333
6334# test EBCDIC or ASCII
6335case `echo X|tr X '\101'` in
6336 A) # ASCII based system
6337 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6338 lt_SP2NL='tr \040 \012'
6339 lt_NL2SP='tr \015\012 \040\040'
f030cae8 6340 ;;
042acc47
WP
6341 *) # EBCDIC based system
6342 lt_SP2NL='tr \100 \n'
6343 lt_NL2SP='tr \r\n \100\100'
f030cae8 6344 ;;
042acc47 6345esac
b57f37fb 6346
b57f37fb 6347
b57f37fb 6348
b57f37fb 6349
f030cae8 6350
f030cae8 6351
b57f37fb
WP
6352
6353
6354
bf9bfd26
JH
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6356$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6357if ${lt_cv_to_host_file_cmd+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359else
6360 case $host in
6361 *-*-mingw* )
6362 case $build in
6363 *-*-mingw* ) # actually msys
6364 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6365 ;;
6366 *-*-cygwin* )
6367 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6368 ;;
6369 * ) # otherwise, assume *nix
6370 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6371 ;;
6372 esac
6373 ;;
6374 *-*-cygwin* )
6375 case $build in
6376 *-*-mingw* ) # actually msys
6377 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6378 ;;
6379 *-*-cygwin* )
6380 lt_cv_to_host_file_cmd=func_convert_file_noop
6381 ;;
6382 * ) # otherwise, assume *nix
6383 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6384 ;;
6385 esac
6386 ;;
6387 * ) # unhandled hosts (and "normal" native builds)
6388 lt_cv_to_host_file_cmd=func_convert_file_noop
6389 ;;
6390esac
6391
6392fi
6393
6394to_host_file_cmd=$lt_cv_to_host_file_cmd
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6396$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6397
6398
6399
6400
6401
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6403$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6404if ${lt_cv_to_tool_file_cmd+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406else
6407 #assume ordinary cross tools, or native build.
6408lt_cv_to_tool_file_cmd=func_convert_file_noop
6409case $host in
6410 *-*-mingw* )
6411 case $build in
6412 *-*-mingw* ) # actually msys
6413 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6414 ;;
6415 esac
6416 ;;
6417esac
6418
6419fi
6420
6421to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6423$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6424
6425
6426
6427
6428
042acc47
WP
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6430$as_echo_n "checking for $LD option to reload object files... " >&6; }
12e39525 6431if ${lt_cv_ld_reload_flag+:} false; then :
f030cae8 6432 $as_echo_n "(cached) " >&6
b57f37fb 6433else
042acc47 6434 lt_cv_ld_reload_flag='-r'
b57f37fb 6435fi
042acc47
WP
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6437$as_echo "$lt_cv_ld_reload_flag" >&6; }
6438reload_flag=$lt_cv_ld_reload_flag
6439case $reload_flag in
6440"" | " "*) ;;
6441*) reload_flag=" $reload_flag" ;;
6442esac
6443reload_cmds='$LD$reload_flag -o $output$reload_objs'
6444case $host_os in
bf9bfd26
JH
6445 cygwin* | mingw* | pw32* | cegcc*)
6446 if test "$GCC" != yes; then
6447 reload_cmds=false
6448 fi
6449 ;;
042acc47
WP
6450 darwin*)
6451 if test "$GCC" = yes; then
6452 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6453 else
6454 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6455 fi
6456 ;;
b57f37fb 6457esac
b57f37fb 6458
b57f37fb 6459
b57f37fb 6460
b57f37fb 6461
b57f37fb 6462
b57f37fb 6463
b57f37fb 6464
b57f37fb 6465
042acc47
WP
6466
6467if test -n "$ac_tool_prefix"; then
6468 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6469set dummy ${ac_tool_prefix}objdump; ac_word=$2
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 6471$as_echo_n "checking for $ac_word... " >&6; }
12e39525 6472if ${ac_cv_prog_OBJDUMP+:} false; then :
f030cae8 6473 $as_echo_n "(cached) " >&6
b57f37fb 6474else
042acc47
WP
6475 if test -n "$OBJDUMP"; then
6476 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
b57f37fb
WP
6477else
6478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479for as_dir in $PATH
6480do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
042acc47 6483 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
6485 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
6487 break 2
6488 fi
6489done
042acc47 6490 done
b57f37fb
WP
6491IFS=$as_save_IFS
6492
6493fi
6494fi
042acc47
WP
6495OBJDUMP=$ac_cv_prog_OBJDUMP
6496if test -n "$OBJDUMP"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6498$as_echo "$OBJDUMP" >&6; }
b57f37fb 6499else
042acc47 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 6501$as_echo "no" >&6; }
b57f37fb
WP
6502fi
6503
6504
b57f37fb 6505fi
042acc47
WP
6506if test -z "$ac_cv_prog_OBJDUMP"; then
6507 ac_ct_OBJDUMP=$OBJDUMP
6508 # Extract the first word of "objdump", so it can be a program name with args.
6509set dummy objdump; ac_word=$2
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 6511$as_echo_n "checking for $ac_word... " >&6; }
12e39525 6512if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
f030cae8 6513 $as_echo_n "(cached) " >&6
b57f37fb 6514else
042acc47
WP
6515 if test -n "$ac_ct_OBJDUMP"; then
6516 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
b57f37fb
WP
6517else
6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
042acc47 6523 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 6524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
6525 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
6527 break 2
6528 fi
6529done
042acc47 6530 done
b57f37fb
WP
6531IFS=$as_save_IFS
6532
6533fi
6534fi
042acc47
WP
6535ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6536if test -n "$ac_ct_OBJDUMP"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6538$as_echo "$ac_ct_OBJDUMP" >&6; }
b57f37fb 6539else
042acc47 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 6541$as_echo "no" >&6; }
b57f37fb
WP
6542fi
6543
042acc47
WP
6544 if test "x$ac_ct_OBJDUMP" = x; then
6545 OBJDUMP="false"
b57f37fb
WP
6546 else
6547 case $cross_compiling:$ac_tool_warned in
6548yes:)
042acc47 6549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 6550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
6551ac_tool_warned=yes ;;
6552esac
042acc47 6553 OBJDUMP=$ac_ct_OBJDUMP
b57f37fb 6554 fi
042acc47
WP
6555else
6556 OBJDUMP="$ac_cv_prog_OBJDUMP"
b57f37fb 6557fi
b57f37fb 6558
042acc47 6559test -z "$OBJDUMP" && OBJDUMP=objdump
b57f37fb 6560
b57f37fb 6561
b57f37fb 6562
b57f37fb 6563
b57f37fb 6564
b57f37fb 6565
b57f37fb 6566
b57f37fb 6567
b57f37fb 6568
042acc47
WP
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6570$as_echo_n "checking how to recognize dependent libraries... " >&6; }
12e39525 6571if ${lt_cv_deplibs_check_method+:} false; then :
042acc47 6572 $as_echo_n "(cached) " >&6
b57f37fb 6573else
042acc47
WP
6574 lt_cv_file_magic_cmd='$MAGIC_CMD'
6575lt_cv_file_magic_test_file=
6576lt_cv_deplibs_check_method='unknown'
6577# Need to set the preceding variable on all platforms that support
6578# interlibrary dependencies.
6579# 'none' -- dependencies not supported.
6580# `unknown' -- same as none, but documents that we really don't know.
6581# 'pass_all' -- all dependencies passed with no checks.
6582# 'test_compile' -- check by making test program.
6583# 'file_magic [[regex]]' -- check by looking for files in library path
6584# which responds to the $file_magic_cmd with a given extended regex.
6585# If you have `file' or equivalent on your system and you're not sure
6586# whether `pass_all' will *always* work, you probably want this one.
b57f37fb 6587
042acc47
WP
6588case $host_os in
6589aix[4-9]*)
6590 lt_cv_deplibs_check_method=pass_all
6591 ;;
b57f37fb 6592
042acc47
WP
6593beos*)
6594 lt_cv_deplibs_check_method=pass_all
6595 ;;
b57f37fb 6596
042acc47
WP
6597bsdi[45]*)
6598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6599 lt_cv_file_magic_cmd='/usr/bin/file -L'
6600 lt_cv_file_magic_test_file=/shlib/libc.so
6601 ;;
b57f37fb 6602
042acc47
WP
6603cygwin*)
6604 # func_win32_libid is a shell function defined in ltmain.sh
6605 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6606 lt_cv_file_magic_cmd='func_win32_libid'
6607 ;;
b57f37fb 6608
042acc47
WP
6609mingw* | pw32*)
6610 # Base MSYS/MinGW do not provide the 'file' command needed by
6611 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6612 # unless we find 'file', for example because we are cross-compiling.
bf9bfd26
JH
6613 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6614 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
042acc47
WP
6615 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6616 lt_cv_file_magic_cmd='func_win32_libid'
6617 else
bf9bfd26
JH
6618 # Keep this pattern in sync with the one in func_win32_libid.
6619 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
042acc47
WP
6620 lt_cv_file_magic_cmd='$OBJDUMP -f'
6621 fi
6622 ;;
b57f37fb 6623
bf9bfd26 6624cegcc*)
042acc47
WP
6625 # use the weaker test based on 'objdump'. See mingw*.
6626 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6627 lt_cv_file_magic_cmd='$OBJDUMP -f'
6628 ;;
b57f37fb 6629
042acc47
WP
6630darwin* | rhapsody*)
6631 lt_cv_deplibs_check_method=pass_all
6632 ;;
b57f37fb 6633
042acc47
WP
6634freebsd* | dragonfly*)
6635 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6636 case $host_cpu in
6637 i*86 )
6638 # Not sure whether the presence of OpenBSD here was a mistake.
6639 # Let's accept both of them until this is cleared up.
6640 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6641 lt_cv_file_magic_cmd=/usr/bin/file
6642 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6643 ;;
6644 esac
b57f37fb 6645 else
042acc47 6646 lt_cv_deplibs_check_method=pass_all
b57f37fb 6647 fi
042acc47 6648 ;;
b57f37fb 6649
042acc47
WP
6650gnu*)
6651 lt_cv_deplibs_check_method=pass_all
6652 ;;
b57f37fb 6653
bf9bfd26
JH
6654haiku*)
6655 lt_cv_deplibs_check_method=pass_all
6656 ;;
6657
042acc47
WP
6658hpux10.20* | hpux11*)
6659 lt_cv_file_magic_cmd=/usr/bin/file
6660 case $host_cpu in
6661 ia64*)
6662 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6663 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6664 ;;
6665 hppa*64*)
bf9bfd26 6666 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
042acc47
WP
6667 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6668 ;;
6669 *)
bf9bfd26 6670 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
042acc47
WP
6671 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6672 ;;
6673 esac
6674 ;;
b57f37fb 6675
042acc47
WP
6676interix[3-9]*)
6677 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6679 ;;
b57f37fb 6680
042acc47
WP
6681irix5* | irix6* | nonstopux*)
6682 case $LD in
6683 *-32|*"-32 ") libmagic=32-bit;;
6684 *-n32|*"-n32 ") libmagic=N32;;
6685 *-64|*"-64 ") libmagic=64-bit;;
6686 *) libmagic=never-match;;
6687 esac
6688 lt_cv_deplibs_check_method=pass_all
6689 ;;
b57f37fb 6690
042acc47 6691# This must be Linux ELF.
bf9bfd26 6692linux* | k*bsd*-gnu | kopensolaris*-gnu)
042acc47
WP
6693 lt_cv_deplibs_check_method=pass_all
6694 ;;
b57f37fb 6695
1800d973 6696netbsd*)
042acc47
WP
6697 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6699 else
6700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6701 fi
6702 ;;
b57f37fb 6703
042acc47
WP
6704newos6*)
6705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6706 lt_cv_file_magic_cmd=/usr/bin/file
6707 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6708 ;;
b57f37fb 6709
042acc47
WP
6710*nto* | *qnx*)
6711 lt_cv_deplibs_check_method=pass_all
6712 ;;
b57f37fb 6713
042acc47
WP
6714openbsd*)
6715 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6717 else
6718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6719 fi
6720 ;;
b57f37fb 6721
042acc47
WP
6722osf3* | osf4* | osf5*)
6723 lt_cv_deplibs_check_method=pass_all
6724 ;;
b57f37fb 6725
042acc47
WP
6726rdos*)
6727 lt_cv_deplibs_check_method=pass_all
6728 ;;
b57f37fb 6729
042acc47
WP
6730solaris*)
6731 lt_cv_deplibs_check_method=pass_all
6732 ;;
b57f37fb 6733
042acc47
WP
6734sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6735 lt_cv_deplibs_check_method=pass_all
6736 ;;
b57f37fb 6737
042acc47
WP
6738sysv4 | sysv4.3*)
6739 case $host_vendor in
6740 motorola)
6741 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]'
6742 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6743 ;;
6744 ncr)
6745 lt_cv_deplibs_check_method=pass_all
6746 ;;
6747 sequent)
6748 lt_cv_file_magic_cmd='/bin/file'
6749 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6750 ;;
6751 sni)
6752 lt_cv_file_magic_cmd='/bin/file'
6753 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6754 lt_cv_file_magic_test_file=/lib/libc.so
6755 ;;
6756 siemens)
6757 lt_cv_deplibs_check_method=pass_all
6758 ;;
6759 pc)
6760 lt_cv_deplibs_check_method=pass_all
6761 ;;
6762 esac
6763 ;;
b57f37fb 6764
042acc47
WP
6765tpf*)
6766 lt_cv_deplibs_check_method=pass_all
6767 ;;
6768esac
b57f37fb 6769
b57f37fb 6770fi
042acc47
WP
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6772$as_echo "$lt_cv_deplibs_check_method" >&6; }
bf9bfd26
JH
6773
6774file_magic_glob=
6775want_nocaseglob=no
6776if test "$build" = "$host"; then
6777 case $host_os in
6778 mingw* | pw32*)
6779 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6780 want_nocaseglob=yes
6781 else
6782 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6783 fi
6784 ;;
6785 esac
6786fi
6787
042acc47
WP
6788file_magic_cmd=$lt_cv_file_magic_cmd
6789deplibs_check_method=$lt_cv_deplibs_check_method
6790test -z "$deplibs_check_method" && deplibs_check_method=unknown
b57f37fb 6791
b57f37fb 6792
b57f37fb 6793
b57f37fb 6794
b57f37fb 6795
b57f37fb 6796
b57f37fb 6797
b57f37fb 6798
b57f37fb 6799
b57f37fb 6800
bf9bfd26
JH
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
b57f37fb
WP
6811
6812
b57f37fb 6813if test -n "$ac_tool_prefix"; then
bf9bfd26
JH
6814 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6815set dummy ${ac_tool_prefix}dlltool; ac_word=$2
042acc47 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 6817$as_echo_n "checking for $ac_word... " >&6; }
bf9bfd26 6818if ${ac_cv_prog_DLLTOOL+:} false; then :
f030cae8 6819 $as_echo_n "(cached) " >&6
b57f37fb 6820else
bf9bfd26
JH
6821 if test -n "$DLLTOOL"; then
6822 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
b57f37fb
WP
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
042acc47 6829 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9bfd26 6831 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
042acc47 6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
6833 break 2
6834 fi
6835done
042acc47 6836 done
b57f37fb
WP
6837IFS=$as_save_IFS
6838
6839fi
6840fi
bf9bfd26
JH
6841DLLTOOL=$ac_cv_prog_DLLTOOL
6842if test -n "$DLLTOOL"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6844$as_echo "$DLLTOOL" >&6; }
b57f37fb 6845else
042acc47 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 6847$as_echo "no" >&6; }
b57f37fb
WP
6848fi
6849
6850
b57f37fb 6851fi
bf9bfd26
JH
6852if test -z "$ac_cv_prog_DLLTOOL"; then
6853 ac_ct_DLLTOOL=$DLLTOOL
6854 # Extract the first word of "dlltool", so it can be a program name with args.
6855set dummy dlltool; ac_word=$2
042acc47 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 6857$as_echo_n "checking for $ac_word... " >&6; }
bf9bfd26 6858if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
f030cae8 6859 $as_echo_n "(cached) " >&6
b57f37fb 6860else
bf9bfd26
JH
6861 if test -n "$ac_ct_DLLTOOL"; then
6862 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
b57f37fb
WP
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
042acc47 6869 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9bfd26 6871 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
042acc47 6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
6873 break 2
6874 fi
6875done
042acc47 6876 done
b57f37fb
WP
6877IFS=$as_save_IFS
6878
6879fi
6880fi
bf9bfd26
JH
6881ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6882if test -n "$ac_ct_DLLTOOL"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6884$as_echo "$ac_ct_DLLTOOL" >&6; }
b57f37fb 6885else
042acc47 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 6887$as_echo "no" >&6; }
b57f37fb
WP
6888fi
6889
bf9bfd26
JH
6890 if test "x$ac_ct_DLLTOOL" = x; then
6891 DLLTOOL="false"
b57f37fb
WP
6892 else
6893 case $cross_compiling:$ac_tool_warned in
6894yes:)
042acc47 6895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 6896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
6897ac_tool_warned=yes ;;
6898esac
bf9bfd26 6899 DLLTOOL=$ac_ct_DLLTOOL
b57f37fb 6900 fi
042acc47 6901else
bf9bfd26 6902 DLLTOOL="$ac_cv_prog_DLLTOOL"
b57f37fb
WP
6903fi
6904
bf9bfd26
JH
6905test -z "$DLLTOOL" && DLLTOOL=dlltool
6906
6907
6908
6909
6910
6911
6912
b57f37fb 6913
b57f37fb 6914
b57f37fb 6915
bf9bfd26
JH
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6917$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6918if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6919 $as_echo_n "(cached) " >&6
6920else
6921 lt_cv_sharedlib_from_linklib_cmd='unknown'
6922
6923case $host_os in
6924cygwin* | mingw* | pw32* | cegcc*)
6925 # two different shell functions defined in ltmain.sh
6926 # decide which to use based on capabilities of $DLLTOOL
6927 case `$DLLTOOL --help 2>&1` in
6928 *--identify-strict*)
6929 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6930 ;;
6931 *)
6932 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6933 ;;
6934 esac
6935 ;;
6936*)
6937 # fallback: assume linklib IS sharedlib
6938 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6939 ;;
6940esac
b57f37fb 6941
bf9bfd26
JH
6942fi
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6944$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6945sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6946test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
b57f37fb 6947
b57f37fb 6948
b57f37fb 6949
b57f37fb 6950
042acc47
WP
6951
6952
6953
6954if test -n "$ac_tool_prefix"; then
bf9bfd26
JH
6955 for ac_prog in ar
6956 do
6957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6958set dummy $ac_tool_prefix$ac_prog; ac_word=$2
042acc47
WP
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960$as_echo_n "checking for $ac_word... " >&6; }
bf9bfd26 6961if ${ac_cv_prog_AR+:} false; then :
042acc47
WP
6962 $as_echo_n "(cached) " >&6
6963else
bf9bfd26
JH
6964 if test -n "$AR"; then
6965 ac_cv_prog_AR="$AR" # Let the user override the test.
042acc47
WP
6966else
6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968for as_dir in $PATH
6969do
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9bfd26 6974 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
042acc47
WP
6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
b57f37fb 6977 fi
042acc47
WP
6978done
6979 done
6980IFS=$as_save_IFS
6981
6982fi
6983fi
bf9bfd26
JH
6984AR=$ac_cv_prog_AR
6985if test -n "$AR"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6987$as_echo "$AR" >&6; }
b57f37fb 6988else
042acc47
WP
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990$as_echo "no" >&6; }
6991fi
6992
6993
bf9bfd26
JH
6994 test -n "$AR" && break
6995 done
042acc47 6996fi
bf9bfd26
JH
6997if test -z "$AR"; then
6998 ac_ct_AR=$AR
6999 for ac_prog in ar
7000do
7001 # Extract the first word of "$ac_prog", so it can be a program name with args.
7002set dummy $ac_prog; ac_word=$2
042acc47
WP
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004$as_echo_n "checking for $ac_word... " >&6; }
bf9bfd26 7005if ${ac_cv_prog_ac_ct_AR+:} false; then :
042acc47
WP
7006 $as_echo_n "(cached) " >&6
7007else
bf9bfd26
JH
7008 if test -n "$ac_ct_AR"; then
7009 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
042acc47
WP
7010else
7011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012for as_dir in $PATH
7013do
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9bfd26 7018 ac_cv_prog_ac_ct_AR="$ac_prog"
042acc47
WP
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
b57f37fb 7021 fi
042acc47
WP
7022done
7023 done
7024IFS=$as_save_IFS
7025
7026fi
7027fi
bf9bfd26
JH
7028ac_ct_AR=$ac_cv_prog_ac_ct_AR
7029if test -n "$ac_ct_AR"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7031$as_echo "$ac_ct_AR" >&6; }
042acc47
WP
7032else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034$as_echo "no" >&6; }
b57f37fb
WP
7035fi
7036
bf9bfd26
JH
7037
7038 test -n "$ac_ct_AR" && break
7039done
7040
7041 if test "x$ac_ct_AR" = x; then
7042 AR="false"
7043 else
7044 case $cross_compiling:$ac_tool_warned in
7045yes:)
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7048ac_tool_warned=yes ;;
7049esac
7050 AR=$ac_ct_AR
7051 fi
7052fi
7053
7054: ${AR=ar}
7055: ${AR_FLAGS=cru}
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7068$as_echo_n "checking for archiver @FILE support... " >&6; }
7069if ${lt_cv_ar_at_file+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071else
7072 lt_cv_ar_at_file=no
7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074/* end confdefs.h. */
7075
7076int
7077main ()
7078{
7079
7080 ;
7081 return 0;
7082}
7083_ACEOF
7084if ac_fn_c_try_compile "$LINENO"; then :
7085 echo conftest.$ac_objext > conftest.lst
7086 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7088 (eval $lt_ar_try) 2>&5
7089 ac_status=$?
7090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; }
7092 if test "$ac_status" -eq 0; then
7093 # Ensure the archiver fails upon bogus file names.
7094 rm -f conftest.$ac_objext libconftest.a
7095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7096 (eval $lt_ar_try) 2>&5
7097 ac_status=$?
7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099 test $ac_status = 0; }
7100 if test "$ac_status" -ne 0; then
7101 lt_cv_ar_at_file=@
7102 fi
7103 fi
7104 rm -f conftest.* libconftest.a
7105
7106fi
7107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108
7109fi
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7111$as_echo "$lt_cv_ar_at_file" >&6; }
7112
7113if test "x$lt_cv_ar_at_file" = xno; then
7114 archiver_list_spec=
7115else
7116 archiver_list_spec=$lt_cv_ar_at_file
7117fi
7118
7119
7120
7121
7122
7123
7124
7125if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7127set dummy ${ac_tool_prefix}strip; ac_word=$2
7128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129$as_echo_n "checking for $ac_word... " >&6; }
7130if ${ac_cv_prog_STRIP+:} false; then :
7131 $as_echo_n "(cached) " >&6
7132else
7133 if test -n "$STRIP"; then
7134 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7135else
7136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137for as_dir in $PATH
7138do
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7146 fi
7147done
7148 done
7149IFS=$as_save_IFS
7150
7151fi
7152fi
7153STRIP=$ac_cv_prog_STRIP
7154if test -n "$STRIP"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7156$as_echo "$STRIP" >&6; }
7157else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159$as_echo "no" >&6; }
7160fi
7161
7162
7163fi
7164if test -z "$ac_cv_prog_STRIP"; then
7165 ac_ct_STRIP=$STRIP
7166 # Extract the first word of "strip", so it can be a program name with args.
7167set dummy strip; ac_word=$2
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169$as_echo_n "checking for $ac_word... " >&6; }
7170if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172else
7173 if test -n "$ac_ct_STRIP"; then
7174 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7175else
7176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_ac_ct_STRIP="strip"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187done
7188 done
7189IFS=$as_save_IFS
7190
7191fi
7192fi
7193ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7194if test -n "$ac_ct_STRIP"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7196$as_echo "$ac_ct_STRIP" >&6; }
7197else
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199$as_echo "no" >&6; }
7200fi
7201
7202 if test "x$ac_ct_STRIP" = x; then
7203 STRIP=":"
7204 else
7205 case $cross_compiling:$ac_tool_warned in
7206yes:)
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
042acc47
WP
7208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209ac_tool_warned=yes ;;
7210esac
7211 STRIP=$ac_ct_STRIP
7212 fi
f030cae8 7213else
042acc47 7214 STRIP="$ac_cv_prog_STRIP"
f030cae8 7215fi
b57f37fb 7216
042acc47 7217test -z "$STRIP" && STRIP=:
b57f37fb
WP
7218
7219
b57f37fb 7220
b57f37fb 7221
b57f37fb 7222
b57f37fb 7223
042acc47
WP
7224if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7226set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228$as_echo_n "checking for $ac_word... " >&6; }
12e39525 7229if ${ac_cv_prog_RANLIB+:} false; then :
042acc47
WP
7230 $as_echo_n "(cached) " >&6
7231else
7232 if test -n "$RANLIB"; then
7233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7234else
7235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246done
7247 done
7248IFS=$as_save_IFS
b57f37fb 7249
042acc47
WP
7250fi
7251fi
7252RANLIB=$ac_cv_prog_RANLIB
7253if test -n "$RANLIB"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7255$as_echo "$RANLIB" >&6; }
7256else
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258$as_echo "no" >&6; }
7259fi
b57f37fb 7260
b57f37fb 7261
042acc47
WP
7262fi
7263if test -z "$ac_cv_prog_RANLIB"; then
7264 ac_ct_RANLIB=$RANLIB
7265 # Extract the first word of "ranlib", so it can be a program name with args.
7266set dummy ranlib; ac_word=$2
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268$as_echo_n "checking for $ac_word... " >&6; }
12e39525 7269if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
042acc47
WP
7270 $as_echo_n "(cached) " >&6
7271else
7272 if test -n "$ac_ct_RANLIB"; then
7273 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7274else
7275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276for as_dir in $PATH
7277do
7278 IFS=$as_save_IFS
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282 ac_cv_prog_ac_ct_RANLIB="ranlib"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 break 2
7285 fi
7286done
7287 done
7288IFS=$as_save_IFS
b57f37fb 7289
042acc47
WP
7290fi
7291fi
7292ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7293if test -n "$ac_ct_RANLIB"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7295$as_echo "$ac_ct_RANLIB" >&6; }
7296else
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298$as_echo "no" >&6; }
b57f37fb
WP
7299fi
7300
042acc47
WP
7301 if test "x$ac_ct_RANLIB" = x; then
7302 RANLIB=":"
7303 else
7304 case $cross_compiling:$ac_tool_warned in
7305yes:)
7306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7308ac_tool_warned=yes ;;
7309esac
7310 RANLIB=$ac_ct_RANLIB
7311 fi
b57f37fb 7312else
042acc47 7313 RANLIB="$ac_cv_prog_RANLIB"
b57f37fb
WP
7314fi
7315
042acc47 7316test -z "$RANLIB" && RANLIB=:
b57f37fb
WP
7317
7318
7319
7320
042acc47
WP
7321
7322
7323# Determine commands to create old-style static archives.
7324old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7325old_postinstall_cmds='chmod 644 $oldlib'
7326old_postuninstall_cmds=
7327
7328if test -n "$RANLIB"; then
7329 case $host_os in
7330 openbsd*)
7331 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7332 ;;
7333 *)
7334 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7335 ;;
7336 esac
7337 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7338fi
7339
bf9bfd26
JH
7340case $host_os in
7341 darwin*)
7342 lock_old_archive_extraction=yes ;;
7343 *)
7344 lock_old_archive_extraction=no ;;
7345esac
7346
7347
7348
7349
7350
7351
042acc47
WP
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385# If no C compiler was specified, use CC.
7386LTCC=${LTCC-"$CC"}
7387
7388# If no C compiler flags were specified, use CFLAGS.
7389LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7390
7391# Allow CC to be a program name with arguments.
7392compiler=$CC
7393
7394
7395# Check for command to grab the raw symbol name followed by C symbol from nm.
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7397$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12e39525 7398if ${lt_cv_sys_global_symbol_pipe+:} false; then :
f030cae8 7399 $as_echo_n "(cached) " >&6
b57f37fb
WP
7400else
7401
7402# These are sane defaults that work on at least a few old systems.
7403# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7404
7405# Character class describing NM global symbol codes.
7406symcode='[BCDEGRST]'
7407
7408# Regexp to match symbols that can be accessed directly from C.
7409sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7410
b57f37fb
WP
7411# Define system-specific variables.
7412case $host_os in
7413aix*)
7414 symcode='[BCDT]'
7415 ;;
042acc47 7416cygwin* | mingw* | pw32* | cegcc*)
b57f37fb
WP
7417 symcode='[ABCDGISTW]'
7418 ;;
042acc47 7419hpux*)
b57f37fb
WP
7420 if test "$host_cpu" = ia64; then
7421 symcode='[ABCDEGRST]'
7422 fi
b57f37fb
WP
7423 ;;
7424irix* | nonstopux*)
7425 symcode='[BCDEGRST]'
7426 ;;
7427osf*)
7428 symcode='[BCDEGQRST]'
7429 ;;
7430solaris*)
7431 symcode='[BDRT]'
7432 ;;
7433sco3.2v5*)
7434 symcode='[DT]'
7435 ;;
7436sysv4.2uw2*)
7437 symcode='[DT]'
7438 ;;
7439sysv5* | sco5v6* | unixware* | OpenUNIX*)
7440 symcode='[ABDT]'
7441 ;;
7442sysv4)
7443 symcode='[DFNSTU]'
7444 ;;
7445esac
7446
042acc47
WP
7447# If we're using GNU nm, then use its standard symbol codes.
7448case `$NM -V 2>&1` in
7449*GNU* | *'with BFD'*)
7450 symcode='[ABCDGIRSTW]' ;;
7451esac
7452
7453# Transform an extracted symbol line into a proper C declaration.
7454# Some systems (esp. on ia64) link data and code symbols differently,
7455# so use this general approach.
7456lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7457
7458# Transform an extracted symbol line into symbol name and symbol address
bf9bfd26
JH
7459lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7460lt_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'"
042acc47 7461
b57f37fb
WP
7462# Handle CRLF in mingw tool chain
7463opt_cr=
7464case $build_os in
7465mingw*)
042acc47 7466 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
b57f37fb
WP
7467 ;;
7468esac
7469
042acc47 7470# Try without a prefix underscore, then with it.
b57f37fb
WP
7471for ac_symprfx in "" "_"; do
7472
7473 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7474 symxfrm="\\1 $ac_symprfx\\2 \\2"
7475
7476 # Write the raw and C identifiers.
042acc47
WP
7477 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7478 # Fake it for dumpbin and say T for any non-static function
7479 # and D for any global variable.
7480 # Also find C++ and __fastcall symbols from MSVC++,
7481 # which start with @ or ?.
7482 lt_cv_sys_global_symbol_pipe="$AWK '"\
7483" {last_section=section; section=\$ 3};"\
7484" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7485" \$ 0!~/External *\|/{next};"\
7486" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7487" {if(hide[section]) next};"\
7488" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7489" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7490" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7491" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7492" ' prfx=^$ac_symprfx"
7493 else
7494 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7495 fi
bf9bfd26 7496 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
b57f37fb
WP
7497
7498 # Check to see that the pipe works correctly.
7499 pipe_works=no
7500
7501 rm -f conftest*
042acc47 7502 cat > conftest.$ac_ext <<_LT_EOF
b57f37fb
WP
7503#ifdef __cplusplus
7504extern "C" {
7505#endif
7506char nm_test_var;
042acc47
WP
7507void nm_test_func(void);
7508void nm_test_func(void){}
b57f37fb
WP
7509#ifdef __cplusplus
7510}
7511#endif
7512int main(){nm_test_var='a';nm_test_func();return(0);}
042acc47 7513_LT_EOF
b57f37fb 7514
042acc47 7515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b57f37fb
WP
7516 (eval $ac_compile) 2>&5
7517 ac_status=$?
042acc47
WP
7518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7519 test $ac_status = 0; }; then
b57f37fb
WP
7520 # Now try to grab the symbols.
7521 nlist=conftest.nm
bf9bfd26
JH
7522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7523 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
b57f37fb 7524 ac_status=$?
042acc47
WP
7525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526 test $ac_status = 0; } && test -s "$nlist"; then
b57f37fb
WP
7527 # Try sorting and uniquifying the output.
7528 if sort "$nlist" | uniq > "$nlist"T; then
7529 mv -f "$nlist"T "$nlist"
7530 else
7531 rm -f "$nlist"T
7532 fi
7533
7534 # Make sure that we snagged all the symbols we need.
042acc47
WP
7535 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7536 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7537 cat <<_LT_EOF > conftest.$ac_ext
bf9bfd26
JH
7538/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7539#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7540/* DATA imports from DLLs on WIN32 con't be const, because runtime
7541 relocations are performed -- see ld's documentation on pseudo-relocs. */
7542# define LT_DLSYM_CONST
7543#elif defined(__osf__)
7544/* This system does not cope well with relocations in const data. */
7545# define LT_DLSYM_CONST
7546#else
7547# define LT_DLSYM_CONST const
7548#endif
7549
b57f37fb
WP
7550#ifdef __cplusplus
7551extern "C" {
7552#endif
7553
042acc47 7554_LT_EOF
b57f37fb 7555 # Now generate the symbol file.
042acc47 7556 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
b57f37fb 7557
042acc47 7558 cat <<_LT_EOF >> conftest.$ac_ext
b57f37fb 7559
042acc47 7560/* The mapping between symbol names and symbols. */
bf9bfd26 7561LT_DLSYM_CONST struct {
b57f37fb 7562 const char *name;
042acc47 7563 void *address;
b57f37fb 7564}
042acc47 7565lt__PROGRAM__LTX_preloaded_symbols[] =
b57f37fb 7566{
042acc47
WP
7567 { "@PROGRAM@", (void *) 0 },
7568_LT_EOF
7569 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7570 cat <<\_LT_EOF >> conftest.$ac_ext
7571 {0, (void *) 0}
b57f37fb
WP
7572};
7573
042acc47
WP
7574/* This works around a problem in FreeBSD linker */
7575#ifdef FREEBSD_WORKAROUND
7576static const void *lt_preloaded_setup() {
7577 return lt__PROGRAM__LTX_preloaded_symbols;
7578}
7579#endif
7580
b57f37fb
WP
7581#ifdef __cplusplus
7582}
7583#endif
042acc47 7584_LT_EOF
b57f37fb
WP
7585 # Now try linking the two files.
7586 mv conftest.$ac_objext conftstm.$ac_objext
bf9bfd26
JH
7587 lt_globsym_save_LIBS=$LIBS
7588 lt_globsym_save_CFLAGS=$CFLAGS
b57f37fb
WP
7589 LIBS="conftstm.$ac_objext"
7590 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
042acc47 7591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
b57f37fb
WP
7592 (eval $ac_link) 2>&5
7593 ac_status=$?
042acc47
WP
7594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7595 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
b57f37fb
WP
7596 pipe_works=yes
7597 fi
bf9bfd26
JH
7598 LIBS=$lt_globsym_save_LIBS
7599 CFLAGS=$lt_globsym_save_CFLAGS
b57f37fb
WP
7600 else
7601 echo "cannot find nm_test_func in $nlist" >&5
7602 fi
7603 else
7604 echo "cannot find nm_test_var in $nlist" >&5
7605 fi
7606 else
7607 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7608 fi
7609 else
7610 echo "$progname: failed program was:" >&5
7611 cat conftest.$ac_ext >&5
7612 fi
56efe974 7613 rm -rf conftest* conftst*
b57f37fb
WP
7614
7615 # Do not use the global_symbol_pipe unless it works.
7616 if test "$pipe_works" = yes; then
7617 break
7618 else
7619 lt_cv_sys_global_symbol_pipe=
7620 fi
7621done
7622
7623fi
7624
7625if test -z "$lt_cv_sys_global_symbol_pipe"; then
7626 lt_cv_sys_global_symbol_to_cdecl=
7627fi
7628if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
042acc47 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
f030cae8 7630$as_echo "failed" >&6; }
b57f37fb 7631else
042acc47 7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
f030cae8 7633$as_echo "ok" >&6; }
b57f37fb
WP
7634fi
7635
bf9bfd26
JH
7636# Response file support.
7637if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7638 nm_file_list_spec='@'
7639elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7640 nm_file_list_spec='@'
7641fi
7642
b57f37fb
WP
7643
7644
7645
7646
7647
b57f37fb 7648
b57f37fb 7649
b57f37fb 7650
b57f37fb 7651
b57f37fb 7652
b57f37fb 7653
b57f37fb 7654
b57f37fb 7655
b57f37fb 7656
b57f37fb
WP
7657
7658
b57f37fb 7659
b57f37fb 7660
b57f37fb 7661
bf9bfd26
JH
7662
7663
7664
7665
7666
7667
7668
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7670$as_echo_n "checking for sysroot... " >&6; }
7671
7672# Check whether --with-sysroot was given.
7673if test "${with_sysroot+set}" = set; then :
7674 withval=$with_sysroot;
7675else
7676 with_sysroot=no
7677fi
7678
7679
7680lt_sysroot=
7681case ${with_sysroot} in #(
7682 yes)
7683 if test "$GCC" = yes; then
7684 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7685 fi
7686 ;; #(
7687 /*)
7688 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7689 ;; #(
7690 no|'')
7691 ;; #(
7692 *)
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7694$as_echo "${with_sysroot}" >&6; }
7695 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7696 ;;
7697esac
7698
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7700$as_echo "${lt_sysroot:-no}" >&6; }
7701
7702
7703
b57f37fb 7704
042acc47
WP
7705
7706# Check whether --enable-libtool-lock was given.
7707if test "${enable_libtool_lock+set}" = set; then :
7708 enableval=$enable_libtool_lock;
b57f37fb
WP
7709fi
7710
042acc47 7711test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
b57f37fb 7712
042acc47
WP
7713# Some flags need to be propagated to the compiler or linker for good
7714# libtool support.
7715case $host in
7716ia64-*-hpux*)
7717 # Find out which ABI we are using.
7718 echo 'int i;' > conftest.$ac_ext
7719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7720 (eval $ac_compile) 2>&5
7721 ac_status=$?
7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; }; then
7724 case `/usr/bin/file conftest.$ac_objext` in
7725 *ELF-32*)
7726 HPUX_IA64_MODE="32"
7727 ;;
7728 *ELF-64*)
7729 HPUX_IA64_MODE="64"
7730 ;;
7731 esac
7732 fi
7733 rm -rf conftest*
7734 ;;
7735*-*-irix6*)
7736 # Find out which ABI we are using.
bf9bfd26 7737 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
042acc47
WP
7738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7739 (eval $ac_compile) 2>&5
7740 ac_status=$?
7741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7742 test $ac_status = 0; }; then
7743 if test "$lt_cv_prog_gnu_ld" = yes; then
7744 case `/usr/bin/file conftest.$ac_objext` in
7745 *32-bit*)
7746 LD="${LD-ld} -melf32bsmip"
7747 ;;
7748 *N32*)
7749 LD="${LD-ld} -melf32bmipn32"
7750 ;;
7751 *64-bit*)
7752 LD="${LD-ld} -melf64bmip"
7753 ;;
7754 esac
7755 else
7756 case `/usr/bin/file conftest.$ac_objext` in
7757 *32-bit*)
7758 LD="${LD-ld} -32"
7759 ;;
7760 *N32*)
7761 LD="${LD-ld} -n32"
7762 ;;
7763 *64-bit*)
7764 LD="${LD-ld} -64"
7765 ;;
7766 esac
7767 fi
7768 fi
7769 rm -rf conftest*
7770 ;;
7771
7772x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7773s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7774 # Find out which ABI we are using.
7775 echo 'int i;' > conftest.$ac_ext
7776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7777 (eval $ac_compile) 2>&5
7778 ac_status=$?
7779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780 test $ac_status = 0; }; then
7781 case `/usr/bin/file conftest.o` in
7782 *32-bit*)
7783 case $host in
7784 x86_64-*kfreebsd*-gnu)
7785 LD="${LD-ld} -m elf_i386_fbsd"
7786 ;;
7787 x86_64-*linux*)
7788 LD="${LD-ld} -m elf_i386"
7789 ;;
7790 ppc64-*linux*|powerpc64-*linux*)
7791 LD="${LD-ld} -m elf32ppclinux"
7792 ;;
7793 s390x-*linux*)
7794 LD="${LD-ld} -m elf_s390"
7795 ;;
7796 sparc64-*linux*)
7797 LD="${LD-ld} -m elf32_sparc"
7798 ;;
7799 esac
7800 ;;
7801 *64-bit*)
7802 case $host in
7803 x86_64-*kfreebsd*-gnu)
7804 LD="${LD-ld} -m elf_x86_64_fbsd"
7805 ;;
7806 x86_64-*linux*)
7807 LD="${LD-ld} -m elf_x86_64"
7808 ;;
7809 ppc*-*linux*|powerpc*-*linux*)
7810 LD="${LD-ld} -m elf64ppc"
7811 ;;
7812 s390*-*linux*|s390*-*tpf*)
7813 LD="${LD-ld} -m elf64_s390"
7814 ;;
7815 sparc*-*linux*)
7816 LD="${LD-ld} -m elf64_sparc"
7817 ;;
7818 esac
7819 ;;
7820 esac
7821 fi
7822 rm -rf conftest*
7823 ;;
7824
7825*-*-sco3.2v5*)
7826 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7827 SAVE_CFLAGS="$CFLAGS"
7828 CFLAGS="$CFLAGS -belf"
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7830$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12e39525 7831if ${lt_cv_cc_needs_belf+:} false; then :
042acc47
WP
7832 $as_echo_n "(cached) " >&6
7833else
7834 ac_ext=c
7835ac_cpp='$CPP $CPPFLAGS'
7836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838ac_compiler_gnu=$ac_cv_c_compiler_gnu
7839
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841/* end confdefs.h. */
7842
7843int
7844main ()
7845{
7846
7847 ;
7848 return 0;
7849}
7850_ACEOF
7851if ac_fn_c_try_link "$LINENO"; then :
7852 lt_cv_cc_needs_belf=yes
7853else
7854 lt_cv_cc_needs_belf=no
7855fi
7856rm -f core conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7858 ac_ext=c
7859ac_cpp='$CPP $CPPFLAGS'
7860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7862ac_compiler_gnu=$ac_cv_c_compiler_gnu
7863
7864fi
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7866$as_echo "$lt_cv_cc_needs_belf" >&6; }
7867 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7868 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7869 CFLAGS="$SAVE_CFLAGS"
7870 fi
7871 ;;
7872sparc*-*solaris*)
7873 # Find out which ABI we are using.
7874 echo 'int i;' > conftest.$ac_ext
7875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7876 (eval $ac_compile) 2>&5
7877 ac_status=$?
7878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7879 test $ac_status = 0; }; then
7880 case `/usr/bin/file conftest.o` in
7881 *64-bit*)
7882 case $lt_cv_prog_gnu_ld in
7883 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7884 *)
7885 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7886 LD="${LD-ld} -64"
7887 fi
7888 ;;
7889 esac
7890 ;;
7891 esac
7892 fi
7893 rm -rf conftest*
7894 ;;
7895esac
7896
7897need_locks="$enable_libtool_lock"
7898
bf9bfd26
JH
7899if test -n "$ac_tool_prefix"; then
7900 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7901set dummy ${ac_tool_prefix}mt; ac_word=$2
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903$as_echo_n "checking for $ac_word... " >&6; }
7904if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7905 $as_echo_n "(cached) " >&6
7906else
7907 if test -n "$MANIFEST_TOOL"; then
7908 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7909else
7910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911for as_dir in $PATH
7912do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7920 fi
7921done
7922 done
7923IFS=$as_save_IFS
7924
7925fi
7926fi
7927MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7928if test -n "$MANIFEST_TOOL"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7930$as_echo "$MANIFEST_TOOL" >&6; }
7931else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933$as_echo "no" >&6; }
7934fi
7935
7936
7937fi
7938if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7939 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7940 # Extract the first word of "mt", so it can be a program name with args.
7941set dummy mt; ac_word=$2
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943$as_echo_n "checking for $ac_word... " >&6; }
7944if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946else
7947 if test -n "$ac_ct_MANIFEST_TOOL"; then
7948 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7949else
7950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7957 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7960 fi
7961done
7962 done
7963IFS=$as_save_IFS
7964
7965fi
7966fi
7967ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7968if test -n "$ac_ct_MANIFEST_TOOL"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7970$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7971else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973$as_echo "no" >&6; }
7974fi
7975
7976 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7977 MANIFEST_TOOL=":"
7978 else
7979 case $cross_compiling:$ac_tool_warned in
7980yes:)
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7983ac_tool_warned=yes ;;
7984esac
7985 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7986 fi
7987else
7988 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7989fi
7990
7991test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7993$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7994if ${lt_cv_path_mainfest_tool+:} false; then :
7995 $as_echo_n "(cached) " >&6
7996else
7997 lt_cv_path_mainfest_tool=no
7998 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7999 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8000 cat conftest.err >&5
8001 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8002 lt_cv_path_mainfest_tool=yes
8003 fi
8004 rm -f conftest*
8005fi
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8007$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8008if test "x$lt_cv_path_mainfest_tool" != xyes; then
8009 MANIFEST_TOOL=:
8010fi
8011
8012
8013
8014
8015
042acc47
WP
8016
8017 case $host_os in
8018 rhapsody* | darwin*)
8019 if test -n "$ac_tool_prefix"; then
8020 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8021set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023$as_echo_n "checking for $ac_word... " >&6; }
12e39525 8024if ${ac_cv_prog_DSYMUTIL+:} false; then :
042acc47
WP
8025 $as_echo_n "(cached) " >&6
8026else
8027 if test -n "$DSYMUTIL"; then
8028 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8029else
8030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031for as_dir in $PATH
b57f37fb
WP
8032do
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
042acc47 8035 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 8036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
8037 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
8039 break 2
8040 fi
8041done
042acc47
WP
8042 done
8043IFS=$as_save_IFS
8044
8045fi
8046fi
8047DSYMUTIL=$ac_cv_prog_DSYMUTIL
8048if test -n "$DSYMUTIL"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8050$as_echo "$DSYMUTIL" >&6; }
8051else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053$as_echo "no" >&6; }
8054fi
8055
8056
8057fi
8058if test -z "$ac_cv_prog_DSYMUTIL"; then
8059 ac_ct_DSYMUTIL=$DSYMUTIL
8060 # Extract the first word of "dsymutil", so it can be a program name with args.
8061set dummy dsymutil; ac_word=$2
8062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063$as_echo_n "checking for $ac_word... " >&6; }
12e39525 8064if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
042acc47
WP
8065 $as_echo_n "(cached) " >&6
8066else
8067 if test -n "$ac_ct_DSYMUTIL"; then
8068 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8069else
8070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071for as_dir in $PATH
8072do
8073 IFS=$as_save_IFS
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8077 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 break 2
8080 fi
b57f37fb 8081done
042acc47 8082 done
b57f37fb
WP
8083IFS=$as_save_IFS
8084
8085fi
8086fi
042acc47
WP
8087ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8088if test -n "$ac_ct_DSYMUTIL"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8090$as_echo "$ac_ct_DSYMUTIL" >&6; }
b57f37fb 8091else
042acc47 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 8093$as_echo "no" >&6; }
b57f37fb
WP
8094fi
8095
042acc47
WP
8096 if test "x$ac_ct_DSYMUTIL" = x; then
8097 DSYMUTIL=":"
b57f37fb
WP
8098 else
8099 case $cross_compiling:$ac_tool_warned in
8100yes:)
042acc47 8101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 8102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
8103ac_tool_warned=yes ;;
8104esac
042acc47 8105 DSYMUTIL=$ac_ct_DSYMUTIL
b57f37fb
WP
8106 fi
8107else
042acc47 8108 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
b57f37fb
WP
8109fi
8110
042acc47
WP
8111 if test -n "$ac_tool_prefix"; then
8112 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8113set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 8115$as_echo_n "checking for $ac_word... " >&6; }
12e39525 8116if ${ac_cv_prog_NMEDIT+:} false; then :
f030cae8 8117 $as_echo_n "(cached) " >&6
b57f37fb 8118else
042acc47
WP
8119 if test -n "$NMEDIT"; then
8120 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
b57f37fb
WP
8121else
8122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
042acc47 8127 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
8129 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
8131 break 2
8132 fi
8133done
042acc47 8134 done
b57f37fb
WP
8135IFS=$as_save_IFS
8136
8137fi
8138fi
042acc47
WP
8139NMEDIT=$ac_cv_prog_NMEDIT
8140if test -n "$NMEDIT"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8142$as_echo "$NMEDIT" >&6; }
b57f37fb 8143else
042acc47 8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 8145$as_echo "no" >&6; }
b57f37fb
WP
8146fi
8147
8148
8149fi
042acc47
WP
8150if test -z "$ac_cv_prog_NMEDIT"; then
8151 ac_ct_NMEDIT=$NMEDIT
8152 # Extract the first word of "nmedit", so it can be a program name with args.
8153set dummy nmedit; ac_word=$2
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 8155$as_echo_n "checking for $ac_word... " >&6; }
12e39525 8156if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
f030cae8 8157 $as_echo_n "(cached) " >&6
b57f37fb 8158else
042acc47
WP
8159 if test -n "$ac_ct_NMEDIT"; then
8160 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
b57f37fb
WP
8161else
8162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
042acc47 8167 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
8169 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
8171 break 2
8172 fi
8173done
042acc47 8174 done
b57f37fb
WP
8175IFS=$as_save_IFS
8176
8177fi
8178fi
042acc47
WP
8179ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8180if test -n "$ac_ct_NMEDIT"; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8182$as_echo "$ac_ct_NMEDIT" >&6; }
b57f37fb 8183else
042acc47 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 8185$as_echo "no" >&6; }
b57f37fb
WP
8186fi
8187
042acc47
WP
8188 if test "x$ac_ct_NMEDIT" = x; then
8189 NMEDIT=":"
b57f37fb
WP
8190 else
8191 case $cross_compiling:$ac_tool_warned in
8192yes:)
042acc47 8193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 8194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
8195ac_tool_warned=yes ;;
8196esac
042acc47 8197 NMEDIT=$ac_ct_NMEDIT
b57f37fb
WP
8198 fi
8199else
042acc47 8200 NMEDIT="$ac_cv_prog_NMEDIT"
b57f37fb
WP
8201fi
8202
042acc47
WP
8203 if test -n "$ac_tool_prefix"; then
8204 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8205set dummy ${ac_tool_prefix}lipo; ac_word=$2
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207$as_echo_n "checking for $ac_word... " >&6; }
12e39525 8208if ${ac_cv_prog_LIPO+:} false; then :
042acc47
WP
8209 $as_echo_n "(cached) " >&6
8210else
8211 if test -n "$LIPO"; then
8212 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8213else
8214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215for as_dir in $PATH
8216do
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 break 2
8224 fi
8225done
8226 done
8227IFS=$as_save_IFS
b57f37fb 8228
b57f37fb 8229fi
b57f37fb 8230fi
042acc47
WP
8231LIPO=$ac_cv_prog_LIPO
8232if test -n "$LIPO"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8234$as_echo "$LIPO" >&6; }
b57f37fb 8235else
042acc47 8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 8237$as_echo "no" >&6; }
b57f37fb
WP
8238fi
8239
042acc47
WP
8240
8241fi
8242if test -z "$ac_cv_prog_LIPO"; then
8243 ac_ct_LIPO=$LIPO
8244 # Extract the first word of "lipo", so it can be a program name with args.
8245set dummy lipo; ac_word=$2
8246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247$as_echo_n "checking for $ac_word... " >&6; }
12e39525 8248if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
f030cae8 8249 $as_echo_n "(cached) " >&6
b57f37fb 8250else
042acc47
WP
8251 if test -n "$ac_ct_LIPO"; then
8252 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8253else
8254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255for as_dir in $PATH
8256do
8257 IFS=$as_save_IFS
8258 test -z "$as_dir" && as_dir=.
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8261 ac_cv_prog_ac_ct_LIPO="lipo"
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 break 2
8264 fi
8265done
b57f37fb 8266 done
042acc47 8267IFS=$as_save_IFS
b57f37fb 8268
042acc47
WP
8269fi
8270fi
8271ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8272if test -n "$ac_ct_LIPO"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8274$as_echo "$ac_ct_LIPO" >&6; }
b57f37fb 8275else
042acc47 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 8277$as_echo "no" >&6; }
b57f37fb
WP
8278fi
8279
042acc47
WP
8280 if test "x$ac_ct_LIPO" = x; then
8281 LIPO=":"
b57f37fb 8282 else
042acc47
WP
8283 case $cross_compiling:$ac_tool_warned in
8284yes:)
8285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8287ac_tool_warned=yes ;;
8288esac
8289 LIPO=$ac_ct_LIPO
b57f37fb 8290 fi
042acc47
WP
8291else
8292 LIPO="$ac_cv_prog_LIPO"
b57f37fb
WP
8293fi
8294
56efe974 8295 if test -n "$ac_tool_prefix"; then
042acc47
WP
8296 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8297set dummy ${ac_tool_prefix}otool; ac_word=$2
8298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 8299$as_echo_n "checking for $ac_word... " >&6; }
12e39525 8300if ${ac_cv_prog_OTOOL+:} false; then :
f030cae8 8301 $as_echo_n "(cached) " >&6
56efe974 8302else
042acc47
WP
8303 if test -n "$OTOOL"; then
8304 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
56efe974
WP
8305else
8306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307for as_dir in $PATH
8308do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
042acc47 8311 for ac_exec_ext in '' $ac_executable_extensions; do
56efe974 8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
8313 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
8315 break 2
8316 fi
8317done
042acc47 8318 done
56efe974
WP
8319IFS=$as_save_IFS
8320
8321fi
8322fi
042acc47
WP
8323OTOOL=$ac_cv_prog_OTOOL
8324if test -n "$OTOOL"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8326$as_echo "$OTOOL" >&6; }
56efe974 8327else
042acc47 8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 8329$as_echo "no" >&6; }
56efe974
WP
8330fi
8331
8332
8333fi
042acc47
WP
8334if test -z "$ac_cv_prog_OTOOL"; then
8335 ac_ct_OTOOL=$OTOOL
8336 # Extract the first word of "otool", so it can be a program name with args.
8337set dummy otool; ac_word=$2
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 8339$as_echo_n "checking for $ac_word... " >&6; }
12e39525 8340if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
f030cae8 8341 $as_echo_n "(cached) " >&6
56efe974 8342else
042acc47
WP
8343 if test -n "$ac_ct_OTOOL"; then
8344 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
56efe974
WP
8345else
8346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347for as_dir in $PATH
8348do
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
042acc47 8351 for ac_exec_ext in '' $ac_executable_extensions; do
56efe974 8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
8353 ac_cv_prog_ac_ct_OTOOL="otool"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
8355 break 2
8356 fi
8357done
042acc47 8358 done
56efe974
WP
8359IFS=$as_save_IFS
8360
8361fi
8362fi
042acc47
WP
8363ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8364if test -n "$ac_ct_OTOOL"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8366$as_echo "$ac_ct_OTOOL" >&6; }
56efe974 8367else
042acc47 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 8369$as_echo "no" >&6; }
56efe974
WP
8370fi
8371
042acc47
WP
8372 if test "x$ac_ct_OTOOL" = x; then
8373 OTOOL=":"
56efe974
WP
8374 else
8375 case $cross_compiling:$ac_tool_warned in
8376yes:)
042acc47 8377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 8378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56efe974
WP
8379ac_tool_warned=yes ;;
8380esac
042acc47 8381 OTOOL=$ac_ct_OTOOL
56efe974
WP
8382 fi
8383else
042acc47 8384 OTOOL="$ac_cv_prog_OTOOL"
56efe974
WP
8385fi
8386
8387 if test -n "$ac_tool_prefix"; then
042acc47
WP
8388 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8389set dummy ${ac_tool_prefix}otool64; ac_word=$2
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 8391$as_echo_n "checking for $ac_word... " >&6; }
12e39525 8392if ${ac_cv_prog_OTOOL64+:} false; then :
f030cae8 8393 $as_echo_n "(cached) " >&6
56efe974 8394else
042acc47
WP
8395 if test -n "$OTOOL64"; then
8396 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
56efe974
WP
8397else
8398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399for as_dir in $PATH
8400do
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
042acc47 8403 for ac_exec_ext in '' $ac_executable_extensions; do
56efe974 8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
8405 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
8407 break 2
8408 fi
8409done
042acc47 8410 done
56efe974
WP
8411IFS=$as_save_IFS
8412
8413fi
8414fi
042acc47
WP
8415OTOOL64=$ac_cv_prog_OTOOL64
8416if test -n "$OTOOL64"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8418$as_echo "$OTOOL64" >&6; }
56efe974 8419else
042acc47 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 8421$as_echo "no" >&6; }
56efe974
WP
8422fi
8423
8424
8425fi
042acc47
WP
8426if test -z "$ac_cv_prog_OTOOL64"; then
8427 ac_ct_OTOOL64=$OTOOL64
8428 # Extract the first word of "otool64", so it can be a program name with args.
8429set dummy otool64; ac_word=$2
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 8431$as_echo_n "checking for $ac_word... " >&6; }
12e39525 8432if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
f030cae8 8433 $as_echo_n "(cached) " >&6
56efe974 8434else
042acc47
WP
8435 if test -n "$ac_ct_OTOOL64"; then
8436 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
56efe974
WP
8437else
8438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439for as_dir in $PATH
8440do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
042acc47 8443 for ac_exec_ext in '' $ac_executable_extensions; do
56efe974 8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
8445 ac_cv_prog_ac_ct_OTOOL64="otool64"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
8447 break 2
8448 fi
8449done
042acc47 8450 done
56efe974
WP
8451IFS=$as_save_IFS
8452
8453fi
8454fi
042acc47
WP
8455ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8456if test -n "$ac_ct_OTOOL64"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8458$as_echo "$ac_ct_OTOOL64" >&6; }
56efe974 8459else
042acc47 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 8461$as_echo "no" >&6; }
56efe974
WP
8462fi
8463
042acc47
WP
8464 if test "x$ac_ct_OTOOL64" = x; then
8465 OTOOL64=":"
56efe974
WP
8466 else
8467 case $cross_compiling:$ac_tool_warned in
8468yes:)
042acc47 8469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 8470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56efe974
WP
8471ac_tool_warned=yes ;;
8472esac
042acc47 8473 OTOOL64=$ac_ct_OTOOL64
56efe974
WP
8474 fi
8475else
042acc47 8476 OTOOL64="$ac_cv_prog_OTOOL64"
56efe974
WP
8477fi
8478
8479
56efe974 8480
56efe974 8481
042acc47
WP
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8506$as_echo_n "checking for -single_module linker flag... " >&6; }
12e39525 8507if ${lt_cv_apple_cc_single_mod+:} false; then :
042acc47
WP
8508 $as_echo_n "(cached) " >&6
8509else
8510 lt_cv_apple_cc_single_mod=no
8511 if test -z "${LT_MULTI_MODULE}"; then
8512 # By default we will add the -single_module flag. You can override
8513 # by either setting the environment variable LT_MULTI_MODULE
8514 # non-empty at configure time, or by adding -multi_module to the
8515 # link flags.
8516 rm -rf libconftest.dylib*
8517 echo "int foo(void){return 1;}" > conftest.c
8518 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8519-dynamiclib -Wl,-single_module conftest.c" >&5
8520 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8521 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8522 _lt_result=$?
8523 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8524 lt_cv_apple_cc_single_mod=yes
8525 else
8526 cat conftest.err >&5
8527 fi
8528 rm -rf libconftest.dylib*
8529 rm -f conftest.*
8530 fi
8531fi
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8533$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8535$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12e39525 8536if ${lt_cv_ld_exported_symbols_list+:} false; then :
042acc47
WP
8537 $as_echo_n "(cached) " >&6
8538else
8539 lt_cv_ld_exported_symbols_list=no
8540 save_LDFLAGS=$LDFLAGS
8541 echo "_main" > conftest.sym
8542 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544/* end confdefs.h. */
8545
8546int
8547main ()
8548{
8549
8550 ;
8551 return 0;
56efe974
WP
8552}
8553_ACEOF
042acc47 8554if ac_fn_c_try_link "$LINENO"; then :
56efe974
WP
8555 lt_cv_ld_exported_symbols_list=yes
8556else
042acc47 8557 lt_cv_ld_exported_symbols_list=no
56efe974 8558fi
042acc47
WP
8559rm -f core conftest.err conftest.$ac_objext \
8560 conftest$ac_exeext conftest.$ac_ext
8561 LDFLAGS="$save_LDFLAGS"
56efe974
WP
8562
8563fi
042acc47 8564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
f030cae8 8565$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
bf9bfd26
JH
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8567$as_echo_n "checking for -force_load linker flag... " >&6; }
8568if ${lt_cv_ld_force_load+:} false; then :
8569 $as_echo_n "(cached) " >&6
8570else
8571 lt_cv_ld_force_load=no
8572 cat > conftest.c << _LT_EOF
8573int forced_loaded() { return 2;}
8574_LT_EOF
8575 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8576 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8577 echo "$AR cru libconftest.a conftest.o" >&5
8578 $AR cru libconftest.a conftest.o 2>&5
8579 echo "$RANLIB libconftest.a" >&5
8580 $RANLIB libconftest.a 2>&5
8581 cat > conftest.c << _LT_EOF
8582int main() { return 0;}
8583_LT_EOF
8584 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8585 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8586 _lt_result=$?
8587 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8588 lt_cv_ld_force_load=yes
8589 else
8590 cat conftest.err >&5
8591 fi
8592 rm -f conftest.err libconftest.a conftest conftest.c
8593 rm -rf conftest.dSYM
8594
8595fi
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8597$as_echo "$lt_cv_ld_force_load" >&6; }
56efe974 8598 case $host_os in
042acc47 8599 rhapsody* | darwin1.[012])
56efe974
WP
8600 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8601 darwin1.*)
042acc47
WP
8602 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8603 darwin*) # darwin 5.x on
56efe974
WP
8604 # if running on 10.5 or later, the deployment target defaults
8605 # to the OS version, if on x86, and 10.4, the deployment
8606 # target defaults to 10.4. Don't you love it?
8607 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
042acc47
WP
8608 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8609 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8610 10.[012]*)
8611 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8612 10.*)
8613 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
56efe974
WP
8614 esac
8615 ;;
8616 esac
8617 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8618 _lt_dar_single_mod='$single_module'
8619 fi
8620 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8621 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8622 else
042acc47 8623 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
56efe974 8624 fi
bf9bfd26 8625 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
042acc47 8626 _lt_dsymutil='~$DSYMUTIL $lib || :'
56efe974
WP
8627 else
8628 _lt_dsymutil=
8629 fi
8630 ;;
8631 esac
8632
042acc47
WP
8633for ac_header in dlfcn.h
8634do :
8635 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8636"
12e39525 8637if test "x$ac_cv_header_dlfcn_h" = xyes; then :
042acc47
WP
8638 cat >>confdefs.h <<_ACEOF
8639#define HAVE_DLFCN_H 1
8640_ACEOF
56efe974 8641
b57f37fb
WP
8642fi
8643
042acc47
WP
8644done
8645
8646
8647
bf9bfd26
JH
8648
8649
042acc47
WP
8650# Set options
8651
8652
8653
8654 enable_dlopen=no
8655
8656
8657 enable_win32_dll=no
8658
8659
8660
b57f37fb
WP
8661
8662
8663# Check whether --with-pic was given.
042acc47 8664if test "${with_pic+set}" = set; then :
b57f37fb
WP
8665 withval=$with_pic; pic_mode="$withval"
8666else
8667 pic_mode=default
8668fi
8669
042acc47 8670
b57f37fb
WP
8671test -z "$pic_mode" && pic_mode=default
8672
b57f37fb
WP
8673
8674
b57f37fb 8675
b57f37fb 8676
b57f37fb 8677
b57f37fb 8678
042acc47
WP
8679 # Check whether --enable-fast-install was given.
8680if test "${enable_fast_install+set}" = set; then :
8681 enableval=$enable_fast_install; p=${PACKAGE-default}
8682 case $enableval in
8683 yes) enable_fast_install=yes ;;
8684 no) enable_fast_install=no ;;
8685 *)
8686 enable_fast_install=no
8687 # Look at the argument we got. We use all the common list separators.
8688 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8689 for pkg in $enableval; do
8690 IFS="$lt_save_ifs"
8691 if test "X$pkg" = "X$p"; then
8692 enable_fast_install=yes
8693 fi
8694 done
8695 IFS="$lt_save_ifs"
8696 ;;
8697 esac
8698else
8699 enable_fast_install=yes
8700fi
b57f37fb 8701
b57f37fb 8702
b57f37fb 8703
b57f37fb
WP
8704
8705
b57f37fb 8706
b57f37fb
WP
8707
8708
8709
b57f37fb 8710
b57f37fb 8711
042acc47
WP
8712# This can be used to rebuild libtool when needed
8713LIBTOOL_DEPS="$ltmain"
b57f37fb 8714
042acc47
WP
8715# Always use our own libtool.
8716LIBTOOL='$(SHELL) $(top_builddir)/libtool'
b57f37fb 8717
b57f37fb 8718
b57f37fb 8719
b57f37fb 8720
b57f37fb 8721
b57f37fb 8722
b57f37fb 8723
b57f37fb 8724
b57f37fb 8725
b57f37fb 8726
b57f37fb 8727
b57f37fb 8728
b57f37fb 8729
b57f37fb 8730
b57f37fb 8731
b57f37fb 8732
b57f37fb 8733
b57f37fb 8734
b57f37fb 8735
b57f37fb 8736
b57f37fb 8737
b57f37fb 8738
b57f37fb 8739
bf9bfd26 8740
b57f37fb 8741
b57f37fb 8742
042acc47 8743test -z "$LN_S" && LN_S="ln -s"
b57f37fb 8744
b57f37fb 8745
b57f37fb 8746
b57f37fb 8747
b57f37fb 8748
b57f37fb 8749
b57f37fb 8750
b57f37fb 8751
b57f37fb 8752
b57f37fb 8753
b57f37fb 8754
b57f37fb 8755
b57f37fb 8756
b57f37fb 8757
042acc47
WP
8758if test -n "${ZSH_VERSION+set}" ; then
8759 setopt NO_GLOB_SUBST
b57f37fb 8760fi
b57f37fb 8761
042acc47
WP
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8763$as_echo_n "checking for objdir... " >&6; }
12e39525 8764if ${lt_cv_objdir+:} false; then :
042acc47 8765 $as_echo_n "(cached) " >&6
b57f37fb 8766else
042acc47
WP
8767 rm -f .libs 2>/dev/null
8768mkdir .libs 2>/dev/null
8769if test -d .libs; then
8770 lt_cv_objdir=.libs
8771else
8772 # MS-DOS does not allow filenames that begin with a dot.
8773 lt_cv_objdir=_libs
8774fi
8775rmdir .libs 2>/dev/null
b57f37fb 8776fi
042acc47
WP
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8778$as_echo "$lt_cv_objdir" >&6; }
8779objdir=$lt_cv_objdir
b57f37fb
WP
8780
8781
b57f37fb 8782
b57f37fb 8783
b57f37fb 8784
042acc47
WP
8785cat >>confdefs.h <<_ACEOF
8786#define LT_OBJDIR "$lt_cv_objdir/"
8787_ACEOF
b57f37fb 8788
b57f37fb 8789
b57f37fb 8790
b57f37fb 8791
042acc47
WP
8792case $host_os in
8793aix3*)
8794 # AIX sometimes has problems with the GCC collect2 program. For some
8795 # reason, if we set the COLLECT_NAMES environment variable, the problems
8796 # vanish in a puff of smoke.
8797 if test "X${COLLECT_NAMES+set}" != Xset; then
8798 COLLECT_NAMES=
8799 export COLLECT_NAMES
8800 fi
8801 ;;
8802esac
b57f37fb 8803
042acc47
WP
8804# Global variables:
8805ofile=libtool
8806can_build_shared=yes
b57f37fb 8807
042acc47
WP
8808# All known linkers require a `.a' archive for static linking (except MSVC,
8809# which needs '.lib').
8810libext=a
b57f37fb 8811
042acc47 8812with_gnu_ld="$lt_cv_prog_gnu_ld"
b57f37fb 8813
042acc47
WP
8814old_CC="$CC"
8815old_CFLAGS="$CFLAGS"
b57f37fb 8816
042acc47
WP
8817# Set sane defaults for various variables
8818test -z "$CC" && CC=cc
8819test -z "$LTCC" && LTCC=$CC
8820test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8821test -z "$LD" && LD=ld
8822test -z "$ac_objext" && ac_objext=o
b57f37fb 8823
042acc47
WP
8824for cc_temp in $compiler""; do
8825 case $cc_temp in
8826 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8827 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8828 \-*) ;;
8829 *) break;;
8830 esac
8831done
bf9bfd26 8832cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
b57f37fb 8833
b57f37fb 8834
042acc47
WP
8835# Only perform the check for file, if the check method requires it
8836test -z "$MAGIC_CMD" && MAGIC_CMD=file
8837case $deplibs_check_method in
8838file_magic*)
8839 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8841$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12e39525 8842if ${lt_cv_path_MAGIC_CMD+:} false; then :
042acc47
WP
8843 $as_echo_n "(cached) " >&6
8844else
8845 case $MAGIC_CMD in
8846[\\/*] | ?:[\\/]*)
8847 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8848 ;;
8849*)
8850 lt_save_MAGIC_CMD="$MAGIC_CMD"
8851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8852 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8853 for ac_dir in $ac_dummy; do
8854 IFS="$lt_save_ifs"
8855 test -z "$ac_dir" && ac_dir=.
8856 if test -f $ac_dir/${ac_tool_prefix}file; then
8857 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8858 if test -n "$file_magic_test_file"; then
8859 case $deplibs_check_method in
8860 "file_magic "*)
8861 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8862 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8863 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8864 $EGREP "$file_magic_regex" > /dev/null; then
8865 :
8866 else
8867 cat <<_LT_EOF 1>&2
b57f37fb 8868
042acc47
WP
8869*** Warning: the command libtool uses to detect shared libraries,
8870*** $file_magic_cmd, produces output that libtool cannot recognize.
8871*** The result is that libtool may fail to recognize shared libraries
8872*** as such. This will affect the creation of libtool libraries that
8873*** depend on shared libraries, but programs linked with such libtool
8874*** libraries will work regardless of this problem. Nevertheless, you
8875*** may want to report the problem to your system manager and/or to
8876*** bug-libtool@gnu.org
b57f37fb 8877
042acc47
WP
8878_LT_EOF
8879 fi ;;
b57f37fb 8880 esac
b57f37fb 8881 fi
042acc47
WP
8882 break
8883 fi
8884 done
8885 IFS="$lt_save_ifs"
8886 MAGIC_CMD="$lt_save_MAGIC_CMD"
8887 ;;
8888esac
8889fi
b57f37fb 8890
042acc47
WP
8891MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8892if test -n "$MAGIC_CMD"; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8894$as_echo "$MAGIC_CMD" >&6; }
8895else
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897$as_echo "no" >&6; }
8898fi
b57f37fb 8899
b57f37fb 8900
b57f37fb 8901
042acc47
WP
8902
8903
8904if test -z "$lt_cv_path_MAGIC_CMD"; then
8905 if test -n "$ac_tool_prefix"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8907$as_echo_n "checking for file... " >&6; }
12e39525 8908if ${lt_cv_path_MAGIC_CMD+:} false; then :
042acc47 8909 $as_echo_n "(cached) " >&6
b57f37fb 8910else
042acc47
WP
8911 case $MAGIC_CMD in
8912[\\/*] | ?:[\\/]*)
8913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8914 ;;
8915*)
8916 lt_save_MAGIC_CMD="$MAGIC_CMD"
8917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8918 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8919 for ac_dir in $ac_dummy; do
8920 IFS="$lt_save_ifs"
8921 test -z "$ac_dir" && ac_dir=.
8922 if test -f $ac_dir/file; then
8923 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8924 if test -n "$file_magic_test_file"; then
8925 case $deplibs_check_method in
8926 "file_magic "*)
8927 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8929 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8930 $EGREP "$file_magic_regex" > /dev/null; then
8931 :
8932 else
8933 cat <<_LT_EOF 1>&2
b57f37fb 8934
042acc47
WP
8935*** Warning: the command libtool uses to detect shared libraries,
8936*** $file_magic_cmd, produces output that libtool cannot recognize.
8937*** The result is that libtool may fail to recognize shared libraries
8938*** as such. This will affect the creation of libtool libraries that
8939*** depend on shared libraries, but programs linked with such libtool
8940*** libraries will work regardless of this problem. Nevertheless, you
8941*** may want to report the problem to your system manager and/or to
8942*** bug-libtool@gnu.org
b57f37fb 8943
042acc47
WP
8944_LT_EOF
8945 fi ;;
8946 esac
8947 fi
8948 break
8949 fi
8950 done
8951 IFS="$lt_save_ifs"
8952 MAGIC_CMD="$lt_save_MAGIC_CMD"
8953 ;;
8954esac
b57f37fb
WP
8955fi
8956
042acc47
WP
8957MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8958if test -n "$MAGIC_CMD"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8960$as_echo "$MAGIC_CMD" >&6; }
8961else
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963$as_echo "no" >&6; }
8964fi
b57f37fb 8965
b57f37fb 8966
042acc47
WP
8967 else
8968 MAGIC_CMD=:
8969 fi
8970fi
b57f37fb 8971
042acc47
WP
8972 fi
8973 ;;
b57f37fb 8974esac
b57f37fb 8975
042acc47
WP
8976# Use C for the default configuration in the libtool script
8977
8978lt_save_CC="$CC"
8979ac_ext=c
8980ac_cpp='$CPP $CPPFLAGS'
8981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8983ac_compiler_gnu=$ac_cv_c_compiler_gnu
8984
8985
8986# Source file extension for C test sources.
8987ac_ext=c
8988
8989# Object file extension for compiled C test sources.
8990objext=o
8991objext=$objext
8992
8993# Code to be used in simple compile tests
8994lt_simple_compile_test_code="int some_variable = 0;"
8995
8996# Code to be used in simple link tests
8997lt_simple_link_test_code='int main(){return(0);}'
8998
8999
9000
9001
9002
9003
9004
9005# If no C compiler was specified, use CC.
9006LTCC=${LTCC-"$CC"}
9007
9008# If no C compiler flags were specified, use CFLAGS.
9009LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9010
9011# Allow CC to be a program name with arguments.
9012compiler=$CC
9013
9014# Save the default compiler, since it gets overwritten when the other
9015# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9016compiler_DEFAULT=$CC
9017
9018# save warnings/boilerplate of simple test code
9019ac_outfile=conftest.$ac_objext
9020echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9021eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9022_lt_compiler_boilerplate=`cat conftest.err`
9023$RM conftest*
9024
9025ac_outfile=conftest.$ac_objext
9026echo "$lt_simple_link_test_code" >conftest.$ac_ext
9027eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9028_lt_linker_boilerplate=`cat conftest.err`
9029$RM -r conftest*
9030
9031
9032if test -n "$compiler"; then
9033
9034lt_prog_compiler_no_builtin_flag=
9035
9036if test "$GCC" = yes; then
bf9bfd26
JH
9037 case $cc_basename in
9038 nvcc*)
9039 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9040 *)
9041 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9042 esac
042acc47
WP
9043
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9045$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12e39525 9046if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
042acc47 9047 $as_echo_n "(cached) " >&6
b57f37fb 9048else
042acc47
WP
9049 lt_cv_prog_compiler_rtti_exceptions=no
9050 ac_outfile=conftest.$ac_objext
9051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9052 lt_compiler_flag="-fno-rtti -fno-exceptions"
9053 # Insert the option either (1) after the last *FLAGS variable, or
9054 # (2) before a word containing "conftest.", or (3) at the end.
9055 # Note that $ac_compile itself does not contain backslashes and begins
9056 # with a dollar sign (not a hyphen), so the echo should work correctly.
9057 # The option is referenced via a variable to avoid confusing sed.
9058 lt_compile=`echo "$ac_compile" | $SED \
9059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9061 -e 's:$: $lt_compiler_flag:'`
bf9bfd26 9062 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
042acc47
WP
9063 (eval "$lt_compile" 2>conftest.err)
9064 ac_status=$?
9065 cat conftest.err >&5
bf9bfd26 9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
042acc47
WP
9067 if (exit $ac_status) && test -s "$ac_outfile"; then
9068 # The compiler can only warn and ignore the option if not recognized
9069 # So say no if there are warnings other than the usual output.
bf9bfd26 9070 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
042acc47
WP
9071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9072 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9073 lt_cv_prog_compiler_rtti_exceptions=yes
9074 fi
9075 fi
9076 $RM conftest*
b57f37fb 9077
042acc47
WP
9078fi
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9080$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
b57f37fb 9081
042acc47
WP
9082if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9083 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9084else
9085 :
b57f37fb
WP
9086fi
9087
042acc47 9088fi
b57f37fb 9089
042acc47
WP
9090
9091
9092
9093
9094
9095 lt_prog_compiler_wl=
9096lt_prog_compiler_pic=
9097lt_prog_compiler_static=
9098
042acc47
WP
9099
9100 if test "$GCC" = yes; then
9101 lt_prog_compiler_wl='-Wl,'
9102 lt_prog_compiler_static='-static'
9103
9104 case $host_os in
9105 aix*)
9106 # All AIX code is PIC.
9107 if test "$host_cpu" = ia64; then
9108 # AIX 5 now supports IA64 processor
9109 lt_prog_compiler_static='-Bstatic'
b57f37fb
WP
9110 fi
9111 ;;
9112
9113 amigaos*)
042acc47
WP
9114 case $host_cpu in
9115 powerpc)
9116 # see comment about AmigaOS4 .so support
9117 lt_prog_compiler_pic='-fPIC'
9118 ;;
9119 m68k)
9120 # FIXME: we need at least 68020 code to build shared libraries, but
9121 # adding the `-m68020' flag to GCC prevents building anything better,
9122 # like `-m68040'.
9123 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9124 ;;
9125 esac
b57f37fb
WP
9126 ;;
9127
042acc47
WP
9128 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9129 # PIC is the default for these OSes.
b57f37fb
WP
9130 ;;
9131
042acc47
WP
9132 mingw* | cygwin* | pw32* | os2* | cegcc*)
9133 # This hack is so that the source file can tell whether it is being
9134 # built for inclusion in a dll (and should export symbols for example).
9135 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9136 # (--disable-auto-import) libraries
9137 lt_prog_compiler_pic='-DDLL_EXPORT'
b57f37fb
WP
9138 ;;
9139
9140 darwin* | rhapsody*)
042acc47
WP
9141 # PIC is the default on this platform
9142 # Common symbols not allowed in MH_DYLIB files
9143 lt_prog_compiler_pic='-fno-common'
b57f37fb
WP
9144 ;;
9145
bf9bfd26
JH
9146 haiku*)
9147 # PIC is the default for Haiku.
9148 # The "-static" flag exists, but is broken.
9149 lt_prog_compiler_static=
9150 ;;
9151
042acc47
WP
9152 hpux*)
9153 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9154 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9155 # sets the default TLS model and affects inlining.
9156 case $host_cpu in
9157 hppa*64*)
9158 # +Z the default
9159 ;;
9160 *)
9161 lt_prog_compiler_pic='-fPIC'
9162 ;;
9163 esac
b57f37fb
WP
9164 ;;
9165
042acc47
WP
9166 interix[3-9]*)
9167 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9168 # Instead, we relocate shared libraries at runtime.
b57f37fb
WP
9169 ;;
9170
042acc47
WP
9171 msdosdjgpp*)
9172 # Just because we use GCC doesn't mean we suddenly get shared libraries
9173 # on systems that don't support them.
9174 lt_prog_compiler_can_build_shared=no
9175 enable_shared=no
b57f37fb
WP
9176 ;;
9177
042acc47
WP
9178 *nto* | *qnx*)
9179 # QNX uses GNU C++, but need to define -shared option too, otherwise
9180 # it will coredump.
9181 lt_prog_compiler_pic='-fPIC -shared'
b57f37fb
WP
9182 ;;
9183
042acc47
WP
9184 sysv4*MP*)
9185 if test -d /usr/nec; then
9186 lt_prog_compiler_pic=-Kconform_pic
9187 fi
b57f37fb
WP
9188 ;;
9189
042acc47
WP
9190 *)
9191 lt_prog_compiler_pic='-fPIC'
9192 ;;
9193 esac
bf9bfd26
JH
9194
9195 case $cc_basename in
9196 nvcc*) # Cuda Compiler Driver 2.2
9197 lt_prog_compiler_wl='-Xlinker '
9198 lt_prog_compiler_pic='-Xcompiler -fPIC'
9199 ;;
9200 esac
042acc47
WP
9201 else
9202 # PORTME Check for flag to pass linker flags through the system compiler.
9203 case $host_os in
9204 aix*)
9205 lt_prog_compiler_wl='-Wl,'
9206 if test "$host_cpu" = ia64; then
9207 # AIX 5 now supports IA64 processor
9208 lt_prog_compiler_static='-Bstatic'
b57f37fb 9209 else
042acc47 9210 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
b57f37fb 9211 fi
b57f37fb
WP
9212 ;;
9213
042acc47
WP
9214 mingw* | cygwin* | pw32* | os2* | cegcc*)
9215 # This hack is so that the source file can tell whether it is being
9216 # built for inclusion in a dll (and should export symbols for example).
9217 lt_prog_compiler_pic='-DDLL_EXPORT'
9218 ;;
b57f37fb 9219
042acc47
WP
9220 hpux9* | hpux10* | hpux11*)
9221 lt_prog_compiler_wl='-Wl,'
9222 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9223 # not for PA HP-UX.
9224 case $host_cpu in
9225 hppa*64*|ia64*)
9226 # +Z the default
9227 ;;
9228 *)
9229 lt_prog_compiler_pic='+Z'
9230 ;;
9231 esac
9232 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9233 lt_prog_compiler_static='${wl}-a ${wl}archive'
9234 ;;
b57f37fb 9235
042acc47
WP
9236 irix5* | irix6* | nonstopux*)
9237 lt_prog_compiler_wl='-Wl,'
9238 # PIC (with -KPIC) is the default.
9239 lt_prog_compiler_static='-non_shared'
b57f37fb
WP
9240 ;;
9241
bf9bfd26 9242 linux* | k*bsd*-gnu | kopensolaris*-gnu)
042acc47
WP
9243 case $cc_basename in
9244 # old Intel for x86_64 which still supported -KPIC.
9245 ecc*)
9246 lt_prog_compiler_wl='-Wl,'
9247 lt_prog_compiler_pic='-KPIC'
9248 lt_prog_compiler_static='-static'
9249 ;;
9250 # icc used to be incompatible with GCC.
9251 # ICC 10 doesn't accept -KPIC any more.
9252 icc* | ifort*)
9253 lt_prog_compiler_wl='-Wl,'
9254 lt_prog_compiler_pic='-fPIC'
9255 lt_prog_compiler_static='-static'
9256 ;;
9257 # Lahey Fortran 8.1.
9258 lf95*)
9259 lt_prog_compiler_wl='-Wl,'
9260 lt_prog_compiler_pic='--shared'
9261 lt_prog_compiler_static='--static'
9262 ;;
bf9bfd26
JH
9263 nagfor*)
9264 # NAG Fortran compiler
9265 lt_prog_compiler_wl='-Wl,-Wl,,'
9266 lt_prog_compiler_pic='-PIC'
9267 lt_prog_compiler_static='-Bstatic'
9268 ;;
9269 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
042acc47
WP
9270 # Portland Group compilers (*not* the Pentium gcc compiler,
9271 # which looks to be a dead project)
9272 lt_prog_compiler_wl='-Wl,'
9273 lt_prog_compiler_pic='-fpic'
9274 lt_prog_compiler_static='-Bstatic'
9275 ;;
9276 ccc*)
9277 lt_prog_compiler_wl='-Wl,'
9278 # All Alpha code is PIC.
9279 lt_prog_compiler_static='-non_shared'
9280 ;;
bf9bfd26
JH
9281 xl* | bgxl* | bgf* | mpixl*)
9282 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
042acc47
WP
9283 lt_prog_compiler_wl='-Wl,'
9284 lt_prog_compiler_pic='-qpic'
9285 lt_prog_compiler_static='-qstaticlink'
9286 ;;
9287 *)
9288 case `$CC -V 2>&1 | sed 5q` in
bf9bfd26
JH
9289 *Sun\ F* | *Sun*Fortran*)
9290 # Sun Fortran 8.3 passes all unrecognized flags to the linker
042acc47
WP
9291 lt_prog_compiler_pic='-KPIC'
9292 lt_prog_compiler_static='-Bstatic'
bf9bfd26 9293 lt_prog_compiler_wl=''
b57f37fb 9294 ;;
bf9bfd26
JH
9295 *Sun\ C*)
9296 # Sun C 5.9
042acc47
WP
9297 lt_prog_compiler_pic='-KPIC'
9298 lt_prog_compiler_static='-Bstatic'
bf9bfd26 9299 lt_prog_compiler_wl='-Wl,'
b57f37fb
WP
9300 ;;
9301 esac
042acc47
WP
9302 ;;
9303 esac
9304 ;;
b57f37fb 9305
042acc47
WP
9306 newsos6)
9307 lt_prog_compiler_pic='-KPIC'
9308 lt_prog_compiler_static='-Bstatic'
9309 ;;
b57f37fb 9310
042acc47
WP
9311 *nto* | *qnx*)
9312 # QNX uses GNU C++, but need to define -shared option too, otherwise
9313 # it will coredump.
9314 lt_prog_compiler_pic='-fPIC -shared'
b57f37fb
WP
9315 ;;
9316
042acc47
WP
9317 osf3* | osf4* | osf5*)
9318 lt_prog_compiler_wl='-Wl,'
9319 # All OSF/1 code is PIC.
9320 lt_prog_compiler_static='-non_shared'
b57f37fb
WP
9321 ;;
9322
042acc47
WP
9323 rdos*)
9324 lt_prog_compiler_static='-non_shared'
b57f37fb
WP
9325 ;;
9326
042acc47
WP
9327 solaris*)
9328 lt_prog_compiler_pic='-KPIC'
9329 lt_prog_compiler_static='-Bstatic'
9330 case $cc_basename in
bf9bfd26 9331 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
042acc47
WP
9332 lt_prog_compiler_wl='-Qoption ld ';;
9333 *)
9334 lt_prog_compiler_wl='-Wl,';;
9335 esac
b57f37fb
WP
9336 ;;
9337
042acc47
WP
9338 sunos4*)
9339 lt_prog_compiler_wl='-Qoption ld '
9340 lt_prog_compiler_pic='-PIC'
9341 lt_prog_compiler_static='-Bstatic'
b57f37fb
WP
9342 ;;
9343
042acc47
WP
9344 sysv4 | sysv4.2uw2* | sysv4.3*)
9345 lt_prog_compiler_wl='-Wl,'
9346 lt_prog_compiler_pic='-KPIC'
9347 lt_prog_compiler_static='-Bstatic'
b57f37fb
WP
9348 ;;
9349
042acc47
WP
9350 sysv4*MP*)
9351 if test -d /usr/nec ;then
9352 lt_prog_compiler_pic='-Kconform_pic'
9353 lt_prog_compiler_static='-Bstatic'
b57f37fb 9354 fi
b57f37fb
WP
9355 ;;
9356
042acc47
WP
9357 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9358 lt_prog_compiler_wl='-Wl,'
9359 lt_prog_compiler_pic='-KPIC'
9360 lt_prog_compiler_static='-Bstatic'
9361 ;;
b57f37fb 9362
042acc47
WP
9363 unicos*)
9364 lt_prog_compiler_wl='-Wl,'
9365 lt_prog_compiler_can_build_shared=no
b57f37fb
WP
9366 ;;
9367
042acc47
WP
9368 uts4*)
9369 lt_prog_compiler_pic='-pic'
9370 lt_prog_compiler_static='-Bstatic'
b57f37fb
WP
9371 ;;
9372
042acc47
WP
9373 *)
9374 lt_prog_compiler_can_build_shared=no
b57f37fb 9375 ;;
042acc47
WP
9376 esac
9377 fi
b57f37fb 9378
042acc47
WP
9379case $host_os in
9380 # For platforms which do not support PIC, -DPIC is meaningless:
9381 *djgpp*)
9382 lt_prog_compiler_pic=
9383 ;;
9384 *)
9385 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9386 ;;
9387esac
b57f37fb 9388
bf9bfd26
JH
9389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9390$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9391if ${lt_cv_prog_compiler_pic+:} false; then :
9392 $as_echo_n "(cached) " >&6
9393else
9394 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9395fi
9396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9397$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9398lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
b57f37fb 9399
042acc47
WP
9400#
9401# Check to make sure the PIC flag actually works.
9402#
9403if test -n "$lt_prog_compiler_pic"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9405$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12e39525 9406if ${lt_cv_prog_compiler_pic_works+:} false; then :
042acc47
WP
9407 $as_echo_n "(cached) " >&6
9408else
9409 lt_cv_prog_compiler_pic_works=no
9410 ac_outfile=conftest.$ac_objext
9411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9412 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9413 # Insert the option either (1) after the last *FLAGS variable, or
9414 # (2) before a word containing "conftest.", or (3) at the end.
9415 # Note that $ac_compile itself does not contain backslashes and begins
9416 # with a dollar sign (not a hyphen), so the echo should work correctly.
9417 # The option is referenced via a variable to avoid confusing sed.
9418 lt_compile=`echo "$ac_compile" | $SED \
9419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9421 -e 's:$: $lt_compiler_flag:'`
bf9bfd26 9422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
042acc47
WP
9423 (eval "$lt_compile" 2>conftest.err)
9424 ac_status=$?
9425 cat conftest.err >&5
bf9bfd26 9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
042acc47
WP
9427 if (exit $ac_status) && test -s "$ac_outfile"; then
9428 # The compiler can only warn and ignore the option if not recognized
9429 # So say no if there are warnings other than the usual output.
bf9bfd26 9430 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
042acc47
WP
9431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9432 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9433 lt_cv_prog_compiler_pic_works=yes
9434 fi
9435 fi
9436 $RM conftest*
9437
9438fi
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9440$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9441
9442if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9443 case $lt_prog_compiler_pic in
9444 "" | " "*) ;;
9445 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9446 esac
9447else
9448 lt_prog_compiler_pic=
9449 lt_prog_compiler_can_build_shared=no
9450fi
9451
9452fi
9453
9454
b57f37fb 9455
b57f37fb 9456
b57f37fb 9457
b57f37fb 9458
bf9bfd26
JH
9459
9460
9461
9462
9463
b57f37fb 9464#
042acc47 9465# Check to make sure the static flag actually works.
b57f37fb 9466#
042acc47
WP
9467wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9469$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12e39525 9470if ${lt_cv_prog_compiler_static_works+:} false; then :
042acc47
WP
9471 $as_echo_n "(cached) " >&6
9472else
9473 lt_cv_prog_compiler_static_works=no
9474 save_LDFLAGS="$LDFLAGS"
9475 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9476 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9477 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9478 # The linker can only warn and ignore the option if not recognized
9479 # So say no if there are warnings
9480 if test -s conftest.err; then
9481 # Append any errors to the config.log.
9482 cat conftest.err 1>&5
bf9bfd26 9483 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
042acc47
WP
9484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9485 if diff conftest.exp conftest.er2 >/dev/null; then
9486 lt_cv_prog_compiler_static_works=yes
9487 fi
9488 else
9489 lt_cv_prog_compiler_static_works=yes
9490 fi
9491 fi
9492 $RM -r conftest*
9493 LDFLAGS="$save_LDFLAGS"
b57f37fb 9494
042acc47
WP
9495fi
9496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9497$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
b57f37fb 9498
042acc47
WP
9499if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9500 :
9501else
9502 lt_prog_compiler_static=
9503fi
b57f37fb 9504
b57f37fb 9505
b57f37fb 9506
b57f37fb 9507
b57f37fb 9508
b57f37fb 9509
b57f37fb 9510
042acc47
WP
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9512$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12e39525 9513if ${lt_cv_prog_compiler_c_o+:} false; then :
042acc47
WP
9514 $as_echo_n "(cached) " >&6
9515else
9516 lt_cv_prog_compiler_c_o=no
9517 $RM -r conftest 2>/dev/null
9518 mkdir conftest
9519 cd conftest
9520 mkdir out
9521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b57f37fb 9522
042acc47
WP
9523 lt_compiler_flag="-o out/conftest2.$ac_objext"
9524 # Insert the option either (1) after the last *FLAGS variable, or
9525 # (2) before a word containing "conftest.", or (3) at the end.
9526 # Note that $ac_compile itself does not contain backslashes and begins
9527 # with a dollar sign (not a hyphen), so the echo should work correctly.
9528 lt_compile=`echo "$ac_compile" | $SED \
9529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9531 -e 's:$: $lt_compiler_flag:'`
bf9bfd26 9532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
042acc47
WP
9533 (eval "$lt_compile" 2>out/conftest.err)
9534 ac_status=$?
9535 cat out/conftest.err >&5
bf9bfd26 9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
042acc47
WP
9537 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9538 then
9539 # The compiler can only warn and ignore the option if not recognized
9540 # So say no if there are warnings
bf9bfd26 9541 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
042acc47
WP
9542 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9543 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9544 lt_cv_prog_compiler_c_o=yes
9545 fi
9546 fi
9547 chmod u+w . 2>&5
9548 $RM conftest*
9549 # SGI C++ compiler will create directory out/ii_files/ for
9550 # template instantiation
9551 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9552 $RM out/* && rmdir out
9553 cd ..
9554 $RM -r conftest
9555 $RM conftest*
b57f37fb 9556
042acc47
WP
9557fi
9558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9559$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
b57f37fb 9560
b57f37fb 9561
b57f37fb 9562
b57f37fb 9563
b57f37fb 9564
b57f37fb 9565
042acc47
WP
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9567$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12e39525 9568if ${lt_cv_prog_compiler_c_o+:} false; then :
042acc47
WP
9569 $as_echo_n "(cached) " >&6
9570else
9571 lt_cv_prog_compiler_c_o=no
9572 $RM -r conftest 2>/dev/null
9573 mkdir conftest
9574 cd conftest
9575 mkdir out
9576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b57f37fb 9577
042acc47
WP
9578 lt_compiler_flag="-o out/conftest2.$ac_objext"
9579 # Insert the option either (1) after the last *FLAGS variable, or
9580 # (2) before a word containing "conftest.", or (3) at the end.
9581 # Note that $ac_compile itself does not contain backslashes and begins
9582 # with a dollar sign (not a hyphen), so the echo should work correctly.
9583 lt_compile=`echo "$ac_compile" | $SED \
9584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9586 -e 's:$: $lt_compiler_flag:'`
bf9bfd26 9587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
042acc47
WP
9588 (eval "$lt_compile" 2>out/conftest.err)
9589 ac_status=$?
9590 cat out/conftest.err >&5
bf9bfd26 9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
042acc47
WP
9592 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9593 then
9594 # The compiler can only warn and ignore the option if not recognized
9595 # So say no if there are warnings
bf9bfd26 9596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
042acc47
WP
9597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9599 lt_cv_prog_compiler_c_o=yes
9600 fi
9601 fi
9602 chmod u+w . 2>&5
9603 $RM conftest*
9604 # SGI C++ compiler will create directory out/ii_files/ for
9605 # template instantiation
9606 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9607 $RM out/* && rmdir out
9608 cd ..
9609 $RM -r conftest
9610 $RM conftest*
b57f37fb 9611
042acc47
WP
9612fi
9613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9614$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9615
9616
9617
9618
9619hard_links="nottested"
9620if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9621 # do not overwrite the value of need_locks provided by the user
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9623$as_echo_n "checking if we can lock with hard links... " >&6; }
9624 hard_links=yes
9625 $RM conftest*
9626 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9627 touch conftest.a
9628 ln conftest.a conftest.b 2>&5 || hard_links=no
9629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9631$as_echo "$hard_links" >&6; }
9632 if test "$hard_links" = no; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9634$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9635 need_locks=warn
9636 fi
9637else
9638 need_locks=no
9639fi
9640
9641
9642
9643
9644
9645
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9647$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9648
9649 runpath_var=
9650 allow_undefined_flag=
9651 always_export_symbols=no
9652 archive_cmds=
9653 archive_expsym_cmds=
9654 compiler_needs_object=no
9655 enable_shared_with_static_runtimes=no
9656 export_dynamic_flag_spec=
9657 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9658 hardcode_automatic=no
9659 hardcode_direct=no
9660 hardcode_direct_absolute=no
9661 hardcode_libdir_flag_spec=
9662 hardcode_libdir_flag_spec_ld=
9663 hardcode_libdir_separator=
9664 hardcode_minus_L=no
9665 hardcode_shlibpath_var=unsupported
9666 inherit_rpath=no
9667 link_all_deplibs=unknown
9668 module_cmds=
9669 module_expsym_cmds=
9670 old_archive_from_new_cmds=
9671 old_archive_from_expsyms_cmds=
9672 thread_safe_flag_spec=
9673 whole_archive_flag_spec=
9674 # include_expsyms should be a list of space-separated symbols to be *always*
9675 # included in the symbol list
9676 include_expsyms=
9677 # exclude_expsyms can be an extended regexp of symbols to exclude
9678 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9679 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9680 # as well as any symbol that contains `d'.
9681 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9682 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9683 # platforms (ab)use it in PIC code, but their linkers get confused if
9684 # the symbol is explicitly referenced. Since portable code cannot
9685 # rely on this symbol name, it's probably fine to never include it in
9686 # preloaded symbol tables.
9687 # Exclude shared library initialization/finalization symbols.
9688 extract_expsyms_cmds=
b57f37fb 9689
b57f37fb 9690 case $host_os in
042acc47
WP
9691 cygwin* | mingw* | pw32* | cegcc*)
9692 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9693 # When not using gcc, we currently assume that we are using
9694 # Microsoft Visual C++.
9695 if test "$GCC" != yes; then
9696 with_gnu_ld=no
9697 fi
b57f37fb 9698 ;;
042acc47
WP
9699 interix*)
9700 # we just hope/assume this is gcc and not c89 (= MSVC++)
9701 with_gnu_ld=yes
b57f37fb 9702 ;;
042acc47
WP
9703 openbsd*)
9704 with_gnu_ld=no
b57f37fb 9705 ;;
b57f37fb 9706 esac
b57f37fb 9707
042acc47 9708 ld_shlibs=yes
bf9bfd26
JH
9709
9710 # On some targets, GNU ld is compatible enough with the native linker
9711 # that we're better off using the native interface for both.
9712 lt_use_gnu_ld_interface=no
042acc47 9713 if test "$with_gnu_ld" = yes; then
bf9bfd26
JH
9714 case $host_os in
9715 aix*)
9716 # The AIX port of GNU ld has always aspired to compatibility
9717 # with the native linker. However, as the warning in the GNU ld
9718 # block says, versions before 2.19.5* couldn't really create working
9719 # shared libraries, regardless of the interface used.
9720 case `$LD -v 2>&1` in
9721 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9722 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9723 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9724 *)
9725 lt_use_gnu_ld_interface=yes
9726 ;;
9727 esac
9728 ;;
9729 *)
9730 lt_use_gnu_ld_interface=yes
9731 ;;
9732 esac
9733 fi
9734
9735 if test "$lt_use_gnu_ld_interface" = yes; then
042acc47
WP
9736 # If archive_cmds runs LD, not CC, wlarc should be empty
9737 wlarc='${wl}'
b57f37fb 9738
042acc47
WP
9739 # Set some defaults for GNU ld with shared library support. These
9740 # are reset later if shared libraries are not supported. Putting them
9741 # here allows them to be overridden if necessary.
9742 runpath_var=LD_RUN_PATH
9743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9744 export_dynamic_flag_spec='${wl}--export-dynamic'
9745 # ancient GNU ld didn't support --whole-archive et. al.
9746 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9747 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
b57f37fb 9748 else
042acc47 9749 whole_archive_flag_spec=
b57f37fb 9750 fi
042acc47
WP
9751 supports_anon_versioning=no
9752 case `$LD -v 2>&1` in
bf9bfd26 9753 *GNU\ gold*) supports_anon_versioning=yes ;;
042acc47
WP
9754 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9755 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9756 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9757 *\ 2.11.*) ;; # other 2.11 versions
9758 *) supports_anon_versioning=yes ;;
b57f37fb 9759 esac
b57f37fb 9760
042acc47
WP
9761 # See if GNU ld supports shared libraries.
9762 case $host_os in
9763 aix[3-9]*)
9764 # On AIX/PPC, the GNU linker is very broken
9765 if test "$host_cpu" != ia64; then
9766 ld_shlibs=no
9767 cat <<_LT_EOF 1>&2
b57f37fb 9768
bf9bfd26 9769*** Warning: the GNU linker, at least up to release 2.19, is reported
042acc47
WP
9770*** to be unable to reliably create shared libraries on AIX.
9771*** Therefore, libtool is disabling shared libraries support. If you
bf9bfd26
JH
9772*** really care for shared libraries, you may want to install binutils
9773*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9774*** You will then need to restart the configuration process.
b57f37fb 9775
042acc47
WP
9776_LT_EOF
9777 fi
9778 ;;
b57f37fb
WP
9779
9780 amigaos*)
042acc47
WP
9781 case $host_cpu in
9782 powerpc)
9783 # see comment about AmigaOS4 .so support
9784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9785 archive_expsym_cmds=''
9786 ;;
9787 m68k)
9788 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)'
9789 hardcode_libdir_flag_spec='-L$libdir'
9790 hardcode_minus_L=yes
9791 ;;
9792 esac
b57f37fb
WP
9793 ;;
9794
9795 beos*)
042acc47
WP
9796 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9797 allow_undefined_flag=unsupported
b57f37fb
WP
9798 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9799 # support --undefined. This deserves some investigation. FIXME
042acc47 9800 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
b57f37fb 9801 else
042acc47 9802 ld_shlibs=no
b57f37fb
WP
9803 fi
9804 ;;
9805
042acc47
WP
9806 cygwin* | mingw* | pw32* | cegcc*)
9807 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
b57f37fb 9808 # as there is no search path for DLLs.
042acc47 9809 hardcode_libdir_flag_spec='-L$libdir'
bf9bfd26 9810 export_dynamic_flag_spec='${wl}--export-all-symbols'
042acc47
WP
9811 allow_undefined_flag=unsupported
9812 always_export_symbols=no
9813 enable_shared_with_static_runtimes=yes
bf9bfd26
JH
9814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9815 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
042acc47
WP
9816
9817 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
b57f37fb
WP
9819 # If the export-symbols file already is a .def file (1st line
9820 # is EXPORTS), use it as is; otherwise, prepend...
042acc47 9821 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
b57f37fb
WP
9822 cp $export_symbols $output_objdir/$soname.def;
9823 else
9824 echo EXPORTS > $output_objdir/$soname.def;
9825 cat $export_symbols >> $output_objdir/$soname.def;
9826 fi~
9827 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9828 else
042acc47 9829 ld_shlibs=no
b57f37fb
WP
9830 fi
9831 ;;
9832
bf9bfd26
JH
9833 haiku*)
9834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9835 link_all_deplibs=yes
9836 ;;
9837
b57f37fb 9838 interix[3-9]*)
042acc47
WP
9839 hardcode_direct=no
9840 hardcode_shlibpath_var=no
9841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9842 export_dynamic_flag_spec='${wl}-E'
b57f37fb
WP
9843 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9844 # Instead, shared libraries are loaded at an image base (0x10000000 by
9845 # default) and relocated if they conflict, which is a slow very memory
9846 # consuming and fragmenting process. To avoid this, we pick a random,
9847 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9848 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
042acc47
WP
9849 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9850 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'
b57f37fb
WP
9851 ;;
9852
bf9bfd26 9853 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
042acc47
WP
9854 tmp_diet=no
9855 if test "$host_os" = linux-dietlibc; then
9856 case $cc_basename in
9857 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9858 esac
9859 fi
9860 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9861 && test "$tmp_diet" = no
9862 then
bf9bfd26 9863 tmp_addflag=' $pic_flag'
042acc47 9864 tmp_sharedflag='-shared'
b57f37fb 9865 case $cc_basename,$host_cpu in
042acc47 9866 pgcc*) # Portland Group C compiler
bf9bfd26 9867 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
b57f37fb
WP
9868 tmp_addflag=' $pic_flag'
9869 ;;
bf9bfd26
JH
9870 pgf77* | pgf90* | pgf95* | pgfortran*)
9871 # Portland Group f77 and f90 compilers
9872 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
b57f37fb 9873 tmp_addflag=' $pic_flag -Mnomain' ;;
042acc47 9874 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
b57f37fb
WP
9875 tmp_addflag=' -i_dynamic' ;;
9876 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9877 tmp_addflag=' -i_dynamic -nofor_main' ;;
9878 ifc* | ifort*) # Intel Fortran compiler
9879 tmp_addflag=' -nofor_main' ;;
042acc47
WP
9880 lf95*) # Lahey Fortran 8.1
9881 whole_archive_flag_spec=
9882 tmp_sharedflag='--shared' ;;
bf9bfd26 9883 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
042acc47
WP
9884 tmp_sharedflag='-qmkshrobj'
9885 tmp_addflag= ;;
bf9bfd26
JH
9886 nvcc*) # Cuda Compiler Driver 2.2
9887 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9888 compiler_needs_object=yes
9889 ;;
b57f37fb
WP
9890 esac
9891 case `$CC -V 2>&1 | sed 5q` in
9892 *Sun\ C*) # Sun C 5.9
bf9bfd26 9893 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
042acc47 9894 compiler_needs_object=yes
b57f37fb
WP
9895 tmp_sharedflag='-G' ;;
9896 *Sun\ F*) # Sun Fortran 8.3
9897 tmp_sharedflag='-G' ;;
b57f37fb 9898 esac
042acc47 9899 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
b57f37fb 9900
042acc47
WP
9901 if test "x$supports_anon_versioning" = xyes; then
9902 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9903 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9904 echo "local: *; };" >> $output_objdir/$libname.ver~
9905 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9906 fi
9907
9908 case $cc_basename in
bf9bfd26 9909 xlf* | bgf* | bgxlf* | mpixlf*)
042acc47
WP
9910 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9911 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9912 hardcode_libdir_flag_spec=
9913 hardcode_libdir_flag_spec_ld='-rpath $libdir'
bf9bfd26 9914 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
042acc47
WP
9915 if test "x$supports_anon_versioning" = xyes; then
9916 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9917 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9918 echo "local: *; };" >> $output_objdir/$libname.ver~
bf9bfd26 9919 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
042acc47
WP
9920 fi
9921 ;;
9922 esac
b57f37fb 9923 else
042acc47 9924 ld_shlibs=no
b57f37fb
WP
9925 fi
9926 ;;
9927
1800d973 9928 netbsd*)
042acc47
WP
9929 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9930 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
b57f37fb
WP
9931 wlarc=
9932 else
bf9bfd26
JH
9933 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9934 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
b57f37fb
WP
9935 fi
9936 ;;
9937
9938 solaris*)
042acc47
WP
9939 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9940 ld_shlibs=no
9941 cat <<_LT_EOF 1>&2
b57f37fb
WP
9942
9943*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9944*** create shared libraries on Solaris systems. Therefore, libtool
9945*** is disabling shared libraries support. We urge you to upgrade GNU
9946*** binutils to release 2.9.1 or newer. Another option is to modify
9947*** your PATH or compiler configuration so that the native linker is
9948*** used, and then restart.
9949
042acc47
WP
9950_LT_EOF
9951 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
bf9bfd26
JH
9952 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9953 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
b57f37fb 9954 else
042acc47 9955 ld_shlibs=no
b57f37fb
WP
9956 fi
9957 ;;
9958
9959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9960 case `$LD -v 2>&1` in
9961 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
042acc47 9962 ld_shlibs=no
b57f37fb
WP
9963 cat <<_LT_EOF 1>&2
9964
9965*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9966*** reliably create shared libraries on SCO systems. Therefore, libtool
9967*** is disabling shared libraries support. We urge you to upgrade GNU
9968*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9969*** your PATH or compiler configuration so that the native linker is
9970*** used, and then restart.
9971
9972_LT_EOF
9973 ;;
9974 *)
042acc47
WP
9975 # For security reasons, it is highly recommended that you always
9976 # use absolute paths for naming shared libraries, and exclude the
9977 # DT_RUNPATH tag from executables and libraries. But doing so
9978 # requires that you compile everything twice, which is a pain.
9979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
b57f37fb 9983 else
042acc47 9984 ld_shlibs=no
b57f37fb
WP
9985 fi
9986 ;;
9987 esac
9988 ;;
9989
9990 sunos4*)
042acc47 9991 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
b57f37fb 9992 wlarc=
042acc47
WP
9993 hardcode_direct=yes
9994 hardcode_shlibpath_var=no
b57f37fb
WP
9995 ;;
9996
9997 *)
042acc47 9998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
bf9bfd26
JH
9999 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10000 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
b57f37fb 10001 else
042acc47 10002 ld_shlibs=no
b57f37fb
WP
10003 fi
10004 ;;
10005 esac
10006
042acc47 10007 if test "$ld_shlibs" = no; then
b57f37fb 10008 runpath_var=
042acc47
WP
10009 hardcode_libdir_flag_spec=
10010 export_dynamic_flag_spec=
10011 whole_archive_flag_spec=
b57f37fb
WP
10012 fi
10013 else
10014 # PORTME fill in a description of your system's linker (not GNU ld)
10015 case $host_os in
10016 aix3*)
042acc47
WP
10017 allow_undefined_flag=unsupported
10018 always_export_symbols=yes
10019 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'
b57f37fb
WP
10020 # Note: this linker hardcodes the directories in LIBPATH if there
10021 # are no directories specified by -L.
042acc47 10022 hardcode_minus_L=yes
b57f37fb
WP
10023 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10024 # Neither direct hardcoding nor static linking is supported with a
10025 # broken collect2.
042acc47 10026 hardcode_direct=unsupported
b57f37fb
WP
10027 fi
10028 ;;
10029
56efe974 10030 aix[4-9]*)
b57f37fb
WP
10031 if test "$host_cpu" = ia64; then
10032 # On IA64, the linker does run time linking by default, so we don't
10033 # have to do anything special.
10034 aix_use_runtimelinking=no
10035 exp_sym_flag='-Bexport'
10036 no_entry_flag=""
10037 else
10038 # If we're using GNU nm, then we don't want the "-C" option.
10039 # -C means demangle to AIX nm, but means don't demangle with GNU nm
bf9bfd26
JH
10040 # Also, AIX nm treats weak defined symbols like other global
10041 # defined symbols, whereas GNU nm marks them as "W".
042acc47 10042 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
bf9bfd26 10043 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
b57f37fb 10044 else
042acc47 10045 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'
b57f37fb
WP
10046 fi
10047 aix_use_runtimelinking=no
10048
10049 # Test if we are trying to use run time linking or normal
10050 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10051 # need to do runtime linking.
56efe974 10052 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb 10053 for ld_flag in $LDFLAGS; do
042acc47
WP
10054 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10055 aix_use_runtimelinking=yes
10056 break
10057 fi
b57f37fb
WP
10058 done
10059 ;;
10060 esac
10061
10062 exp_sym_flag='-bexport'
10063 no_entry_flag='-bnoentry'
10064 fi
10065
10066 # When large executables or shared objects are built, AIX ld can
10067 # have problems creating the table of contents. If linking a library
10068 # or program results in "error TOC overflow" add -mminimal-toc to
10069 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10070 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10071
042acc47
WP
10072 archive_cmds=''
10073 hardcode_direct=yes
10074 hardcode_direct_absolute=yes
10075 hardcode_libdir_separator=':'
10076 link_all_deplibs=yes
10077 file_list_spec='${wl}-f,'
b57f37fb
WP
10078
10079 if test "$GCC" = yes; then
10080 case $host_os in aix4.[012]|aix4.[012].*)
10081 # We only want to do this on AIX 4.2 and lower, the check
10082 # below for broken collect2 doesn't work under 4.3+
10083 collect2name=`${CC} -print-prog-name=collect2`
042acc47
WP
10084 if test -f "$collect2name" &&
10085 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
b57f37fb 10086 then
042acc47
WP
10087 # We have reworked collect2
10088 :
b57f37fb 10089 else
042acc47
WP
10090 # We have old collect2
10091 hardcode_direct=unsupported
10092 # It fails to find uninstalled libraries when the uninstalled
10093 # path is not listed in the libpath. Setting hardcode_minus_L
10094 # to unsupported forces relinking
10095 hardcode_minus_L=yes
10096 hardcode_libdir_flag_spec='-L$libdir'
10097 hardcode_libdir_separator=
b57f37fb
WP
10098 fi
10099 ;;
10100 esac
10101 shared_flag='-shared'
10102 if test "$aix_use_runtimelinking" = yes; then
10103 shared_flag="$shared_flag "'${wl}-G'
10104 fi
10105 else
10106 # not using gcc
10107 if test "$host_cpu" = ia64; then
042acc47
WP
10108 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10109 # chokes on -Wl,-G. The following line is correct:
b57f37fb
WP
10110 shared_flag='-G'
10111 else
10112 if test "$aix_use_runtimelinking" = yes; then
10113 shared_flag='${wl}-G'
10114 else
10115 shared_flag='${wl}-bM:SRE'
10116 fi
10117 fi
10118 fi
10119
042acc47 10120 export_dynamic_flag_spec='${wl}-bexpall'
b57f37fb
WP
10121 # It seems that -bexpall does not export symbols beginning with
10122 # underscore (_), so it is better to generate a list of symbols to export.
042acc47 10123 always_export_symbols=yes
b57f37fb
WP
10124 if test "$aix_use_runtimelinking" = yes; then
10125 # Warning - without using the other runtime loading flags (-brtl),
10126 # -berok will link without error, but may produce a broken library.
042acc47
WP
10127 allow_undefined_flag='-berok'
10128 # Determine the default libpath from the value encoded in an
10129 # empty executable.
bf9bfd26
JH
10130 if test "${lt_cv_aix_libpath+set}" = set; then
10131 aix_libpath=$lt_cv_aix_libpath
10132else
10133 if ${lt_cv_aix_libpath_+:} false; then :
10134 $as_echo_n "(cached) " >&6
10135else
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
10137/* end confdefs.h. */
10138
10139int
10140main ()
10141{
10142
10143 ;
10144 return 0;
10145}
10146_ACEOF
042acc47 10147if ac_fn_c_try_link "$LINENO"; then :
b57f37fb 10148
bf9bfd26
JH
10149 lt_aix_libpath_sed='
10150 /Import File Strings/,/^$/ {
10151 /^0/ {
10152 s/^0 *\([^ ]*\) *$/\1/
10153 p
10154 }
10155 }'
10156 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10157 # Check for a 64-bit object if we didn't find anything.
10158 if test -z "$lt_cv_aix_libpath_"; then
10159 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10160 fi
b57f37fb 10161fi
042acc47
WP
10162rm -f core conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
bf9bfd26
JH
10164 if test -z "$lt_cv_aix_libpath_"; then
10165 lt_cv_aix_libpath_="/usr/lib:/lib"
10166 fi
10167
10168fi
10169
10170 aix_libpath=$lt_cv_aix_libpath_
10171fi
b57f37fb 10172
042acc47 10173 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
bf9bfd26 10174 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
042acc47 10175 else
b57f37fb 10176 if test "$host_cpu" = ia64; then
042acc47
WP
10177 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10178 allow_undefined_flag="-z nodefs"
10179 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"
b57f37fb 10180 else
042acc47
WP
10181 # Determine the default libpath from the value encoded in an
10182 # empty executable.
bf9bfd26
JH
10183 if test "${lt_cv_aix_libpath+set}" = set; then
10184 aix_libpath=$lt_cv_aix_libpath
10185else
10186 if ${lt_cv_aix_libpath_+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188else
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
10190/* end confdefs.h. */
10191
10192int
10193main ()
10194{
10195
10196 ;
10197 return 0;
10198}
10199_ACEOF
042acc47 10200if ac_fn_c_try_link "$LINENO"; then :
b57f37fb 10201
bf9bfd26
JH
10202 lt_aix_libpath_sed='
10203 /Import File Strings/,/^$/ {
10204 /^0/ {
10205 s/^0 *\([^ ]*\) *$/\1/
10206 p
10207 }
10208 }'
10209 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10210 # Check for a 64-bit object if we didn't find anything.
10211 if test -z "$lt_cv_aix_libpath_"; then
10212 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10213 fi
b57f37fb 10214fi
042acc47
WP
10215rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
bf9bfd26
JH
10217 if test -z "$lt_cv_aix_libpath_"; then
10218 lt_cv_aix_libpath_="/usr/lib:/lib"
10219 fi
10220
10221fi
10222
10223 aix_libpath=$lt_cv_aix_libpath_
10224fi
b57f37fb 10225
042acc47 10226 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
b57f37fb
WP
10227 # Warning - without using the other run time loading flags,
10228 # -berok will link without error, but may produce a broken library.
042acc47
WP
10229 no_undefined_flag=' ${wl}-bernotok'
10230 allow_undefined_flag=' ${wl}-berok'
bf9bfd26
JH
10231 if test "$with_gnu_ld" = yes; then
10232 # We only use this code for GNU lds that support --whole-archive.
10233 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10234 else
10235 # Exported symbols can be pulled into shared objects from archives
10236 whole_archive_flag_spec='$convenience'
10237 fi
042acc47 10238 archive_cmds_need_lc=yes
b57f37fb 10239 # This is similar to how AIX traditionally builds its shared libraries.
042acc47 10240 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'
b57f37fb
WP
10241 fi
10242 fi
10243 ;;
10244
10245 amigaos*)
042acc47
WP
10246 case $host_cpu in
10247 powerpc)
10248 # see comment about AmigaOS4 .so support
10249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10250 archive_expsym_cmds=''
10251 ;;
10252 m68k)
10253 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)'
10254 hardcode_libdir_flag_spec='-L$libdir'
10255 hardcode_minus_L=yes
10256 ;;
10257 esac
b57f37fb
WP
10258 ;;
10259
10260 bsdi[45]*)
042acc47 10261 export_dynamic_flag_spec=-rdynamic
b57f37fb
WP
10262 ;;
10263
042acc47 10264 cygwin* | mingw* | pw32* | cegcc*)
b57f37fb
WP
10265 # When not using gcc, we currently assume that we are using
10266 # Microsoft Visual C++.
10267 # hardcode_libdir_flag_spec is actually meaningless, as there is
10268 # no search path for DLLs.
bf9bfd26
JH
10269 case $cc_basename in
10270 cl*)
10271 # Native MSVC
10272 hardcode_libdir_flag_spec=' '
10273 allow_undefined_flag=unsupported
10274 always_export_symbols=yes
10275 file_list_spec='@'
10276 # Tell ltmain to make .lib files, not .a files.
10277 libext=lib
10278 # Tell ltmain to make .dll files, not .so files.
10279 shrext_cmds=".dll"
10280 # FIXME: Setting linknames here is a bad hack.
10281 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10282 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10283 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10284 else
10285 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10286 fi~
10287 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10288 linknames='
10289 # The linker will not automatically build a static lib if we build a DLL.
10290 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10291 enable_shared_with_static_runtimes=yes
10292 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10293 # Don't use ranlib
10294 old_postinstall_cmds='chmod 644 $oldlib'
10295 postlink_cmds='lt_outputfile="@OUTPUT@"~
10296 lt_tool_outputfile="@TOOL_OUTPUT@"~
10297 case $lt_outputfile in
10298 *.exe|*.EXE) ;;
10299 *)
10300 lt_outputfile="$lt_outputfile.exe"
10301 lt_tool_outputfile="$lt_tool_outputfile.exe"
10302 ;;
10303 esac~
10304 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10305 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10306 $RM "$lt_outputfile.manifest";
10307 fi'
10308 ;;
10309 *)
10310 # Assume MSVC wrapper
10311 hardcode_libdir_flag_spec=' '
10312 allow_undefined_flag=unsupported
10313 # Tell ltmain to make .lib files, not .a files.
10314 libext=lib
10315 # Tell ltmain to make .dll files, not .so files.
10316 shrext_cmds=".dll"
10317 # FIXME: Setting linknames here is a bad hack.
10318 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10319 # The linker will automatically build a .lib file if we build a DLL.
10320 old_archive_from_new_cmds='true'
10321 # FIXME: Should let the user specify the lib program.
10322 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10323 enable_shared_with_static_runtimes=yes
10324 ;;
10325 esac
b57f37fb
WP
10326 ;;
10327
042acc47
WP
10328 darwin* | rhapsody*)
10329
10330
10331 archive_cmds_need_lc=no
10332 hardcode_direct=no
10333 hardcode_automatic=yes
10334 hardcode_shlibpath_var=unsupported
bf9bfd26
JH
10335 if test "$lt_cv_ld_force_load" = "yes"; then
10336 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10337 else
10338 whole_archive_flag_spec=''
10339 fi
042acc47
WP
10340 link_all_deplibs=yes
10341 allow_undefined_flag="$_lt_dar_allow_undefined"
10342 case $cc_basename in
10343 ifort*) _lt_dar_can_shared=yes ;;
10344 *) _lt_dar_can_shared=$GCC ;;
10345 esac
10346 if test "$_lt_dar_can_shared" = "yes"; then
bf9bfd26 10347 output_verbose_link_cmd=func_echo_all
042acc47
WP
10348 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10349 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10350 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}"
10351 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}"
10352
10353 else
10354 ld_shlibs=no
10355 fi
10356
b57f37fb
WP
10357 ;;
10358
10359 dgux*)
042acc47
WP
10360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361 hardcode_libdir_flag_spec='-L$libdir'
10362 hardcode_shlibpath_var=no
b57f37fb
WP
10363 ;;
10364
10365 freebsd1*)
042acc47 10366 ld_shlibs=no
b57f37fb
WP
10367 ;;
10368
10369 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10370 # support. Future versions do this automatically, but an explicit c++rt0.o
10371 # does not break anything, and helps significantly (at the cost of a little
10372 # extra space).
10373 freebsd2.2*)
042acc47
WP
10374 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10375 hardcode_libdir_flag_spec='-R$libdir'
10376 hardcode_direct=yes
10377 hardcode_shlibpath_var=no
b57f37fb
WP
10378 ;;
10379
10380 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10381 freebsd2*)
042acc47
WP
10382 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10383 hardcode_direct=yes
10384 hardcode_minus_L=yes
10385 hardcode_shlibpath_var=no
b57f37fb
WP
10386 ;;
10387
10388 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10389 freebsd* | dragonfly*)
bf9bfd26 10390 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
042acc47
WP
10391 hardcode_libdir_flag_spec='-R$libdir'
10392 hardcode_direct=yes
10393 hardcode_shlibpath_var=no
b57f37fb
WP
10394 ;;
10395
10396 hpux9*)
10397 if test "$GCC" = yes; then
bf9bfd26 10398 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
b57f37fb 10399 else
042acc47 10400 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'
b57f37fb 10401 fi
042acc47
WP
10402 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10403 hardcode_libdir_separator=:
10404 hardcode_direct=yes
b57f37fb
WP
10405
10406 # hardcode_minus_L: Not really in the search PATH,
10407 # but as the default location of the library.
042acc47
WP
10408 hardcode_minus_L=yes
10409 export_dynamic_flag_spec='${wl}-E'
b57f37fb
WP
10410 ;;
10411
10412 hpux10*)
bf9bfd26
JH
10413 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10414 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb 10415 else
042acc47 10416 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
b57f37fb
WP
10417 fi
10418 if test "$with_gnu_ld" = no; then
042acc47
WP
10419 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10420 hardcode_libdir_flag_spec_ld='+b $libdir'
10421 hardcode_libdir_separator=:
10422 hardcode_direct=yes
10423 hardcode_direct_absolute=yes
10424 export_dynamic_flag_spec='${wl}-E'
b57f37fb
WP
10425 # hardcode_minus_L: Not really in the search PATH,
10426 # but as the default location of the library.
042acc47 10427 hardcode_minus_L=yes
b57f37fb
WP
10428 fi
10429 ;;
10430
bf9bfd26
JH
10431 hpux11*)
10432 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10433 case $host_cpu in
10434 hppa*64*)
10435 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10436 ;;
10437 ia64*)
10438 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10439 ;;
10440 *)
10441 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10442 ;;
10443 esac
10444 else
10445 case $host_cpu in
10446 hppa*64*)
10447 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10448 ;;
10449 ia64*)
10450 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10451 ;;
10452 *)
10453
10454 # Older versions of the 11.00 compiler do not understand -b yet
10455 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10457$as_echo_n "checking if $CC understands -b... " >&6; }
10458if ${lt_cv_prog_compiler__b+:} false; then :
10459 $as_echo_n "(cached) " >&6
10460else
10461 lt_cv_prog_compiler__b=no
10462 save_LDFLAGS="$LDFLAGS"
10463 LDFLAGS="$LDFLAGS -b"
10464 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10465 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10466 # The linker can only warn and ignore the option if not recognized
10467 # So say no if there are warnings
10468 if test -s conftest.err; then
10469 # Append any errors to the config.log.
10470 cat conftest.err 1>&5
10471 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10473 if diff conftest.exp conftest.er2 >/dev/null; then
10474 lt_cv_prog_compiler__b=yes
10475 fi
10476 else
10477 lt_cv_prog_compiler__b=yes
10478 fi
10479 fi
10480 $RM -r conftest*
10481 LDFLAGS="$save_LDFLAGS"
10482
10483fi
10484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10485$as_echo "$lt_cv_prog_compiler__b" >&6; }
10486
10487if test x"$lt_cv_prog_compiler__b" = xyes; then
10488 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10489else
10490 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10491fi
10492
b57f37fb
WP
10493 ;;
10494 esac
10495 fi
10496 if test "$with_gnu_ld" = no; then
042acc47
WP
10497 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10498 hardcode_libdir_separator=:
b57f37fb
WP
10499
10500 case $host_cpu in
10501 hppa*64*|ia64*)
042acc47
WP
10502 hardcode_direct=no
10503 hardcode_shlibpath_var=no
b57f37fb
WP
10504 ;;
10505 *)
042acc47
WP
10506 hardcode_direct=yes
10507 hardcode_direct_absolute=yes
10508 export_dynamic_flag_spec='${wl}-E'
b57f37fb
WP
10509
10510 # hardcode_minus_L: Not really in the search PATH,
10511 # but as the default location of the library.
042acc47 10512 hardcode_minus_L=yes
b57f37fb
WP
10513 ;;
10514 esac
10515 fi
10516 ;;
10517
10518 irix5* | irix6* | nonstopux*)
10519 if test "$GCC" = yes; then
bf9bfd26 10520 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
042acc47
WP
10521 # Try to use the -exported_symbol ld option, if it does not
10522 # work, assume that -exports_file does not work either and
10523 # implicitly export all symbols.
bf9bfd26
JH
10524 # This should be the same for all languages, so no per-tag cache variable.
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10526$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10527if ${lt_cv_irix_exported_symbol+:} false; then :
10528 $as_echo_n "(cached) " >&6
10529else
10530 save_LDFLAGS="$LDFLAGS"
10531 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
042acc47 10533/* end confdefs.h. */
bf9bfd26 10534int foo (void) { return 0; }
042acc47
WP
10535_ACEOF
10536if ac_fn_c_try_link "$LINENO"; then :
bf9bfd26
JH
10537 lt_cv_irix_exported_symbol=yes
10538else
10539 lt_cv_irix_exported_symbol=no
042acc47
WP
10540fi
10541rm -f core conftest.err conftest.$ac_objext \
10542 conftest$ac_exeext conftest.$ac_ext
bf9bfd26
JH
10543 LDFLAGS="$save_LDFLAGS"
10544fi
10545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10546$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10547 if test "$lt_cv_irix_exported_symbol" = yes; then
10548 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10549 fi
b57f37fb 10550 else
bf9bfd26
JH
10551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10552 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
b57f37fb 10553 fi
042acc47
WP
10554 archive_cmds_need_lc='no'
10555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10556 hardcode_libdir_separator=:
10557 inherit_rpath=yes
10558 link_all_deplibs=yes
b57f37fb
WP
10559 ;;
10560
1800d973 10561 netbsd*)
042acc47
WP
10562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
b57f37fb 10564 else
042acc47 10565 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
b57f37fb 10566 fi
042acc47
WP
10567 hardcode_libdir_flag_spec='-R$libdir'
10568 hardcode_direct=yes
10569 hardcode_shlibpath_var=no
b57f37fb
WP
10570 ;;
10571
10572 newsos6)
042acc47
WP
10573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10574 hardcode_direct=yes
10575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10576 hardcode_libdir_separator=:
10577 hardcode_shlibpath_var=no
10578 ;;
10579
10580 *nto* | *qnx*)
b57f37fb
WP
10581 ;;
10582
10583 openbsd*)
10584 if test -f /usr/libexec/ld.so; then
042acc47
WP
10585 hardcode_direct=yes
10586 hardcode_shlibpath_var=no
10587 hardcode_direct_absolute=yes
10588 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10590 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10591 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10592 export_dynamic_flag_spec='${wl}-E'
b57f37fb
WP
10593 else
10594 case $host_os in
10595 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
042acc47
WP
10596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10597 hardcode_libdir_flag_spec='-R$libdir'
b57f37fb
WP
10598 ;;
10599 *)
042acc47
WP
10600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b57f37fb
WP
10602 ;;
10603 esac
042acc47 10604 fi
b57f37fb 10605 else
042acc47 10606 ld_shlibs=no
b57f37fb
WP
10607 fi
10608 ;;
10609
10610 os2*)
042acc47
WP
10611 hardcode_libdir_flag_spec='-L$libdir'
10612 hardcode_minus_L=yes
10613 allow_undefined_flag=unsupported
bf9bfd26 10614 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'
042acc47 10615 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
b57f37fb
WP
10616 ;;
10617
10618 osf3*)
10619 if test "$GCC" = yes; then
042acc47 10620 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
bf9bfd26 10621 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
b57f37fb 10622 else
042acc47 10623 allow_undefined_flag=' -expect_unresolved \*'
bf9bfd26 10624 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
b57f37fb 10625 fi
042acc47
WP
10626 archive_cmds_need_lc='no'
10627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10628 hardcode_libdir_separator=:
b57f37fb
WP
10629 ;;
10630
10631 osf4* | osf5*) # as osf3* with the addition of -msym flag
10632 if test "$GCC" = yes; then
042acc47 10633 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
bf9bfd26 10634 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
042acc47 10635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
b57f37fb 10636 else
042acc47 10637 allow_undefined_flag=' -expect_unresolved \*'
bf9bfd26 10638 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
042acc47 10639 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~
bf9bfd26 10640 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
b57f37fb
WP
10641
10642 # Both c and cxx compiler support -rpath directly
042acc47 10643 hardcode_libdir_flag_spec='-rpath $libdir'
b57f37fb 10644 fi
042acc47
WP
10645 archive_cmds_need_lc='no'
10646 hardcode_libdir_separator=:
b57f37fb
WP
10647 ;;
10648
10649 solaris*)
042acc47 10650 no_undefined_flag=' -z defs'
b57f37fb
WP
10651 if test "$GCC" = yes; then
10652 wlarc='${wl}'
bf9bfd26 10653 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
042acc47 10654 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
bf9bfd26 10655 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
b57f37fb 10656 else
042acc47
WP
10657 case `$CC -V 2>&1` in
10658 *"Compilers 5.0"*)
10659 wlarc=''
10660 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10661 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10662 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10663 ;;
10664 *)
10665 wlarc='${wl}'
10666 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10667 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10668 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10669 ;;
10670 esac
b57f37fb 10671 fi
042acc47
WP
10672 hardcode_libdir_flag_spec='-R$libdir'
10673 hardcode_shlibpath_var=no
b57f37fb
WP
10674 case $host_os in
10675 solaris2.[0-5] | solaris2.[0-5].*) ;;
10676 *)
10677 # The compiler driver will combine and reorder linker options,
10678 # but understands `-z linker_flag'. GCC discards it without `$wl',
10679 # but is careful enough not to reorder.
042acc47 10680 # Supported since Solaris 2.6 (maybe 2.5.1?)
b57f37fb 10681 if test "$GCC" = yes; then
042acc47 10682 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
b57f37fb 10683 else
042acc47 10684 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
b57f37fb
WP
10685 fi
10686 ;;
10687 esac
042acc47 10688 link_all_deplibs=yes
b57f37fb
WP
10689 ;;
10690
10691 sunos4*)
10692 if test "x$host_vendor" = xsequent; then
10693 # Use $CC to link under sequent, because it throws in some extra .o
10694 # files that make .init and .fini sections work.
042acc47 10695 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb 10696 else
042acc47 10697 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
b57f37fb 10698 fi
042acc47
WP
10699 hardcode_libdir_flag_spec='-L$libdir'
10700 hardcode_direct=yes
10701 hardcode_minus_L=yes
10702 hardcode_shlibpath_var=no
b57f37fb
WP
10703 ;;
10704
10705 sysv4)
10706 case $host_vendor in
10707 sni)
042acc47
WP
10708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10709 hardcode_direct=yes # is this really true???
b57f37fb
WP
10710 ;;
10711 siemens)
10712 ## LD is ld it makes a PLAMLIB
10713 ## CC just makes a GrossModule.
042acc47
WP
10714 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10715 reload_cmds='$CC -r -o $output$reload_objs'
10716 hardcode_direct=no
b57f37fb
WP
10717 ;;
10718 motorola)
042acc47
WP
10719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10720 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
b57f37fb
WP
10721 ;;
10722 esac
10723 runpath_var='LD_RUN_PATH'
042acc47 10724 hardcode_shlibpath_var=no
b57f37fb
WP
10725 ;;
10726
10727 sysv4.3*)
042acc47
WP
10728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10729 hardcode_shlibpath_var=no
10730 export_dynamic_flag_spec='-Bexport'
b57f37fb
WP
10731 ;;
10732
10733 sysv4*MP*)
10734 if test -d /usr/nec; then
042acc47
WP
10735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10736 hardcode_shlibpath_var=no
b57f37fb
WP
10737 runpath_var=LD_RUN_PATH
10738 hardcode_runpath_var=yes
042acc47 10739 ld_shlibs=yes
b57f37fb
WP
10740 fi
10741 ;;
10742
10743 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
042acc47
WP
10744 no_undefined_flag='${wl}-z,text'
10745 archive_cmds_need_lc=no
10746 hardcode_shlibpath_var=no
b57f37fb
WP
10747 runpath_var='LD_RUN_PATH'
10748
10749 if test "$GCC" = yes; then
042acc47
WP
10750 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10751 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb 10752 else
042acc47
WP
10753 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10754 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
10755 fi
10756 ;;
10757
10758 sysv5* | sco3.2v5* | sco5v6*)
10759 # Note: We can NOT use -z defs as we might desire, because we do not
10760 # link with -lc, and that would cause any symbols used from libc to
10761 # always be unresolved, which means just about no library would
10762 # ever link correctly. If we're not using GNU ld we use -z text
10763 # though, which does catch some bad symbols but isn't as heavy-handed
10764 # as -z defs.
042acc47
WP
10765 no_undefined_flag='${wl}-z,text'
10766 allow_undefined_flag='${wl}-z,nodefs'
10767 archive_cmds_need_lc=no
10768 hardcode_shlibpath_var=no
10769 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10770 hardcode_libdir_separator=':'
10771 link_all_deplibs=yes
10772 export_dynamic_flag_spec='${wl}-Bexport'
b57f37fb
WP
10773 runpath_var='LD_RUN_PATH'
10774
10775 if test "$GCC" = yes; then
042acc47
WP
10776 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10777 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb 10778 else
042acc47
WP
10779 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10780 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
10781 fi
10782 ;;
10783
10784 uts4*)
042acc47
WP
10785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10786 hardcode_libdir_flag_spec='-L$libdir'
10787 hardcode_shlibpath_var=no
b57f37fb
WP
10788 ;;
10789
10790 *)
042acc47 10791 ld_shlibs=no
b57f37fb
WP
10792 ;;
10793 esac
042acc47
WP
10794
10795 if test x$host_vendor = xsni; then
10796 case $host in
10797 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10798 export_dynamic_flag_spec='${wl}-Blargedynsym'
10799 ;;
10800 esac
10801 fi
b57f37fb
WP
10802 fi
10803
042acc47
WP
10804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10805$as_echo "$ld_shlibs" >&6; }
10806test "$ld_shlibs" = no && can_build_shared=no
10807
10808with_gnu_ld=$with_gnu_ld
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
b57f37fb
WP
10823
10824#
10825# Do we need to explicitly link libc?
10826#
042acc47 10827case "x$archive_cmds_need_lc" in
b57f37fb
WP
10828x|xyes)
10829 # Assume -lc should be added
042acc47 10830 archive_cmds_need_lc=yes
b57f37fb
WP
10831
10832 if test "$enable_shared" = yes && test "$GCC" = yes; then
042acc47 10833 case $archive_cmds in
b57f37fb
WP
10834 *'~'*)
10835 # FIXME: we may have to deal with multi-command sequences.
10836 ;;
10837 '$CC '*)
10838 # Test whether the compiler implicitly links with -lc since on some
10839 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10840 # to ld, don't add -lc before -lgcc.
042acc47 10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
f030cae8 10842$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
bf9bfd26
JH
10843if ${lt_cv_archive_cmds_need_lc+:} false; then :
10844 $as_echo_n "(cached) " >&6
10845else
10846 $RM conftest*
10847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b57f37fb 10848
bf9bfd26 10849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b57f37fb
WP
10850 (eval $ac_compile) 2>&5
10851 ac_status=$?
042acc47
WP
10852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10853 test $ac_status = 0; } 2>conftest.err; then
bf9bfd26
JH
10854 soname=conftest
10855 lib=conftest
10856 libobjs=conftest.$ac_objext
10857 deplibs=
10858 wl=$lt_prog_compiler_wl
10859 pic_flag=$lt_prog_compiler_pic
10860 compiler_flags=-v
10861 linker_flags=-v
10862 verstring=
10863 output_objdir=.
10864 libname=conftest
10865 lt_save_allow_undefined_flag=$allow_undefined_flag
10866 allow_undefined_flag=
10867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
042acc47 10868 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
b57f37fb 10869 ac_status=$?
042acc47
WP
10870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10871 test $ac_status = 0; }
bf9bfd26
JH
10872 then
10873 lt_cv_archive_cmds_need_lc=no
10874 else
10875 lt_cv_archive_cmds_need_lc=yes
10876 fi
10877 allow_undefined_flag=$lt_save_allow_undefined_flag
10878 else
10879 cat conftest.err 1>&5
10880 fi
10881 $RM conftest*
10882
10883fi
10884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10885$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10886 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
b57f37fb
WP
10887 ;;
10888 esac
10889 fi
10890 ;;
10891esac
10892
b57f37fb 10893
b57f37fb 10894
b57f37fb 10895
b57f37fb 10896
b57f37fb 10897
b57f37fb 10898
b57f37fb 10899
b57f37fb 10900
b57f37fb 10901
b57f37fb 10902
b57f37fb 10903
b57f37fb 10904
b57f37fb 10905
b57f37fb 10906
b57f37fb 10907
b57f37fb 10908
b57f37fb 10909
b57f37fb 10910
b57f37fb 10911
b57f37fb 10912
b57f37fb 10913
b57f37fb 10914
b57f37fb 10915
b57f37fb 10916
b57f37fb 10917
b57f37fb 10918
b57f37fb 10919
b57f37fb 10920
b57f37fb 10921
b57f37fb 10922
b57f37fb 10923
b57f37fb 10924
b57f37fb 10925
b57f37fb 10926
b57f37fb 10927
b57f37fb 10928
b57f37fb 10929
b57f37fb 10930
b57f37fb 10931
b57f37fb 10932
b57f37fb 10933
56efe974 10934
56efe974 10935
56efe974 10936
b57f37fb 10937
b57f37fb 10938
b57f37fb 10939
b57f37fb
WP
10940
10941
b57f37fb 10942
b57f37fb 10943
b57f37fb 10944
b57f37fb 10945
b57f37fb 10946
b57f37fb 10947
b57f37fb 10948
b57f37fb 10949
b57f37fb 10950
b57f37fb 10951
b57f37fb 10952
b57f37fb 10953
b57f37fb 10954
b57f37fb 10955
b57f37fb 10956
b57f37fb 10957
b57f37fb 10958
b57f37fb 10959
b57f37fb 10960
b57f37fb 10961
b57f37fb 10962
b57f37fb 10963
b57f37fb 10964
b57f37fb 10965
b57f37fb 10966
b57f37fb 10967
b57f37fb 10968
b57f37fb 10969
b57f37fb 10970
b57f37fb 10971
b57f37fb 10972
b57f37fb 10973
b57f37fb 10974
b57f37fb 10975
b57f37fb 10976
b57f37fb 10977
b57f37fb 10978
b57f37fb 10979
b57f37fb 10980
b57f37fb 10981
b57f37fb 10982
b57f37fb 10983
b57f37fb 10984
b57f37fb 10985
b57f37fb 10986
b57f37fb 10987
b57f37fb 10988
b57f37fb 10989
b57f37fb 10990
b57f37fb 10991
b57f37fb 10992
b57f37fb 10993
b57f37fb 10994
b57f37fb 10995
b57f37fb 10996
b57f37fb 10997
b57f37fb 10998
b57f37fb 10999
b57f37fb 11000
b57f37fb 11001
b57f37fb 11002
b57f37fb 11003
b57f37fb 11004
56efe974 11005
b57f37fb 11006
b57f37fb 11007
b57f37fb 11008
b57f37fb 11009
b57f37fb 11010
b57f37fb 11011
b57f37fb 11012
b57f37fb 11013
b57f37fb 11014
b57f37fb 11015
b57f37fb 11016
b57f37fb 11017
b57f37fb 11018
b57f37fb 11019
b57f37fb 11020
b57f37fb 11021
b57f37fb 11022
b57f37fb 11023
b57f37fb 11024
b57f37fb 11025
b57f37fb 11026
b57f37fb 11027
b57f37fb 11028
b57f37fb 11029
b57f37fb 11030
b57f37fb 11031
b57f37fb 11032
b57f37fb 11033
b57f37fb 11034
b57f37fb 11035
b57f37fb 11036
b57f37fb 11037
b57f37fb 11038
b57f37fb
WP
11039
11040
042acc47
WP
11041
11042
11043
11044
11045
11046
11047
11048
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11050$as_echo_n "checking dynamic linker characteristics... " >&6; }
11051
11052if test "$GCC" = yes; then
11053 case $host_os in
11054 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11055 *) lt_awk_arg="/^libraries:/" ;;
11056 esac
bf9bfd26
JH
11057 case $host_os in
11058 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11059 *) lt_sed_strip_eq="s,=/,/,g" ;;
11060 esac
11061 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11062 case $lt_search_path_spec in
11063 *\;*)
042acc47
WP
11064 # if the path contains ";" then we assume it to be the separator
11065 # otherwise default to the standard path separator (i.e. ":") - it is
11066 # assumed that no part of a normal pathname contains ";" but that should
11067 # okay in the real world where ";" in dirpaths is itself problematic.
bf9bfd26
JH
11068 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11069 ;;
11070 *)
11071 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11072 ;;
11073 esac
042acc47
WP
11074 # Ok, now we have the path, separated by spaces, we can step through it
11075 # and add multilib dir if necessary.
11076 lt_tmp_lt_search_path_spec=
11077 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11078 for lt_sys_path in $lt_search_path_spec; do
11079 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11080 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11081 else
11082 test -d "$lt_sys_path" && \
11083 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11084 fi
11085 done
bf9bfd26 11086 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
042acc47
WP
11087BEGIN {RS=" "; FS="/|\n";} {
11088 lt_foo="";
11089 lt_count=0;
11090 for (lt_i = NF; lt_i > 0; lt_i--) {
11091 if ($lt_i != "" && $lt_i != ".") {
11092 if ($lt_i == "..") {
11093 lt_count++;
11094 } else {
11095 if (lt_count == 0) {
11096 lt_foo="/" $lt_i lt_foo;
11097 } else {
11098 lt_count--;
11099 }
11100 }
11101 }
11102 }
11103 if (lt_foo != "") { lt_freq[lt_foo]++; }
11104 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11105}'`
bf9bfd26
JH
11106 # AWK program above erroneously prepends '/' to C:/dos/paths
11107 # for these hosts.
11108 case $host_os in
11109 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11110 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11111 esac
11112 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
042acc47
WP
11113else
11114 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11115fi
11116library_names_spec=
11117libname_spec='lib$name'
11118soname_spec=
11119shrext_cmds=".so"
11120postinstall_cmds=
11121postuninstall_cmds=
11122finish_cmds=
11123finish_eval=
11124shlibpath_var=
11125shlibpath_overrides_runpath=unknown
11126version_type=none
11127dynamic_linker="$host_os ld.so"
11128sys_lib_dlsearch_path_spec="/lib /usr/lib"
11129need_lib_prefix=unknown
11130hardcode_into_libs=no
11131
11132# when you set need_version to no, make sure it does not cause -set_version
11133# flags to be left without arguments
11134need_version=unknown
11135
11136case $host_os in
11137aix3*)
11138 version_type=linux
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11140 shlibpath_var=LIBPATH
11141
11142 # AIX 3 has no versioning support, so we append a major version to the name.
11143 soname_spec='${libname}${release}${shared_ext}$major'
11144 ;;
11145
11146aix[4-9]*)
11147 version_type=linux
11148 need_lib_prefix=no
11149 need_version=no
11150 hardcode_into_libs=yes
11151 if test "$host_cpu" = ia64; then
11152 # AIX 5 supports IA64
11153 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 else
11156 # With GCC up to 2.95.x, collect2 would create an import file
11157 # for dependence libraries. The import file would start with
11158 # the line `#! .'. This would cause the generated library to
11159 # depend on `.', always an invalid library. This was fixed in
11160 # development snapshots of GCC prior to 3.0.
11161 case $host_os in
11162 aix4 | aix4.[01] | aix4.[01].*)
11163 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11164 echo ' yes '
11165 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11166 :
11167 else
11168 can_build_shared=no
11169 fi
11170 ;;
11171 esac
11172 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11173 # soname into executable. Probably we can add versioning support to
11174 # collect2, so additional links can be useful in future.
11175 if test "$aix_use_runtimelinking" = yes; then
11176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11177 # instead of lib<name>.a to let people know that these are not
11178 # typical AIX shared libraries.
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180 else
11181 # We preserve .a as extension for shared libraries through AIX4.2
11182 # and later when we are not doing run time linking.
11183 library_names_spec='${libname}${release}.a $libname.a'
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 fi
11186 shlibpath_var=LIBPATH
11187 fi
11188 ;;
11189
11190amigaos*)
11191 case $host_cpu in
11192 powerpc)
11193 # Since July 2007 AmigaOS4 officially supports .so libraries.
11194 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196 ;;
11197 m68k)
11198 library_names_spec='$libname.ixlibrary $libname.a'
11199 # Create ${libname}_ixlibrary.a entries in /sys/libs.
bf9bfd26 11200 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
042acc47
WP
11201 ;;
11202 esac
11203 ;;
11204
11205beos*)
11206 library_names_spec='${libname}${shared_ext}'
11207 dynamic_linker="$host_os ld.so"
11208 shlibpath_var=LIBRARY_PATH
11209 ;;
11210
11211bsdi[45]*)
11212 version_type=linux
11213 need_version=no
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215 soname_spec='${libname}${release}${shared_ext}$major'
11216 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11219 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11220 # the default ld.so.conf also contains /usr/contrib/lib and
11221 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11222 # libtool to hard-code these into programs
11223 ;;
11224
11225cygwin* | mingw* | pw32* | cegcc*)
11226 version_type=windows
11227 shrext_cmds=".dll"
11228 need_version=no
11229 need_lib_prefix=no
11230
bf9bfd26
JH
11231 case $GCC,$cc_basename in
11232 yes,*)
11233 # gcc
042acc47
WP
11234 library_names_spec='$libname.dll.a'
11235 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11236 postinstall_cmds='base_file=`basename \${file}`~
11237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11238 dldir=$destdir/`dirname \$dlpath`~
11239 test -d \$dldir || mkdir -p \$dldir~
11240 $install_prog $dir/$dlname \$dldir/$dlname~
11241 chmod a+x \$dldir/$dlname~
11242 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11243 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11244 fi'
11245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11246 dlpath=$dir/\$dldll~
11247 $RM \$dlpath'
11248 shlibpath_overrides_runpath=yes
11249
11250 case $host_os in
11251 cygwin*)
11252 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11253 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
bf9bfd26
JH
11254
11255 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
042acc47
WP
11256 ;;
11257 mingw* | cegcc*)
11258 # MinGW DLLs use traditional 'lib' prefix
11259 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
042acc47
WP
11260 ;;
11261 pw32*)
11262 # pw32 DLLs use 'pw' prefix rather than 'lib'
11263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11264 ;;
11265 esac
bf9bfd26
JH
11266 dynamic_linker='Win32 ld.exe'
11267 ;;
11268
11269 *,cl*)
11270 # Native MSVC
11271 libname_spec='$name'
11272 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11273 library_names_spec='${libname}.dll.lib'
11274
11275 case $build_os in
11276 mingw*)
11277 sys_lib_search_path_spec=
11278 lt_save_ifs=$IFS
11279 IFS=';'
11280 for lt_path in $LIB
11281 do
11282 IFS=$lt_save_ifs
11283 # Let DOS variable expansion print the short 8.3 style file name.
11284 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11285 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11286 done
11287 IFS=$lt_save_ifs
11288 # Convert to MSYS style.
11289 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11290 ;;
11291 cygwin*)
11292 # Convert to unix form, then to dos form, then back to unix form
11293 # but this time dos style (no spaces!) so that the unix form looks
11294 # like /cygdrive/c/PROGRA~1:/cygdr...
11295 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11296 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11297 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11298 ;;
11299 *)
11300 sys_lib_search_path_spec="$LIB"
11301 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11302 # It is most probably a Windows format PATH.
11303 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11304 else
11305 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11306 fi
11307 # FIXME: find the short name or the path components, as spaces are
11308 # common. (e.g. "Program Files" -> "PROGRA~1")
11309 ;;
11310 esac
11311
11312 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11313 postinstall_cmds='base_file=`basename \${file}`~
11314 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11315 dldir=$destdir/`dirname \$dlpath`~
11316 test -d \$dldir || mkdir -p \$dldir~
11317 $install_prog $dir/$dlname \$dldir/$dlname'
11318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11319 dlpath=$dir/\$dldll~
11320 $RM \$dlpath'
11321 shlibpath_overrides_runpath=yes
11322 dynamic_linker='Win32 link.exe'
042acc47
WP
11323 ;;
11324
11325 *)
bf9bfd26 11326 # Assume MSVC wrapper
042acc47 11327 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
bf9bfd26 11328 dynamic_linker='Win32 ld.exe'
042acc47
WP
11329 ;;
11330 esac
042acc47
WP
11331 # FIXME: first we should search . and the directory the executable is in
11332 shlibpath_var=PATH
11333 ;;
11334
11335darwin* | rhapsody*)
11336 dynamic_linker="$host_os dyld"
11337 version_type=darwin
11338 need_lib_prefix=no
11339 need_version=no
11340 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11341 soname_spec='${libname}${release}${major}$shared_ext'
11342 shlibpath_overrides_runpath=yes
11343 shlibpath_var=DYLD_LIBRARY_PATH
11344 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11345
11346 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11347 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11348 ;;
11349
11350dgux*)
11351 version_type=linux
11352 need_lib_prefix=no
11353 need_version=no
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 shlibpath_var=LD_LIBRARY_PATH
11357 ;;
11358
11359freebsd1*)
11360 dynamic_linker=no
11361 ;;
11362
11363freebsd* | dragonfly*)
11364 # DragonFly does not have aout. When/if they implement a new
11365 # versioning mechanism, adjust this.
11366 if test -x /usr/bin/objformat; then
11367 objformat=`/usr/bin/objformat`
11368 else
11369 case $host_os in
11370 freebsd[123]*) objformat=aout ;;
11371 *) objformat=elf ;;
11372 esac
b57f37fb 11373 fi
1800d973
WP
11374 # Handle Gentoo/FreeBSD as it was Linux
11375 case $host_vendor in
11376 gentoo)
11377 version_type=linux ;;
11378 *)
11379 version_type=freebsd-$objformat ;;
11380 esac
11381
042acc47
WP
11382 case $version_type in
11383 freebsd-elf*)
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11385 need_version=no
11386 need_lib_prefix=no
11387 ;;
11388 freebsd-*)
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11390 need_version=yes
11391 ;;
1800d973
WP
11392 linux)
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11394 soname_spec='${libname}${release}${shared_ext}$major'
11395 need_lib_prefix=no
11396 need_version=no
11397 ;;
042acc47
WP
11398 esac
11399 shlibpath_var=LD_LIBRARY_PATH
11400 case $host_os in
11401 freebsd2*)
11402 shlibpath_overrides_runpath=yes
11403 ;;
11404 freebsd3.[01]* | freebsdelf3.[01]*)
11405 shlibpath_overrides_runpath=yes
11406 hardcode_into_libs=yes
11407 ;;
11408 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11409 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11410 shlibpath_overrides_runpath=no
11411 hardcode_into_libs=yes
11412 ;;
11413 *) # from 4.6 on, and DragonFly
11414 shlibpath_overrides_runpath=yes
11415 hardcode_into_libs=yes
11416 ;;
11417 esac
11418 ;;
b57f37fb 11419
042acc47
WP
11420gnu*)
11421 version_type=linux
11422 need_lib_prefix=no
11423 need_version=no
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 shlibpath_var=LD_LIBRARY_PATH
11427 hardcode_into_libs=yes
11428 ;;
b57f37fb 11429
bf9bfd26
JH
11430haiku*)
11431 version_type=linux
11432 need_lib_prefix=no
11433 need_version=no
11434 dynamic_linker="$host_os runtime_loader"
11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11436 soname_spec='${libname}${release}${shared_ext}$major'
11437 shlibpath_var=LIBRARY_PATH
11438 shlibpath_overrides_runpath=yes
11439 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11440 hardcode_into_libs=yes
11441 ;;
11442
042acc47
WP
11443hpux9* | hpux10* | hpux11*)
11444 # Give a soname corresponding to the major version so that dld.sl refuses to
11445 # link against other versions.
11446 version_type=sunos
11447 need_lib_prefix=no
11448 need_version=no
11449 case $host_cpu in
11450 ia64*)
11451 shrext_cmds='.so'
11452 hardcode_into_libs=yes
11453 dynamic_linker="$host_os dld.so"
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 if test "X$HPUX_IA64_MODE" = X32; then
11459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11460 else
11461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11462 fi
11463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11464 ;;
11465 hppa*64*)
11466 shrext_cmds='.sl'
11467 hardcode_into_libs=yes
11468 dynamic_linker="$host_os dld.sl"
11469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11475 ;;
11476 *)
11477 shrext_cmds='.sl'
11478 dynamic_linker="$host_os dld.sl"
11479 shlibpath_var=SHLIB_PATH
11480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11482 soname_spec='${libname}${release}${shared_ext}$major'
11483 ;;
11484 esac
bf9bfd26 11485 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
042acc47 11486 postinstall_cmds='chmod 555 $lib'
bf9bfd26
JH
11487 # or fails outright, so override atomically:
11488 install_override_mode=555
042acc47 11489 ;;
b57f37fb 11490
042acc47
WP
11491interix[3-9]*)
11492 version_type=linux
11493 need_lib_prefix=no
11494 need_version=no
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11496 soname_spec='${libname}${release}${shared_ext}$major'
11497 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11498 shlibpath_var=LD_LIBRARY_PATH
11499 shlibpath_overrides_runpath=no
11500 hardcode_into_libs=yes
11501 ;;
b57f37fb 11502
042acc47
WP
11503irix5* | irix6* | nonstopux*)
11504 case $host_os in
11505 nonstopux*) version_type=nonstopux ;;
11506 *)
11507 if test "$lt_cv_prog_gnu_ld" = yes; then
11508 version_type=linux
b57f37fb 11509 else
042acc47
WP
11510 version_type=irix
11511 fi ;;
11512 esac
11513 need_lib_prefix=no
11514 need_version=no
11515 soname_spec='${libname}${release}${shared_ext}$major'
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11517 case $host_os in
11518 irix5* | nonstopux*)
11519 libsuff= shlibsuff=
11520 ;;
11521 *)
11522 case $LD in # libtool.m4 will add one of these switches to LD
11523 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11524 libsuff= shlibsuff= libmagic=32-bit;;
11525 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11526 libsuff=32 shlibsuff=N32 libmagic=N32;;
11527 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11528 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11529 *) libsuff= shlibsuff= libmagic=never-match;;
11530 esac
11531 ;;
11532 esac
11533 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11534 shlibpath_overrides_runpath=no
11535 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11536 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11537 hardcode_into_libs=yes
11538 ;;
b57f37fb 11539
042acc47
WP
11540# No shared lib support for Linux oldld, aout, or coff.
11541linux*oldld* | linux*aout* | linux*coff*)
11542 dynamic_linker=no
11543 ;;
b57f37fb 11544
042acc47 11545# This must be Linux ELF.
bf9bfd26 11546linux* | k*bsd*-gnu | kopensolaris*-gnu)
042acc47
WP
11547 version_type=linux
11548 need_lib_prefix=no
11549 need_version=no
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551 soname_spec='${libname}${release}${shared_ext}$major'
11552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=no
bf9bfd26 11555
042acc47 11556 # Some binutils ld are patched to set DT_RUNPATH
bf9bfd26
JH
11557 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559else
11560 lt_cv_shlibpath_overrides_runpath=no
11561 save_LDFLAGS=$LDFLAGS
11562 save_libdir=$libdir
11563 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11564 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
042acc47 11566/* end confdefs.h. */
b57f37fb 11567
042acc47
WP
11568int
11569main ()
11570{
b57f37fb 11571
042acc47
WP
11572 ;
11573 return 0;
11574}
11575_ACEOF
11576if ac_fn_c_try_link "$LINENO"; then :
11577 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
bf9bfd26 11578 lt_cv_shlibpath_overrides_runpath=yes
042acc47
WP
11579fi
11580fi
11581rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
bf9bfd26
JH
11583 LDFLAGS=$save_LDFLAGS
11584 libdir=$save_libdir
11585
11586fi
11587
11588 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
b57f37fb 11589
042acc47
WP
11590 # This implies no fast_install, which is unacceptable.
11591 # Some rework will be needed to allow for fast_install
11592 # before this can be enabled.
11593 hardcode_into_libs=yes
b57f37fb 11594
042acc47
WP
11595 # Append ld.so.conf contents to the search path
11596 if test -f /etc/ld.so.conf; then
bf9bfd26 11597 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
042acc47 11598 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
b57f37fb 11599 fi
b57f37fb 11600
042acc47
WP
11601 # We used to test for /lib/ld.so.1 and disable shared libraries on
11602 # powerpc, because MkLinux only supported shared libraries with the
11603 # GNU dynamic linker. Since this was broken with cross compilers,
11604 # most powerpc-linux boxes support dynamic linking these days and
11605 # people can always --disable-shared, the test was removed, and we
11606 # assume the GNU/Linux dynamic linker is in use.
11607 dynamic_linker='GNU/Linux ld.so'
11608 ;;
11609
042acc47
WP
11610netbsd*)
11611 version_type=sunos
11612 need_lib_prefix=no
11613 need_version=no
11614 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11617 dynamic_linker='NetBSD (a.out) ld.so'
11618 else
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 dynamic_linker='NetBSD ld.elf_so'
11622 fi
11623 shlibpath_var=LD_LIBRARY_PATH
11624 shlibpath_overrides_runpath=yes
11625 hardcode_into_libs=yes
11626 ;;
b57f37fb 11627
042acc47
WP
11628newsos6)
11629 version_type=linux
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631 shlibpath_var=LD_LIBRARY_PATH
11632 shlibpath_overrides_runpath=yes
11633 ;;
b57f37fb 11634
042acc47
WP
11635*nto* | *qnx*)
11636 version_type=qnx
11637 need_lib_prefix=no
11638 need_version=no
11639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11640 soname_spec='${libname}${release}${shared_ext}$major'
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=no
11643 hardcode_into_libs=yes
11644 dynamic_linker='ldqnx.so'
11645 ;;
b57f37fb 11646
042acc47
WP
11647openbsd*)
11648 version_type=sunos
11649 sys_lib_dlsearch_path_spec="/usr/lib"
11650 need_lib_prefix=no
11651 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11652 case $host_os in
11653 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11654 *) need_version=no ;;
11655 esac
11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11658 shlibpath_var=LD_LIBRARY_PATH
11659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11660 case $host_os in
11661 openbsd2.[89] | openbsd2.[89].*)
11662 shlibpath_overrides_runpath=no
11663 ;;
11664 *)
11665 shlibpath_overrides_runpath=yes
11666 ;;
11667 esac
11668 else
11669 shlibpath_overrides_runpath=yes
11670 fi
11671 ;;
b57f37fb 11672
042acc47
WP
11673os2*)
11674 libname_spec='$name'
11675 shrext_cmds=".dll"
11676 need_lib_prefix=no
11677 library_names_spec='$libname${shared_ext} $libname.a'
11678 dynamic_linker='OS/2 ld.exe'
11679 shlibpath_var=LIBPATH
11680 ;;
b57f37fb 11681
042acc47
WP
11682osf3* | osf4* | osf5*)
11683 version_type=osf
11684 need_lib_prefix=no
11685 need_version=no
11686 soname_spec='${libname}${release}${shared_ext}$major'
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688 shlibpath_var=LD_LIBRARY_PATH
11689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11690 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11691 ;;
b57f37fb 11692
042acc47
WP
11693rdos*)
11694 dynamic_linker=no
11695 ;;
b57f37fb 11696
042acc47
WP
11697solaris*)
11698 version_type=linux
11699 need_lib_prefix=no
11700 need_version=no
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 shlibpath_overrides_runpath=yes
11705 hardcode_into_libs=yes
11706 # ldd complains unless libraries are executable
11707 postinstall_cmds='chmod +x $lib'
11708 ;;
b57f37fb 11709
042acc47
WP
11710sunos4*)
11711 version_type=sunos
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11713 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 shlibpath_overrides_runpath=yes
11716 if test "$with_gnu_ld" = yes; then
11717 need_lib_prefix=no
11718 fi
11719 need_version=yes
11720 ;;
b57f37fb 11721
042acc47
WP
11722sysv4 | sysv4.3*)
11723 version_type=linux
11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11725 soname_spec='${libname}${release}${shared_ext}$major'
11726 shlibpath_var=LD_LIBRARY_PATH
11727 case $host_vendor in
11728 sni)
11729 shlibpath_overrides_runpath=no
11730 need_lib_prefix=no
11731 runpath_var=LD_RUN_PATH
11732 ;;
11733 siemens)
11734 need_lib_prefix=no
11735 ;;
11736 motorola)
11737 need_lib_prefix=no
11738 need_version=no
11739 shlibpath_overrides_runpath=no
11740 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11741 ;;
11742 esac
11743 ;;
b57f37fb 11744
042acc47
WP
11745sysv4*MP*)
11746 if test -d /usr/nec ;then
11747 version_type=linux
11748 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11749 soname_spec='$libname${shared_ext}.$major'
11750 shlibpath_var=LD_LIBRARY_PATH
11751 fi
11752 ;;
b57f37fb 11753
042acc47
WP
11754sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11755 version_type=freebsd-elf
11756 need_lib_prefix=no
11757 need_version=no
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11759 soname_spec='${libname}${release}${shared_ext}$major'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 shlibpath_overrides_runpath=yes
11762 hardcode_into_libs=yes
11763 if test "$with_gnu_ld" = yes; then
11764 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11765 else
11766 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11767 case $host_os in
11768 sco3.2v5*)
11769 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11770 ;;
11771 esac
11772 fi
11773 sys_lib_dlsearch_path_spec='/usr/lib'
11774 ;;
b57f37fb 11775
042acc47
WP
11776tpf*)
11777 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11778 version_type=linux
11779 need_lib_prefix=no
11780 need_version=no
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11782 shlibpath_var=LD_LIBRARY_PATH
11783 shlibpath_overrides_runpath=no
11784 hardcode_into_libs=yes
11785 ;;
b57f37fb 11786
042acc47
WP
11787uts4*)
11788 version_type=linux
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790 soname_spec='${libname}${release}${shared_ext}$major'
11791 shlibpath_var=LD_LIBRARY_PATH
11792 ;;
b57f37fb 11793
042acc47
WP
11794*)
11795 dynamic_linker=no
11796 ;;
11797esac
11798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11799$as_echo "$dynamic_linker" >&6; }
11800test "$dynamic_linker" = no && can_build_shared=no
b57f37fb 11801
042acc47
WP
11802variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11803if test "$GCC" = yes; then
11804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11805fi
b57f37fb 11806
042acc47
WP
11807if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11808 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11809fi
11810if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11811 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11812fi
b57f37fb 11813
b57f37fb 11814
b57f37fb 11815
b57f37fb 11816
b57f37fb 11817
b57f37fb 11818
b57f37fb 11819
b57f37fb 11820
b57f37fb 11821
b57f37fb 11822
b57f37fb 11823
b57f37fb 11824
b57f37fb 11825
b57f37fb 11826
b57f37fb 11827
b57f37fb 11828
b57f37fb 11829
b57f37fb 11830
b57f37fb 11831
b57f37fb 11832
b57f37fb 11833
b57f37fb 11834
b57f37fb 11835
b57f37fb 11836
b57f37fb 11837
b57f37fb 11838
b57f37fb 11839
b57f37fb 11840
b57f37fb 11841
b57f37fb 11842
b57f37fb 11843
b57f37fb 11844
b57f37fb 11845
b57f37fb 11846
b57f37fb 11847
b57f37fb 11848
b57f37fb 11849
b57f37fb 11850
b57f37fb 11851
b57f37fb 11852
b57f37fb 11853
b57f37fb 11854
b57f37fb 11855
b57f37fb 11856
b57f37fb 11857
56efe974 11858
b57f37fb 11859
b57f37fb 11860
b57f37fb 11861
b57f37fb 11862
b57f37fb 11863
b57f37fb 11864
b57f37fb 11865
b57f37fb 11866
b57f37fb 11867
b57f37fb 11868
b57f37fb 11869
b57f37fb 11870
b57f37fb 11871
b57f37fb 11872
b57f37fb 11873
b57f37fb 11874
b57f37fb 11875
b57f37fb 11876
b57f37fb 11877
b57f37fb 11878
b57f37fb 11879
b57f37fb 11880
b57f37fb 11881
b57f37fb 11882
b57f37fb 11883
b57f37fb 11884
b57f37fb 11885
b57f37fb 11886
b57f37fb 11887
b57f37fb 11888
b57f37fb 11889
b57f37fb 11890
b57f37fb 11891
b57f37fb
WP
11892
11893
bf9bfd26
JH
11894
11895
11896
11897
11898
b57f37fb
WP
11899
11900
b57f37fb 11901
b57f37fb 11902
b57f37fb 11903
b57f37fb 11904
042acc47
WP
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11906$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11907hardcode_action=
11908if test -n "$hardcode_libdir_flag_spec" ||
11909 test -n "$runpath_var" ||
11910 test "X$hardcode_automatic" = "Xyes" ; then
b57f37fb 11911
042acc47
WP
11912 # We can hardcode non-existent directories.
11913 if test "$hardcode_direct" != no &&
11914 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11915 # have to relink, otherwise we might link with an installed library
11916 # when we should be linking with a yet-to-be-installed one
11917 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11918 test "$hardcode_minus_L" != no; then
11919 # Linking always hardcodes the temporary library directory.
11920 hardcode_action=relink
b57f37fb 11921 else
042acc47
WP
11922 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11923 hardcode_action=immediate
b57f37fb 11924 fi
042acc47
WP
11925else
11926 # We cannot hardcode anything, or else we can only hardcode existing
11927 # directories.
11928 hardcode_action=unsupported
11929fi
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11931$as_echo "$hardcode_action" >&6; }
11932
11933if test "$hardcode_action" = relink ||
11934 test "$inherit_rpath" = yes; then
11935 # Fast installation is not supported
11936 enable_fast_install=no
11937elif test "$shlibpath_overrides_runpath" = yes ||
11938 test "$enable_shared" = no; then
11939 # Fast installation is not necessary
11940 enable_fast_install=needless
b57f37fb
WP
11941fi
11942
11943
11944
b57f37fb 11945
b57f37fb 11946
b57f37fb 11947
042acc47
WP
11948 if test "x$enable_dlopen" != xyes; then
11949 enable_dlopen=unknown
11950 enable_dlopen_self=unknown
11951 enable_dlopen_self_static=unknown
11952else
11953 lt_cv_dlopen=no
11954 lt_cv_dlopen_libs=
b57f37fb 11955
042acc47
WP
11956 case $host_os in
11957 beos*)
11958 lt_cv_dlopen="load_add_on"
11959 lt_cv_dlopen_libs=
11960 lt_cv_dlopen_self=yes
11961 ;;
b57f37fb 11962
042acc47
WP
11963 mingw* | pw32* | cegcc*)
11964 lt_cv_dlopen="LoadLibrary"
11965 lt_cv_dlopen_libs=
11966 ;;
b57f37fb 11967
042acc47
WP
11968 cygwin*)
11969 lt_cv_dlopen="dlopen"
11970 lt_cv_dlopen_libs=
11971 ;;
b57f37fb 11972
042acc47
WP
11973 darwin*)
11974 # if libdl is installed we need to link against it
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11976$as_echo_n "checking for dlopen in -ldl... " >&6; }
12e39525 11977if ${ac_cv_lib_dl_dlopen+:} false; then :
042acc47
WP
11978 $as_echo_n "(cached) " >&6
11979else
11980 ac_check_lib_save_LIBS=$LIBS
11981LIBS="-ldl $LIBS"
11982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983/* end confdefs.h. */
b57f37fb 11984
042acc47
WP
11985/* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11988#ifdef __cplusplus
11989extern "C"
11990#endif
11991char dlopen ();
11992int
11993main ()
11994{
11995return dlopen ();
11996 ;
11997 return 0;
11998}
11999_ACEOF
12000if ac_fn_c_try_link "$LINENO"; then :
12001 ac_cv_lib_dl_dlopen=yes
12002else
12003 ac_cv_lib_dl_dlopen=no
12004fi
12005rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007LIBS=$ac_check_lib_save_LIBS
12008fi
12009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12010$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12e39525 12011if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
042acc47
WP
12012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12013else
b57f37fb 12014
042acc47
WP
12015 lt_cv_dlopen="dyld"
12016 lt_cv_dlopen_libs=
12017 lt_cv_dlopen_self=yes
b57f37fb 12018
042acc47 12019fi
b57f37fb 12020
042acc47 12021 ;;
b57f37fb 12022
042acc47
WP
12023 *)
12024 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12e39525 12025if test "x$ac_cv_func_shl_load" = xyes; then :
042acc47
WP
12026 lt_cv_dlopen="shl_load"
12027else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12029$as_echo_n "checking for shl_load in -ldld... " >&6; }
12e39525 12030if ${ac_cv_lib_dld_shl_load+:} false; then :
042acc47
WP
12031 $as_echo_n "(cached) " >&6
12032else
12033 ac_check_lib_save_LIBS=$LIBS
12034LIBS="-ldld $LIBS"
12035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036/* end confdefs.h. */
b57f37fb 12037
042acc47
WP
12038/* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12041#ifdef __cplusplus
12042extern "C"
12043#endif
12044char shl_load ();
12045int
12046main ()
12047{
12048return shl_load ();
12049 ;
12050 return 0;
12051}
12052_ACEOF
12053if ac_fn_c_try_link "$LINENO"; then :
12054 ac_cv_lib_dld_shl_load=yes
12055else
12056 ac_cv_lib_dld_shl_load=no
12057fi
12058rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060LIBS=$ac_check_lib_save_LIBS
12061fi
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12063$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12e39525 12064if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
042acc47
WP
12065 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12066else
12067 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12e39525 12068if test "x$ac_cv_func_dlopen" = xyes; then :
042acc47
WP
12069 lt_cv_dlopen="dlopen"
12070else
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12072$as_echo_n "checking for dlopen in -ldl... " >&6; }
12e39525 12073if ${ac_cv_lib_dl_dlopen+:} false; then :
042acc47
WP
12074 $as_echo_n "(cached) " >&6
12075else
12076 ac_check_lib_save_LIBS=$LIBS
12077LIBS="-ldl $LIBS"
12078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079/* end confdefs.h. */
b57f37fb 12080
042acc47
WP
12081/* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
12084#ifdef __cplusplus
12085extern "C"
12086#endif
12087char dlopen ();
12088int
12089main ()
12090{
12091return dlopen ();
12092 ;
12093 return 0;
12094}
12095_ACEOF
12096if ac_fn_c_try_link "$LINENO"; then :
12097 ac_cv_lib_dl_dlopen=yes
12098else
12099 ac_cv_lib_dl_dlopen=no
12100fi
12101rm -f core conftest.err conftest.$ac_objext \
12102 conftest$ac_exeext conftest.$ac_ext
12103LIBS=$ac_check_lib_save_LIBS
12104fi
12105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12106$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12e39525 12107if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
042acc47
WP
12108 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12109else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12111$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12e39525 12112if ${ac_cv_lib_svld_dlopen+:} false; then :
042acc47
WP
12113 $as_echo_n "(cached) " >&6
12114else
12115 ac_check_lib_save_LIBS=$LIBS
12116LIBS="-lsvld $LIBS"
12117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118/* end confdefs.h. */
b57f37fb 12119
042acc47
WP
12120/* Override any GCC internal prototype to avoid an error.
12121 Use char because int might match the return type of a GCC
12122 builtin and then its argument prototype would still apply. */
12123#ifdef __cplusplus
12124extern "C"
12125#endif
12126char dlopen ();
12127int
12128main ()
12129{
12130return dlopen ();
12131 ;
12132 return 0;
12133}
12134_ACEOF
12135if ac_fn_c_try_link "$LINENO"; then :
12136 ac_cv_lib_svld_dlopen=yes
12137else
12138 ac_cv_lib_svld_dlopen=no
12139fi
12140rm -f core conftest.err conftest.$ac_objext \
12141 conftest$ac_exeext conftest.$ac_ext
12142LIBS=$ac_check_lib_save_LIBS
12143fi
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12145$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12e39525 12146if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
042acc47
WP
12147 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12148else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12150$as_echo_n "checking for dld_link in -ldld... " >&6; }
12e39525 12151if ${ac_cv_lib_dld_dld_link+:} false; then :
042acc47
WP
12152 $as_echo_n "(cached) " >&6
12153else
12154 ac_check_lib_save_LIBS=$LIBS
12155LIBS="-ldld $LIBS"
12156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157/* end confdefs.h. */
b57f37fb 12158
042acc47
WP
12159/* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12162#ifdef __cplusplus
12163extern "C"
12164#endif
12165char dld_link ();
12166int
12167main ()
12168{
12169return dld_link ();
12170 ;
12171 return 0;
12172}
12173_ACEOF
12174if ac_fn_c_try_link "$LINENO"; then :
12175 ac_cv_lib_dld_dld_link=yes
12176else
12177 ac_cv_lib_dld_dld_link=no
12178fi
12179rm -f core conftest.err conftest.$ac_objext \
12180 conftest$ac_exeext conftest.$ac_ext
12181LIBS=$ac_check_lib_save_LIBS
12182fi
12183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12184$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12e39525 12185if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
042acc47
WP
12186 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12187fi
b57f37fb
WP
12188
12189
042acc47 12190fi
b57f37fb
WP
12191
12192
042acc47 12193fi
b57f37fb
WP
12194
12195
042acc47 12196fi
b57f37fb 12197
b57f37fb 12198
042acc47 12199fi
b57f37fb 12200
b57f37fb 12201
042acc47 12202fi
b57f37fb 12203
042acc47
WP
12204 ;;
12205 esac
b57f37fb 12206
042acc47
WP
12207 if test "x$lt_cv_dlopen" != xno; then
12208 enable_dlopen=yes
12209 else
12210 enable_dlopen=no
12211 fi
b57f37fb 12212
042acc47
WP
12213 case $lt_cv_dlopen in
12214 dlopen)
12215 save_CPPFLAGS="$CPPFLAGS"
12216 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
b57f37fb 12217
042acc47
WP
12218 save_LDFLAGS="$LDFLAGS"
12219 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
b57f37fb 12220
042acc47
WP
12221 save_LIBS="$LIBS"
12222 LIBS="$lt_cv_dlopen_libs $LIBS"
b57f37fb 12223
042acc47
WP
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12225$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12e39525 12226if ${lt_cv_dlopen_self+:} false; then :
f030cae8 12227 $as_echo_n "(cached) " >&6
b57f37fb 12228else
042acc47
WP
12229 if test "$cross_compiling" = yes; then :
12230 lt_cv_dlopen_self=cross
b57f37fb 12231else
042acc47
WP
12232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12233 lt_status=$lt_dlunknown
12234 cat > conftest.$ac_ext <<_LT_EOF
bf9bfd26 12235#line $LINENO "configure"
042acc47 12236#include "confdefs.h"
b57f37fb 12237
042acc47
WP
12238#if HAVE_DLFCN_H
12239#include <dlfcn.h>
12240#endif
b57f37fb 12241
042acc47 12242#include <stdio.h>
b57f37fb 12243
042acc47
WP
12244#ifdef RTLD_GLOBAL
12245# define LT_DLGLOBAL RTLD_GLOBAL
12246#else
12247# ifdef DL_GLOBAL
12248# define LT_DLGLOBAL DL_GLOBAL
12249# else
12250# define LT_DLGLOBAL 0
12251# endif
12252#endif
b57f37fb 12253
042acc47
WP
12254/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12255 find out it does not work in some platform. */
12256#ifndef LT_DLLAZY_OR_NOW
12257# ifdef RTLD_LAZY
12258# define LT_DLLAZY_OR_NOW RTLD_LAZY
12259# else
12260# ifdef DL_LAZY
12261# define LT_DLLAZY_OR_NOW DL_LAZY
12262# else
12263# ifdef RTLD_NOW
12264# define LT_DLLAZY_OR_NOW RTLD_NOW
12265# else
12266# ifdef DL_NOW
12267# define LT_DLLAZY_OR_NOW DL_NOW
12268# else
12269# define LT_DLLAZY_OR_NOW 0
12270# endif
12271# endif
12272# endif
12273# endif
12274#endif
b57f37fb 12275
bf9bfd26
JH
12276/* When -fvisbility=hidden is used, assume the code has been annotated
12277 correspondingly for the symbols needed. */
12278#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12279int fnord () __attribute__((visibility("default")));
12280#endif
12281
12282int fnord () { return 42; }
042acc47
WP
12283int main ()
12284{
12285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12286 int status = $lt_dlunknown;
b57f37fb 12287
042acc47
WP
12288 if (self)
12289 {
12290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
bf9bfd26
JH
12291 else
12292 {
12293 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12294 else puts (dlerror ());
12295 }
042acc47
WP
12296 /* dlclose (self); */
12297 }
12298 else
12299 puts (dlerror ());
b57f37fb 12300
042acc47
WP
12301 return status;
12302}
12303_LT_EOF
12304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12305 (eval $ac_link) 2>&5
12306 ac_status=$?
12307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12308 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12309 (./conftest; exit; ) >&5 2>/dev/null
12310 lt_status=$?
12311 case x$lt_status in
12312 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12313 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12314 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12315 esac
12316 else :
12317 # compilation failed
12318 lt_cv_dlopen_self=no
12319 fi
b57f37fb 12320fi
042acc47 12321rm -fr conftest*
b57f37fb 12322
b57f37fb 12323
042acc47
WP
12324fi
12325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12326$as_echo "$lt_cv_dlopen_self" >&6; }
b57f37fb 12327
042acc47
WP
12328 if test "x$lt_cv_dlopen_self" = xyes; then
12329 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12331$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12e39525 12332if ${lt_cv_dlopen_self_static+:} false; then :
f030cae8 12333 $as_echo_n "(cached) " >&6
b57f37fb 12334else
042acc47
WP
12335 if test "$cross_compiling" = yes; then :
12336 lt_cv_dlopen_self_static=cross
b57f37fb 12337else
042acc47
WP
12338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12339 lt_status=$lt_dlunknown
12340 cat > conftest.$ac_ext <<_LT_EOF
bf9bfd26 12341#line $LINENO "configure"
042acc47 12342#include "confdefs.h"
b57f37fb 12343
042acc47
WP
12344#if HAVE_DLFCN_H
12345#include <dlfcn.h>
12346#endif
b57f37fb 12347
042acc47 12348#include <stdio.h>
b57f37fb 12349
042acc47
WP
12350#ifdef RTLD_GLOBAL
12351# define LT_DLGLOBAL RTLD_GLOBAL
12352#else
12353# ifdef DL_GLOBAL
12354# define LT_DLGLOBAL DL_GLOBAL
12355# else
12356# define LT_DLGLOBAL 0
12357# endif
12358#endif
b57f37fb 12359
042acc47
WP
12360/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12361 find out it does not work in some platform. */
12362#ifndef LT_DLLAZY_OR_NOW
12363# ifdef RTLD_LAZY
12364# define LT_DLLAZY_OR_NOW RTLD_LAZY
12365# else
12366# ifdef DL_LAZY
12367# define LT_DLLAZY_OR_NOW DL_LAZY
12368# else
12369# ifdef RTLD_NOW
12370# define LT_DLLAZY_OR_NOW RTLD_NOW
12371# else
12372# ifdef DL_NOW
12373# define LT_DLLAZY_OR_NOW DL_NOW
12374# else
12375# define LT_DLLAZY_OR_NOW 0
12376# endif
12377# endif
12378# endif
12379# endif
12380#endif
b57f37fb 12381
bf9bfd26
JH
12382/* When -fvisbility=hidden is used, assume the code has been annotated
12383 correspondingly for the symbols needed. */
12384#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12385int fnord () __attribute__((visibility("default")));
12386#endif
12387
12388int fnord () { return 42; }
042acc47
WP
12389int main ()
12390{
12391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12392 int status = $lt_dlunknown;
b57f37fb 12393
042acc47
WP
12394 if (self)
12395 {
12396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
bf9bfd26
JH
12397 else
12398 {
12399 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12400 else puts (dlerror ());
12401 }
042acc47
WP
12402 /* dlclose (self); */
12403 }
12404 else
12405 puts (dlerror ());
b57f37fb 12406
042acc47
WP
12407 return status;
12408}
12409_LT_EOF
12410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12411 (eval $ac_link) 2>&5
12412 ac_status=$?
12413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12414 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12415 (./conftest; exit; ) >&5 2>/dev/null
12416 lt_status=$?
12417 case x$lt_status in
12418 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12419 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12420 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12421 esac
12422 else :
12423 # compilation failed
12424 lt_cv_dlopen_self_static=no
12425 fi
b57f37fb 12426fi
042acc47 12427rm -fr conftest*
94b4fbf9 12428
b57f37fb 12429
b57f37fb 12430fi
042acc47
WP
12431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12432$as_echo "$lt_cv_dlopen_self_static" >&6; }
12433 fi
b57f37fb 12434
042acc47
WP
12435 CPPFLAGS="$save_CPPFLAGS"
12436 LDFLAGS="$save_LDFLAGS"
12437 LIBS="$save_LIBS"
12438 ;;
12439 esac
b57f37fb 12440
042acc47
WP
12441 case $lt_cv_dlopen_self in
12442 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12443 *) enable_dlopen_self=unknown ;;
12444 esac
b57f37fb 12445
042acc47
WP
12446 case $lt_cv_dlopen_self_static in
12447 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12448 *) enable_dlopen_self_static=unknown ;;
12449 esac
b57f37fb
WP
12450fi
12451
b57f37fb 12452
b57f37fb 12453
f030cae8
VY
12454
12455
f030cae8 12456
b57f37fb 12457
b57f37fb 12458
b57f37fb 12459
f030cae8 12460
f030cae8 12461
b57f37fb 12462
f030cae8 12463
b57f37fb 12464
b57f37fb 12465
b57f37fb 12466
b57f37fb 12467
042acc47
WP
12468striplib=
12469old_striplib=
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12471$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12472if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12473 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12474 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12476$as_echo "yes" >&6; }
f030cae8 12477else
042acc47
WP
12478# FIXME - insert some real tests, host_os isn't really good enough
12479 case $host_os in
12480 darwin*)
12481 if test -n "$STRIP" ; then
12482 striplib="$STRIP -x"
12483 old_striplib="$STRIP -S"
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12485$as_echo "yes" >&6; }
12486 else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488$as_echo "no" >&6; }
12489 fi
12490 ;;
12491 *)
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493$as_echo "no" >&6; }
12494 ;;
12495 esac
f030cae8
VY
12496fi
12497
b57f37fb 12498
f030cae8 12499
b57f37fb 12500
b57f37fb 12501
b57f37fb 12502
b57f37fb 12503
b57f37fb 12504
b57f37fb 12505
b57f37fb 12506
b57f37fb
WP
12507
12508
042acc47
WP
12509 # Report which library types will actually be built
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12511$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12513$as_echo "$can_build_shared" >&6; }
b57f37fb 12514
042acc47
WP
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12516$as_echo_n "checking whether to build shared libraries... " >&6; }
12517 test "$can_build_shared" = "no" && enable_shared=no
b57f37fb 12518
042acc47
WP
12519 # On AIX, shared libraries and static libraries use the same namespace, and
12520 # are all built from PIC.
12521 case $host_os in
12522 aix3*)
12523 test "$enable_shared" = yes && enable_static=no
12524 if test -n "$RANLIB"; then
12525 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12526 postinstall_cmds='$RANLIB $lib'
12527 fi
12528 ;;
b57f37fb 12529
042acc47
WP
12530 aix[4-9]*)
12531 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12532 test "$enable_shared" = yes && enable_static=no
12533 fi
12534 ;;
12535 esac
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12537$as_echo "$enable_shared" >&6; }
12538
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12540$as_echo_n "checking whether to build static libraries... " >&6; }
12541 # Make sure either enable_shared or enable_static is yes.
12542 test "$enable_shared" = yes || enable_static=yes
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12544$as_echo "$enable_static" >&6; }
b57f37fb 12545
b57f37fb 12546
b57f37fb 12547
b57f37fb 12548
b57f37fb 12549fi
042acc47
WP
12550ac_ext=c
12551ac_cpp='$CPP $CPPFLAGS'
12552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12554ac_compiler_gnu=$ac_cv_c_compiler_gnu
b57f37fb 12555
042acc47 12556CC="$lt_save_CC"
b57f37fb 12557
b57f37fb 12558
b57f37fb 12559
b57f37fb 12560
b57f37fb 12561
b57f37fb 12562
b57f37fb 12563
b57f37fb 12564
b57f37fb 12565
b57f37fb
WP
12566
12567
b57f37fb 12568
b57f37fb 12569
042acc47 12570 ac_config_commands="$ac_config_commands libtool"
b57f37fb
WP
12571
12572
12573
12574
042acc47 12575# Only expand once:
b57f37fb
WP
12576
12577
12578
042acc47 12579LIBTOOL="$LIBTOOL --silent"
b57f37fb 12580
042acc47
WP
12581case "$host_os" in
12582*cygwin*)
b57f37fb 12583
042acc47
WP
12584cat >>confdefs.h <<_ACEOF
12585#define CYGWIN 1
12586_ACEOF
b57f37fb
WP
12587
12588
042acc47
WP
12589cat >>confdefs.h <<_ACEOF
12590#define WINDOWS 1
12591_ACEOF
b57f37fb 12592
042acc47
WP
12593 ;;
12594*mingw*)
b57f37fb 12595
042acc47
WP
12596cat >>confdefs.h <<_ACEOF
12597#define MINGW 1
12598_ACEOF
b57f37fb
WP
12599
12600
042acc47
WP
12601cat >>confdefs.h <<_ACEOF
12602#define WINDOWS 1
12603_ACEOF
b57f37fb 12604
042acc47 12605 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12e39525 12606if test "x$ac_cv_header_windows_h" = xyes; then :
b57f37fb 12607
042acc47 12608else
12e39525 12609 as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5
042acc47 12610fi
b57f37fb
WP
12611
12612
042acc47 12613 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
12e39525 12614if test "x$ac_cv_header_winsock2_h" = xyes; then :
b57f37fb 12615
042acc47 12616else
12e39525 12617 as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5
042acc47 12618fi
b57f37fb 12619
94b4fbf9 12620
042acc47
WP
12621
12622cat >>confdefs.h <<_ACEOF
12623#define HAVE_WINSOCK2_H 1
b57f37fb 12624_ACEOF
042acc47
WP
12625
12626
12627cat >>confdefs.h <<_ACEOF
12628#define HAVE_WINSOCK_H 1
b57f37fb 12629_ACEOF
042acc47
WP
12630
12631 LIBS="$LIBS -lws2_32 -liphlpapi"
12632 is_mingw="yes"
12633 ;;
12634*interix*)
12635 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
12636 ;;
12637*solaris*)
12638 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
12639 ;;
12640*)
12641 ;;
b57f37fb 12642esac
b57f37fb 12643
042acc47
WP
12644 if test "$is_mingw" = "yes"; then
12645 MINGW_TRUE=
12646 MINGW_FALSE='#'
12647else
12648 MINGW_TRUE='#'
12649 MINGW_FALSE=
b57f37fb
WP
12650fi
12651
b57f37fb 12652
b57f37fb 12653
042acc47
WP
12654# backwards support for IRC_CFLAGS
12655CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
12656
12657if test "$libexecdir" = '${exec_prefix}/libexec' &&
12658 test "$localstatedir" = '${prefix}/var'; then
12659 libexecdir='${bindir}'
12660 localstatedir='${prefix}'
b57f37fb
WP
12661fi
12662
042acc47 12663ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12e39525 12664if test "x$ac_cv_type_pid_t" = xyes; then :
b57f37fb 12665
b57f37fb 12666else
042acc47
WP
12667
12668cat >>confdefs.h <<_ACEOF
12669#define pid_t int
12670_ACEOF
b57f37fb
WP
12671
12672fi
042acc47
WP
12673
12674ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12e39525 12675if test "x$ac_cv_type_size_t" = xyes; then :
042acc47
WP
12676
12677else
12678
12679cat >>confdefs.h <<_ACEOF
12680#define size_t unsigned int
b57f37fb
WP
12681_ACEOF
12682
12683fi
12684
042acc47 12685ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12e39525 12686if test "x$ac_cv_type_ssize_t" = xyes; then :
b57f37fb 12687
b57f37fb 12688else
042acc47
WP
12689
12690cat >>confdefs.h <<_ACEOF
12691#define ssize_t int
b57f37fb 12692_ACEOF
042acc47
WP
12693
12694fi
12695
12696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12697$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12e39525 12698if ${ac_cv_type_uid_t+:} false; then :
042acc47
WP
12699 $as_echo_n "(cached) " >&6
12700else
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
12702/* end confdefs.h. */
12703#include <sys/types.h>
b57f37fb 12704
b57f37fb 12705_ACEOF
042acc47
WP
12706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12707 $EGREP "uid_t" >/dev/null 2>&1; then :
12708 ac_cv_type_uid_t=yes
b57f37fb 12709else
042acc47 12710 ac_cv_type_uid_t=no
b57f37fb 12711fi
042acc47 12712rm -f conftest*
b57f37fb 12713
b57f37fb 12714fi
042acc47
WP
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12716$as_echo "$ac_cv_type_uid_t" >&6; }
12717if test $ac_cv_type_uid_t = no; then
b57f37fb 12718
042acc47
WP
12719$as_echo "#define uid_t int" >>confdefs.h
12720
12721
12722$as_echo "#define gid_t int" >>confdefs.h
b57f37fb
WP
12723
12724fi
12725
12726
12727
042acc47
WP
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12729$as_echo_n "checking for ANSI C header files... " >&6; }
12e39525 12730if ${ac_cv_header_stdc+:} false; then :
f030cae8 12731 $as_echo_n "(cached) " >&6
b57f37fb 12732else
042acc47 12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 12734/* end confdefs.h. */
042acc47
WP
12735#include <stdlib.h>
12736#include <stdarg.h>
12737#include <string.h>
12738#include <float.h>
b57f37fb 12739
b57f37fb
WP
12740int
12741main ()
12742{
042acc47 12743
b57f37fb
WP
12744 ;
12745 return 0;
12746}
12747_ACEOF
042acc47
WP
12748if ac_fn_c_try_compile "$LINENO"; then :
12749 ac_cv_header_stdc=yes
b57f37fb 12750else
042acc47
WP
12751 ac_cv_header_stdc=no
12752fi
12753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b57f37fb 12754
042acc47
WP
12755if test $ac_cv_header_stdc = yes; then
12756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758/* end confdefs.h. */
12759#include <string.h>
b57f37fb 12760
042acc47
WP
12761_ACEOF
12762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12763 $EGREP "memchr" >/dev/null 2>&1; then :
b57f37fb 12764
b57f37fb 12765else
042acc47 12766 ac_cv_header_stdc=no
b57f37fb 12767fi
042acc47 12768rm -f conftest*
b57f37fb
WP
12769
12770fi
12771
042acc47
WP
12772if test $ac_cv_header_stdc = yes; then
12773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775/* end confdefs.h. */
12776#include <stdlib.h>
b57f37fb 12777
b57f37fb 12778_ACEOF
042acc47
WP
12779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12780 $EGREP "free" >/dev/null 2>&1; then :
b57f37fb 12781
042acc47
WP
12782else
12783 ac_cv_header_stdc=no
12784fi
12785rm -f conftest*
b57f37fb 12786
042acc47 12787fi
b57f37fb 12788
042acc47
WP
12789if test $ac_cv_header_stdc = yes; then
12790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12791 if test "$cross_compiling" = yes; then :
12792 :
b57f37fb 12793else
042acc47 12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 12795/* end confdefs.h. */
042acc47
WP
12796#include <ctype.h>
12797#include <stdlib.h>
12798#if ((' ' & 0x0FF) == 0x020)
12799# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12800# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12801#else
12802# define ISLOWER(c) \
12803 (('a' <= (c) && (c) <= 'i') \
12804 || ('j' <= (c) && (c) <= 'r') \
12805 || ('s' <= (c) && (c) <= 'z'))
12806# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
b57f37fb
WP
12807#endif
12808
042acc47 12809#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b57f37fb
WP
12810int
12811main ()
12812{
042acc47
WP
12813 int i;
12814 for (i = 0; i < 256; i++)
12815 if (XOR (islower (i), ISLOWER (i))
12816 || toupper (i) != TOUPPER (i))
12817 return 2;
b57f37fb
WP
12818 return 0;
12819}
12820_ACEOF
042acc47 12821if ac_fn_c_try_run "$LINENO"; then :
b57f37fb 12822
042acc47
WP
12823else
12824 ac_cv_header_stdc=no
12825fi
12826rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12827 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb
WP
12828fi
12829
b57f37fb 12830fi
042acc47
WP
12831fi
12832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12833$as_echo "$ac_cv_header_stdc" >&6; }
12834if test $ac_cv_header_stdc = yes; then
12835
12836$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b57f37fb 12837
b57f37fb 12838fi
b57f37fb 12839
042acc47
WP
12840
12841for ac_header in crypt.h unistd.h sys/socket.h sys/stat.h sys/time.h time.h netinet/in.h arpa/inet.h errno.h sys/uio.h spawn.h sys/poll.h sys/epoll.h sys/select.h sys/devpoll.h sys/event.h port.h signal.h sys/signalfd.h sys/timerfd.h
12842do :
12843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12844ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12e39525 12845if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
042acc47
WP
12846 cat >>confdefs.h <<_ACEOF
12847#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b57f37fb
WP
12848_ACEOF
12849
12850fi
12851
042acc47 12852done
b57f37fb 12853
042acc47
WP
12854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12855$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12e39525 12856if ${ac_cv_header_time+:} false; then :
f030cae8 12857 $as_echo_n "(cached) " >&6
b57f37fb 12858else
042acc47 12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 12860/* end confdefs.h. */
b57f37fb 12861#include <sys/types.h>
042acc47
WP
12862#include <sys/time.h>
12863#include <time.h>
b57f37fb 12864
b57f37fb
WP
12865int
12866main ()
12867{
042acc47
WP
12868if ((struct tm *) 0)
12869return 0;
f030cae8 12870 ;
b57f37fb 12871 return 0;
042acc47 12872}
f030cae8 12873_ACEOF
042acc47
WP
12874if ac_fn_c_try_compile "$LINENO"; then :
12875 ac_cv_header_time=yes
12876else
12877 ac_cv_header_time=no
12878fi
12879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12880fi
12881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12882$as_echo "$ac_cv_header_time" >&6; }
12883if test $ac_cv_header_time = yes; then
12884
12885$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12886
12887fi
12888
12889
12890
12891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12892$as_echo_n "checking for library containing socket... " >&6; }
12e39525 12893if ${ac_cv_search_socket+:} false; then :
042acc47
WP
12894 $as_echo_n "(cached) " >&6
12895else
12896 ac_func_search_save_LIBS=$LIBS
12897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8 12898/* end confdefs.h. */
f030cae8 12899
042acc47
WP
12900/* Override any GCC internal prototype to avoid an error.
12901 Use char because int might match the return type of a GCC
12902 builtin and then its argument prototype would still apply. */
12903#ifdef __cplusplus
12904extern "C"
12905#endif
12906char socket ();
f030cae8
VY
12907int
12908main ()
12909{
042acc47 12910return socket ();
b57f37fb
WP
12911 ;
12912 return 0;
12913}
12914_ACEOF
042acc47
WP
12915for ac_lib in '' socket; do
12916 if test -z "$ac_lib"; then
12917 ac_res="none required"
12918 else
12919 ac_res=-l$ac_lib
12920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12921 fi
12922 if ac_fn_c_try_link "$LINENO"; then :
12923 ac_cv_search_socket=$ac_res
12924fi
12925rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext
12e39525 12927 if ${ac_cv_search_socket+:} false; then :
042acc47
WP
12928 break
12929fi
12930done
12e39525 12931if ${ac_cv_search_socket+:} false; then :
042acc47 12932
b57f37fb 12933else
042acc47
WP
12934 ac_cv_search_socket=no
12935fi
12936rm conftest.$ac_ext
12937LIBS=$ac_func_search_save_LIBS
12938fi
12939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12940$as_echo "$ac_cv_search_socket" >&6; }
12941ac_res=$ac_cv_search_socket
12942if test "$ac_res" != no; then :
12943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b57f37fb 12944
b57f37fb
WP
12945fi
12946
f030cae8
VY
12947
12948
042acc47
WP
12949ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
12950#ifdef HAVE_SYS_TYPES_H
12951#include <sys/types.h>
12952#endif
12953#ifdef HAVE_SYS_SOCKET_H
12954#include <sys/socket.h>
12955#endif
12956#ifdef HAVE_WINSOCK2_H
12957#include <winsock2.h>
12958#endif
12959
12960"
12e39525 12961if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
042acc47
WP
12962
12963$as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
f030cae8 12964
f030cae8 12965fi
042acc47
WP
12966
12967
12968ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12969#include <sys/socket.h>
12970"
12e39525 12971if test "x$ac_cv_type_socklen_t" = xyes; then :
f030cae8 12972 rb_cv_socklen_t=socklen_t
b57f37fb
WP
12973else
12974
042acc47 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
f030cae8 12976$as_echo_n "checking for socklen_t equivalent... " >&6; }
12e39525 12977 if ${rb_cv_socklen_t+:} false; then :
f030cae8 12978 $as_echo_n "(cached) " >&6
4414eb3c
VY
12979else
12980
12981 # Systems have either "struct sockaddr *" or
12982 # "void *" as the second argument to getpeername
f030cae8 12983 rb_cv_socklen_t=
4414eb3c
VY
12984 for arg2 in "struct sockaddr" void; do
12985 for t in int size_t unsigned long "unsigned long"; do
042acc47 12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414eb3c
VY
12987/* end confdefs.h. */
12988
94b4fbf9 12989#ifdef HAVE_SYS_TYPES_H
4414eb3c 12990#include <sys/types.h>
94b4fbf9
VY
12991#endif
12992#ifdef HAVE_SYS_SOCKET_H
4414eb3c 12993#include <sys/socket.h>
94b4fbf9
VY
12994#endif
12995#ifdef HAVE_WINSOCK2_H
12996#include <winsock2.h>
12997#endif
4414eb3c
VY
12998int getpeername (int, $arg2 *, $t *);
12999
13000int
13001main ()
13002{
13003
13004$t len;
13005getpeername(0,0,&len);
13006
13007 ;
13008 return 0;
13009}
b57f37fb 13010_ACEOF
042acc47 13011if ac_fn_c_try_compile "$LINENO"; then :
4414eb3c 13012
f030cae8 13013 rb_cv_socklen_t="$t"
4414eb3c
VY
13014 break
13015
4414eb3c 13016fi
4414eb3c
VY
13017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13018 done
13019 done
13020
f030cae8 13021 if test "x$rb_cv_socklen_t" = x; then
042acc47 13022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
f030cae8
VY
13023$as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
13024 rb_cv_socklen_t=int
4414eb3c
VY
13025 fi
13026
13027fi
13028
042acc47
WP
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
13030$as_echo "$rb_cv_socklen_t" >&6; }
13031fi
13032
13033
13034rb_socklen_t=$rb_cv_socklen_t
13035
13036
13037
13038
13039
13040# Check whether --enable-ipv6 was given.
13041if test "${enable_ipv6+set}" = set; then :
13042 enableval=$enable_ipv6; ipv6=$enableval
13043else
13044 ipv6=yes
13045fi
13046
13047
13048if test x$ipv6 != xyes; then
13049 have_v6="no"
13050else
13051
13052have_v6=yes
13053
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
13055$as_echo_n "checking for INET6 protocol support... " >&6; }
12e39525 13056if ${rb_cv_proto_inet6+:} false; then :
042acc47
WP
13057 $as_echo_n "(cached) " >&6
13058else
13059
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061/* end confdefs.h. */
13062
13063#include <sys/types.h>
13064#include <sys/socket.h>
13065
13066#ifndef PF_INET6
13067#error Missing PF_INET6
13068#endif
13069#ifndef AF_INET6
13070#error Mlssing AF_INET6
13071#endif
13072
13073_ACEOF
13074if ac_fn_c_try_cpp "$LINENO"; then :
13075
13076 rb_cv_proto_inet6=yes
13077
13078else
13079
13080 rb_cv_proto_inet6=no
13081
13082fi
12e39525 13083rm -f conftest.err conftest.i conftest.$ac_ext
042acc47
WP
13084
13085fi
13086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
13087$as_echo "$rb_cv_proto_inet6" >&6; }
13088
13089 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
13090
13091 else :
13092
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
13094$as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
13095 have_v6=no
13096
13097 fi
13098
13099
13100 if test "X$have_v6" = "Xyes"; then
13101
13102 rb_have_sockaddr_in6=
13103 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
13104#include <sys/types.h>
13105#include <sys/socket.h>
13106#include <netinet/in.h>
13107
13108"
12e39525 13109if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
042acc47
WP
13110
13111cat >>confdefs.h <<_ACEOF
13112#define HAVE_STRUCT_SOCKADDR_IN6 1
13113_ACEOF
13114
13115
13116 rb_have_sockaddr_in6=yes
13117
13118else
13119
13120 rb_have_sockaddr_in6=no
13121
13122fi
13123
13124
13125 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
13126
13127 else :
13128
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
13130$as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
13131 have_v6=no
13132
13133 fi
13134
13135 fi
13136
13137fi
13138
13139ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
13140 #include <sys/types.h>
13141 #include <sys/socket.h>
13142
13143"
12e39525 13144if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
042acc47
WP
13145
13146cat >>confdefs.h <<_ACEOF
13147#define HAVE_STRUCT_SOCKADDR_STORAGE 1
13148_ACEOF
13149
13150
13151 rb_have_sockaddr_storage=yes
13152
13153fi
13154
13155
13156
042acc47 13157ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
12e39525 13158if test "x$ac_cv_header_stdarg_h" = xyes; then :
b57f37fb 13159
042acc47 13160else
12e39525 13161 as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
042acc47 13162fi
b57f37fb 13163
b57f37fb 13164
b57f37fb 13165
042acc47
WP
13166ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
13167#include <sys/socket.h>
13168"
12e39525 13169if test "x$ac_cv_type_sa_family_t" = xyes; then :
b57f37fb
WP
13170
13171else
b57f37fb 13172
042acc47 13173$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
b57f37fb
WP
13174
13175fi
b57f37fb 13176
b57f37fb 13177
b57f37fb 13178
042acc47
WP
13179for ac_func in socketpair gettimeofday writev sendmsg gmtime_r strtok_r usleep posix_spawn strlcpy strlcat strnlen fstat signalfd select poll kevent port_create epoll_ctl arc4random getrusage timerfd_create
13180do :
13181 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13182ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12e39525 13183if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
042acc47
WP
13184 cat >>confdefs.h <<_ACEOF
13185#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13186_ACEOF
b57f37fb 13187
042acc47
WP
13188fi
13189done
b57f37fb 13190
b57f37fb 13191
042acc47
WP
13192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
13193$as_echo_n "checking for library containing nanosleep... " >&6; }
12e39525 13194if ${ac_cv_search_nanosleep+:} false; then :
f030cae8 13195 $as_echo_n "(cached) " >&6
b57f37fb 13196else
042acc47
WP
13197 ac_func_search_save_LIBS=$LIBS
13198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
13199/* end confdefs.h. */
13200
042acc47
WP
13201/* Override any GCC internal prototype to avoid an error.
13202 Use char because int might match the return type of a GCC
13203 builtin and then its argument prototype would still apply. */
13204#ifdef __cplusplus
13205extern "C"
13206#endif
13207char nanosleep ();
b57f37fb
WP
13208int
13209main ()
13210{
042acc47 13211return nanosleep ();
f030cae8 13212 ;
b57f37fb 13213 return 0;
f030cae8
VY
13214}
13215_ACEOF
042acc47
WP
13216for ac_lib in '' rt posix4; do
13217 if test -z "$ac_lib"; then
13218 ac_res="none required"
13219 else
13220 ac_res=-l$ac_lib
13221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13222 fi
13223 if ac_fn_c_try_link "$LINENO"; then :
13224 ac_cv_search_nanosleep=$ac_res
13225fi
13226rm -f core conftest.err conftest.$ac_objext \
13227 conftest$ac_exeext
12e39525 13228 if ${ac_cv_search_nanosleep+:} false; then :
042acc47
WP
13229 break
13230fi
13231done
12e39525 13232if ${ac_cv_search_nanosleep+:} false; then :
f030cae8 13233
042acc47
WP
13234else
13235 ac_cv_search_nanosleep=no
13236fi
13237rm conftest.$ac_ext
13238LIBS=$ac_func_search_save_LIBS
13239fi
13240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
13241$as_echo "$ac_cv_search_nanosleep" >&6; }
13242ac_res=$ac_cv_search_nanosleep
13243if test "$ac_res" != no; then :
13244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
f030cae8 13245
042acc47
WP
13246$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
13247
13248fi
13249
13250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
13251$as_echo_n "checking for library containing timer_create... " >&6; }
12e39525 13252if ${ac_cv_search_timer_create+:} false; then :
042acc47
WP
13253 $as_echo_n "(cached) " >&6
13254else
13255 ac_func_search_save_LIBS=$LIBS
13256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257/* end confdefs.h. */
f030cae8 13258
042acc47
WP
13259/* Override any GCC internal prototype to avoid an error.
13260 Use char because int might match the return type of a GCC
13261 builtin and then its argument prototype would still apply. */
13262#ifdef __cplusplus
13263extern "C"
13264#endif
13265char timer_create ();
f030cae8
VY
13266int
13267main ()
13268{
042acc47 13269return timer_create ();
b57f37fb
WP
13270 ;
13271 return 0;
13272}
13273_ACEOF
042acc47
WP
13274for ac_lib in '' rt; do
13275 if test -z "$ac_lib"; then
13276 ac_res="none required"
13277 else
13278 ac_res=-l$ac_lib
13279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13280 fi
13281 if ac_fn_c_try_link "$LINENO"; then :
13282 ac_cv_search_timer_create=$ac_res
13283fi
13284rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext
12e39525 13286 if ${ac_cv_search_timer_create+:} false; then :
042acc47 13287 break
f030cae8 13288fi
042acc47 13289done
12e39525 13290if ${ac_cv_search_timer_create+:} false; then :
f030cae8 13291
b57f37fb 13292else
042acc47 13293 ac_cv_search_timer_create=no
b57f37fb 13294fi
042acc47
WP
13295rm conftest.$ac_ext
13296LIBS=$ac_func_search_save_LIBS
b57f37fb 13297fi
042acc47
WP
13298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
13299$as_echo "$ac_cv_search_timer_create" >&6; }
13300ac_res=$ac_cv_search_timer_create
13301if test "$ac_res" != no; then :
13302 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b57f37fb 13303
042acc47 13304$as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
b57f37fb 13305
042acc47 13306fi
b57f37fb 13307
042acc47
WP
13308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
13309$as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
12e39525 13310if ${rb__cv_timer_create_works+:} false; then :
042acc47
WP
13311 $as_echo_n "(cached) " >&6
13312else
13313 if test "$cross_compiling" = yes; then :
13314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525
JH
13316as_fn_error $? "cannot run test program while cross compiling
13317See \`config.log' for more details" "$LINENO" 5; }
b57f37fb 13318else
042acc47
WP
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320/* end confdefs.h. */
b57f37fb 13321
042acc47
WP
13322#ifdef HAVE_TIME_H
13323#include <time.h>
13324#endif
13325#ifdef HAVE_SIGNAL_H
13326#include <signal.h>
13327#endif
13328#ifdef HAVE_UNISTD_H
13329#include <unistd.h>
13330#endif
13331int main(int argc, char *argv[])
13332{
13333#if HAVE_TIMER_CREATE
13334 struct sigevent ev;
13335 timer_t timer;
13336 ev.sigev_notify = SIGEV_SIGNAL;
13337 ev.sigev_signo = SIGVTALRM;
13338 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
13339 return 1;
13340 }
13341#else
13342 return 1;
13343#endif
13344 return 0;
13345}
b57f37fb 13346
042acc47
WP
13347_ACEOF
13348if ac_fn_c_try_run "$LINENO"; then :
13349 rb__cv_timer_create_works=yes
13350else
13351 rb__cv_timer_create_works=no
13352fi
13353rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13354 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb
WP
13355fi
13356
13357
042acc47
WP
13358fi
13359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
13360$as_echo "$rb__cv_timer_create_works" >&6; }
13361case $rb__cv_timer_create_works in
13362 yes)
13363$as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
13364;;
13365esac
b57f37fb 13366
042acc47
WP
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
13368$as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
12e39525 13369if ${rb__cv_timerfd_create_works+:} false; then :
042acc47
WP
13370 $as_echo_n "(cached) " >&6
13371else
13372 if test "$cross_compiling" = yes; then :
13373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525
JH
13375as_fn_error $? "cannot run test program while cross compiling
13376See \`config.log' for more details" "$LINENO" 5; }
042acc47
WP
13377else
13378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379/* end confdefs.h. */
b57f37fb 13380
042acc47
WP
13381#ifdef HAVE_TIME_H
13382#include <time.h>
13383#endif
13384#ifdef HAVE_SIGNAL_H
13385#include <signal.h>
13386#endif
13387#ifdef HAVE_UNISTD_H
13388#include <unistd.h>
13389#endif
13390#ifdef HAVE_SYS_TIMERFD_H
13391#include <sys/timerfd.h>
13392#endif
13393int main(int argc, char *argv[])
13394{
13395#if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
13396 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
13397 return 1;
13398 }
13399#else
13400 return 1;
13401#endif
13402 return 0;
13403}
b57f37fb 13404
042acc47
WP
13405_ACEOF
13406if ac_fn_c_try_run "$LINENO"; then :
13407 rb__cv_timerfd_create_works=yes
13408else
13409 rb__cv_timerfd_create_works=no
13410fi
13411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13412 conftest.$ac_objext conftest.beam conftest.$ac_ext
13413fi
b57f37fb 13414
b57f37fb
WP
13415
13416fi
042acc47
WP
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
13418$as_echo "$rb__cv_timerfd_create_works" >&6; }
13419case $rb__cv_timerfd_create_works in
13420 yes)
13421$as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
13422;;
13423esac
b57f37fb 13424
042acc47
WP
13425
13426# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13427# for constant arguments. Useless!
13428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13429$as_echo_n "checking for working alloca.h... " >&6; }
12e39525 13430if ${ac_cv_working_alloca_h+:} false; then :
f030cae8 13431 $as_echo_n "(cached) " >&6
b57f37fb 13432else
042acc47 13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8 13434/* end confdefs.h. */
042acc47 13435#include <alloca.h>
f030cae8
VY
13436int
13437main ()
13438{
042acc47
WP
13439char *p = (char *) alloca (2 * sizeof (int));
13440 if (p) return 0;
b57f37fb
WP
13441 ;
13442 return 0;
13443}
13444_ACEOF
042acc47
WP
13445if ac_fn_c_try_link "$LINENO"; then :
13446 ac_cv_working_alloca_h=yes
f030cae8 13447else
042acc47 13448 ac_cv_working_alloca_h=no
b57f37fb 13449fi
042acc47
WP
13450rm -f core conftest.err conftest.$ac_objext \
13451 conftest$ac_exeext conftest.$ac_ext
f030cae8 13452fi
042acc47
WP
13453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13454$as_echo "$ac_cv_working_alloca_h" >&6; }
13455if test $ac_cv_working_alloca_h = yes; then
b57f37fb 13456
042acc47 13457$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
b57f37fb
WP
13458
13459fi
13460
042acc47
WP
13461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13462$as_echo_n "checking for alloca... " >&6; }
12e39525 13463if ${ac_cv_func_alloca_works+:} false; then :
f030cae8 13464 $as_echo_n "(cached) " >&6
b57f37fb 13465else
042acc47 13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 13467/* end confdefs.h. */
042acc47
WP
13468#ifdef __GNUC__
13469# define alloca __builtin_alloca
13470#else
13471# ifdef _MSC_VER
13472# include <malloc.h>
13473# define alloca _alloca
13474# else
13475# ifdef HAVE_ALLOCA_H
13476# include <alloca.h>
13477# else
13478# ifdef _AIX
13479 #pragma alloca
13480# else
13481# ifndef alloca /* predefined by HP cc +Olibcalls */
12e39525 13482void *alloca (size_t);
042acc47
WP
13483# endif
13484# endif
13485# endif
13486# endif
b57f37fb 13487#endif
042acc47 13488
b57f37fb
WP
13489int
13490main ()
13491{
042acc47
WP
13492char *p = (char *) alloca (1);
13493 if (p) return 0;
b57f37fb
WP
13494 ;
13495 return 0;
13496}
13497_ACEOF
042acc47
WP
13498if ac_fn_c_try_link "$LINENO"; then :
13499 ac_cv_func_alloca_works=yes
b57f37fb 13500else
042acc47 13501 ac_cv_func_alloca_works=no
b57f37fb 13502fi
042acc47
WP
13503rm -f core conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
b57f37fb 13505fi
042acc47
WP
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13507$as_echo "$ac_cv_func_alloca_works" >&6; }
b57f37fb 13508
042acc47 13509if test $ac_cv_func_alloca_works = yes; then
b57f37fb 13510
042acc47 13511$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
b57f37fb 13512
b57f37fb 13513else
042acc47
WP
13514 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13515# that cause trouble. Some versions do not even contain alloca or
13516# contain a buggy version. If you still want to use their alloca,
13517# use ar to extract alloca.o from them instead of compiling alloca.c.
b57f37fb 13518
042acc47 13519ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
b57f37fb 13520
042acc47 13521$as_echo "#define C_ALLOCA 1" >>confdefs.h
b57f37fb
WP
13522
13523
042acc47
WP
13524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13525$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12e39525 13526if ${ac_cv_os_cray+:} false; then :
f030cae8 13527 $as_echo_n "(cached) " >&6
b57f37fb 13528else
042acc47 13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 13530/* end confdefs.h. */
042acc47
WP
13531#if defined CRAY && ! defined CRAY2
13532webecray
13533#else
13534wenotbecray
13535#endif
b57f37fb 13536
b57f37fb 13537_ACEOF
042acc47
WP
13538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13539 $EGREP "webecray" >/dev/null 2>&1; then :
13540 ac_cv_os_cray=yes
b57f37fb 13541else
042acc47 13542 ac_cv_os_cray=no
b57f37fb 13543fi
042acc47 13544rm -f conftest*
b57f37fb 13545
b57f37fb 13546fi
042acc47
WP
13547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13548$as_echo "$ac_cv_os_cray" >&6; }
13549if test $ac_cv_os_cray = yes; then
13550 for ac_func in _getb67 GETB67 getb67; do
13551 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13552ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12e39525 13553if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
b57f37fb 13554
042acc47
WP
13555cat >>confdefs.h <<_ACEOF
13556#define CRAY_STACKSEG_END $ac_func
13557_ACEOF
b57f37fb 13558
042acc47
WP
13559 break
13560fi
b57f37fb 13561
042acc47
WP
13562 done
13563fi
b57f37fb 13564
042acc47
WP
13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13566$as_echo_n "checking stack direction for C alloca... " >&6; }
12e39525 13567if ${ac_cv_c_stack_direction+:} false; then :
f030cae8 13568 $as_echo_n "(cached) " >&6
b57f37fb 13569else
042acc47
WP
13570 if test "$cross_compiling" = yes; then :
13571 ac_cv_c_stack_direction=0
13572else
13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 13574/* end confdefs.h. */
042acc47 13575$ac_includes_default
b57f37fb 13576int
042acc47 13577find_stack_direction ()
b57f37fb 13578{
042acc47
WP
13579 static char *addr = 0;
13580 auto char dummy;
13581 if (addr == 0)
13582 {
13583 addr = &dummy;
13584 return find_stack_direction ();
13585 }
13586 else
13587 return (&dummy > addr) ? 1 : -1;
f030cae8 13588}
f030cae8
VY
13589
13590int
13591main ()
13592{
042acc47 13593 return find_stack_direction () < 0;
b57f37fb
WP
13594}
13595_ACEOF
042acc47
WP
13596if ac_fn_c_try_run "$LINENO"; then :
13597 ac_cv_c_stack_direction=1
f030cae8 13598else
042acc47 13599 ac_cv_c_stack_direction=-1
f030cae8 13600fi
042acc47
WP
13601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13602 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb
WP
13603fi
13604
b57f37fb 13605fi
042acc47
WP
13606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13607$as_echo "$ac_cv_c_stack_direction" >&6; }
13608cat >>confdefs.h <<_ACEOF
13609#define STACK_DIRECTION $ac_cv_c_stack_direction
b57f37fb
WP
13610_ACEOF
13611
b57f37fb 13612
042acc47 13613fi
b57f37fb 13614
042acc47
WP
13615for ac_header in vfork.h
13616do :
13617 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12e39525 13618if test "x$ac_cv_header_vfork_h" = xyes; then :
042acc47
WP
13619 cat >>confdefs.h <<_ACEOF
13620#define HAVE_VFORK_H 1
13621_ACEOF
b57f37fb 13622
042acc47 13623fi
b57f37fb 13624
042acc47 13625done
4414eb3c 13626
042acc47
WP
13627for ac_func in fork vfork
13628do :
13629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13630ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12e39525 13631if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
042acc47
WP
13632 cat >>confdefs.h <<_ACEOF
13633#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13634_ACEOF
4414eb3c 13635
042acc47
WP
13636fi
13637done
94b4fbf9 13638
042acc47
WP
13639if test "x$ac_cv_func_fork" = xyes; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13641$as_echo_n "checking for working fork... " >&6; }
12e39525 13642if ${ac_cv_func_fork_works+:} false; then :
f030cae8 13643 $as_echo_n "(cached) " >&6
b57f37fb 13644else
042acc47
WP
13645 if test "$cross_compiling" = yes; then :
13646 ac_cv_func_fork_works=cross
13647else
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 13649/* end confdefs.h. */
042acc47 13650$ac_includes_default
b57f37fb
WP
13651int
13652main ()
13653{
042acc47
WP
13654
13655 /* By Ruediger Kuhlmann. */
13656 return fork () < 0;
13657
b57f37fb
WP
13658 ;
13659 return 0;
13660}
13661_ACEOF
042acc47
WP
13662if ac_fn_c_try_run "$LINENO"; then :
13663 ac_cv_func_fork_works=yes
b57f37fb 13664else
042acc47 13665 ac_cv_func_fork_works=no
b57f37fb 13666fi
042acc47
WP
13667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13668 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb 13669fi
b57f37fb
WP
13670
13671fi
042acc47
WP
13672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13673$as_echo "$ac_cv_func_fork_works" >&6; }
b57f37fb 13674
042acc47
WP
13675else
13676 ac_cv_func_fork_works=$ac_cv_func_fork
13677fi
13678if test "x$ac_cv_func_fork_works" = xcross; then
13679 case $host in
13680 *-*-amigaos* | *-*-msdosdjgpp*)
13681 # Override, as these systems have only a dummy fork() stub
13682 ac_cv_func_fork_works=no
13683 ;;
13684 *)
13685 ac_cv_func_fork_works=yes
13686 ;;
13687 esac
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13689$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13690fi
13691ac_cv_func_vfork_works=$ac_cv_func_vfork
13692if test "x$ac_cv_func_vfork" = xyes; then
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13694$as_echo_n "checking for working vfork... " >&6; }
12e39525 13695if ${ac_cv_func_vfork_works+:} false; then :
f030cae8 13696 $as_echo_n "(cached) " >&6
b57f37fb 13697else
042acc47
WP
13698 if test "$cross_compiling" = yes; then :
13699 ac_cv_func_vfork_works=cross
13700else
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 13702/* end confdefs.h. */
042acc47
WP
13703/* Thanks to Paul Eggert for this test. */
13704$ac_includes_default
13705#include <sys/wait.h>
13706#ifdef HAVE_VFORK_H
13707# include <vfork.h>
13708#endif
13709/* On some sparc systems, changes by the child to local and incoming
13710 argument registers are propagated back to the parent. The compiler
13711 is told about this with #include <vfork.h>, but some compilers
13712 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13713 static variable whose address is put into a register that is
13714 clobbered by the vfork. */
13715static void
b57f37fb 13716#ifdef __cplusplus
042acc47
WP
13717sparc_address_test (int arg)
13718# else
13719sparc_address_test (arg) int arg;
b57f37fb 13720#endif
042acc47
WP
13721{
13722 static pid_t child;
13723 if (!child) {
13724 child = vfork ();
13725 if (child < 0) {
13726 perror ("vfork");
13727 _exit(2);
13728 }
13729 if (!child) {
13730 arg = getpid();
13731 write(-1, "", 0);
13732 _exit (arg);
13733 }
13734 }
13735}
13736
b57f37fb
WP
13737int
13738main ()
13739{
042acc47
WP
13740 pid_t parent = getpid ();
13741 pid_t child;
13742
13743 sparc_address_test (0);
13744
13745 child = vfork ();
13746
13747 if (child == 0) {
13748 /* Here is another test for sparc vfork register problems. This
13749 test uses lots of local variables, at least as many local
13750 variables as main has allocated so far including compiler
13751 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13752 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13753 reuse the register of parent for one of the local variables,
13754 since it will think that parent can't possibly be used any more
13755 in this routine. Assigning to the local variable will thus
13756 munge parent in the parent process. */
13757 pid_t
13758 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13759 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13760 /* Convince the compiler that p..p7 are live; otherwise, it might
13761 use the same hardware register for all 8 local variables. */
13762 if (p != p1 || p != p2 || p != p3 || p != p4
13763 || p != p5 || p != p6 || p != p7)
13764 _exit(1);
b57f37fb 13765
042acc47
WP
13766 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13767 from child file descriptors. If the child closes a descriptor
13768 before it execs or exits, this munges the parent's descriptor
13769 as well. Test for this by closing stdout in the child. */
13770 _exit(close(fileno(stdout)) != 0);
13771 } else {
13772 int status;
13773 struct stat st;
b57f37fb 13774
042acc47
WP
13775 while (wait(&status) != child)
13776 ;
13777 return (
13778 /* Was there some problem with vforking? */
13779 child < 0
b57f37fb 13780
042acc47
WP
13781 /* Did the child fail? (This shouldn't happen.) */
13782 || status
13783
13784 /* Did the vfork/compiler bug occur? */
13785 || parent != getpid()
13786
13787 /* Did the file descriptor bug occur? */
13788 || fstat(fileno(stdout), &st) != 0
13789 );
13790 }
13791}
13792_ACEOF
13793if ac_fn_c_try_run "$LINENO"; then :
13794 ac_cv_func_vfork_works=yes
b57f37fb 13795else
042acc47 13796 ac_cv_func_vfork_works=no
b57f37fb 13797fi
042acc47
WP
13798rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13799 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb 13800fi
b57f37fb 13801
042acc47
WP
13802fi
13803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13804$as_echo "$ac_cv_func_vfork_works" >&6; }
b57f37fb 13805
042acc47
WP
13806fi;
13807if test "x$ac_cv_func_fork_works" = xcross; then
13808 ac_cv_func_vfork_works=$ac_cv_func_vfork
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13810$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
b57f37fb
WP
13811fi
13812
042acc47
WP
13813if test "x$ac_cv_func_vfork_works" = xyes; then
13814
13815$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
b57f37fb 13816
b57f37fb 13817else
b57f37fb 13818
042acc47 13819$as_echo "#define vfork fork" >>confdefs.h
b57f37fb
WP
13820
13821fi
042acc47
WP
13822if test "x$ac_cv_func_fork_works" = xyes; then
13823
13824$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
b57f37fb 13825
b57f37fb 13826fi
042acc47 13827
1800d973
WP
13828
13829
13830
13831 for ac_header in $ac_header_list
042acc47
WP
13832do :
13833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1800d973
WP
13834ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13835"
12e39525 13836if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
042acc47
WP
13837 cat >>confdefs.h <<_ACEOF
13838#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13839_ACEOF
13840
b57f37fb 13841fi
b57f37fb 13842
042acc47
WP
13843done
13844
1800d973
WP
13845
13846
13847
13848
13849
13850
13851
042acc47
WP
13852for ac_func in getpagesize
13853do :
13854 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12e39525 13855if test "x$ac_cv_func_getpagesize" = xyes; then :
042acc47
WP
13856 cat >>confdefs.h <<_ACEOF
13857#define HAVE_GETPAGESIZE 1
b57f37fb
WP
13858_ACEOF
13859
13860fi
042acc47 13861done
b57f37fb 13862
042acc47
WP
13863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13864$as_echo_n "checking for working mmap... " >&6; }
12e39525 13865if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
f030cae8 13866 $as_echo_n "(cached) " >&6
b57f37fb 13867else
042acc47
WP
13868 if test "$cross_compiling" = yes; then :
13869 ac_cv_func_mmap_fixed_mapped=no
13870else
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 13872/* end confdefs.h. */
042acc47
WP
13873$ac_includes_default
13874/* malloc might have been renamed as rpl_malloc. */
13875#undef malloc
b57f37fb 13876
042acc47
WP
13877/* Thanks to Mike Haertel and Jim Avera for this test.
13878 Here is a matrix of mmap possibilities:
13879 mmap private not fixed
13880 mmap private fixed at somewhere currently unmapped
13881 mmap private fixed at somewhere already mapped
13882 mmap shared not fixed
13883 mmap shared fixed at somewhere currently unmapped
13884 mmap shared fixed at somewhere already mapped
13885 For private mappings, we should verify that changes cannot be read()
13886 back from the file, nor mmap's back from the file at a different
13887 address. (There have been systems where private was not correctly
13888 implemented like the infamous i386 svr4.0, and systems where the
13889 VM page cache was not coherent with the file system buffer cache
13890 like early versions of FreeBSD and possibly contemporary NetBSD.)
13891 For shared mappings, we should conversely verify that changes get
13892 propagated back to all the places they're supposed to be.
13893
13894 Grep wants private fixed already mapped.
13895 The main things grep needs to know about mmap are:
13896 * does it exist and is it safe to write into the mmap'd area
13897 * how to use it (BSD variants) */
13898
13899#include <fcntl.h>
13900#include <sys/mman.h>
13901
13902#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13903char *malloc ();
b57f37fb 13904#endif
042acc47
WP
13905
13906/* This mess was copied from the GNU getpagesize.h. */
13907#ifndef HAVE_GETPAGESIZE
042acc47
WP
13908# ifdef _SC_PAGESIZE
13909# define getpagesize() sysconf(_SC_PAGESIZE)
13910# else /* no _SC_PAGESIZE */
13911# ifdef HAVE_SYS_PARAM_H
13912# include <sys/param.h>
13913# ifdef EXEC_PAGESIZE
13914# define getpagesize() EXEC_PAGESIZE
13915# else /* no EXEC_PAGESIZE */
13916# ifdef NBPG
13917# define getpagesize() NBPG * CLSIZE
13918# ifndef CLSIZE
13919# define CLSIZE 1
13920# endif /* no CLSIZE */
13921# else /* no NBPG */
13922# ifdef NBPC
13923# define getpagesize() NBPC
13924# else /* no NBPC */
13925# ifdef PAGESIZE
13926# define getpagesize() PAGESIZE
13927# endif /* PAGESIZE */
13928# endif /* no NBPC */
13929# endif /* no NBPG */
13930# endif /* no EXEC_PAGESIZE */
13931# else /* no HAVE_SYS_PARAM_H */
13932# define getpagesize() 8192 /* punt totally */
13933# endif /* no HAVE_SYS_PARAM_H */
13934# endif /* no _SC_PAGESIZE */
13935
13936#endif /* no HAVE_GETPAGESIZE */
13937
13938int
13939main ()
b57f37fb 13940{
042acc47 13941 char *data, *data2, *data3;
12e39525 13942 const char *cdata2;
042acc47 13943 int i, pagesize;
1800d973 13944 int fd, fd2;
042acc47
WP
13945
13946 pagesize = getpagesize ();
13947
13948 /* First, make a file with some known garbage in it. */
13949 data = (char *) malloc (pagesize);
13950 if (!data)
13951 return 1;
13952 for (i = 0; i < pagesize; ++i)
13953 *(data + i) = rand ();
13954 umask (0);
13955 fd = creat ("conftest.mmap", 0600);
13956 if (fd < 0)
1800d973 13957 return 2;
042acc47 13958 if (write (fd, data, pagesize) != pagesize)
1800d973 13959 return 3;
042acc47
WP
13960 close (fd);
13961
1800d973
WP
13962 /* Next, check that the tail of a page is zero-filled. File must have
13963 non-zero length, otherwise we risk SIGBUS for entire page. */
13964 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13965 if (fd2 < 0)
13966 return 4;
12e39525
JH
13967 cdata2 = "";
13968 if (write (fd2, cdata2, 1) != 1)
1800d973 13969 return 5;
12e39525 13970 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
1800d973
WP
13971 if (data2 == MAP_FAILED)
13972 return 6;
13973 for (i = 0; i < pagesize; ++i)
13974 if (*(data2 + i))
13975 return 7;
13976 close (fd2);
13977 if (munmap (data2, pagesize))
13978 return 8;
13979
042acc47
WP
13980 /* Next, try to mmap the file at a fixed address which already has
13981 something else allocated at it. If we can, also make sure that
13982 we see the same garbage. */
13983 fd = open ("conftest.mmap", O_RDWR);
13984 if (fd < 0)
1800d973 13985 return 9;
042acc47
WP
13986 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13987 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1800d973 13988 return 10;
042acc47
WP
13989 for (i = 0; i < pagesize; ++i)
13990 if (*(data + i) != *(data2 + i))
1800d973 13991 return 11;
042acc47
WP
13992
13993 /* Finally, make sure that changes to the mapped area do not
13994 percolate back to the file as seen by read(). (This is a bug on
13995 some variants of i386 svr4.0.) */
13996 for (i = 0; i < pagesize; ++i)
13997 *(data2 + i) = *(data2 + i) + 1;
13998 data3 = (char *) malloc (pagesize);
13999 if (!data3)
1800d973 14000 return 12;
042acc47 14001 if (read (fd, data3, pagesize) != pagesize)
1800d973 14002 return 13;
042acc47
WP
14003 for (i = 0; i < pagesize; ++i)
14004 if (*(data + i) != *(data3 + i))
1800d973 14005 return 14;
042acc47
WP
14006 close (fd);
14007 return 0;
b57f37fb 14008}
b57f37fb 14009_ACEOF
042acc47
WP
14010if ac_fn_c_try_run "$LINENO"; then :
14011 ac_cv_func_mmap_fixed_mapped=yes
b57f37fb 14012else
042acc47 14013 ac_cv_func_mmap_fixed_mapped=no
b57f37fb 14014fi
042acc47
WP
14015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14016 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb
WP
14017fi
14018
042acc47
WP
14019fi
14020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14021$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14022if test $ac_cv_func_mmap_fixed_mapped = yes; then
b57f37fb 14023
042acc47 14024$as_echo "#define HAVE_MMAP 1" >>confdefs.h
b57f37fb
WP
14025
14026fi
1800d973 14027rm -f conftest.mmap conftest.txt
b57f37fb 14028
94b4fbf9 14029
042acc47
WP
14030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14031$as_echo_n "checking for /dev/poll... " >&6; }
14032if test -c "/dev/poll"; then
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14034$as_echo "yes" >&6; }
94b4fbf9 14035
042acc47 14036$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
94b4fbf9 14037
042acc47
WP
14038else
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040$as_echo "no" >&6; }
94b4fbf9
VY
14041fi
14042
14043
042acc47
WP
14044if test "$is_mingw" = "yes"; then
14045
14046$as_echo "#define HAVE_WIN32 1" >>confdefs.h
94b4fbf9
VY
14047
14048fi
94b4fbf9 14049
b57f37fb 14050
042acc47
WP
14051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14052$as_echo_n "checking for OpenSSL... " >&6; }
14053# Check whether --enable-openssl was given.
14054if test "${enable_openssl+set}" = set; then :
14055 enableval=$enable_openssl; cf_enable_openssl=$enableval
b57f37fb 14056else
042acc47 14057 cf_enable_openssl="auto"
b57f37fb
WP
14058fi
14059
b57f37fb 14060
042acc47
WP
14061if test "$cf_enable_openssl" != "no" ; then
14062 cf_openssl_basedir=""
14063 if test "$cf_enable_openssl" != "auto" &&
14064 test "$cf_enable_openssl" != "yes" ; then
14065 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
14066 else
14067 for dirs in /usr/local/ssl /usr/pkg /usr/local \
14068 /usr/local/openssl ; do
14069 if test -f "${dirs}/include/openssl/opensslv.h" ; then
14070 cf_openssl_basedir="${dirs}"
14071 break
14072 fi
14073 done
14074 unset dirs
14075 fi
14076 if test ! -z "$cf_openssl_basedir"; then
14077 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
14078 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
14079 SSL_LIBS="-L${cf_openssl_basedir}/lib"
14080 else
14081 cf_openssl_basedir=""
14082 fi
14083 else
14084 if test -f "/usr/include/openssl/opensslv.h" ; then
14085 cf_openssl_basedir="/usr"
14086 fi
14087 fi
b57f37fb 14088
042acc47
WP
14089 if test ! -z "$cf_openssl_basedir"; then
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14091$as_echo "$cf_openssl_basedir" >&6; }
14092 cf_enable_openssl="yes"
14093 else
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
14095$as_echo "not found. Specify a correct path?" >&6; }
14096 cf_enable_openssl="no"
14097 fi
14098 unset cf_openssl_basedir
14099else
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14101$as_echo "disabled" >&6; }
b57f37fb
WP
14102fi
14103
042acc47
WP
14104save_CPPFLAGS="$CPPFLAGS"
14105CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
14106save_LIBS="$LIBS"
14107LIBS="$LIBS $SSL_LIBS"
14108if test "$cf_enable_openssl" != no; then
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
14110$as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
14111 if test "$cross_compiling" = yes; then :
14112 cf_enable_openssl=no
b57f37fb 14113else
042acc47 14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 14115/* end confdefs.h. */
042acc47
WP
14116#include <openssl/opensslv.h>
14117 #include <stdlib.h>
b57f37fb
WP
14118int
14119main ()
14120{
042acc47
WP
14121if (OPENSSL_VERSION_NUMBER >= 0x00907000)
14122 exit(0); else exit(1);
14123 ;
14124 return 0;
14125}
b57f37fb 14126_ACEOF
042acc47
WP
14127if ac_fn_c_try_run "$LINENO"; then :
14128 cf_enable_openssl=yes
14129else
14130 cf_enable_openssl=no
14131fi
14132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14133 conftest.$ac_objext conftest.beam conftest.$ac_ext
14134fi
b57f37fb
WP
14135
14136
042acc47
WP
14137 if test "$cf_enable_openssl" != no; then
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14139$as_echo "found" >&6; }
14140 else
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14142$as_echo "no - OpenSSL support disabled" >&6; }
14143 fi
b57f37fb 14144
b57f37fb 14145fi
b57f37fb 14146
042acc47
WP
14147
14148if test "$cf_enable_openssl" != no; then
14149 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
14151$as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
12e39525 14152if ${ac_cv_lib_crypto_RAND_status+:} false; then :
f030cae8 14153 $as_echo_n "(cached) " >&6
b57f37fb 14154else
042acc47
WP
14155 ac_check_lib_save_LIBS=$LIBS
14156LIBS="-lcrypto $LIBS"
14157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 14158/* end confdefs.h. */
b57f37fb
WP
14159
14160/* Override any GCC internal prototype to avoid an error.
14161 Use char because int might match the return type of a GCC
14162 builtin and then its argument prototype would still apply. */
14163#ifdef __cplusplus
14164extern "C"
14165#endif
042acc47 14166char RAND_status ();
b57f37fb
WP
14167int
14168main ()
14169{
042acc47 14170return RAND_status ();
b57f37fb
WP
14171 ;
14172 return 0;
14173}
14174_ACEOF
042acc47
WP
14175if ac_fn_c_try_link "$LINENO"; then :
14176 ac_cv_lib_crypto_RAND_status=yes
b57f37fb 14177else
042acc47 14178 ac_cv_lib_crypto_RAND_status=no
b57f37fb 14179fi
042acc47
WP
14180rm -f core conftest.err conftest.$ac_objext \
14181 conftest$ac_exeext conftest.$ac_ext
14182LIBS=$ac_check_lib_save_LIBS
b57f37fb 14183fi
042acc47
WP
14184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
14185$as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
12e39525 14186if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then :
042acc47
WP
14187 cf_enable_openssl=yes
14188else
14189 cf_enable_openssl=no
b57f37fb
WP
14190fi
14191
b57f37fb
WP
14192fi
14193
042acc47
WP
14194if test "$cf_enable_openssl" != no; then
14195 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
14197$as_echo_n "checking for SSL_read in -lssl... " >&6; }
12e39525 14198if ${ac_cv_lib_ssl_SSL_read+:} false; then :
f030cae8 14199 $as_echo_n "(cached) " >&6
b57f37fb 14200else
042acc47
WP
14201 ac_check_lib_save_LIBS=$LIBS
14202LIBS="-lssl -lcrypto $LIBS"
14203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 14204/* end confdefs.h. */
b57f37fb 14205
042acc47
WP
14206/* Override any GCC internal prototype to avoid an error.
14207 Use char because int might match the return type of a GCC
14208 builtin and then its argument prototype would still apply. */
14209#ifdef __cplusplus
14210extern "C"
14211#endif
14212char SSL_read ();
b57f37fb
WP
14213int
14214main ()
14215{
042acc47
WP
14216return SSL_read ();
14217 ;
14218 return 0;
b57f37fb
WP
14219}
14220_ACEOF
042acc47
WP
14221if ac_fn_c_try_link "$LINENO"; then :
14222 ac_cv_lib_ssl_SSL_read=yes
b57f37fb 14223else
042acc47 14224 ac_cv_lib_ssl_SSL_read=no
b57f37fb 14225fi
042acc47
WP
14226rm -f core conftest.err conftest.$ac_objext \
14227 conftest$ac_exeext conftest.$ac_ext
14228LIBS=$ac_check_lib_save_LIBS
14229fi
14230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
14231$as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
12e39525 14232if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then :
042acc47
WP
14233 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
14234else
14235 cf_enable_openssl=no
b57f37fb 14236fi
b57f37fb
WP
14237
14238fi
b57f37fb 14239
b57f37fb
WP
14240
14241
042acc47
WP
14242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
14243$as_echo_n "checking for GnuTLS... " >&6; }
14244# Check whether --enable-gnutls was given.
14245if test "${enable_gnutls+set}" = set; then :
14246 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
14247else
14248 cf_enable_gnutls="auto"
b57f37fb
WP
14249fi
14250
14251
042acc47
WP
14252if test "$cf_enable_gnutls" != no; then
14253
14254
bf9bfd26
JH
14255
14256
14257
14258
14259
042acc47
WP
14260if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14261 if test -n "$ac_tool_prefix"; then
14262 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14263set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14265$as_echo_n "checking for $ac_word... " >&6; }
12e39525 14266if ${ac_cv_path_PKG_CONFIG+:} false; then :
f030cae8 14267 $as_echo_n "(cached) " >&6
b57f37fb 14268else
042acc47
WP
14269 case $PKG_CONFIG in
14270 [\\/]* | ?:[\\/]*)
14271 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14272 ;;
14273 *)
14274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14275for as_dir in $PATH
14276do
14277 IFS=$as_save_IFS
14278 test -z "$as_dir" && as_dir=.
14279 for ac_exec_ext in '' $ac_executable_extensions; do
14280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14281 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14283 break 2
14284 fi
14285done
14286 done
14287IFS=$as_save_IFS
14288
14289 ;;
b57f37fb 14290esac
042acc47
WP
14291fi
14292PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14293if test -n "$PKG_CONFIG"; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14295$as_echo "$PKG_CONFIG" >&6; }
b57f37fb 14296else
042acc47
WP
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298$as_echo "no" >&6; }
14299fi
14300
b57f37fb 14301
b57f37fb 14302fi
042acc47
WP
14303if test -z "$ac_cv_path_PKG_CONFIG"; then
14304 ac_pt_PKG_CONFIG=$PKG_CONFIG
14305 # Extract the first word of "pkg-config", so it can be a program name with args.
14306set dummy pkg-config; ac_word=$2
14307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14308$as_echo_n "checking for $ac_word... " >&6; }
12e39525 14309if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
042acc47
WP
14310 $as_echo_n "(cached) " >&6
14311else
14312 case $ac_pt_PKG_CONFIG in
14313 [\\/]* | ?:[\\/]*)
14314 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14315 ;;
14316 *)
14317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14318for as_dir in $PATH
14319do
14320 IFS=$as_save_IFS
14321 test -z "$as_dir" && as_dir=.
14322 for ac_exec_ext in '' $ac_executable_extensions; do
14323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14324 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14326 break 2
14327 fi
14328done
14329 done
14330IFS=$as_save_IFS
b57f37fb 14331
042acc47
WP
14332 ;;
14333esac
14334fi
14335ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14336if test -n "$ac_pt_PKG_CONFIG"; then
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14338$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14339else
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14341$as_echo "no" >&6; }
14342fi
b57f37fb 14343
042acc47
WP
14344 if test "x$ac_pt_PKG_CONFIG" = x; then
14345 PKG_CONFIG=""
14346 else
14347 case $cross_compiling:$ac_tool_warned in
14348yes:)
14349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14351ac_tool_warned=yes ;;
b57f37fb 14352esac
042acc47
WP
14353 PKG_CONFIG=$ac_pt_PKG_CONFIG
14354 fi
b57f37fb 14355else
042acc47
WP
14356 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14357fi
b57f37fb 14358
b57f37fb 14359fi
042acc47
WP
14360if test -n "$PKG_CONFIG"; then
14361 _pkg_min_version=0.9.0
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14363$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14364 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14366$as_echo "yes" >&6; }
14367 else
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14369$as_echo "no" >&6; }
14370 PKG_CONFIG=""
14371 fi
042acc47 14372fi
b57f37fb 14373
042acc47
WP
14374pkg_failed=no
14375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
14376$as_echo_n "checking for GNUTLS... " >&6; }
b57f37fb 14377
1800d973
WP
14378if test -n "$GNUTLS_CFLAGS"; then
14379 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
14380 elif test -n "$PKG_CONFIG"; then
14381 if test -n "$PKG_CONFIG" && \
042acc47
WP
14382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
14383 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
14384 ac_status=$?
14385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14386 test $ac_status = 0; }; then
14387 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
bf9bfd26 14388 test "x$?" != "x0" && pkg_failed=yes
b57f37fb 14389else
042acc47 14390 pkg_failed=yes
b57f37fb 14391fi
1800d973
WP
14392 else
14393 pkg_failed=untried
b57f37fb 14394fi
1800d973
WP
14395if test -n "$GNUTLS_LIBS"; then
14396 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
14397 elif test -n "$PKG_CONFIG"; then
14398 if test -n "$PKG_CONFIG" && \
042acc47
WP
14399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
14400 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
14401 ac_status=$?
14402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14403 test $ac_status = 0; }; then
14404 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
bf9bfd26 14405 test "x$?" != "x0" && pkg_failed=yes
042acc47
WP
14406else
14407 pkg_failed=yes
14408fi
1800d973
WP
14409 else
14410 pkg_failed=untried
b57f37fb
WP
14411fi
14412
b57f37fb
WP
14413
14414
042acc47 14415if test $pkg_failed = yes; then
bf9bfd26
JH
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417$as_echo "no" >&6; }
b57f37fb 14418
042acc47
WP
14419if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14420 _pkg_short_errors_supported=yes
b57f37fb 14421else
042acc47
WP
14422 _pkg_short_errors_supported=no
14423fi
14424 if test $_pkg_short_errors_supported = yes; then
bf9bfd26 14425 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1`
042acc47 14426 else
bf9bfd26 14427 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1`
042acc47
WP
14428 fi
14429 # Put the nasty error message in config.log where it belongs
14430 echo "$GNUTLS_PKG_ERRORS" >&5
b57f37fb 14431
bf9bfd26 14432 cf_enable_gnutls="no"
042acc47 14433elif test $pkg_failed = untried; then
bf9bfd26
JH
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14435$as_echo "no" >&6; }
042acc47
WP
14436 cf_enable_gnutls="no"
14437else
14438 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
14439 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14441$as_echo "yes" >&6; }
b57f37fb 14442
042acc47 14443 cf_enable_gnutls="yes"
b57f37fb 14444
042acc47
WP
14445fi
14446fi
b57f37fb 14447
042acc47
WP
14448if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
14449 cf_enable_gnutls="no"
14450fi
b57f37fb 14451
042acc47 14452if test x"$cf_enable_openssl" != xno; then
b57f37fb 14453
042acc47 14454$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
b57f37fb 14455
042acc47
WP
14456 GNUTLS_CFLAGS=""
14457 GNUTLS_LIBS=""
14458 SSL_TYPE="openssl"
14459elif test x"$cf_enable_gnutls" != xno; then
14460
14461$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
b57f37fb 14462
042acc47
WP
14463 SSL_LIBS=""
14464 SSL_CFLAGS=""
14465 SSL_TYPE="gnutls"
b57f37fb 14466fi
b57f37fb 14467
b57f37fb 14468
b57f37fb 14469
b57f37fb 14470
042acc47
WP
14471CPPFLAGS="$save_CPPFLAGS"
14472LIBS="$save_LIBS"
14473
14474
b57f37fb
WP
14475
14476
b57f37fb 14477
b57f37fb 14478
042acc47
WP
14479# Check whether --enable-assert was given.
14480if test "${enable_assert+set}" = set; then :
14481 enableval=$enable_assert; assert=$enableval
14482else
14483 assert=no
14484fi
b57f37fb 14485
b57f37fb 14486
042acc47 14487if test "$assert" = no; then
b57f37fb 14488
042acc47 14489$as_echo "#define NDEBUG 1" >>confdefs.h
b57f37fb 14490
042acc47 14491elif test "$assert" = soft; then
b57f37fb 14492
042acc47 14493$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
b57f37fb 14494
b57f37fb 14495
042acc47 14496$as_echo "#define NDEBUG 1" >>confdefs.h
b57f37fb 14497
042acc47
WP
14498elif test "$assert" = yes; then
14499 assert = "hard";
14500fi
14501
14502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
14503$as_echo_n "checking if you want to do a profile build... " >&6; }
14504# Check whether --enable-profile was given.
14505if test "${enable_profile+set}" = set; then :
14506 enableval=$enable_profile; profile=$enableval
b57f37fb 14507else
042acc47
WP
14508 profile=no
14509fi
14510
14511
14512if test "$profile" = yes; then
14513 if test "$ac_cv_c_compiler_gnu" = yes; then
14514 CFLAGS="$CFLAGS -pg -static"
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
14516$as_echo "yes, adding -pg -static" >&6; }
b57f37fb 14517
042acc47
WP
14518$as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
14519
14520 else
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
14522$as_echo "no, profile builds only work with gcc" >&6; }
14523 fi
14524else
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14526$as_echo "no" >&6; }
b57f37fb 14527fi
042acc47
WP
14528
14529# Check whether --enable-balloc was given.
14530if test "${enable_balloc+set}" = set; then :
14531 enableval=$enable_balloc; balloc=$enableval
14532else
14533 balloc=yes
b57f37fb
WP
14534fi
14535
14536
042acc47
WP
14537if test "$balloc" = no; then
14538
14539$as_echo "#define NOBALLOC 1" >>confdefs.h
14540
b57f37fb 14541fi
b57f37fb 14542
042acc47
WP
14543# Check whether --enable-warnings was given.
14544if test "${enable_warnings+set}" = set; then :
14545 enableval=$enable_warnings; CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable"
b57f37fb
WP
14546fi
14547
b57f37fb 14548
b57f37fb 14549
b57f37fb 14550
b57f37fb 14551
b57f37fb 14552
b57f37fb 14553
b57f37fb
WP
14554
14555
14556
042acc47
WP
14557
14558if test "$prefix" = "NONE"; then
14559
14560cat >>confdefs.h <<_ACEOF
14561#define RB_PREFIX "$ac_default_prefix"
b57f37fb 14562_ACEOF
042acc47
WP
14563
14564
b57f37fb 14565else
b57f37fb 14566
b57f37fb 14567
042acc47 14568 prefix=`echo $prefix | sed 's/\/$//'`
b57f37fb 14569
042acc47
WP
14570cat >>confdefs.h <<_ACEOF
14571#define RB_PREFIX "$prefix"
b57f37fb 14572_ACEOF
b57f37fb 14573
042acc47 14574
b57f37fb
WP
14575fi
14576
b57f37fb 14577
b57f37fb 14578
042acc47 14579ac_config_commands="$ac_config_commands include/librb-config.h"
b57f37fb 14580
b57f37fb 14581
b57f37fb 14582
042acc47 14583ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
b57f37fb
WP
14584
14585
042acc47
WP
14586cat >confcache <<\_ACEOF
14587# This file is a shell script that caches the results of configure
14588# tests run on this system so they can be shared between configure
14589# scripts and configure runs, see configure's option --config-cache.
14590# It is not useful on other systems. If it contains results you don't
14591# want to keep, you may remove or edit it.
14592#
14593# config.status only pays attention to the cache file if you give it
14594# the --recheck option to rerun configure.
14595#
14596# `ac_cv_env_foo' variables (set or unset) will be overridden when
14597# loading this file, other *unset* `ac_cv_foo' will be assigned the
14598# following values.
14599
b57f37fb 14600_ACEOF
b57f37fb 14601
042acc47
WP
14602# The following way of writing the cache mishandles newlines in values,
14603# but we know of no workaround that is simple, portable, and efficient.
14604# So, we kill variables containing newlines.
14605# Ultrix sh set writes to stderr and can't be redirected directly,
14606# and sets the high bit in the cache file unless we assign to the vars.
14607(
14608 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14609 eval ac_val=\$$ac_var
14610 case $ac_val in #(
14611 *${as_nl}*)
14612 case $ac_var in #(
14613 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14614$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14615 esac
14616 case $ac_var in #(
14617 _ | IFS | as_nl) ;; #(
14618 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14619 *) { eval $ac_var=; unset $ac_var;} ;;
14620 esac ;;
14621 esac
14622 done
14623
14624 (set) 2>&1 |
14625 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14626 *${as_nl}ac_space=\ *)
14627 # `set' does not quote correctly, so add quotes: double-quote
14628 # substitution turns \\\\ into \\, and sed turns \\ into \.
14629 sed -n \
14630 "s/'/'\\\\''/g;
14631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14632 ;; #(
14633 *)
14634 # `set' quotes correctly as required by POSIX, so do not add quotes.
14635 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14636 ;;
14637 esac |
14638 sort
14639) |
14640 sed '
14641 /^ac_cv_env_/b end
14642 t clear
14643 :clear
14644 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14645 t end
14646 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14647 :end' >>confcache
14648if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14649 if test -w "$cache_file"; then
12e39525 14650 if test "x$cache_file" != "x/dev/null"; then
042acc47
WP
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14652$as_echo "$as_me: updating cache $cache_file" >&6;}
12e39525
JH
14653 if test ! -f "$cache_file" || test -h "$cache_file"; then
14654 cat confcache >"$cache_file"
14655 else
14656 case $cache_file in #(
14657 */* | ?:*)
14658 mv -f confcache "$cache_file"$$ &&
14659 mv -f "$cache_file"$$ "$cache_file" ;; #(
14660 *)
14661 mv -f confcache "$cache_file" ;;
14662 esac
14663 fi
14664 fi
042acc47
WP
14665 else
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14667$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14668 fi
14669fi
14670rm -f confcache
14671
14672test "x$prefix" = xNONE && prefix=$ac_default_prefix
14673# Let make expand exec_prefix.
14674test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
b57f37fb 14675
042acc47 14676DEFS=-DHAVE_CONFIG_H
b57f37fb 14677
042acc47
WP
14678ac_libobjs=
14679ac_ltlibobjs=
12e39525 14680U=
042acc47
WP
14681for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14682 # 1. Remove the extension, and $U if already installed.
14683 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14684 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14685 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14686 # will be set to the directory where LIBOBJS objects are built.
14687 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14688 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14689done
14690LIBOBJS=$ac_libobjs
b57f37fb 14691
042acc47 14692LTLIBOBJS=$ac_ltlibobjs
b57f37fb 14693
b57f37fb 14694
042acc47
WP
14695 if test -n "$EXEEXT"; then
14696 am__EXEEXT_TRUE=
14697 am__EXEEXT_FALSE='#'
14698else
14699 am__EXEEXT_TRUE='#'
14700 am__EXEEXT_FALSE=
b57f37fb
WP
14701fi
14702
042acc47 14703if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12e39525 14704 as_fn_error $? "conditional \"AMDEP\" was never defined.
042acc47 14705Usually this means the macro was only invoked conditionally." "$LINENO" 5
b57f37fb 14706fi
042acc47 14707if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12e39525 14708 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
042acc47
WP
14709Usually this means the macro was only invoked conditionally." "$LINENO" 5
14710fi
14711if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12e39525 14712 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
042acc47
WP
14713Usually this means the macro was only invoked conditionally." "$LINENO" 5
14714fi
6dec141a 14715
042acc47 14716if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
12e39525 14717 as_fn_error $? "conditional \"MINGW\" was never defined.
042acc47 14718Usually this means the macro was only invoked conditionally." "$LINENO" 5
b57f37fb 14719fi
b57f37fb 14720
12e39525 14721: "${CONFIG_STATUS=./config.status}"
042acc47
WP
14722ac_write_fail=0
14723ac_clean_files_save=$ac_clean_files
14724ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14725{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14726$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14727as_write_fail=0
14728cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14729#! $SHELL
14730# Generated by $as_me.
14731# Run this file to recreate the current configuration.
14732# Compiler output produced by configure, useful for debugging
14733# configure, is in config.log if it exists.
b57f37fb 14734
042acc47
WP
14735debug=false
14736ac_cs_recheck=false
14737ac_cs_silent=false
b57f37fb 14738
042acc47
WP
14739SHELL=\${CONFIG_SHELL-$SHELL}
14740export SHELL
14741_ASEOF
14742cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14743## -------------------- ##
14744## M4sh Initialization. ##
14745## -------------------- ##
b57f37fb 14746
042acc47
WP
14747# Be more Bourne compatible
14748DUALCASE=1; export DUALCASE # for MKS sh
14749if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14750 emulate sh
14751 NULLCMD=:
14752 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14753 # is contrary to our usage. Disable this feature.
14754 alias -g '${1+"$@"}'='"$@"'
14755 setopt NO_GLOB_SUBST
14756else
14757 case `(set -o) 2>/dev/null` in #(
14758 *posix*) :
14759 set -o posix ;; #(
14760 *) :
14761 ;;
14762esac
14763fi
b57f37fb 14764
b57f37fb 14765
042acc47
WP
14766as_nl='
14767'
14768export as_nl
14769# Printing a long string crashes Solaris 7 /usr/bin/printf.
14770as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14771as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14772as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14773# Prefer a ksh shell builtin over an external printf program on Solaris,
14774# but without wasting forks for bash or zsh.
14775if test -z "$BASH_VERSION$ZSH_VERSION" \
14776 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14777 as_echo='print -r --'
14778 as_echo_n='print -rn --'
14779elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14780 as_echo='printf %s\n'
14781 as_echo_n='printf %s'
b57f37fb 14782else
042acc47
WP
14783 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14784 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14785 as_echo_n='/usr/ucb/echo -n'
14786 else
14787 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14788 as_echo_n_body='eval
14789 arg=$1;
14790 case $arg in #(
14791 *"$as_nl"*)
14792 expr "X$arg" : "X\\(.*\\)$as_nl";
14793 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14794 esac;
14795 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14796 '
14797 export as_echo_n_body
14798 as_echo_n='sh -c $as_echo_n_body as_echo'
14799 fi
14800 export as_echo_body
14801 as_echo='sh -c $as_echo_body as_echo'
b57f37fb 14802fi
042acc47
WP
14803
14804# The user is always right.
14805if test "${PATH_SEPARATOR+set}" != set; then
14806 PATH_SEPARATOR=:
14807 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14808 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14809 PATH_SEPARATOR=';'
14810 }
b57f37fb
WP
14811fi
14812
14813
042acc47
WP
14814# IFS
14815# We need space, tab and new line, in precisely that order. Quoting is
14816# there to prevent editors from complaining about space-tab.
14817# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14818# splitting by setting IFS to empty value.)
14819IFS=" "" $as_nl"
b57f37fb 14820
042acc47 14821# Find who we are. Look in the path if we contain no directory separator.
12e39525 14822as_myself=
042acc47
WP
14823case $0 in #((
14824 *[\\/]* ) as_myself=$0 ;;
14825 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14826for as_dir in $PATH
14827do
14828 IFS=$as_save_IFS
14829 test -z "$as_dir" && as_dir=.
14830 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14831 done
14832IFS=$as_save_IFS
b57f37fb 14833
042acc47
WP
14834 ;;
14835esac
14836# We did not find ourselves, most probably we were run as `sh COMMAND'
14837# in which case we are not to be found in the path.
14838if test "x$as_myself" = x; then
14839 as_myself=$0
14840fi
14841if test ! -f "$as_myself"; then
14842 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14843 exit 1
b57f37fb 14844fi
b57f37fb 14845
042acc47
WP
14846# Unset variables that we do not need and which cause bugs (e.g. in
14847# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14848# suppresses any "Segmentation fault" message there. '((' could
14849# trigger a bug in pdksh 5.2.14.
14850for as_var in BASH_ENV ENV MAIL MAILPATH
14851do eval test x\${$as_var+set} = xset \
14852 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14853done
14854PS1='$ '
14855PS2='> '
14856PS4='+ '
b57f37fb 14857
042acc47
WP
14858# NLS nuisances.
14859LC_ALL=C
14860export LC_ALL
14861LANGUAGE=C
14862export LANGUAGE
b57f37fb 14863
042acc47
WP
14864# CDPATH.
14865(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
b57f37fb 14866
b57f37fb 14867
12e39525
JH
14868# as_fn_error STATUS ERROR [LINENO LOG_FD]
14869# ----------------------------------------
042acc47
WP
14870# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14871# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12e39525 14872# script with STATUS, using 1 if that was 0.
042acc47
WP
14873as_fn_error ()
14874{
12e39525
JH
14875 as_status=$1; test $as_status -eq 0 && as_status=1
14876 if test "$4"; then
14877 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14878 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
042acc47 14879 fi
12e39525 14880 $as_echo "$as_me: error: $2" >&2
042acc47
WP
14881 as_fn_exit $as_status
14882} # as_fn_error
b57f37fb 14883
b57f37fb 14884
042acc47
WP
14885# as_fn_set_status STATUS
14886# -----------------------
14887# Set $? to STATUS, without forking.
14888as_fn_set_status ()
14889{
14890 return $1
14891} # as_fn_set_status
14892
14893# as_fn_exit STATUS
14894# -----------------
14895# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14896as_fn_exit ()
14897{
14898 set +e
14899 as_fn_set_status $1
14900 exit $1
14901} # as_fn_exit
14902
14903# as_fn_unset VAR
14904# ---------------
14905# Portably unset VAR.
14906as_fn_unset ()
14907{
14908 { eval $1=; unset $1;}
14909}
14910as_unset=as_fn_unset
14911# as_fn_append VAR VALUE
14912# ----------------------
14913# Append the text in VALUE to the end of the definition contained in VAR. Take
14914# advantage of any shell optimizations that allow amortized linear growth over
14915# repeated appends, instead of the typical quadratic growth present in naive
14916# implementations.
14917if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14918 eval 'as_fn_append ()
14919 {
14920 eval $1+=\$2
14921 }'
14922else
14923 as_fn_append ()
14924 {
14925 eval $1=\$$1\$2
14926 }
14927fi # as_fn_append
14928
14929# as_fn_arith ARG...
14930# ------------------
14931# Perform arithmetic evaluation on the ARGs, and store the result in the
14932# global $as_val. Take advantage of shells that can avoid forks. The arguments
14933# must be portable across $(()) and expr.
14934if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14935 eval 'as_fn_arith ()
14936 {
14937 as_val=$(( $* ))
14938 }'
14939else
14940 as_fn_arith ()
14941 {
14942 as_val=`expr "$@" || test $? -eq 1`
14943 }
14944fi # as_fn_arith
14945
b57f37fb 14946
042acc47
WP
14947if expr a : '\(a\)' >/dev/null 2>&1 &&
14948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14949 as_expr=expr
14950else
14951 as_expr=false
b57f37fb
WP
14952fi
14953
042acc47
WP
14954if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14955 as_basename=basename
14956else
14957 as_basename=false
14958fi
b57f37fb 14959
042acc47
WP
14960if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14961 as_dirname=dirname
b57f37fb 14962else
042acc47 14963 as_dirname=false
b57f37fb
WP
14964fi
14965
042acc47
WP
14966as_me=`$as_basename -- "$0" ||
14967$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14968 X"$0" : 'X\(//\)$' \| \
14969 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14970$as_echo X/"$0" |
14971 sed '/^.*\/\([^/][^/]*\)\/*$/{
14972 s//\1/
14973 q
14974 }
14975 /^X\/\(\/\/\)$/{
14976 s//\1/
14977 q
14978 }
14979 /^X\/\(\/\).*/{
14980 s//\1/
14981 q
14982 }
14983 s/.*/./; q'`
b57f37fb 14984
042acc47
WP
14985# Avoid depending upon Character Ranges.
14986as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14987as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14988as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14989as_cr_digits='0123456789'
14990as_cr_alnum=$as_cr_Letters$as_cr_digits
b57f37fb 14991
042acc47
WP
14992ECHO_C= ECHO_N= ECHO_T=
14993case `echo -n x` in #(((((
14994-n*)
14995 case `echo 'xy\c'` in
14996 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14997 xy) ECHO_C='\c';;
14998 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14999 ECHO_T=' ';;
15000 esac;;
15001*)
15002 ECHO_N='-n';;
15003esac
15004
15005rm -f conf$$ conf$$.exe conf$$.file
15006if test -d conf$$.dir; then
15007 rm -f conf$$.dir/conf$$.file
b57f37fb 15008else
042acc47
WP
15009 rm -f conf$$.dir
15010 mkdir conf$$.dir 2>/dev/null
b57f37fb 15011fi
042acc47
WP
15012if (echo >conf$$.file) 2>/dev/null; then
15013 if ln -s conf$$.file conf$$ 2>/dev/null; then
15014 as_ln_s='ln -s'
15015 # ... but there are two gotchas:
15016 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15017 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15018 # In both cases, we have to default to `cp -p'.
15019 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15020 as_ln_s='cp -p'
15021 elif ln conf$$.file conf$$ 2>/dev/null; then
15022 as_ln_s=ln
15023 else
15024 as_ln_s='cp -p'
15025 fi
b57f37fb 15026else
042acc47
WP
15027 as_ln_s='cp -p'
15028fi
15029rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15030rmdir conf$$.dir 2>/dev/null
15031
15032
15033# as_fn_mkdir_p
15034# -------------
15035# Create "$as_dir" as a directory, including parents if necessary.
15036as_fn_mkdir_p ()
b57f37fb 15037{
b57f37fb 15038
042acc47
WP
15039 case $as_dir in #(
15040 -*) as_dir=./$as_dir;;
15041 esac
15042 test -d "$as_dir" || eval $as_mkdir_p || {
15043 as_dirs=
15044 while :; do
15045 case $as_dir in #(
15046 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15047 *) as_qdir=$as_dir;;
15048 esac
15049 as_dirs="'$as_qdir' $as_dirs"
15050 as_dir=`$as_dirname -- "$as_dir" ||
15051$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15052 X"$as_dir" : 'X\(//\)[^/]' \| \
15053 X"$as_dir" : 'X\(//\)$' \| \
15054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15055$as_echo X"$as_dir" |
15056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15057 s//\1/
15058 q
15059 }
15060 /^X\(\/\/\)[^/].*/{
15061 s//\1/
15062 q
15063 }
15064 /^X\(\/\/\)$/{
15065 s//\1/
15066 q
15067 }
15068 /^X\(\/\).*/{
15069 s//\1/
15070 q
15071 }
15072 s/.*/./; q'`
15073 test -d "$as_dir" && break
15074 done
15075 test -z "$as_dirs" || eval "mkdir $as_dirs"
12e39525 15076 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
042acc47
WP
15077
15078
15079} # as_fn_mkdir_p
15080if mkdir -p . 2>/dev/null; then
15081 as_mkdir_p='mkdir -p "$as_dir"'
15082else
15083 test -d ./-p && rmdir ./-p
15084 as_mkdir_p=false
b57f37fb 15085fi
042acc47
WP
15086
15087if test -x / >/dev/null 2>&1; then
15088 as_test_x='test -x'
15089else
15090 if ls -dL / >/dev/null 2>&1; then
15091 as_ls_L_option=L
15092 else
15093 as_ls_L_option=
15094 fi
15095 as_test_x='
15096 eval sh -c '\''
15097 if test -d "$1"; then
15098 test -d "$1/.";
15099 else
15100 case $1 in #(
15101 -*)set "./$1";;
15102 esac;
15103 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15104 ???[sx]*):;;*)false;;esac;fi
15105 '\'' sh
15106 '
b57f37fb 15107fi
042acc47 15108as_executable_p=$as_test_x
b57f37fb 15109
042acc47
WP
15110# Sed expression to map a string onto a valid CPP name.
15111as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b57f37fb 15112
042acc47
WP
15113# Sed expression to map a string onto a valid variable name.
15114as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b57f37fb 15115
b57f37fb 15116
042acc47
WP
15117exec 6>&1
15118## ----------------------------------- ##
15119## Main body of $CONFIG_STATUS script. ##
15120## ----------------------------------- ##
15121_ASEOF
15122test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b57f37fb 15123
042acc47
WP
15124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15125# Save the log message, to keep $0 and so on meaningful, and to
15126# report actual input values of CONFIG_FILES etc. instead of their
15127# values after options handling.
15128ac_log="
15129This file was extended by libratbox $as_me devel, which was
12e39525 15130generated by GNU Autoconf 2.68. Invocation command line was
b57f37fb 15131
042acc47
WP
15132 CONFIG_FILES = $CONFIG_FILES
15133 CONFIG_HEADERS = $CONFIG_HEADERS
15134 CONFIG_LINKS = $CONFIG_LINKS
15135 CONFIG_COMMANDS = $CONFIG_COMMANDS
15136 $ $0 $@
15137
15138on `(hostname || uname -n) 2>/dev/null | sed 1q`
15139"
b57f37fb 15140
b57f37fb 15141_ACEOF
042acc47
WP
15142
15143case $ac_config_files in *"
15144"*) set x $ac_config_files; shift; ac_config_files=$*;;
b57f37fb 15145esac
b57f37fb 15146
042acc47
WP
15147case $ac_config_headers in *"
15148"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15149esac
b57f37fb 15150
b57f37fb 15151
042acc47
WP
15152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15153# Files that config.status was made for.
15154config_files="$ac_config_files"
15155config_headers="$ac_config_headers"
15156config_commands="$ac_config_commands"
b57f37fb 15157
b57f37fb 15158_ACEOF
b57f37fb 15159
042acc47
WP
15160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15161ac_cs_usage="\
15162\`$as_me' instantiates files and other configuration actions
15163from templates according to the current configuration. Unless the files
15164and actions are specified as TAGs, all are instantiated by default.
15165
15166Usage: $0 [OPTION]... [TAG]...
15167
15168 -h, --help print this help, then exit
15169 -V, --version print version number and configuration settings, then exit
1800d973 15170 --config print configuration, then exit
042acc47
WP
15171 -q, --quiet, --silent
15172 do not print progress messages
15173 -d, --debug don't remove temporary files
15174 --recheck update $as_me by reconfiguring in the same conditions
15175 --file=FILE[:TEMPLATE]
15176 instantiate the configuration file FILE
15177 --header=FILE[:TEMPLATE]
15178 instantiate the configuration header FILE
15179
15180Configuration files:
15181$config_files
15182
15183Configuration headers:
15184$config_headers
15185
15186Configuration commands:
15187$config_commands
15188
15189Report bugs to the package provider."
15190
b57f37fb 15191_ACEOF
042acc47 15192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1800d973 15193ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
042acc47
WP
15194ac_cs_version="\\
15195libratbox config.status devel
12e39525 15196configured by $0, generated by GNU Autoconf 2.68,
1800d973 15197 with options \\"\$ac_cs_config\\"
b57f37fb 15198
12e39525 15199Copyright (C) 2010 Free Software Foundation, Inc.
042acc47
WP
15200This config.status script is free software; the Free Software Foundation
15201gives unlimited permission to copy, distribute and modify it."
b57f37fb 15202
042acc47
WP
15203ac_pwd='$ac_pwd'
15204srcdir='$srcdir'
15205INSTALL='$INSTALL'
15206MKDIR_P='$MKDIR_P'
15207AWK='$AWK'
15208test -n "\$AWK" || AWK=awk
15209_ACEOF
b57f37fb 15210
042acc47
WP
15211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15212# The default lists apply if the user does not specify any file.
15213ac_need_defaults=:
15214while test $# != 0
15215do
15216 case $1 in
12e39525 15217 --*=?*)
042acc47
WP
15218 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15219 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15220 ac_shift=:
15221 ;;
12e39525
JH
15222 --*=)
15223 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15224 ac_optarg=
15225 ac_shift=:
15226 ;;
042acc47
WP
15227 *)
15228 ac_option=$1
15229 ac_optarg=$2
15230 ac_shift=shift
15231 ;;
15232 esac
15233
15234 case $ac_option in
15235 # Handling of the options.
15236 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15237 ac_cs_recheck=: ;;
15238 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15239 $as_echo "$ac_cs_version"; exit ;;
1800d973
WP
15240 --config | --confi | --conf | --con | --co | --c )
15241 $as_echo "$ac_cs_config"; exit ;;
042acc47
WP
15242 --debug | --debu | --deb | --de | --d | -d )
15243 debug=: ;;
15244 --file | --fil | --fi | --f )
15245 $ac_shift
15246 case $ac_optarg in
15247 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12e39525 15248 '') as_fn_error $? "missing file argument" ;;
042acc47
WP
15249 esac
15250 as_fn_append CONFIG_FILES " '$ac_optarg'"
15251 ac_need_defaults=false;;
15252 --header | --heade | --head | --hea )
15253 $ac_shift
15254 case $ac_optarg in
15255 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15256 esac
15257 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15258 ac_need_defaults=false;;
15259 --he | --h)
15260 # Conflict between --help and --header
12e39525 15261 as_fn_error $? "ambiguous option: \`$1'
042acc47
WP
15262Try \`$0 --help' for more information.";;
15263 --help | --hel | -h )
15264 $as_echo "$ac_cs_usage"; exit ;;
15265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15266 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15267 ac_cs_silent=: ;;
15268
15269 # This is an error.
12e39525 15270 -*) as_fn_error $? "unrecognized option: \`$1'
042acc47
WP
15271Try \`$0 --help' for more information." ;;
15272
15273 *) as_fn_append ac_config_targets " $1"
15274 ac_need_defaults=false ;;
15275
15276 esac
15277 shift
15278done
b57f37fb 15279
042acc47 15280ac_configure_extra_args=
033be687 15281
042acc47
WP
15282if $ac_cs_silent; then
15283 exec 6>/dev/null
15284 ac_configure_extra_args="$ac_configure_extra_args --silent"
15285fi
033be687 15286
042acc47
WP
15287_ACEOF
15288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15289if \$ac_cs_recheck; then
15290 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15291 shift
15292 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15293 CONFIG_SHELL='$SHELL'
15294 export CONFIG_SHELL
15295 exec "\$@"
033be687
VY
15296fi
15297
042acc47
WP
15298_ACEOF
15299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15300exec 5>>config.log
15301{
15302 echo
15303 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15304## Running $as_me. ##
15305_ASBOX
15306 $as_echo "$ac_log"
15307} >&5
033be687 15308
042acc47
WP
15309_ACEOF
15310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15311#
15312# INIT-COMMANDS
15313#
15314AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
033be687
VY
15315
15316
042acc47
WP
15317# The HP-UX ksh and POSIX shell print the target directory to stdout
15318# if CDPATH is set.
15319(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15320
15321sed_quote_subst='$sed_quote_subst'
15322double_quote_subst='$double_quote_subst'
15323delay_variable_subst='$delay_variable_subst'
bf9bfd26
JH
15324enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15325enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15326macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15327macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15328pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15329enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15330SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15331ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15332host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15333host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15334host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15335build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15336build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15337build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15338SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15339Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15340GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15341EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15342FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15343LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15344NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15345LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15346max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15347ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15348exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15349lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15350lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15351lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15352lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15353lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15354reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15355reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15356OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15357deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15358file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15359file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15360want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15361DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15362sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15363AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15364AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15365archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15366STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15367RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15368old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15369old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15370old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15371lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15372CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15373CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15374compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15375GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15376lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15377lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15378lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15379lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15380nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15381lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15382objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15383MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15384lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15385lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15386lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15387lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15388lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15389need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15390MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15391DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15392NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15393LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15394OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15395OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15396libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15397shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15398extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15399archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15400enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15401export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15402whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15403compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15404old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15405old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15406archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15407archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15408module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15409module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15410with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15411allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15412no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15413hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15414hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15415hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15416hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15417hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15418hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15419hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15420hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15421inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15422link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15423always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15424export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15425exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15426include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15427prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15428postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15429file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15430variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15431need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15432need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15433version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15434runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15435shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15436shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15437libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15438library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15439soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15440install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15441postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15442postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15443finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15444finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15445hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15446sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15447sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15448hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15449enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15450enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15451enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15452old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15453striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
042acc47
WP
15454
15455LTCC='$LTCC'
15456LTCFLAGS='$LTCFLAGS'
15457compiler='$compiler_DEFAULT'
15458
bf9bfd26
JH
15459# A function that is used when there is no print builtin or printf.
15460func_fallback_echo ()
15461{
15462 eval 'cat <<_LTECHO_EOF
15463\$1
15464_LTECHO_EOF'
15465}
15466
042acc47 15467# Quote evaled strings.
bf9bfd26
JH
15468for var in SHELL \
15469ECHO \
15470SED \
042acc47
WP
15471GREP \
15472EGREP \
15473FGREP \
15474LD \
15475NM \
15476LN_S \
15477lt_SP2NL \
15478lt_NL2SP \
15479reload_flag \
15480OBJDUMP \
15481deplibs_check_method \
15482file_magic_cmd \
bf9bfd26
JH
15483file_magic_glob \
15484want_nocaseglob \
15485DLLTOOL \
15486sharedlib_from_linklib_cmd \
042acc47
WP
15487AR \
15488AR_FLAGS \
bf9bfd26 15489archiver_list_spec \
042acc47
WP
15490STRIP \
15491RANLIB \
15492CC \
15493CFLAGS \
15494compiler \
15495lt_cv_sys_global_symbol_pipe \
15496lt_cv_sys_global_symbol_to_cdecl \
15497lt_cv_sys_global_symbol_to_c_name_address \
15498lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
bf9bfd26 15499nm_file_list_spec \
042acc47 15500lt_prog_compiler_no_builtin_flag \
042acc47 15501lt_prog_compiler_pic \
bf9bfd26 15502lt_prog_compiler_wl \
042acc47
WP
15503lt_prog_compiler_static \
15504lt_cv_prog_compiler_c_o \
15505need_locks \
bf9bfd26 15506MANIFEST_TOOL \
042acc47
WP
15507DSYMUTIL \
15508NMEDIT \
15509LIPO \
15510OTOOL \
15511OTOOL64 \
15512shrext_cmds \
15513export_dynamic_flag_spec \
15514whole_archive_flag_spec \
15515compiler_needs_object \
15516with_gnu_ld \
15517allow_undefined_flag \
15518no_undefined_flag \
15519hardcode_libdir_flag_spec \
15520hardcode_libdir_flag_spec_ld \
15521hardcode_libdir_separator \
042acc47
WP
15522exclude_expsyms \
15523include_expsyms \
15524file_list_spec \
15525variables_saved_for_relink \
15526libname_spec \
15527library_names_spec \
15528soname_spec \
bf9bfd26 15529install_override_mode \
042acc47
WP
15530finish_eval \
15531old_striplib \
15532striplib; do
bf9bfd26 15533 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
042acc47 15534 *[\\\\\\\`\\"\\\$]*)
bf9bfd26 15535 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
042acc47
WP
15536 ;;
15537 *)
15538 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15539 ;;
15540 esac
033be687 15541done
042acc47
WP
15542
15543# Double-quote double-evaled strings.
15544for var in reload_cmds \
15545old_postinstall_cmds \
15546old_postuninstall_cmds \
15547old_archive_cmds \
15548extract_expsyms_cmds \
15549old_archive_from_new_cmds \
15550old_archive_from_expsyms_cmds \
15551archive_cmds \
15552archive_expsym_cmds \
15553module_cmds \
15554module_expsym_cmds \
15555export_symbols_cmds \
15556prelink_cmds \
bf9bfd26 15557postlink_cmds \
042acc47
WP
15558postinstall_cmds \
15559postuninstall_cmds \
15560finish_cmds \
15561sys_lib_search_path_spec \
15562sys_lib_dlsearch_path_spec; do
bf9bfd26 15563 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
042acc47 15564 *[\\\\\\\`\\"\\\$]*)
bf9bfd26 15565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
042acc47
WP
15566 ;;
15567 *)
15568 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15569 ;;
15570 esac
033be687 15571done
033be687 15572
042acc47
WP
15573ac_aux_dir='$ac_aux_dir'
15574xsi_shell='$xsi_shell'
15575lt_shell_append='$lt_shell_append'
033be687 15576
042acc47
WP
15577# See if we are running on zsh, and set the options which allow our
15578# commands through without removal of \ escapes INIT.
15579if test -n "\${ZSH_VERSION+set}" ; then
15580 setopt NO_GLOB_SUBST
033be687 15581fi
033be687 15582
033be687 15583
042acc47
WP
15584 PACKAGE='$PACKAGE'
15585 VERSION='$VERSION'
15586 TIMESTAMP='$TIMESTAMP'
15587 RM='$RM'
15588 ofile='$ofile'
033be687 15589
033be687 15590
033be687 15591
033be687 15592
042acc47
WP
15593 if test x$ac_cv_header_stdc = xyes; then
15594 rb_header_stdc=yes
15595 fi
15596 if test x$ac_cv_header_stdlib_h = xyes; then
15597 rb_header_stdlib_h=yes
15598 fi
15599 if test x$ac_cv_header_string_h = xyes; then
15600 rb_header_string_h=yes
15601 fi
15602 if test x$ac_cv_header_memory_h = xyes; then
15603 rb_header_memory_h=yes
15604 fi
15605 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
15606 rb_alloca_h="$ac_cv_working_alloca_h"
15607 else
15608 rb_alloc_h="$ac_cv_header_alloca_h"
15609 fi
15610 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
15611 rb_sockaddr_sa_len=yes
15612 fi
15613 if test x$ac_cv_header_sys_socket_h = xyes; then
15614 rb_sys_socket_h=yes
15615 fi
15616 if test x$ac_cv_header_sys_types_h = xyes; then
15617 rb_sys_types_h=yes
15618 fi
15619 if test x$ac_cv_header_sys_stat_h = xyes; then
15620 rb_sys_stat_h=yes
15621 fi
15622 if test x$ac_cv_header_sys_time_h = xyes; then
15623 rb_sys_time_h=yes
15624 fi
15625 if test x$ac_cv_header_time = xyes; then
15626 rb_time_h=yes
15627 fi
033be687 15628
042acc47
WP
15629 if test x$ac_cv_header_stdint_h = xyes; then
15630 rb_stdint_h=yes
15631 fi
15632 if test x$ac_cv_header_inttypes_h = xyes; then
15633 rb_inttypes_h=yes
15634 fi
15635 if test x$ac_cv_header_netinet_in_h = xyes; then
15636 rb_netinet_in_h=yes
15637 fi
033be687 15638
042acc47
WP
15639 if test x$ac_cv_header_crypt_h = xyes; then
15640 rb_crypt_h=yes
15641 fi
15642 if test x$ac_cv_header_errno_h = xyes; then
15643 rb_errno_h=yes
15644 fi
15645 if test x$ac_cv_header_unistd_h = xyes; then
15646 rb_unistd_h=yes
15647 fi
15648 if test x$ac_cv_header_windows_h = xyes; then
15649 rb_windows_h=yes
15650 fi
15651 if test x$ac_cv_header_winsock2_h = xyes; then
15652 rb_winsock2_h=yes
15653 fi
033be687 15654
042acc47 15655 rb_socklen_t=$rb_socklen_t
033be687 15656
042acc47
WP
15657 if test "x$rb_have_sockaddr_storage" = "xyes"; then
15658 rb_sockaddr_storage="yes"
15659 else
15660 rb_sockaddr_storage="no"
15661 fi
033be687 15662
042acc47 15663 rb_have_ipv6="$have_v6"
033be687 15664
042acc47
WP
15665 rb_mv="$MV"
15666 rb_rm="$RM"
033be687 15667
033be687 15668
033be687 15669
b57f37fb 15670
b57f37fb 15671
033be687 15672
033be687
VY
15673_ACEOF
15674
042acc47 15675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b57f37fb 15676
042acc47
WP
15677# Handling of arguments.
15678for ac_config_target in $ac_config_targets
15679do
15680 case $ac_config_target in
15681 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
15682 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15683 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15684 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
15685 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15686 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15687 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
033be687 15688
12e39525 15689 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
042acc47
WP
15690 esac
15691done
033be687 15692
b57f37fb 15693
042acc47
WP
15694# If the user did not use the arguments to specify the items to instantiate,
15695# then the envvar interface is used. Set only those that are not.
15696# We use the long form for the default assignment because of an extremely
15697# bizarre bug on SunOS 4.1.3.
15698if $ac_need_defaults; then
15699 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15700 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15701 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15702fi
b57f37fb 15703
042acc47
WP
15704# Have a temporary directory for convenience. Make it in the build tree
15705# simply because there is no reason against having it here, and in addition,
15706# creating and moving files from /tmp can sometimes cause problems.
15707# Hook for its removal unless debugging.
15708# Note that there is a small window in which the directory will not be cleaned:
15709# after its creation but before its name has been assigned to `$tmp'.
15710$debug ||
15711{
12e39525 15712 tmp= ac_tmp=
042acc47 15713 trap 'exit_status=$?
12e39525
JH
15714 : "${ac_tmp:=$tmp}"
15715 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
042acc47
WP
15716' 0
15717 trap 'as_fn_exit 1' 1 2 13 15
15718}
15719# Create a (secure) tmp directory for tmp files.
b57f37fb 15720
042acc47
WP
15721{
15722 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12e39525 15723 test -d "$tmp"
042acc47
WP
15724} ||
15725{
15726 tmp=./conf$$-$RANDOM
15727 (umask 077 && mkdir "$tmp")
12e39525
JH
15728} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15729ac_tmp=$tmp
b57f37fb 15730
042acc47
WP
15731# Set up the scripts for CONFIG_FILES section.
15732# No need to generate them if there are no CONFIG_FILES.
15733# This happens for instance with `./config.status config.h'.
15734if test -n "$CONFIG_FILES"; then
b57f37fb
WP
15735
15736
042acc47
WP
15737ac_cr=`echo X | tr X '\015'`
15738# On cygwin, bash can eat \r inside `` if the user requested igncr.
15739# But we know of no other shell where ac_cr would be empty at this
15740# point, so we can use a bashism as a fallback.
15741if test "x$ac_cr" = x; then
15742 eval ac_cr=\$\'\\r\'
15743fi
15744ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15745if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12e39525 15746 ac_cs_awk_cr='\\r'
b57f37fb 15747else
042acc47 15748 ac_cs_awk_cr=$ac_cr
b57f37fb
WP
15749fi
15750
12e39525 15751echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b57f37fb
WP
15752_ACEOF
15753
b57f37fb 15754
042acc47
WP
15755{
15756 echo "cat >conf$$subs.awk <<_ACEOF" &&
15757 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15758 echo "_ACEOF"
15759} >conf$$subs.sh ||
12e39525
JH
15760 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15761ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
042acc47
WP
15762ac_delim='%!_!# '
15763for ac_last_try in false false false false false :; do
15764 . ./conf$$subs.sh ||
12e39525 15765 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b57f37fb 15766
042acc47
WP
15767 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15768 if test $ac_delim_n = $ac_delim_num; then
15769 break
15770 elif $ac_last_try; then
12e39525 15771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
042acc47
WP
15772 else
15773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15774 fi
15775done
15776rm -f conf$$subs.sh
b57f37fb 15777
042acc47 15778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12e39525 15779cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
b57f37fb 15780_ACEOF
042acc47
WP
15781sed -n '
15782h
15783s/^/S["/; s/!.*/"]=/
15784p
15785g
15786s/^[^!]*!//
15787:repl
15788t repl
15789s/'"$ac_delim"'$//
15790t delim
15791:nl
15792h
1800d973 15793s/\(.\{148\}\)..*/\1/
042acc47
WP
15794t more1
15795s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15796p
15797n
15798b repl
15799:more1
15800s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15801p
15802g
15803s/.\{148\}//
15804t nl
15805:delim
15806h
1800d973 15807s/\(.\{148\}\)..*/\1/
042acc47
WP
15808t more2
15809s/["\\]/\\&/g; s/^/"/; s/$/"/
15810p
15811b
15812:more2
15813s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15814p
15815g
15816s/.\{148\}//
15817t delim
15818' <conf$$subs.awk | sed '
15819/^[^""]/{
15820 N
15821 s/\n//
15822}
15823' >>$CONFIG_STATUS || ac_write_fail=1
15824rm -f conf$$subs.awk
15825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15826_ACAWK
12e39525 15827cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
042acc47
WP
15828 for (key in S) S_is_set[key] = 1
15829 FS = "\a"
b57f37fb 15830
042acc47
WP
15831}
15832{
15833 line = $ 0
15834 nfields = split(line, field, "@")
15835 substed = 0
15836 len = length(field[1])
15837 for (i = 2; i < nfields; i++) {
15838 key = field[i]
15839 keylen = length(key)
15840 if (S_is_set[key]) {
15841 value = S[key]
15842 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15843 len += length(value) + length(field[++i])
15844 substed = 1
15845 } else
15846 len += 1 + keylen
15847 }
b57f37fb 15848
042acc47
WP
15849 print line
15850}
15851
15852_ACAWK
15853_ACEOF
15854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15855if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15856 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b57f37fb 15857else
042acc47 15858 cat
12e39525
JH
15859fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15860 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
042acc47 15861_ACEOF
b57f37fb 15862
12e39525
JH
15863# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15864# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
042acc47
WP
15865# trailing colons and then remove the whole line if VPATH becomes empty
15866# (actually we leave an empty line to preserve line numbers).
15867if test "x$srcdir" = x.; then
12e39525
JH
15868 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15869h
15870s///
15871s/^/:/
15872s/[ ]*$/:/
15873s/:\$(srcdir):/:/g
15874s/:\${srcdir}:/:/g
15875s/:@srcdir@:/:/g
15876s/^:*//
042acc47 15877s/:*$//
12e39525
JH
15878x
15879s/\(=[ ]*\).*/\1/
15880G
15881s/\n//
042acc47
WP
15882s/^[^=]*=[ ]*$//
15883}'
15884fi
b57f37fb 15885
042acc47
WP
15886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15887fi # test -n "$CONFIG_FILES"
b57f37fb 15888
042acc47
WP
15889# Set up the scripts for CONFIG_HEADERS section.
15890# No need to generate them if there are no CONFIG_HEADERS.
15891# This happens for instance with `./config.status Makefile'.
15892if test -n "$CONFIG_HEADERS"; then
12e39525 15893cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
042acc47 15894BEGIN {
b57f37fb
WP
15895_ACEOF
15896
042acc47
WP
15897# Transform confdefs.h into an awk script `defines.awk', embedded as
15898# here-document in config.status, that substitutes the proper values into
15899# config.h.in to produce config.h.
b57f37fb 15900
042acc47
WP
15901# Create a delimiter string that does not exist in confdefs.h, to ease
15902# handling of long lines.
15903ac_delim='%!_!# '
15904for ac_last_try in false false :; do
12e39525
JH
15905 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15906 if test -z "$ac_tt"; then
042acc47
WP
15907 break
15908 elif $ac_last_try; then
12e39525 15909 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
042acc47
WP
15910 else
15911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15912 fi
15913done
b57f37fb 15914
042acc47
WP
15915# For the awk script, D is an array of macro values keyed by name,
15916# likewise P contains macro parameters if any. Preserve backslash
15917# newline sequences.
b57f37fb 15918
042acc47
WP
15919ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15920sed -n '
15921s/.\{148\}/&'"$ac_delim"'/g
15922t rset
15923:rset
15924s/^[ ]*#[ ]*define[ ][ ]*/ /
15925t def
15926d
15927:def
15928s/\\$//
15929t bsnl
15930s/["\\]/\\&/g
15931s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15932D["\1"]=" \3"/p
15933s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15934d
15935:bsnl
15936s/["\\]/\\&/g
15937s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15938D["\1"]=" \3\\\\\\n"\\/p
15939t cont
15940s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15941t cont
15942d
15943:cont
15944n
15945s/.\{148\}/&'"$ac_delim"'/g
15946t clear
15947:clear
15948s/\\$//
15949t bsnlc
15950s/["\\]/\\&/g; s/^/"/; s/$/"/p
15951d
15952:bsnlc
15953s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15954b cont
15955' <confdefs.h | sed '
15956s/'"$ac_delim"'/"\\\
15957"/g' >>$CONFIG_STATUS || ac_write_fail=1
b57f37fb 15958
042acc47
WP
15959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15960 for (key in D) D_is_set[key] = 1
15961 FS = "\a"
15962}
15963/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15964 line = \$ 0
15965 split(line, arg, " ")
15966 if (arg[1] == "#") {
15967 defundef = arg[2]
15968 mac1 = arg[3]
15969 } else {
15970 defundef = substr(arg[1], 2)
15971 mac1 = arg[2]
15972 }
15973 split(mac1, mac2, "(") #)
15974 macro = mac2[1]
15975 prefix = substr(line, 1, index(line, defundef) - 1)
15976 if (D_is_set[macro]) {
15977 # Preserve the white space surrounding the "#".
15978 print prefix "define", macro P[macro] D[macro]
15979 next
15980 } else {
15981 # Replace #undef with comments. This is necessary, for example,
15982 # in the case of _POSIX_SOURCE, which is predefined and required
15983 # on some systems where configure will not decide to define it.
15984 if (defundef == "undef") {
15985 print "/*", prefix defundef, macro, "*/"
15986 next
15987 }
15988 }
15989}
15990{ print }
15991_ACAWK
b57f37fb 15992_ACEOF
042acc47 15993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12e39525 15994 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
042acc47 15995fi # test -n "$CONFIG_HEADERS"
b57f37fb
WP
15996
15997
042acc47
WP
15998eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15999shift
16000for ac_tag
16001do
16002 case $ac_tag in
16003 :[FHLC]) ac_mode=$ac_tag; continue;;
16004 esac
16005 case $ac_mode$ac_tag in
16006 :[FHL]*:*);;
12e39525 16007 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
042acc47
WP
16008 :[FH]-) ac_tag=-:-;;
16009 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16010 esac
16011 ac_save_IFS=$IFS
16012 IFS=:
16013 set x $ac_tag
16014 IFS=$ac_save_IFS
16015 shift
16016 ac_file=$1
16017 shift
b57f37fb 16018
042acc47
WP
16019 case $ac_mode in
16020 :L) ac_source=$1;;
16021 :[FH])
16022 ac_file_inputs=
16023 for ac_f
16024 do
16025 case $ac_f in
12e39525 16026 -) ac_f="$ac_tmp/stdin";;
042acc47
WP
16027 *) # Look for the file first in the build tree, then in the source tree
16028 # (if the path is not absolute). The absolute path cannot be DOS-style,
16029 # because $ac_f cannot contain `:'.
16030 test -f "$ac_f" ||
16031 case $ac_f in
16032 [\\/$]*) false;;
16033 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16034 esac ||
12e39525 16035 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
042acc47
WP
16036 esac
16037 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16038 as_fn_append ac_file_inputs " '$ac_f'"
16039 done
b57f37fb 16040
042acc47
WP
16041 # Let's still pretend it is `configure' which instantiates (i.e., don't
16042 # use $as_me), people would be surprised to read:
16043 # /* config.h. Generated by config.status. */
16044 configure_input='Generated from '`
16045 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16046 `' by configure.'
16047 if test x"$ac_file" != x-; then
16048 configure_input="$ac_file. $configure_input"
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16050$as_echo "$as_me: creating $ac_file" >&6;}
16051 fi
16052 # Neutralize special characters interpreted by sed in replacement strings.
16053 case $configure_input in #(
16054 *\&* | *\|* | *\\* )
16055 ac_sed_conf_input=`$as_echo "$configure_input" |
16056 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16057 *) ac_sed_conf_input=$configure_input;;
16058 esac
b57f37fb 16059
042acc47 16060 case $ac_tag in
12e39525
JH
16061 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
042acc47
WP
16063 esac
16064 ;;
16065 esac
b57f37fb 16066
042acc47
WP
16067 ac_dir=`$as_dirname -- "$ac_file" ||
16068$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16069 X"$ac_file" : 'X\(//\)[^/]' \| \
16070 X"$ac_file" : 'X\(//\)$' \| \
16071 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16072$as_echo X"$ac_file" |
16073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16074 s//\1/
16075 q
16076 }
16077 /^X\(\/\/\)[^/].*/{
16078 s//\1/
16079 q
16080 }
16081 /^X\(\/\/\)$/{
16082 s//\1/
16083 q
16084 }
16085 /^X\(\/\).*/{
16086 s//\1/
16087 q
16088 }
16089 s/.*/./; q'`
16090 as_dir="$ac_dir"; as_fn_mkdir_p
16091 ac_builddir=.
b57f37fb 16092
042acc47
WP
16093case "$ac_dir" in
16094.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16095*)
16096 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16097 # A ".." for each directory in $ac_dir_suffix.
16098 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16099 case $ac_top_builddir_sub in
16100 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16101 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16102 esac ;;
16103esac
16104ac_abs_top_builddir=$ac_pwd
16105ac_abs_builddir=$ac_pwd$ac_dir_suffix
16106# for backward compatibility:
16107ac_top_builddir=$ac_top_build_prefix
b57f37fb 16108
042acc47
WP
16109case $srcdir in
16110 .) # We are building in place.
16111 ac_srcdir=.
16112 ac_top_srcdir=$ac_top_builddir_sub
16113 ac_abs_top_srcdir=$ac_pwd ;;
16114 [\\/]* | ?:[\\/]* ) # Absolute name.
16115 ac_srcdir=$srcdir$ac_dir_suffix;
16116 ac_top_srcdir=$srcdir
16117 ac_abs_top_srcdir=$srcdir ;;
16118 *) # Relative name.
16119 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16120 ac_top_srcdir=$ac_top_build_prefix$srcdir
16121 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16122esac
16123ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b57f37fb 16124
033be687 16125
042acc47
WP
16126 case $ac_mode in
16127 :F)
16128 #
16129 # CONFIG_FILE
16130 #
b57f37fb 16131
042acc47
WP
16132 case $INSTALL in
16133 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16134 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16135 esac
16136 ac_MKDIR_P=$MKDIR_P
16137 case $MKDIR_P in
16138 [\\/$]* | ?:[\\/]* ) ;;
16139 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16140 esac
b57f37fb
WP
16141_ACEOF
16142
042acc47
WP
16143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16144# If the template does not know about datarootdir, expand it.
16145# FIXME: This hack should be removed a few years after 2.60.
16146ac_datarootdir_hack=; ac_datarootdir_seen=
16147ac_sed_dataroot='
16148/datarootdir/ {
16149 p
16150 q
16151}
16152/@datadir@/p
16153/@docdir@/p
16154/@infodir@/p
16155/@localedir@/p
16156/@mandir@/p'
16157case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16158*datarootdir*) ac_datarootdir_seen=yes;;
16159*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16161$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16162_ACEOF
16163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16164 ac_datarootdir_hack='
16165 s&@datadir@&$datadir&g
16166 s&@docdir@&$docdir&g
16167 s&@infodir@&$infodir&g
16168 s&@localedir@&$localedir&g
16169 s&@mandir@&$mandir&g
16170 s&\\\${datarootdir}&$datarootdir&g' ;;
16171esac
b57f37fb
WP
16172_ACEOF
16173
042acc47
WP
16174# Neutralize VPATH when `$srcdir' = `.'.
16175# Shell code in configure.ac might set extrasub.
16176# FIXME: do we really want to maintain this feature?
16177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16178ac_sed_extra="$ac_vpsub
16179$extrasub
16180_ACEOF
16181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16182:t
16183/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16184s|@configure_input@|$ac_sed_conf_input|;t t
16185s&@top_builddir@&$ac_top_builddir_sub&;t t
16186s&@top_build_prefix@&$ac_top_build_prefix&;t t
16187s&@srcdir@&$ac_srcdir&;t t
16188s&@abs_srcdir@&$ac_abs_srcdir&;t t
16189s&@top_srcdir@&$ac_top_srcdir&;t t
16190s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16191s&@builddir@&$ac_builddir&;t t
16192s&@abs_builddir@&$ac_abs_builddir&;t t
16193s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16194s&@INSTALL@&$ac_INSTALL&;t t
16195s&@MKDIR_P@&$ac_MKDIR_P&;t t
16196$ac_datarootdir_hack
16197"
12e39525
JH
16198eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16199 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b57f37fb 16200
042acc47 16201test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12e39525
JH
16202 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16203 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16204 "$ac_tmp/out"`; test -z "$ac_out"; } &&
042acc47 16205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12e39525 16206which seems to be undefined. Please make sure it is defined" >&5
042acc47 16207$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12e39525 16208which seems to be undefined. Please make sure it is defined" >&2;}
b57f37fb 16209
12e39525 16210 rm -f "$ac_tmp/stdin"
042acc47 16211 case $ac_file in
12e39525
JH
16212 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16213 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
042acc47 16214 esac \
12e39525 16215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
042acc47
WP
16216 ;;
16217 :H)
16218 #
16219 # CONFIG_HEADER
16220 #
16221 if test x"$ac_file" != x-; then
16222 {
16223 $as_echo "/* $configure_input */" \
12e39525
JH
16224 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16225 } >"$ac_tmp/config.h" \
16226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16227 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
042acc47
WP
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16229$as_echo "$as_me: $ac_file is unchanged" >&6;}
16230 else
16231 rm -f "$ac_file"
12e39525
JH
16232 mv "$ac_tmp/config.h" "$ac_file" \
16233 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
042acc47
WP
16234 fi
16235 else
16236 $as_echo "/* $configure_input */" \
12e39525
JH
16237 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16238 || as_fn_error $? "could not create -" "$LINENO" 5
042acc47
WP
16239 fi
16240# Compute "$ac_file"'s index in $config_headers.
16241_am_arg="$ac_file"
16242_am_stamp_count=1
16243for _am_header in $config_headers :; do
16244 case $_am_header in
16245 $_am_arg | $_am_arg:* )
16246 break ;;
16247 * )
16248 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16249 esac
16250done
16251echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16252$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16253 X"$_am_arg" : 'X\(//\)[^/]' \| \
16254 X"$_am_arg" : 'X\(//\)$' \| \
16255 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16256$as_echo X"$_am_arg" |
16257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16258 s//\1/
16259 q
16260 }
16261 /^X\(\/\/\)[^/].*/{
16262 s//\1/
16263 q
16264 }
16265 /^X\(\/\/\)$/{
16266 s//\1/
16267 q
16268 }
16269 /^X\(\/\).*/{
16270 s//\1/
16271 q
16272 }
16273 s/.*/./; q'`/stamp-h$_am_stamp_count
16274 ;;
b57f37fb 16275
042acc47
WP
16276 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16277$as_echo "$as_me: executing $ac_file commands" >&6;}
16278 ;;
16279 esac
b57f37fb 16280
b57f37fb 16281
042acc47
WP
16282 case $ac_file$ac_mode in
16283 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16284 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16285 # are listed without --file. Let's play safe and only enable the eval
16286 # if we detect the quoting.
16287 case $CONFIG_FILES in
16288 *\'*) eval set x "$CONFIG_FILES" ;;
16289 *) set x $CONFIG_FILES ;;
16290 esac
16291 shift
16292 for mf
16293 do
16294 # Strip MF so we end up with the name of the file.
16295 mf=`echo "$mf" | sed -e 's/:.*$//'`
16296 # Check whether this is an Automake generated Makefile or not.
16297 # We used to match only the files named `Makefile.in', but
16298 # some people rename them; so instead we look at the file content.
16299 # Grep'ing the first line is not enough: some people post-process
16300 # each Makefile.in and add a new line on top of each file to say so.
16301 # Grep'ing the whole file is not good either: AIX grep has a line
16302 # limit of 2048, but all sed's we know have understand at least 4000.
16303 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16304 dirpart=`$as_dirname -- "$mf" ||
16305$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16306 X"$mf" : 'X\(//\)[^/]' \| \
16307 X"$mf" : 'X\(//\)$' \| \
16308 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16309$as_echo X"$mf" |
16310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16311 s//\1/
16312 q
16313 }
16314 /^X\(\/\/\)[^/].*/{
16315 s//\1/
16316 q
16317 }
16318 /^X\(\/\/\)$/{
16319 s//\1/
16320 q
16321 }
16322 /^X\(\/\).*/{
16323 s//\1/
16324 q
16325 }
16326 s/.*/./; q'`
16327 else
16328 continue
16329 fi
16330 # Extract the definition of DEPDIR, am__include, and am__quote
16331 # from the Makefile without running `make'.
16332 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16333 test -z "$DEPDIR" && continue
16334 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16335 test -z "am__include" && continue
16336 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16337 # When using ansi2knr, U may be empty or an underscore; expand it
16338 U=`sed -n 's/^U = //p' < "$mf"`
16339 # Find all dependency output files, they are included files with
16340 # $(DEPDIR) in their names. We invoke sed twice because it is the
16341 # simplest approach to changing $(DEPDIR) to its actual value in the
16342 # expansion.
16343 for file in `sed -n "
16344 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16345 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16346 # Make sure the directory exists.
16347 test -f "$dirpart/$file" && continue
16348 fdir=`$as_dirname -- "$file" ||
16349$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16350 X"$file" : 'X\(//\)[^/]' \| \
16351 X"$file" : 'X\(//\)$' \| \
16352 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16353$as_echo X"$file" |
16354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16355 s//\1/
16356 q
16357 }
16358 /^X\(\/\/\)[^/].*/{
16359 s//\1/
16360 q
16361 }
16362 /^X\(\/\/\)$/{
16363 s//\1/
16364 q
16365 }
16366 /^X\(\/\).*/{
16367 s//\1/
16368 q
16369 }
16370 s/.*/./; q'`
16371 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16372 # echo "creating $dirpart/$file"
16373 echo '# dummy' > "$dirpart/$file"
16374 done
16375 done
16376}
16377 ;;
16378 "libtool":C)
b57f37fb 16379
042acc47
WP
16380 # See if we are running on zsh, and set the options which allow our
16381 # commands through without removal of \ escapes.
16382 if test -n "${ZSH_VERSION+set}" ; then
16383 setopt NO_GLOB_SUBST
16384 fi
033be687 16385
042acc47
WP
16386 cfgfile="${ofile}T"
16387 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16388 $RM "$cfgfile"
b57f37fb 16389
042acc47
WP
16390 cat <<_LT_EOF >> "$cfgfile"
16391#! $SHELL
b57f37fb 16392
042acc47
WP
16393# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16394# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16395# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16396# NOTE: Changes made to this file will be lost: look at ltmain.sh.
b57f37fb 16397#
042acc47 16398# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
bf9bfd26
JH
16399# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16400# Inc.
042acc47 16401# Written by Gordon Matzigkeit, 1996
b57f37fb 16402#
042acc47
WP
16403# This file is part of GNU Libtool.
16404#
16405# GNU Libtool is free software; you can redistribute it and/or
16406# modify it under the terms of the GNU General Public License as
16407# published by the Free Software Foundation; either version 2 of
16408# the License, or (at your option) any later version.
16409#
16410# As a special exception to the GNU General Public License,
16411# if you distribute this file as part of a program or library that
16412# is built using GNU Libtool, you may include this file under the
16413# same distribution terms that you use for the rest of that program.
16414#
16415# GNU Libtool is distributed in the hope that it will be useful,
16416# but WITHOUT ANY WARRANTY; without even the implied warranty of
16417# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16418# GNU General Public License for more details.
16419#
16420# You should have received a copy of the GNU General Public License
16421# along with GNU Libtool; see the file COPYING. If not, a copy
16422# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16423# obtained by writing to the Free Software Foundation, Inc.,
16424# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
b57f37fb 16425
b57f37fb 16426
042acc47
WP
16427# The names of the tagged configurations supported by this script.
16428available_tags=""
b57f37fb 16429
042acc47 16430# ### BEGIN LIBTOOL CONFIG
b57f37fb 16431
042acc47
WP
16432# Whether or not to build static libraries.
16433build_old_libs=$enable_static
b57f37fb 16434
042acc47
WP
16435# Whether or not to build shared libraries.
16436build_libtool_libs=$enable_shared
b57f37fb 16437
042acc47
WP
16438# Which release of libtool.m4 was used?
16439macro_version=$macro_version
16440macro_revision=$macro_revision
b57f37fb 16441
042acc47
WP
16442# What type of objects to build.
16443pic_mode=$pic_mode
b57f37fb 16444
042acc47
WP
16445# Whether or not to optimize for fast installation.
16446fast_install=$enable_fast_install
b57f37fb 16447
bf9bfd26
JH
16448# Shell to use when invoking shell scripts.
16449SHELL=$lt_SHELL
16450
16451# An echo program that protects backslashes.
16452ECHO=$lt_ECHO
16453
042acc47
WP
16454# The host system.
16455host_alias=$host_alias
16456host=$host
16457host_os=$host_os
b57f37fb 16458
042acc47
WP
16459# The build system.
16460build_alias=$build_alias
16461build=$build
16462build_os=$build_os
b57f37fb 16463
042acc47
WP
16464# A sed program that does not truncate output.
16465SED=$lt_SED
b57f37fb 16466
042acc47
WP
16467# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16468Xsed="\$SED -e 1s/^X//"
b57f37fb 16469
042acc47
WP
16470# A grep program that handles long lines.
16471GREP=$lt_GREP
b57f37fb 16472
042acc47
WP
16473# An ERE matcher.
16474EGREP=$lt_EGREP
b57f37fb 16475
042acc47
WP
16476# A literal string matcher.
16477FGREP=$lt_FGREP
b57f37fb 16478
042acc47
WP
16479# A BSD- or MS-compatible name lister.
16480NM=$lt_NM
f030cae8 16481
042acc47
WP
16482# Whether we need soft or hard links.
16483LN_S=$lt_LN_S
b57f37fb 16484
042acc47
WP
16485# What is the maximum length of a command?
16486max_cmd_len=$max_cmd_len
b57f37fb 16487
042acc47
WP
16488# Object file suffix (normally "o").
16489objext=$ac_objext
b57f37fb 16490
042acc47
WP
16491# Executable file suffix (normally "").
16492exeext=$exeext
b57f37fb 16493
042acc47
WP
16494# whether the shell understands "unset".
16495lt_unset=$lt_unset
b57f37fb 16496
042acc47
WP
16497# turn spaces into newlines.
16498SP2NL=$lt_lt_SP2NL
b57f37fb 16499
042acc47
WP
16500# turn newlines into spaces.
16501NL2SP=$lt_lt_NL2SP
b57f37fb 16502
bf9bfd26
JH
16503# convert \$build file names to \$host format.
16504to_host_file_cmd=$lt_cv_to_host_file_cmd
16505
16506# convert \$build files to toolchain format.
16507to_tool_file_cmd=$lt_cv_to_tool_file_cmd
b57f37fb 16508
042acc47
WP
16509# An object symbol dumper.
16510OBJDUMP=$lt_OBJDUMP
b57f37fb 16511
042acc47
WP
16512# Method to check whether dependent libraries are shared objects.
16513deplibs_check_method=$lt_deplibs_check_method
b57f37fb 16514
bf9bfd26 16515# Command to use when deplibs_check_method = "file_magic".
042acc47 16516file_magic_cmd=$lt_file_magic_cmd
b57f37fb 16517
bf9bfd26
JH
16518# How to find potential files when deplibs_check_method = "file_magic".
16519file_magic_glob=$lt_file_magic_glob
16520
16521# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16522want_nocaseglob=$lt_want_nocaseglob
16523
16524# DLL creation program.
16525DLLTOOL=$lt_DLLTOOL
16526
16527# Command to associate shared and link libraries.
16528sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16529
042acc47
WP
16530# The archiver.
16531AR=$lt_AR
bf9bfd26
JH
16532
16533# Flags to create an archive.
042acc47 16534AR_FLAGS=$lt_AR_FLAGS
b57f37fb 16535
bf9bfd26
JH
16536# How to feed a file listing to the archiver.
16537archiver_list_spec=$lt_archiver_list_spec
16538
042acc47
WP
16539# A symbol stripping program.
16540STRIP=$lt_STRIP
b57f37fb 16541
042acc47
WP
16542# Commands used to install an old-style archive.
16543RANLIB=$lt_RANLIB
16544old_postinstall_cmds=$lt_old_postinstall_cmds
16545old_postuninstall_cmds=$lt_old_postuninstall_cmds
b57f37fb 16546
bf9bfd26
JH
16547# Whether to use a lock for old archive extraction.
16548lock_old_archive_extraction=$lock_old_archive_extraction
16549
042acc47
WP
16550# A C compiler.
16551LTCC=$lt_CC
b57f37fb 16552
042acc47
WP
16553# LTCC compiler flags.
16554LTCFLAGS=$lt_CFLAGS
b57f37fb 16555
042acc47
WP
16556# Take the output of nm and produce a listing of raw symbols and C names.
16557global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
b57f37fb 16558
042acc47
WP
16559# Transform the output of nm in a proper C declaration.
16560global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
b57f37fb 16561
042acc47
WP
16562# Transform the output of nm in a C name address pair.
16563global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
b57f37fb 16564
042acc47
WP
16565# Transform the output of nm in a C name address pair when lib prefix is needed.
16566global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
b57f37fb 16567
bf9bfd26
JH
16568# Specify filename containing input files for \$NM.
16569nm_file_list_spec=$lt_nm_file_list_spec
b57f37fb 16570
bf9bfd26
JH
16571# The root where to search for dependent libraries,and in which our libraries should be installed.
16572lt_sysroot=$lt_sysroot
b57f37fb 16573
bf9bfd26
JH
16574# The name of the directory that contains temporary libtool files.
16575objdir=$objdir
b57f37fb 16576
042acc47
WP
16577# Used to examine libraries when file_magic_cmd begins with "file".
16578MAGIC_CMD=$MAGIC_CMD
16579
16580# Must we lock files when doing compilation?
16581need_locks=$lt_need_locks
b57f37fb 16582
bf9bfd26
JH
16583# Manifest tool.
16584MANIFEST_TOOL=$lt_MANIFEST_TOOL
16585
042acc47
WP
16586# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16587DSYMUTIL=$lt_DSYMUTIL
b57f37fb 16588
042acc47
WP
16589# Tool to change global to local symbols on Mac OS X.
16590NMEDIT=$lt_NMEDIT
b57f37fb 16591
042acc47
WP
16592# Tool to manipulate fat objects and archives on Mac OS X.
16593LIPO=$lt_LIPO
b57f37fb 16594
042acc47
WP
16595# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16596OTOOL=$lt_OTOOL
b57f37fb 16597
042acc47
WP
16598# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16599OTOOL64=$lt_OTOOL64
b57f37fb 16600
042acc47
WP
16601# Old archive suffix (normally "a").
16602libext=$libext
b57f37fb 16603
042acc47
WP
16604# Shared library suffix (normally ".so").
16605shrext_cmds=$lt_shrext_cmds
b57f37fb 16606
042acc47
WP
16607# The commands to extract the exported symbol list from a shared archive.
16608extract_expsyms_cmds=$lt_extract_expsyms_cmds
b57f37fb 16609
042acc47
WP
16610# Variables whose values should be saved in libtool wrapper scripts and
16611# restored at link time.
16612variables_saved_for_relink=$lt_variables_saved_for_relink
f030cae8 16613
042acc47
WP
16614# Do we need the "lib" prefix for modules?
16615need_lib_prefix=$need_lib_prefix
f030cae8 16616
042acc47
WP
16617# Do we need a version for libraries?
16618need_version=$need_version
f030cae8 16619
042acc47
WP
16620# Library versioning type.
16621version_type=$version_type
b57f37fb 16622
042acc47
WP
16623# Shared library runtime path variable.
16624runpath_var=$runpath_var
b57f37fb 16625
042acc47
WP
16626# Shared library path variable.
16627shlibpath_var=$shlibpath_var
b57f37fb 16628
042acc47
WP
16629# Is shlibpath searched before the hard-coded library search path?
16630shlibpath_overrides_runpath=$shlibpath_overrides_runpath
b57f37fb 16631
042acc47
WP
16632# Format of library name prefix.
16633libname_spec=$lt_libname_spec
b57f37fb 16634
042acc47
WP
16635# List of archive names. First name is the real one, the rest are links.
16636# The last name is the one that the linker finds with -lNAME
16637library_names_spec=$lt_library_names_spec
b57f37fb 16638
042acc47
WP
16639# The coded name of the library, if different from the real name.
16640soname_spec=$lt_soname_spec
b57f37fb 16641
bf9bfd26
JH
16642# Permission mode override for installation of shared libraries.
16643install_override_mode=$lt_install_override_mode
16644
042acc47
WP
16645# Command to use after installation of a shared archive.
16646postinstall_cmds=$lt_postinstall_cmds
b57f37fb 16647
042acc47
WP
16648# Command to use after uninstallation of a shared archive.
16649postuninstall_cmds=$lt_postuninstall_cmds
b57f37fb 16650
042acc47
WP
16651# Commands used to finish a libtool library installation in a directory.
16652finish_cmds=$lt_finish_cmds
b57f37fb 16653
042acc47
WP
16654# As "finish_cmds", except a single script fragment to be evaled but
16655# not shown.
16656finish_eval=$lt_finish_eval
b57f37fb 16657
042acc47
WP
16658# Whether we should hardcode library paths into libraries.
16659hardcode_into_libs=$hardcode_into_libs
b57f37fb 16660
042acc47
WP
16661# Compile-time system search path for libraries.
16662sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
b57f37fb 16663
042acc47
WP
16664# Run-time system search path for libraries.
16665sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
b57f37fb 16666
042acc47
WP
16667# Whether dlopen is supported.
16668dlopen_support=$enable_dlopen
b57f37fb 16669
042acc47
WP
16670# Whether dlopen of programs is supported.
16671dlopen_self=$enable_dlopen_self
b57f37fb 16672
042acc47
WP
16673# Whether dlopen of statically linked programs is supported.
16674dlopen_self_static=$enable_dlopen_self_static
b57f37fb 16675
042acc47
WP
16676# Commands to strip libraries.
16677old_striplib=$lt_old_striplib
16678striplib=$lt_striplib
b57f37fb 16679
b57f37fb 16680
042acc47
WP
16681# The linker used to build libraries.
16682LD=$lt_LD
b57f37fb 16683
bf9bfd26
JH
16684# How to create reloadable object files.
16685reload_flag=$lt_reload_flag
16686reload_cmds=$lt_reload_cmds
16687
042acc47
WP
16688# Commands used to build an old-style archive.
16689old_archive_cmds=$lt_old_archive_cmds
b57f37fb 16690
042acc47
WP
16691# A language specific compiler.
16692CC=$lt_compiler
b57f37fb 16693
042acc47
WP
16694# Is the compiler the GNU compiler?
16695with_gcc=$GCC
b57f37fb 16696
042acc47
WP
16697# Compiler flag to turn off builtin functions.
16698no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
b57f37fb 16699
042acc47
WP
16700# Additional compiler flags for building library objects.
16701pic_flag=$lt_lt_prog_compiler_pic
16702
bf9bfd26
JH
16703# How to pass a linker flag through the compiler.
16704wl=$lt_lt_prog_compiler_wl
16705
042acc47
WP
16706# Compiler flag to prevent dynamic linking.
16707link_static_flag=$lt_lt_prog_compiler_static
16708
16709# Does compiler simultaneously support -c and -o options?
16710compiler_c_o=$lt_lt_cv_prog_compiler_c_o
4414eb3c 16711
042acc47
WP
16712# Whether or not to add -lc for building shared libraries.
16713build_libtool_need_lc=$archive_cmds_need_lc
4414eb3c 16714
042acc47
WP
16715# Whether or not to disallow shared libs when runtime libs are static.
16716allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
b57f37fb 16717
042acc47
WP
16718# Compiler flag to allow reflexive dlopens.
16719export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
b57f37fb 16720
042acc47
WP
16721# Compiler flag to generate shared objects directly from archives.
16722whole_archive_flag_spec=$lt_whole_archive_flag_spec
b57f37fb 16723
042acc47
WP
16724# Whether the compiler copes with passing no objects directly.
16725compiler_needs_object=$lt_compiler_needs_object
b57f37fb 16726
042acc47
WP
16727# Create an old-style archive from a shared archive.
16728old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
b57f37fb 16729
042acc47
WP
16730# Create a temporary old-style archive to link instead of a shared archive.
16731old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
b57f37fb 16732
042acc47
WP
16733# Commands used to build a shared archive.
16734archive_cmds=$lt_archive_cmds
16735archive_expsym_cmds=$lt_archive_expsym_cmds
b57f37fb 16736
042acc47
WP
16737# Commands used to build a loadable module if different from building
16738# a shared archive.
16739module_cmds=$lt_module_cmds
16740module_expsym_cmds=$lt_module_expsym_cmds
b57f37fb 16741
042acc47
WP
16742# Whether we are building with GNU ld or not.
16743with_gnu_ld=$lt_with_gnu_ld
b57f37fb 16744
042acc47
WP
16745# Flag that allows shared libraries with undefined symbols to be built.
16746allow_undefined_flag=$lt_allow_undefined_flag
b57f37fb 16747
042acc47
WP
16748# Flag that enforces no undefined symbols.
16749no_undefined_flag=$lt_no_undefined_flag
b57f37fb 16750
042acc47
WP
16751# Flag to hardcode \$libdir into a binary during linking.
16752# This must work even if \$libdir does not exist
16753hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
b57f37fb 16754
042acc47
WP
16755# If ld is used when linking, flag to hardcode \$libdir into a binary
16756# during linking. This must work even if \$libdir does not exist.
16757hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
b57f37fb 16758
042acc47
WP
16759# Whether we need a single "-rpath" flag with a separated argument.
16760hardcode_libdir_separator=$lt_hardcode_libdir_separator
b57f37fb 16761
042acc47
WP
16762# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16763# DIR into the resulting binary.
16764hardcode_direct=$hardcode_direct
b57f37fb 16765
042acc47
WP
16766# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16767# DIR into the resulting binary and the resulting library dependency is
16768# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16769# library is relocated.
16770hardcode_direct_absolute=$hardcode_direct_absolute
b57f37fb 16771
042acc47
WP
16772# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16773# into the resulting binary.
16774hardcode_minus_L=$hardcode_minus_L
b57f37fb 16775
042acc47
WP
16776# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16777# into the resulting binary.
16778hardcode_shlibpath_var=$hardcode_shlibpath_var
b57f37fb 16779
042acc47
WP
16780# Set to "yes" if building a shared library automatically hardcodes DIR
16781# into the library and all subsequent libraries and executables linked
16782# against it.
16783hardcode_automatic=$hardcode_automatic
b57f37fb 16784
042acc47
WP
16785# Set to yes if linker adds runtime paths of dependent libraries
16786# to runtime path list.
16787inherit_rpath=$inherit_rpath
b57f37fb 16788
042acc47
WP
16789# Whether libtool must link a program against all its dependency libraries.
16790link_all_deplibs=$link_all_deplibs
b57f37fb 16791
042acc47
WP
16792# Set to "yes" if exported symbols are required.
16793always_export_symbols=$always_export_symbols
f030cae8 16794
042acc47
WP
16795# The commands to list exported symbols.
16796export_symbols_cmds=$lt_export_symbols_cmds
b57f37fb 16797
042acc47
WP
16798# Symbols that should not be listed in the preloaded symbols.
16799exclude_expsyms=$lt_exclude_expsyms
f030cae8 16800
042acc47
WP
16801# Symbols that must always be exported.
16802include_expsyms=$lt_include_expsyms
b57f37fb 16803
042acc47
WP
16804# Commands necessary for linking programs (against libraries) with templates.
16805prelink_cmds=$lt_prelink_cmds
b57f37fb 16806
bf9bfd26
JH
16807# Commands necessary for finishing linking programs.
16808postlink_cmds=$lt_postlink_cmds
16809
042acc47
WP
16810# Specify filename containing input files.
16811file_list_spec=$lt_file_list_spec
b57f37fb 16812
042acc47
WP
16813# How to hardcode a shared library path into an executable.
16814hardcode_action=$hardcode_action
b57f37fb 16815
042acc47 16816# ### END LIBTOOL CONFIG
f030cae8 16817
042acc47
WP
16818_LT_EOF
16819
16820 case $host_os in
16821 aix3*)
16822 cat <<\_LT_EOF >> "$cfgfile"
16823# AIX sometimes has problems with the GCC collect2 program. For some
16824# reason, if we set the COLLECT_NAMES environment variable, the problems
16825# vanish in a puff of smoke.
16826if test "X${COLLECT_NAMES+set}" != Xset; then
16827 COLLECT_NAMES=
16828 export COLLECT_NAMES
16829fi
16830_LT_EOF
16831 ;;
16832 esac
f030cae8 16833
f030cae8 16834
042acc47 16835ltmain="$ac_aux_dir/ltmain.sh"
f030cae8 16836
f030cae8 16837
042acc47
WP
16838 # We use sed instead of cat because bash on DJGPP gets confused if
16839 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16840 # text mode, it properly converts lines to CR/LF. This bash problem
16841 # is reportedly fixed, but why not run on old versions too?
bf9bfd26
JH
16842 sed '$q' "$ltmain" >> "$cfgfile" \
16843 || (rm -f "$cfgfile"; exit 1)
16844
16845 if test x"$xsi_shell" = xyes; then
16846 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16847func_dirname ()\
16848{\
16849\ case ${1} in\
16850\ */*) func_dirname_result="${1%/*}${2}" ;;\
16851\ * ) func_dirname_result="${3}" ;;\
16852\ esac\
16853} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16854 && mv -f "$cfgfile.tmp" "$cfgfile" \
16855 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16856test 0 -eq $? || _lt_function_replace_fail=:
16857
16858
16859 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16860func_basename ()\
16861{\
16862\ func_basename_result="${1##*/}"\
16863} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16864 && mv -f "$cfgfile.tmp" "$cfgfile" \
16865 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16866test 0 -eq $? || _lt_function_replace_fail=:
16867
16868
16869 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16870func_dirname_and_basename ()\
16871{\
16872\ case ${1} in\
16873\ */*) func_dirname_result="${1%/*}${2}" ;;\
16874\ * ) func_dirname_result="${3}" ;;\
16875\ esac\
16876\ func_basename_result="${1##*/}"\
16877} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16878 && mv -f "$cfgfile.tmp" "$cfgfile" \
16879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16880test 0 -eq $? || _lt_function_replace_fail=:
16881
16882
16883 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16884func_stripname ()\
16885{\
16886\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16887\ # positional parameters, so assign one to ordinary parameter first.\
16888\ func_stripname_result=${3}\
16889\ func_stripname_result=${func_stripname_result#"${1}"}\
16890\ func_stripname_result=${func_stripname_result%"${2}"}\
16891} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16892 && mv -f "$cfgfile.tmp" "$cfgfile" \
16893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16894test 0 -eq $? || _lt_function_replace_fail=:
16895
16896
16897 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16898func_split_long_opt ()\
16899{\
16900\ func_split_long_opt_name=${1%%=*}\
16901\ func_split_long_opt_arg=${1#*=}\
16902} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16903 && mv -f "$cfgfile.tmp" "$cfgfile" \
16904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16905test 0 -eq $? || _lt_function_replace_fail=:
16906
16907
16908 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16909func_split_short_opt ()\
16910{\
16911\ func_split_short_opt_arg=${1#??}\
16912\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16913} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16914 && mv -f "$cfgfile.tmp" "$cfgfile" \
16915 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16916test 0 -eq $? || _lt_function_replace_fail=:
16917
16918
16919 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16920func_lo2o ()\
16921{\
16922\ case ${1} in\
16923\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16924\ *) func_lo2o_result=${1} ;;\
16925\ esac\
16926} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16927 && mv -f "$cfgfile.tmp" "$cfgfile" \
16928 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16929test 0 -eq $? || _lt_function_replace_fail=:
16930
16931
16932 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16933func_xform ()\
16934{\
16935 func_xform_result=${1%.*}.lo\
16936} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16937 && mv -f "$cfgfile.tmp" "$cfgfile" \
16938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16939test 0 -eq $? || _lt_function_replace_fail=:
16940
16941
16942 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16943func_arith ()\
16944{\
16945 func_arith_result=$(( $* ))\
16946} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16947 && mv -f "$cfgfile.tmp" "$cfgfile" \
16948 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16949test 0 -eq $? || _lt_function_replace_fail=:
16950
16951
16952 sed -e '/^func_len ()$/,/^} # func_len /c\
16953func_len ()\
16954{\
16955 func_len_result=${#1}\
16956} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16957 && mv -f "$cfgfile.tmp" "$cfgfile" \
16958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16959test 0 -eq $? || _lt_function_replace_fail=:
16960
16961fi
16962
16963if test x"$lt_shell_append" = xyes; then
16964 sed -e '/^func_append ()$/,/^} # func_append /c\
16965func_append ()\
16966{\
16967 eval "${1}+=\\${2}"\
16968} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16969 && mv -f "$cfgfile.tmp" "$cfgfile" \
16970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16971test 0 -eq $? || _lt_function_replace_fail=:
16972
16973
16974 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16975func_append_quoted ()\
16976{\
16977\ func_quote_for_eval "${2}"\
16978\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16979} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16980 && mv -f "$cfgfile.tmp" "$cfgfile" \
16981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16982test 0 -eq $? || _lt_function_replace_fail=:
16983
16984
16985 # Save a `func_append' function call where possible by direct use of '+='
16986 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16987 && mv -f "$cfgfile.tmp" "$cfgfile" \
16988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16989 test 0 -eq $? || _lt_function_replace_fail=:
16990else
16991 # Save a `func_append' function call even when '+=' is not available
16992 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16993 && mv -f "$cfgfile.tmp" "$cfgfile" \
16994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16995 test 0 -eq $? || _lt_function_replace_fail=:
16996fi
16997
16998if test x"$_lt_function_replace_fail" = x":"; then
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17000$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17001fi
17002
17003
17004 mv -f "$cfgfile" "$ofile" ||
042acc47
WP
17005 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17006 chmod +x "$ofile"
17007
b57f37fb
WP
17008 ;;
17009 "include/librb-config.h":C)
17010 outfile=include/librb-config.h.tmp
17011 cat > $outfile <<\_______EOF
17012/*
17013 * librb-config.h: libratbox config file. Please modify configure.ac
17014 */
17015
17016#ifndef __LIBRB_CONFIG_H
17017#define __LIBRB_CONFIG_H
17018
17019_______EOF
17020
17021if test "x$rb_have_ipv6" = "xyes"; then
17022 echo "#define RB_IPV6 1" >> $outfile
17023fi
17024
17025if test "x$rb_windows_h" = "xyes"; then
17026 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
17027 echo '#include <windows.h>' >> $outfile
17028 echo '#include <winsock2.h>' >> $outfile
17029 echo '#include <iphlpapi.h>' >> $outfile
17030fi
17031
17032if test "x$rb_alloca_h" = "xyes"; then
17033 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
17034fi
17035
17036if test "x$rb_header_stdc" = "xyes"; then
17037 echo '#include <stdlib.h>' >> $outfile
17038 echo '#include <stddef.h>' >> $outfile
17039elif test "x$rb_header_stdlib" = "xyes"; then
17040 echo '#include <stdlib.h>' >> $outfile
17041fi
17042
17043if test "x$rb_header_string_h" = "xyes"; then
17044 echo '#include <string.h>' >> $outfile
17045fi
17046
17047if test "x$rb_stdint_h" = "xyes"; then
17048 echo '#include <stdint.h>' >> $outfile
17049fi
17050
17051if test "x$rb_inttypes_h" = "xyes"; then
17052 echo '#include <inttypes.h>' >> $outfile
17053fi
17054
17055if test "x$rb_sys_types_h" = "xyes"; then
17056 echo '#include <sys/types.h>' >> $outfile
17057fi
17058if test "x$rb_sys_time_h" = "xyes"; then
17059 echo '#include <sys/time.h>' >> $outfile
17060fi
17061if test "x$rb_sys_stat_h" = "xyes"; then
17062 echo '#include <sys/stat.h>' >> $outfile
17063fi
17064if test "x$rb_time_h" = "xyes"; then
17065 echo '#include <time.h>' >> $outfile
17066fi
17067
17068if test "x$rb_sys_socket_h" = "xyes"; then
17069 echo '#include <sys/socket.h>' >> $outfile
17070fi
17071
17072if test "x$rb_netinet_in_h" = "xyes"; then
17073 echo '#include <netinet/in.h>' >> $outfile
17074fi
17075
17076if test "x$rb_arpa_inet_h" = "xyes"; then
17077 echo '#include <arpa/inet.h>' >> $outfile
17078fi
17079
17080if test "x$rb_unistd_h" = "xyes"; then
17081 echo '#include <unistd.h>' >> $outfile
17082fi
17083
17084if test "x$rb_crypt_h" = "xyes"; then
17085 echo '#include <crypt.h>' >> $outfile
17086fi
17087
17088if test "x$rb_errno_h" = "xyes"; then
17089 echo '#include <errno.h>' >> $outfile
17090fi
17091
4414eb3c
VY
17092echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
17093
17094
b57f37fb
WP
17095if test "x$rb_sockaddr_sa_len" = "xyes"; then
17096 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
17097fi
17098
b57f37fb
WP
17099if test "x$rb_sockaddr_storage" = "xyes"; then
17100 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
17101else
94b4fbf9 17102 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
b57f37fb
WP
17103fi
17104
17105cat >> $outfile <<\_______EOF
17106#endif /* __LIBRB_CONFIG_H */
17107_______EOF
17108
17109if cmp -s $outfile include/librb-config.h; then
042acc47 17110 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
f030cae8 17111$as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
b57f37fb
WP
17112 ${rb_rm} -f $outfile
17113else
17114 ${rb_mv} $outfile include/librb-config.h
17115fi
17116
17117 ;;
17118
17119 esac
17120done # for ac_tag
17121
17122
042acc47 17123as_fn_exit 0
b57f37fb 17124_ACEOF
b57f37fb
WP
17125ac_clean_files=$ac_clean_files_save
17126
f030cae8 17127test $ac_write_fail = 0 ||
12e39525 17128 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
f030cae8 17129
b57f37fb
WP
17130
17131# configure is writing to config.log, and then calls config.status.
17132# config.status does its own redirection, appending to config.log.
17133# Unfortunately, on DOS this fails, as config.log is still kept open
17134# by configure, so config.status won't be able to write to it; its
17135# output is simply discarded. So we exec the FD to /dev/null,
17136# effectively closing config.log, so it can be properly (re)opened and
17137# appended to by config.status. When coming back to configure, we
17138# need to make the FD available again.
17139if test "$no_create" != yes; then
17140 ac_cs_success=:
17141 ac_config_status_args=
17142 test "$silent" = yes &&
17143 ac_config_status_args="$ac_config_status_args --quiet"
17144 exec 5>/dev/null
17145 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17146 exec 5>>config.log
17147 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17148 # would make configure fail if this is the last instruction.
12e39525 17149 $ac_cs_success || as_fn_exit 1
b57f37fb 17150fi
f030cae8 17151if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
042acc47 17152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
f030cae8
VY
17153$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17154fi
b57f37fb 17155
b57f37fb
WP
17156
17157
17158echo
17159echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
17160echo
17161
17162echo "Installing into: $prefix"
17163
17164echo "IPv6 support ................... $have_v6"
17165echo "Assert debugging ............... $assert"
17166echo "Block allocator ................ $balloc"
033be687 17167echo "SSL Type........................ $SSL_TYPE"
b57f37fb
WP
17168echo
17169