]> jfr.im git - solanum.git/blame - libratbox/configure
buildsystem: convert to automake + libtool
[solanum.git] / libratbox / configure
CommitLineData
db137867
AC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
bf4e01a4 3# Generated by GNU Autoconf 2.69 for libratbox devel.
db137867 4#
030272f3 5# $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
db137867 6#
96f4052b 7#
bf4e01a4 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
96f4052b 9#
7083c021 10#
db137867
AC
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
7083c021
AC
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
db137867
AC
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
7083c021 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
db137867
AC
20 emulate sh
21 NULLCMD=:
030272f3 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
db137867
AC
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
7083c021
AC
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
db137867 32esac
db137867
AC
33fi
34
35
030272f3
VY
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7083c021
AC
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
030272f3
VY
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
db137867 56 else
030272f3
VY
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
7083c021 60 case $arg in #(
030272f3
VY
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
db137867 69 fi
030272f3
VY
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
db137867
AC
81fi
82
db137867
AC
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
db137867
AC
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
08c2568c 92as_myself=
7083c021 93case $0 in #((
db137867
AC
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
7083c021
AC
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
db137867
AC
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
030272f3 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7083c021 113 exit 1
db137867
AC
114fi
115
7083c021
AC
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
db137867
AC
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
030272f3
VY
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
db137867 133
7083c021
AC
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
bf4e01a4
AC
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
7083c021
AC
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
bf4e01a4
AC
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
7083c021
AC
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
b6d0720c
AC
201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
7083c021
AC
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
bf4e01a4
AC
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
7083c021
AC
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
278$0: including any error possibly output before this
279$0: message. Then install a modern shell, or manually run
280$0: the script under such a shell if you do have one."
281 fi
282 exit 1
283fi
284fi
285fi
286SHELL=${CONFIG_SHELL-/bin/sh}
287export SHELL
288# Unset more variables known to interfere with behavior of common tools.
289CLICOLOR_FORCE= GREP_OPTIONS=
290unset CLICOLOR_FORCE GREP_OPTIONS
291
292## --------------------- ##
293## M4sh Shell Functions. ##
294## --------------------- ##
295# as_fn_unset VAR
296# ---------------
297# Portably unset VAR.
298as_fn_unset ()
299{
300 { eval $1=; unset $1;}
301}
302as_unset=as_fn_unset
303
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309 return $1
310} # as_fn_set_status
311
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317 set +e
318 as_fn_set_status $1
319 exit $1
320} # as_fn_exit
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344$as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
08c2568c 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
366
367
368} # as_fn_mkdir_p
bf4e01a4
AC
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375 test -f "$1" && test -x "$1"
376} # as_fn_executable_p
7083c021
AC
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388else
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393fi # as_fn_append
394
395# as_fn_arith ARG...
396# ------------------
397# Perform arithmetic evaluation on the ARGs, and store the result in the
398# global $as_val. Take advantage of shells that can avoid forks. The arguments
399# must be portable across $(()) and expr.
400if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 eval 'as_fn_arith ()
402 {
403 as_val=$(( $* ))
404 }'
405else
406 as_fn_arith ()
407 {
408 as_val=`expr "$@" || test $? -eq 1`
409 }
410fi # as_fn_arith
411
412
08c2568c
EM
413# as_fn_error STATUS ERROR [LINENO LOG_FD]
414# ----------------------------------------
7083c021
AC
415# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
08c2568c 417# script with STATUS, using 1 if that was 0.
7083c021
AC
418as_fn_error ()
419{
08c2568c
EM
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7083c021 424 fi
08c2568c 425 $as_echo "$as_me: error: $2" >&2
7083c021
AC
426 as_fn_exit $as_status
427} # as_fn_error
428
db137867
AC
429if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432else
433 as_expr=false
434fi
435
436if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438else
439 as_basename=false
440fi
441
7083c021
AC
442if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444else
445 as_dirname=false
446fi
db137867 447
db137867
AC
448as_me=`$as_basename -- "$0" ||
449$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
030272f3 452$as_echo X/"$0" |
db137867
AC
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
7083c021
AC
467# Avoid depending upon Character Ranges.
468as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471as_cr_digits='0123456789'
472as_cr_alnum=$as_cr_Letters$as_cr_digits
db137867
AC
473
474
7083c021
AC
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
487 b
488 :lineno
489 N
490 :loop
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492 t loop
493 s/-\n.*//
494 ' >$as_me.lineno &&
495 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
db137867 497
bf4e01a4
AC
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
7083c021
AC
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
505 . "./$as_me.lineno"
506 # Exit status is that of the last command.
507 exit
db137867
AC
508}
509
7083c021
AC
510ECHO_C= ECHO_N= ECHO_T=
511case `echo -n x` in #(((((
512-n*)
513 case `echo 'xy\c'` in
514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
515 xy) ECHO_C='\c';;
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 ECHO_T=' ';;
518 esac;;
519*)
520 ECHO_N='-n';;
521esac
db137867 522
7083c021
AC
523rm -f conf$$ conf$$.exe conf$$.file
524if test -d conf$$.dir; then
525 rm -f conf$$.dir/conf$$.file
526else
527 rm -f conf$$.dir
528 mkdir conf$$.dir 2>/dev/null
db137867 529fi
7083c021
AC
530if (echo >conf$$.file) 2>/dev/null; then
531 if ln -s conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s='ln -s'
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
bf4e01a4 536 # In both cases, we have to default to `cp -pR'.
7083c021 537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
bf4e01a4 538 as_ln_s='cp -pR'
7083c021
AC
539 elif ln conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s=ln
541 else
bf4e01a4 542 as_ln_s='cp -pR'
7083c021 543 fi
db137867 544else
bf4e01a4 545 as_ln_s='cp -pR'
db137867 546fi
7083c021
AC
547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548rmdir conf$$.dir 2>/dev/null
db137867 549
7083c021
AC
550if mkdir -p . 2>/dev/null; then
551 as_mkdir_p='mkdir -p "$as_dir"'
552else
553 test -d ./-p && rmdir ./-p
554 as_mkdir_p=false
db137867
AC
555fi
556
bf4e01a4
AC
557as_test_x='test -x'
558as_executable_p=as_fn_executable_p
db137867 559
7083c021
AC
560# Sed expression to map a string onto a valid CPP name.
561as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
db137867 562
7083c021
AC
563# Sed expression to map a string onto a valid variable name.
564as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
db137867 565
db137867
AC
566SHELL=${CONFIG_SHELL-/bin/sh}
567
db137867 568
96f4052b
AC
569test -n "$DJDIR" || exec 7<&0 </dev/null
570exec 6>&1
db137867
AC
571
572# Name of the host.
08c2568c 573# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
db137867
AC
574# so uname gets run too.
575ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576
577#
578# Initializations.
579#
580ac_default_prefix=/usr/local
581ac_clean_files=
582ac_config_libobj_dir=.
583LIBOBJS=
584cross_compiling=no
585subdirs=
586MFLAGS=
587MAKEFLAGS=
db137867
AC
588
589# Identity of this package.
590PACKAGE_NAME='libratbox'
591PACKAGE_TARNAME='libratbox'
592PACKAGE_VERSION='devel'
593PACKAGE_STRING='libratbox devel'
594PACKAGE_BUGREPORT=''
7083c021 595PACKAGE_URL=''
db137867
AC
596
597ac_default_prefix=/usr/local/libratbox
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612# include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617# include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
96f4052b 634ac_header_list=
7083c021
AC
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
030272f3
VY
638LIBOBJS
639RB_PREFIX
cd492e44
AC
640MBEDTLS_LIBS
641MBEDTLS_CFLAGS
030272f3
VY
642SSL_LIBS
643SSL_CFLAGS
644SEDOBJ
645PICFLAGS
bf4e01a4
AC
646GNUTLS_LIBS
647GNUTLS_CFLAGS
648PKG_CONFIG_LIBDIR
649PKG_CONFIG_PATH
650PKG_CONFIG
030272f3 651ALLOCA
030272f3
VY
652MINGW_FALSE
653MINGW_TRUE
6f57a957 654LT_SYS_LIBRARY_PATH
7083c021
AC
655OTOOL64
656OTOOL
657LIPO
030272f3
VY
658NMEDIT
659DSYMUTIL
b6d0720c 660MANIFEST_TOOL
030272f3 661RANLIB
b6d0720c 662ac_ct_AR
030272f3 663AR
b6d0720c 664DLLTOOL
7083c021 665OBJDUMP
030272f3 666LN_S
7083c021
AC
667NM
668ac_ct_DUMPBIN
669DUMPBIN
670LD
671FGREP
030272f3
VY
672host_os
673host_vendor
674host_cpu
675host
676build_os
677build_vendor
678build_cpu
679build
7083c021 680LIBTOOL
030272f3
VY
681TOUCH
682LN
683MV
684CP
685RM
686AS
687MAINT
688MAINTAINER_MODE_FALSE
689MAINTAINER_MODE_TRUE
690SED
691EGREP
692GREP
693CPP
694am__fastdepCC_FALSE
695am__fastdepCC_TRUE
696CCDEPMODE
bf4e01a4 697am__nodep
030272f3
VY
698AMDEPBACKSLASH
699AMDEP_FALSE
700AMDEP_TRUE
701am__quote
702am__include
703DEPDIR
704OBJEXT
705EXEEXT
706ac_ct_CC
707CPPFLAGS
708LDFLAGS
709CFLAGS
710CC
bf4e01a4
AC
711AM_BACKSLASH
712AM_DEFAULT_VERBOSITY
713AM_DEFAULT_V
714AM_V
030272f3
VY
715am__untar
716am__tar
717AMTAR
718am__leading_dot
719SET_MAKE
720AWK
721mkdir_p
722MKDIR_P
723INSTALL_STRIP_PROGRAM
724STRIP
725install_sh
726MAKEINFO
727AUTOHEADER
728AUTOMAKE
729AUTOCONF
730ACLOCAL
731VERSION
732PACKAGE
733CYGPATH_W
734am__isrc
735INSTALL_DATA
736INSTALL_SCRIPT
737INSTALL_PROGRAM
738target_alias
739host_alias
db137867 740build_alias
030272f3
VY
741LIBS
742ECHO_T
743ECHO_N
744ECHO_C
745DEFS
746mandir
747localedir
748libdir
749psdir
750pdfdir
751dvidir
752htmldir
753infodir
754docdir
755oldincludedir
756includedir
757localstatedir
758sharedstatedir
759sysconfdir
760datadir
761datarootdir
762libexecdir
763sbindir
764bindir
765program_transform_name
766prefix
767exec_prefix
7083c021 768PACKAGE_URL
030272f3
VY
769PACKAGE_BUGREPORT
770PACKAGE_STRING
771PACKAGE_VERSION
772PACKAGE_TARNAME
773PACKAGE_NAME
774PATH_SEPARATOR
775SHELL'
776ac_subst_files=''
777ac_user_opts='
778enable_option_checking
bf4e01a4 779enable_silent_rules
030272f3
VY
780enable_dependency_tracking
781enable_static
782enable_shared
783enable_maintainer_mode
7083c021 784with_pic
030272f3 785enable_fast_install
6f57a957 786with_aix_soname
030272f3 787with_gnu_ld
b6d0720c 788with_sysroot
030272f3 789enable_libtool_lock
030272f3
VY
790enable_ipv6
791enable_openssl
6f57a957 792enable_mbedtls
bf4e01a4 793enable_gnutls
030272f3
VY
794enable_assert
795enable_profile
796enable_balloc
797enable_warnings
798'
799 ac_precious_vars='build_alias
db137867
AC
800host_alias
801target_alias
db137867
AC
802CC
803CFLAGS
804LDFLAGS
030272f3 805LIBS
db137867 806CPPFLAGS
bf4e01a4 807CPP
6f57a957 808LT_SYS_LIBRARY_PATH
bf4e01a4
AC
809PKG_CONFIG
810PKG_CONFIG_PATH
811PKG_CONFIG_LIBDIR
812GNUTLS_CFLAGS
813GNUTLS_LIBS'
3202e249 814
db137867
AC
815
816# Initialize some variables set by options.
817ac_init_help=
818ac_init_version=false
030272f3
VY
819ac_unrecognized_opts=
820ac_unrecognized_sep=
db137867
AC
821# The variables have the same names as the options, with
822# dashes changed to underlines.
823cache_file=/dev/null
824exec_prefix=NONE
825no_create=
826no_recursion=
827prefix=NONE
828program_prefix=NONE
829program_suffix=NONE
830program_transform_name=s,x,x,
831silent=
832site=
833srcdir=
834verbose=
835x_includes=NONE
836x_libraries=NONE
837
838# Installation directory options.
839# These are left unexpanded so users can "make install exec_prefix=/foo"
840# and all the variables that are supposed to be based on exec_prefix
841# by default will actually change.
842# Use braces instead of parens because sh, perl, etc. also accept them.
843# (The list follows the same order as the GNU Coding Standards.)
844bindir='${exec_prefix}/bin'
845sbindir='${exec_prefix}/sbin'
846libexecdir='${exec_prefix}/libexec'
847datarootdir='${prefix}/share'
848datadir='${datarootdir}'
849sysconfdir='${prefix}/etc'
850sharedstatedir='${prefix}/com'
851localstatedir='${prefix}/var'
852includedir='${prefix}/include'
853oldincludedir='/usr/include'
854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855infodir='${datarootdir}/info'
856htmldir='${docdir}'
857dvidir='${docdir}'
858pdfdir='${docdir}'
859psdir='${docdir}'
860libdir='${exec_prefix}/lib'
861localedir='${datarootdir}/locale'
862mandir='${datarootdir}/man'
863
864ac_prev=
865ac_dashdash=
866for ac_option
867do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
873 fi
874
875 case $ac_option in
08c2568c
EM
876 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *=) ac_optarg= ;;
878 *) ac_optarg=yes ;;
db137867
AC
879 esac
880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
907 -datadir | --datadir | --datadi | --datad)
908 ac_prev=datadir ;;
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
911
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
919 -disable-* | --disable-*)
030272f3 920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
db137867 921 # Reject names that are not valid shell variable names.
030272f3 922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 923 as_fn_error $? "invalid feature name: $ac_useropt"
030272f3
VY
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928"enable_$ac_useropt"
929"*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=no ;;
db137867
AC
934
935 -docdir | --docdir | --docdi | --doc | --do)
936 ac_prev=docdir ;;
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 docdir=$ac_optarg ;;
939
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 ac_prev=dvidir ;;
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 dvidir=$ac_optarg ;;
944
945 -enable-* | --enable-*)
030272f3 946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
db137867 947 # Reject names that are not valid shell variable names.
030272f3 948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 949 as_fn_error $? "invalid feature name: $ac_useropt"
030272f3
VY
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954"enable_$ac_useropt"
955"*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=\$ac_optarg ;;
db137867
AC
960
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
969
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
973
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
980
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
985
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
991
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
998
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1003
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1008
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1015
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1020
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1027
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1032
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1036
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1039 no_create=yes ;;
1040
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1044
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1053
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1058
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1065
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1072
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1089
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1094
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1099
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1103
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1109
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1120
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1125
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1130
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1137
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1142
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1145
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1148
1149 -with-* | --with-*)
030272f3 1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
db137867 1151 # Reject names that are not valid shell variable names.
030272f3 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 1153 as_fn_error $? "invalid package name: $ac_useropt"
030272f3
VY
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158"with_$ac_useropt"
1159"*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=\$ac_optarg ;;
db137867
AC
1164
1165 -without-* | --without-*)
030272f3 1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
db137867 1167 # Reject names that are not valid shell variable names.
030272f3 1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 1169 as_fn_error $? "invalid package name: $ac_useropt"
030272f3
VY
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174"with_$ac_useropt"
1175"*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
db137867
AC
1180
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1184
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1191
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1198
08c2568c
EM
1199 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200Try \`$0 --help' for more information"
db137867
AC
1201 ;;
1202
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
7083c021
AC
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
08c2568c 1208 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
7083c021 1209 esac
db137867
AC
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1212
1213 *)
1214 # FIXME: should be removed in autoconf 3.0.
030272f3 1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
db137867 1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
030272f3 1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
08c2568c 1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
db137867
AC
1219 ;;
1220
1221 esac
1222done
1223
1224if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
08c2568c 1226 as_fn_error $? "missing argument to $ac_option"
db137867
AC
1227fi
1228
030272f3
VY
1229if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
08c2568c 1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
030272f3
VY
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 esac
1235fi
1236
1237# Check all directory arguments for consistency.
db137867
AC
1238for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1242do
1243 eval ac_val=\$$ac_var
030272f3
VY
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
db137867
AC
1251 case $ac_val in
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 esac
08c2568c 1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
db137867
AC
1256done
1257
1258# There might be people who depend on the old broken behavior: `$host'
1259# used to hold the argument of --host etc.
1260# FIXME: To remove some day.
1261build=$build_alias
1262host=$host_alias
1263target=$target_alias
1264
1265# FIXME: To remove some day.
1266if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
db137867
AC
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1271 fi
1272fi
1273
1274ac_tool_prefix=
1275test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277test "$silent" = yes && exec 6>/dev/null
1278
1279
1280ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281ac_ls_di=`ls -di .` &&
1282ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
08c2568c 1283 as_fn_error $? "working directory cannot be determined"
db137867 1284test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
08c2568c 1285 as_fn_error $? "pwd does not report name of working directory"
db137867
AC
1286
1287
1288# Find the source files, if location was not specified.
1289if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
030272f3
VY
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297$as_echo X"$as_myself" |
db137867
AC
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\).*/{
1311 s//\1/
1312 q
1313 }
1314 s/.*/./; q'`
1315 srcdir=$ac_confdir
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 srcdir=..
1318 fi
1319else
1320 ac_srcdir_defaulted=no
1321fi
1322if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
08c2568c 1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
db137867
AC
1325fi
1326ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327ac_abs_confdir=`(
08c2568c 1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
db137867
AC
1329 pwd)`
1330# When building in place, set srcdir=.
1331if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1333fi
1334# Remove unnecessary trailing slashes from srcdir.
1335# Double slashes in file names in object file debugging info
1336# mess up M-x gdb in Emacs.
1337case $srcdir in
1338*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339esac
1340for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345done
1346
1347#
1348# Report the --help message.
1349#
1350if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1353 cat <<_ACEOF
1354\`configure' configures libratbox devel to adapt to many kinds of systems.
1355
1356Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359VAR=VALUE. See below for descriptions of some of the useful variables.
1360
1361Defaults for the options are specified in brackets.
1362
1363Configuration:
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
08c2568c 1368 -q, --quiet, --silent do not print \`checking ...' messages
db137867
AC
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373
1374Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
030272f3 1376 [$ac_default_prefix]
db137867 1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
030272f3 1378 [PREFIX]
db137867
AC
1379
1380By default, \`make install' will install all the files in
1381\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383for instance \`--prefix=\$HOME'.
1384
1385For better control, use the options below.
1386
1387Fine tuning of the installation directories:
030272f3
VY
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
db137867
AC
1407_ACEOF
1408
1409 cat <<\_ACEOF
1410
1411Program names:
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1415
1416System types:
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419_ACEOF
1420fi
1421
1422if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of libratbox devel:";;
1425 esac
1426 cat <<\_ACEOF
1427
1428Optional Features:
030272f3 1429 --disable-option-checking ignore unrecognized --enable/--with options
db137867
AC
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
bf4e01a4
AC
1432 --enable-silent-rules less verbose build output (undo: "make V=1")
1433 --disable-silent-rules verbose build output (undo: "make V=0")
1434 --enable-dependency-tracking
1435 do not reject slow dependency extractors
1436 --disable-dependency-tracking
1437 speeds up one-time build
db137867
AC
1438 --enable-static[=PKGS] build static libraries [default=no]
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
bf4e01a4
AC
1440 --enable-maintainer-mode
1441 enable make rules and dependencies not useful (and
1442 sometimes confusing) to the casual installer
db137867
AC
1443 --enable-fast-install[=PKGS]
1444 optimize for fast installation [default=yes]
1445 --disable-libtool-lock avoid locking (might break parallel builds)
1446 --disable-ipv6 Disable IPv6 support
1447 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1448 --disable-openssl Disable OpenSSL support.
6f57a957
AC
1449 --enable-mbedtls Enable mbedTLS support.
1450 --disable-mbedtls Disable mbedTLS support.
bf4e01a4
AC
1451 --enable-gnutls Enable GnuTLS support.
1452 --disable-gnutls Disable GnuTLS support.
db137867
AC
1453 --enable-assert Enable assert(). Choose between soft(warnings) and
1454 hard(aborts the daemon)
1455 --enable-profile Enable profiling
1456 --disable-balloc Disable the block allocator.
1457 --enable-warnings Enable all sorts of warnings for debugging.
1458
1459Optional Packages:
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a949ab1a 1462 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
db137867 1463 both]
6f57a957
AC
1464 --with-aix-soname=aix|svr4|both
1465 shared library versioning (aka "SONAME") variant to
1466 provide on AIX, [default=aix].
7083c021 1467 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
6f57a957
AC
1468 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1469 compiler's sysroot if not specified).
db137867
AC
1470
1471Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
96f4052b 1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
db137867
AC
1478 you have headers in a nonstandard directory <include dir>
1479 CPP C preprocessor
6f57a957
AC
1480 LT_SYS_LIBRARY_PATH
1481 User-defined run-time library search path.
bf4e01a4
AC
1482 PKG_CONFIG path to pkg-config utility
1483 PKG_CONFIG_PATH
1484 directories to add to pkg-config's search path
1485 PKG_CONFIG_LIBDIR
1486 path overriding pkg-config's built-in search path
1487 GNUTLS_CFLAGS
1488 C compiler flags for GNUTLS, overriding pkg-config
1489 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
db137867
AC
1490
1491Use these variables to override the choices made by `configure' or to help
1492it to find libraries and programs with nonstandard names/locations.
1493
7083c021 1494Report bugs to the package provider.
db137867
AC
1495_ACEOF
1496ac_status=$?
1497fi
1498
1499if test "$ac_init_help" = "recursive"; then
1500 # If there are subdirs, report their specific --help.
1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
030272f3
VY
1502 test -d "$ac_dir" ||
1503 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1504 continue
db137867
AC
1505 ac_builddir=.
1506
1507case "$ac_dir" in
1508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509*)
030272f3 1510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
db137867 1511 # A ".." for each directory in $ac_dir_suffix.
030272f3 1512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
db137867
AC
1513 case $ac_top_builddir_sub in
1514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516 esac ;;
1517esac
1518ac_abs_top_builddir=$ac_pwd
1519ac_abs_builddir=$ac_pwd$ac_dir_suffix
1520# for backward compatibility:
1521ac_top_builddir=$ac_top_build_prefix
1522
1523case $srcdir in
1524 .) # We are building in place.
1525 ac_srcdir=.
1526 ac_top_srcdir=$ac_top_builddir_sub
1527 ac_abs_top_srcdir=$ac_pwd ;;
1528 [\\/]* | ?:[\\/]* ) # Absolute name.
1529 ac_srcdir=$srcdir$ac_dir_suffix;
1530 ac_top_srcdir=$srcdir
1531 ac_abs_top_srcdir=$srcdir ;;
1532 *) # Relative name.
1533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1534 ac_top_srcdir=$ac_top_build_prefix$srcdir
1535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536esac
1537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538
1539 cd "$ac_dir" || { ac_status=$?; continue; }
1540 # Check for guested configure.
1541 if test -f "$ac_srcdir/configure.gnu"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1544 elif test -f "$ac_srcdir/configure"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure" --help=recursive
1547 else
030272f3 1548 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
db137867
AC
1549 fi || ac_status=$?
1550 cd "$ac_pwd" || { ac_status=$?; break; }
1551 done
1552fi
1553
1554test -n "$ac_init_help" && exit $ac_status
1555if $ac_init_version; then
1556 cat <<\_ACEOF
1557libratbox configure devel
bf4e01a4 1558generated by GNU Autoconf 2.69
db137867 1559
bf4e01a4 1560Copyright (C) 2012 Free Software Foundation, Inc.
db137867
AC
1561This configure script is free software; the Free Software Foundation
1562gives unlimited permission to copy, distribute and modify it.
1563
030272f3 1564$Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
db137867
AC
1565_ACEOF
1566 exit
1567fi
7083c021
AC
1568
1569## ------------------------ ##
1570## Autoconf initialization. ##
1571## ------------------------ ##
1572
1573# ac_fn_c_try_compile LINENO
1574# --------------------------
1575# Try to compile conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_compile ()
1577{
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600else
1601 $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605fi
08c2568c 1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1607 as_fn_set_status $ac_retval
7083c021
AC
1608
1609} # ac_fn_c_try_compile
1610
1611# ac_fn_c_try_cpp LINENO
1612# ----------------------
1613# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_c_try_cpp ()
1615{
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_cpp conftest.$ac_ext"
1618case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
08c2568c 1632 test $ac_status = 0; } > conftest.i && {
7083c021
AC
1633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 }; then :
1636 ac_retval=0
1637else
1638 $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642fi
08c2568c 1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1644 as_fn_set_status $ac_retval
7083c021
AC
1645
1646} # ac_fn_c_try_cpp
1647
1648# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1649# -------------------------------------------------------
1650# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1651# the include files in INCLUDES and setting the cache variable VAR
1652# accordingly.
1653ac_fn_c_check_header_mongrel ()
1654{
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
08c2568c 1656 if eval \${$3+:} false; then :
7083c021
AC
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658$as_echo_n "checking for $2... " >&6; }
08c2568c 1659if eval \${$3+:} false; then :
7083c021
AC
1660 $as_echo_n "(cached) " >&6
1661fi
1662eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664$as_echo "$ac_res" >&6; }
1665else
1666 # Is the header compilable?
1667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1668$as_echo_n "checking $2 usability... " >&6; }
1669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670/* end confdefs.h. */
1671$4
1672#include <$2>
1673_ACEOF
1674if ac_fn_c_try_compile "$LINENO"; then :
1675 ac_header_compiler=yes
1676else
1677 ac_header_compiler=no
1678fi
1679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1681$as_echo "$ac_header_compiler" >&6; }
1682
1683# Is the header present?
1684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1685$as_echo_n "checking $2 presence... " >&6; }
1686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687/* end confdefs.h. */
1688#include <$2>
1689_ACEOF
1690if ac_fn_c_try_cpp "$LINENO"; then :
1691 ac_header_preproc=yes
1692else
1693 ac_header_preproc=no
1694fi
08c2568c 1695rm -f conftest.err conftest.i conftest.$ac_ext
7083c021
AC
1696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1697$as_echo "$ac_header_preproc" >&6; }
1698
1699# So? What about this header?
1700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1701 yes:no: )
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1703$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1705$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706 ;;
1707 no:yes:* )
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1709$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1711$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1713$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1715$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1717$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1718 ;;
1719esac
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721$as_echo_n "checking for $2... " >&6; }
08c2568c 1722if eval \${$3+:} false; then :
7083c021
AC
1723 $as_echo_n "(cached) " >&6
1724else
1725 eval "$3=\$ac_header_compiler"
1726fi
1727eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729$as_echo "$ac_res" >&6; }
1730fi
08c2568c 1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1732
1733} # ac_fn_c_check_header_mongrel
1734
1735# ac_fn_c_try_run LINENO
1736# ----------------------
1737# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738# that executables *can* be run.
1739ac_fn_c_try_run ()
1740{
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_link"
1743case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753 { { case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756esac
1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758$as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_try") 2>&5
1760 ac_status=$?
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; }; }; then :
1763 ac_retval=0
1764else
1765 $as_echo "$as_me: program exited with status $ac_status" >&5
1766 $as_echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=$ac_status
1770fi
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
08c2568c 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1773 as_fn_set_status $ac_retval
7083c021
AC
1774
1775} # ac_fn_c_try_run
1776
1777# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists and can be compiled using the include files in
1780# INCLUDES, setting the cache variable VAR accordingly.
1781ac_fn_c_check_header_compile ()
1782{
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
08c2568c 1786if eval \${$3+:} false; then :
7083c021
AC
1787 $as_echo_n "(cached) " >&6
1788else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h. */
1791$4
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795 eval "$3=yes"
1796else
1797 eval "$3=no"
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800fi
1801eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
08c2568c 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1805
1806} # ac_fn_c_check_header_compile
1807
1808# ac_fn_c_try_link LINENO
1809# -----------------------
1810# Try to link conftest.$ac_ext, and return whether this succeeded.
1811ac_fn_c_try_link ()
1812{
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext conftest$ac_exeext
1815 if { { ac_try="$ac_link"
1816case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1828 fi
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest$ac_exeext && {
1834 test "$cross_compiling" = yes ||
bf4e01a4 1835 test -x conftest$ac_exeext
7083c021
AC
1836 }; then :
1837 ac_retval=0
1838else
1839 $as_echo "$as_me: failed program was:" >&5
1840sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843fi
1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846 # interfere with the next link command; also delete a directory that is
1847 # left behind by Apple's compiler. We do this before executing the actions.
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
08c2568c 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1850 as_fn_set_status $ac_retval
7083c021
AC
1851
1852} # ac_fn_c_try_link
1853
1854# ac_fn_c_check_func LINENO FUNC VAR
1855# ----------------------------------
1856# Tests whether FUNC exists, setting the cache variable VAR accordingly
1857ac_fn_c_check_func ()
1858{
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
08c2568c 1862if eval \${$3+:} false; then :
7083c021
AC
1863 $as_echo_n "(cached) " >&6
1864else
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h. */
1867/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1869#define $2 innocuous_$2
1870
1871/* System header to define __stub macros and hopefully few prototypes,
1872 which can conflict with char $2 (); below.
1873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874 <limits.h> exists even on freestanding compilers. */
1875
1876#ifdef __STDC__
1877# include <limits.h>
1878#else
1879# include <assert.h>
1880#endif
1881
1882#undef $2
1883
1884/* Override any GCC internal prototype to avoid an error.
1885 Use char because int might match the return type of a GCC
1886 builtin and then its argument prototype would still apply. */
1887#ifdef __cplusplus
1888extern "C"
1889#endif
1890char $2 ();
1891/* The GNU C library defines this for functions which it implements
1892 to always fail with ENOSYS. Some functions are actually named
1893 something starting with __ and the normal name is an alias. */
1894#if defined __stub_$2 || defined __stub___$2
1895choke me
1896#endif
1897
1898int
1899main ()
1900{
1901return $2 ();
1902 ;
1903 return 0;
1904}
1905_ACEOF
1906if ac_fn_c_try_link "$LINENO"; then :
1907 eval "$3=yes"
1908else
1909 eval "$3=no"
1910fi
1911rm -f core conftest.err conftest.$ac_objext \
1912 conftest$ac_exeext conftest.$ac_ext
1913fi
1914eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916$as_echo "$ac_res" >&6; }
08c2568c 1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1918
1919} # ac_fn_c_check_func
1920
1921# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1922# -------------------------------------------
1923# Tests whether TYPE exists after having included INCLUDES, setting cache
1924# variable VAR accordingly.
1925ac_fn_c_check_type ()
1926{
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929$as_echo_n "checking for $2... " >&6; }
08c2568c 1930if eval \${$3+:} false; then :
7083c021
AC
1931 $as_echo_n "(cached) " >&6
1932else
1933 eval "$3=no"
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h. */
1936$4
1937int
1938main ()
1939{
1940if (sizeof ($2))
1941 return 0;
1942 ;
1943 return 0;
1944}
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948/* end confdefs.h. */
1949$4
1950int
1951main ()
1952{
1953if (sizeof (($2)))
1954 return 0;
1955 ;
1956 return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_compile "$LINENO"; then :
1960
1961else
1962 eval "$3=yes"
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965fi
1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967fi
1968eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
08c2568c 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1972
1973} # ac_fn_c_check_type
1974
1975# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1976# ----------------------------------------------------
1977# Tries to find if the field MEMBER exists in type AGGR, after including
1978# INCLUDES, setting cache variable VAR accordingly.
1979ac_fn_c_check_member ()
1980{
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1983$as_echo_n "checking for $2.$3... " >&6; }
08c2568c 1984if eval \${$4+:} false; then :
7083c021
AC
1985 $as_echo_n "(cached) " >&6
1986else
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h. */
1989$5
1990int
1991main ()
1992{
1993static $2 ac_aggr;
1994if (ac_aggr.$3)
1995return 0;
1996 ;
1997 return 0;
1998}
1999_ACEOF
2000if ac_fn_c_try_compile "$LINENO"; then :
2001 eval "$4=yes"
2002else
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h. */
2005$5
2006int
2007main ()
2008{
2009static $2 ac_aggr;
2010if (sizeof ac_aggr.$3)
2011return 0;
2012 ;
2013 return 0;
2014}
2015_ACEOF
2016if ac_fn_c_try_compile "$LINENO"; then :
2017 eval "$4=yes"
2018else
2019 eval "$4=no"
2020fi
2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022fi
2023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024fi
2025eval ac_res=\$$4
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027$as_echo "$ac_res" >&6; }
08c2568c 2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
2029
2030} # ac_fn_c_check_member
db137867
AC
2031cat >config.log <<_ACEOF
2032This file contains any messages produced by compilers while
2033running configure, to aid debugging if configure makes a mistake.
2034
2035It was created by libratbox $as_me devel, which was
bf4e01a4 2036generated by GNU Autoconf 2.69. Invocation command line was
db137867
AC
2037
2038 $ $0 $@
2039
2040_ACEOF
2041exec 5>>config.log
2042{
2043cat <<_ASUNAME
2044## --------- ##
2045## Platform. ##
2046## --------- ##
2047
2048hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2049uname -m = `(uname -m) 2>/dev/null || echo unknown`
2050uname -r = `(uname -r) 2>/dev/null || echo unknown`
2051uname -s = `(uname -s) 2>/dev/null || echo unknown`
2052uname -v = `(uname -v) 2>/dev/null || echo unknown`
2053
2054/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2055/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2056
2057/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2058/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2059/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2060/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2061/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2062/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2063/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2064
2065_ASUNAME
2066
2067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068for as_dir in $PATH
2069do
2070 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=.
7083c021
AC
2072 $as_echo "PATH: $as_dir"
2073 done
db137867
AC
2074IFS=$as_save_IFS
2075
2076} >&5
2077
2078cat >&5 <<_ACEOF
2079
2080
2081## ----------- ##
2082## Core tests. ##
2083## ----------- ##
2084
2085_ACEOF
2086
2087
2088# Keep a trace of the command line.
2089# Strip out --no-create and --no-recursion so they do not pile up.
2090# Strip out --silent because we don't want to record it for future runs.
2091# Also quote any args containing shell meta-characters.
2092# Make two passes to allow for proper duplicate-argument suppression.
2093ac_configure_args=
2094ac_configure_args0=
2095ac_configure_args1=
2096ac_must_keep_next=false
2097for ac_pass in 1 2
2098do
2099 for ac_arg
2100 do
2101 case $ac_arg in
2102 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2104 | -silent | --silent | --silen | --sile | --sil)
2105 continue ;;
2106 *\'*)
030272f3 2107 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
db137867
AC
2108 esac
2109 case $ac_pass in
7083c021 2110 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
db137867 2111 2)
7083c021 2112 as_fn_append ac_configure_args1 " '$ac_arg'"
db137867
AC
2113 if test $ac_must_keep_next = true; then
2114 ac_must_keep_next=false # Got value, back to normal.
2115 else
2116 case $ac_arg in
2117 *=* | --config-cache | -C | -disable-* | --disable-* \
2118 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2119 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2120 | -with-* | --with-* | -without-* | --without-* | --x)
2121 case "$ac_configure_args0 " in
2122 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2123 esac
2124 ;;
2125 -* ) ac_must_keep_next=true ;;
2126 esac
2127 fi
7083c021 2128 as_fn_append ac_configure_args " '$ac_arg'"
db137867
AC
2129 ;;
2130 esac
2131 done
2132done
7083c021
AC
2133{ ac_configure_args0=; unset ac_configure_args0;}
2134{ ac_configure_args1=; unset ac_configure_args1;}
db137867
AC
2135
2136# When interrupted or exit'd, cleanup temporary files, and complete
2137# config.log. We remove comments because anyway the quotes in there
2138# would cause problems or look ugly.
2139# WARNING: Use '\'' to represent an apostrophe within the trap.
2140# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2141trap 'exit_status=$?
2142 # Save into config.log some information that might help in debugging.
2143 {
2144 echo
2145
08c2568c 2146 $as_echo "## ---------------- ##
db137867 2147## Cache variables. ##
08c2568c 2148## ---------------- ##"
db137867
AC
2149 echo
2150 # The following way of writing the cache mishandles newlines in values,
2151(
2152 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2153 eval ac_val=\$$ac_var
2154 case $ac_val in #(
2155 *${as_nl}*)
2156 case $ac_var in #(
7083c021 2157 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
030272f3 2158$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
db137867
AC
2159 esac
2160 case $ac_var in #(
2161 _ | IFS | as_nl) ;; #(
030272f3 2162 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7083c021 2163 *) { eval $ac_var=; unset $ac_var;} ;;
db137867
AC
2164 esac ;;
2165 esac
2166 done
2167 (set) 2>&1 |
2168 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2169 *${as_nl}ac_space=\ *)
2170 sed -n \
2171 "s/'\''/'\''\\\\'\'''\''/g;
2172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2173 ;; #(
2174 *)
2175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2176 ;;
2177 esac |
2178 sort
2179)
2180 echo
2181
08c2568c 2182 $as_echo "## ----------------- ##
db137867 2183## Output variables. ##
08c2568c 2184## ----------------- ##"
db137867
AC
2185 echo
2186 for ac_var in $ac_subst_vars
2187 do
2188 eval ac_val=\$$ac_var
2189 case $ac_val in
030272f3 2190 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
db137867 2191 esac
030272f3 2192 $as_echo "$ac_var='\''$ac_val'\''"
db137867
AC
2193 done | sort
2194 echo
2195
2196 if test -n "$ac_subst_files"; then
08c2568c 2197 $as_echo "## ------------------- ##
db137867 2198## File substitutions. ##
08c2568c 2199## ------------------- ##"
db137867
AC
2200 echo
2201 for ac_var in $ac_subst_files
2202 do
2203 eval ac_val=\$$ac_var
2204 case $ac_val in
030272f3 2205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
db137867 2206 esac
030272f3 2207 $as_echo "$ac_var='\''$ac_val'\''"
db137867
AC
2208 done | sort
2209 echo
2210 fi
2211
2212 if test -s confdefs.h; then
08c2568c 2213 $as_echo "## ----------- ##
db137867 2214## confdefs.h. ##
08c2568c 2215## ----------- ##"
db137867
AC
2216 echo
2217 cat confdefs.h
2218 echo
2219 fi
2220 test "$ac_signal" != 0 &&
030272f3
VY
2221 $as_echo "$as_me: caught signal $ac_signal"
2222 $as_echo "$as_me: exit $exit_status"
db137867
AC
2223 } >&5
2224 rm -f core *.core core.conftest.* &&
2225 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2226 exit $exit_status
2227' 0
2228for ac_signal in 1 2 13 15; do
7083c021 2229 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
db137867
AC
2230done
2231ac_signal=0
2232
2233# confdefs.h avoids OS command line length limits that DEFS can exceed.
2234rm -f -r conftest* confdefs.h
2235
7083c021
AC
2236$as_echo "/* confdefs.h */" > confdefs.h
2237
db137867
AC
2238# Predefined preprocessor variables.
2239
2240cat >>confdefs.h <<_ACEOF
2241#define PACKAGE_NAME "$PACKAGE_NAME"
2242_ACEOF
2243
db137867
AC
2244cat >>confdefs.h <<_ACEOF
2245#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2246_ACEOF
2247
db137867
AC
2248cat >>confdefs.h <<_ACEOF
2249#define PACKAGE_VERSION "$PACKAGE_VERSION"
2250_ACEOF
2251
db137867
AC
2252cat >>confdefs.h <<_ACEOF
2253#define PACKAGE_STRING "$PACKAGE_STRING"
2254_ACEOF
2255
db137867
AC
2256cat >>confdefs.h <<_ACEOF
2257#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2258_ACEOF
2259
7083c021
AC
2260cat >>confdefs.h <<_ACEOF
2261#define PACKAGE_URL "$PACKAGE_URL"
2262_ACEOF
2263
db137867
AC
2264
2265# Let the site file select an alternate cache file if it wants to.
030272f3
VY
2266# Prefer an explicitly selected file to automatically selected ones.
2267ac_site_file1=NONE
2268ac_site_file2=NONE
db137867 2269if test -n "$CONFIG_SITE"; then
08c2568c
EM
2270 # We do not want a PATH search for config.site.
2271 case $CONFIG_SITE in #((
2272 -*) ac_site_file1=./$CONFIG_SITE;;
2273 */*) ac_site_file1=$CONFIG_SITE;;
2274 *) ac_site_file1=./$CONFIG_SITE;;
2275 esac
db137867 2276elif test "x$prefix" != xNONE; then
030272f3
VY
2277 ac_site_file1=$prefix/share/config.site
2278 ac_site_file2=$prefix/etc/config.site
db137867 2279else
030272f3
VY
2280 ac_site_file1=$ac_default_prefix/share/config.site
2281 ac_site_file2=$ac_default_prefix/etc/config.site
db137867 2282fi
030272f3 2283for ac_site_file in "$ac_site_file1" "$ac_site_file2"
db137867 2284do
030272f3 2285 test "x$ac_site_file" = xNONE && continue
96f4052b 2286 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
7083c021 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
030272f3 2288$as_echo "$as_me: loading site script $ac_site_file" >&6;}
db137867 2289 sed 's/^/| /' "$ac_site_file" >&5
08c2568c
EM
2290 . "$ac_site_file" \
2291 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293as_fn_error $? "failed to load site script $ac_site_file
2294See \`config.log' for more details" "$LINENO" 5; }
db137867
AC
2295 fi
2296done
2297
2298if test -r "$cache_file"; then
96f4052b
AC
2299 # Some versions of bash will fail to source /dev/null (special files
2300 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2301 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
7083c021 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
030272f3 2303$as_echo "$as_me: loading cache $cache_file" >&6;}
db137867
AC
2304 case $cache_file in
2305 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2306 *) . "./$cache_file";;
2307 esac
2308 fi
2309else
7083c021 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
030272f3 2311$as_echo "$as_me: creating cache $cache_file" >&6;}
db137867
AC
2312 >$cache_file
2313fi
2314
96f4052b
AC
2315as_fn_append ac_header_list " stdlib.h"
2316as_fn_append ac_header_list " unistd.h"
2317as_fn_append ac_header_list " sys/param.h"
db137867
AC
2318# Check that the precious variables saved in the cache have kept the same
2319# value.
2320ac_cache_corrupted=false
2321for ac_var in $ac_precious_vars; do
2322 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2323 eval ac_new_set=\$ac_env_${ac_var}_set
2324 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2325 eval ac_new_val=\$ac_env_${ac_var}_value
2326 case $ac_old_set,$ac_new_set in
2327 set,)
7083c021 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
030272f3 2329$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
db137867
AC
2330 ac_cache_corrupted=: ;;
2331 ,set)
7083c021 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
030272f3 2333$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
db137867
AC
2334 ac_cache_corrupted=: ;;
2335 ,);;
2336 *)
2337 if test "x$ac_old_val" != "x$ac_new_val"; then
030272f3
VY
2338 # differences in whitespace do not lead to failure.
2339 ac_old_val_w=`echo x $ac_old_val`
2340 ac_new_val_w=`echo x $ac_new_val`
2341 if test "$ac_old_val_w" != "$ac_new_val_w"; then
7083c021 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
030272f3
VY
2343$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2344 ac_cache_corrupted=:
2345 else
7083c021 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
030272f3
VY
2347$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2348 eval $ac_var=\$ac_old_val
2349 fi
7083c021 2350 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
030272f3 2351$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
7083c021 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
030272f3 2353$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
db137867
AC
2354 fi;;
2355 esac
2356 # Pass precious variables to config.status.
2357 if test "$ac_new_set" = set; then
2358 case $ac_new_val in
030272f3 2359 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
db137867
AC
2360 *) ac_arg=$ac_var=$ac_new_val ;;
2361 esac
2362 case " $ac_configure_args " in
2363 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
7083c021 2364 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
db137867
AC
2365 esac
2366 fi
2367done
2368if $ac_cache_corrupted; then
7083c021 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 2370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7083c021 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
030272f3 2372$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
08c2568c 2373 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
db137867 2374fi
7083c021
AC
2375## -------------------- ##
2376## Main body of script. ##
2377## -------------------- ##
db137867 2378
7083c021
AC
2379ac_ext=c
2380ac_cpp='$CPP $CPPFLAGS'
2381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383ac_compiler_gnu=$ac_cv_c_compiler_gnu
db137867
AC
2384
2385
6f57a957 2386am__api_version='1.15'
db137867 2387
7083c021
AC
2388ac_aux_dir=
2389for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
08c2568c
EM
2390 if test -f "$ac_dir/install-sh"; then
2391 ac_aux_dir=$ac_dir
2392 ac_install_sh="$ac_aux_dir/install-sh -c"
2393 break
2394 elif test -f "$ac_dir/install.sh"; then
2395 ac_aux_dir=$ac_dir
2396 ac_install_sh="$ac_aux_dir/install.sh -c"
2397 break
2398 elif test -f "$ac_dir/shtool"; then
2399 ac_aux_dir=$ac_dir
2400 ac_install_sh="$ac_aux_dir/shtool install -c"
2401 break
2402 fi
7083c021
AC
2403done
2404if test -z "$ac_aux_dir"; then
08c2568c 2405 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
7083c021 2406fi
db137867 2407
7083c021
AC
2408# These three variables are undocumented and unsupported,
2409# and are intended to be withdrawn in a future Autoconf release.
2410# They can cause serious problems if a builder's source tree is in a directory
2411# whose full name contains unusual characters.
2412ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2413ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2414ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
db137867
AC
2415
2416
2417# Find a good install program. We prefer a C program (faster),
2418# so one script is as good as another. But avoid the broken or
2419# incompatible versions:
2420# SysV /etc/install, /usr/sbin/install
2421# SunOS /usr/etc/install
2422# IRIX /sbin/install
2423# AIX /bin/install
2424# AmigaOS /C/install, which installs bootblocks on floppy discs
2425# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2426# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2427# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2428# OS/2's system install, which has a completely different semantic
2429# ./install, which can be erroneously created by make from ./install.sh.
030272f3 2430# Reject install programs that cannot install multiple files.
7083c021 2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
030272f3 2432$as_echo_n "checking for a BSD-compatible install... " >&6; }
db137867 2433if test -z "$INSTALL"; then
08c2568c 2434if ${ac_cv_path_install+:} false; then :
030272f3 2435 $as_echo_n "(cached) " >&6
db137867
AC
2436else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
7083c021
AC
2442 # Account for people who put trailing slashes in PATH elements.
2443case $as_dir/ in #((
2444 ./ | .// | /[cC]/* | \
db137867 2445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7083c021 2446 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
db137867
AC
2447 /usr/ucb/* ) ;;
2448 *)
2449 # OSF1 and SCO ODT 3.0 have their own names for install.
2450 # Don't use installbsd from OSF since it installs stuff as root
2451 # by default.
2452 for ac_prog in ginstall scoinst install; do
2453 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 2454 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
db137867
AC
2455 if test $ac_prog = install &&
2456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # AIX install. It has an incompatible calling convention.
2458 :
2459 elif test $ac_prog = install &&
2460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # program-specific install script used by HP pwplus--don't use.
2462 :
2463 else
030272f3
VY
2464 rm -rf conftest.one conftest.two conftest.dir
2465 echo one > conftest.one
2466 echo two > conftest.two
2467 mkdir conftest.dir
2468 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2469 test -s conftest.one && test -s conftest.two &&
2470 test -s conftest.dir/conftest.one &&
2471 test -s conftest.dir/conftest.two
2472 then
2473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474 break 3
2475 fi
db137867
AC
2476 fi
2477 fi
2478 done
2479 done
2480 ;;
2481esac
030272f3 2482
7083c021 2483 done
db137867
AC
2484IFS=$as_save_IFS
2485
030272f3 2486rm -rf conftest.one conftest.two conftest.dir
db137867
AC
2487
2488fi
2489 if test "${ac_cv_path_install+set}" = set; then
2490 INSTALL=$ac_cv_path_install
2491 else
2492 # As a last resort, use the slow shell script. Don't cache a
2493 # value for INSTALL within a source directory, because that will
2494 # break other packages using the cache if that directory is
2495 # removed, or if the value is a relative name.
2496 INSTALL=$ac_install_sh
2497 fi
2498fi
7083c021 2499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
030272f3 2500$as_echo "$INSTALL" >&6; }
db137867
AC
2501
2502# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503# It thinks the first close brace ends the variable substitution.
2504test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
2506test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2507
2508test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
7083c021 2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
030272f3 2511$as_echo_n "checking whether build environment is sane... " >&6; }
7083c021
AC
2512# Reject unsafe characters in $srcdir or the absolute working directory
2513# name. Accept space and tab only in the latter.
2514am_lf='
2515'
2516case `pwd` in
2517 *[\\\"\#\$\&\'\`$am_lf]*)
08c2568c 2518 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
7083c021
AC
2519esac
2520case $srcdir in
2521 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
bf4e01a4 2522 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
7083c021
AC
2523esac
2524
bf4e01a4 2525# Do 'set' in a subshell so we don't clobber the current shell's
db137867
AC
2526# arguments. Must try -L first in case configure is actually a
2527# symlink; some systems play weird games with the mod time of symlinks
2528# (eg FreeBSD returns the mod time of the symlink's containing
2529# directory).
2530if (
bf4e01a4
AC
2531 am_has_slept=no
2532 for am_try in 1 2; do
2533 echo "timestamp, slept: $am_has_slept" > conftest.file
2534 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2535 if test "$*" = "X"; then
2536 # -L didn't work.
2537 set X `ls -t "$srcdir/configure" conftest.file`
2538 fi
2539 if test "$*" != "X $srcdir/configure conftest.file" \
2540 && test "$*" != "X conftest.file $srcdir/configure"; then
2541
2542 # If neither matched, then we have a broken ls. This can happen
2543 # if, for instance, CONFIG_SHELL is bash and it inherits a
2544 # broken ls alias from the environment. This has actually
2545 # happened. Such a system could not be considered "sane".
2546 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2547 alias in your environment" "$LINENO" 5
2548 fi
2549 if test "$2" = conftest.file || test $am_try -eq 2; then
2550 break
2551 fi
2552 # Just in case.
2553 sleep 1
2554 am_has_slept=yes
2555 done
db137867
AC
2556 test "$2" = conftest.file
2557 )
2558then
2559 # Ok.
2560 :
2561else
08c2568c 2562 as_fn_error $? "newly created file is older than distributed files!
7083c021 2563Check your system clock" "$LINENO" 5
db137867 2564fi
7083c021 2565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
030272f3 2566$as_echo "yes" >&6; }
bf4e01a4
AC
2567# If we didn't sleep, we still need to ensure time stamps of config.status and
2568# generated files are strictly newer.
2569am_sleep_pid=
2570if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2571 ( sleep 1 ) &
2572 am_sleep_pid=$!
2573fi
2574
2575rm -f conftest.file
2576
db137867
AC
2577test "$program_prefix" != NONE &&
2578 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2579# Use a double $ so make ignores it.
2580test "$program_suffix" != NONE &&
2581 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
030272f3 2582# Double any \ or $.
db137867 2583# By default was `s,x,x', remove it if useless.
030272f3
VY
2584ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2585program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
db137867 2586
6f57a957
AC
2587# Expand $ac_aux_dir to an absolute path.
2588am_aux_dir=`cd "$ac_aux_dir" && pwd`
db137867 2589
7083c021
AC
2590if test x"${MISSING+set}" != xset; then
2591 case $am_aux_dir in
2592 *\ * | *\ *)
2593 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2594 *)
2595 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2596 esac
2597fi
db137867 2598# Use eval to expand $SHELL
bf4e01a4
AC
2599if eval "$MISSING --is-lightweight"; then
2600 am_missing_run="$MISSING "
db137867
AC
2601else
2602 am_missing_run=
bf4e01a4
AC
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2604$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
db137867
AC
2605fi
2606
6f57a957 2607if test x"${install_sh+set}" != xset; then
7083c021
AC
2608 case $am_aux_dir in
2609 *\ * | *\ *)
2610 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2611 *)
2612 install_sh="\${SHELL} $am_aux_dir/install-sh"
2613 esac
2614fi
2615
bf4e01a4
AC
2616# Installed binaries are usually stripped using 'strip' when the user
2617# run "make install-strip". However 'strip' might not be the right
7083c021 2618# tool to use in cross-compilation environments, therefore Automake
bf4e01a4 2619# will honor the 'STRIP' environment variable to overrule this program.
7083c021
AC
2620if test "$cross_compiling" != no; then
2621 if test -n "$ac_tool_prefix"; then
2622 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2623set dummy ${ac_tool_prefix}strip; ac_word=$2
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2626if ${ac_cv_prog_STRIP+:} false; then :
7083c021
AC
2627 $as_echo_n "(cached) " >&6
2628else
2629 if test -n "$STRIP"; then
2630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2631else
2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633for as_dir in $PATH
2634do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 2638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2639 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 break 2
2642 fi
2643done
2644 done
2645IFS=$as_save_IFS
2646
2647fi
2648fi
2649STRIP=$ac_cv_prog_STRIP
2650if test -n "$STRIP"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2652$as_echo "$STRIP" >&6; }
2653else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655$as_echo "no" >&6; }
2656fi
2657
2658
2659fi
2660if test -z "$ac_cv_prog_STRIP"; then
2661 ac_ct_STRIP=$STRIP
2662 # Extract the first word of "strip", so it can be a program name with args.
2663set dummy strip; ac_word=$2
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2666if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7083c021
AC
2667 $as_echo_n "(cached) " >&6
2668else
2669 if test -n "$ac_ct_STRIP"; then
2670 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2671else
2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2679 ac_cv_prog_ac_ct_STRIP="strip"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683done
2684 done
2685IFS=$as_save_IFS
2686
2687fi
2688fi
2689ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2690if test -n "$ac_ct_STRIP"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2692$as_echo "$ac_ct_STRIP" >&6; }
2693else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695$as_echo "no" >&6; }
2696fi
2697
2698 if test "x$ac_ct_STRIP" = x; then
2699 STRIP=":"
2700 else
2701 case $cross_compiling:$ac_tool_warned in
2702yes:)
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705ac_tool_warned=yes ;;
2706esac
2707 STRIP=$ac_ct_STRIP
2708 fi
2709else
2710 STRIP="$ac_cv_prog_STRIP"
2711fi
2712
2713fi
2714INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2715
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
030272f3 2717$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
db137867 2718if test -z "$MKDIR_P"; then
08c2568c 2719 if ${ac_cv_path_mkdir+:} false; then :
030272f3 2720 $as_echo_n "(cached) " >&6
db137867
AC
2721else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2724do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
7083c021 2727 for ac_prog in mkdir gmkdir; do
db137867 2728 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 2729 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
db137867
AC
2730 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2731 'mkdir (GNU coreutils) '* | \
2732 'mkdir (coreutils) '* | \
2733 'mkdir (fileutils) '4.1*)
2734 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2735 break 3;;
2736 esac
2737 done
2738 done
7083c021 2739 done
db137867
AC
2740IFS=$as_save_IFS
2741
2742fi
2743
96f4052b 2744 test -d ./--version && rmdir ./--version
db137867
AC
2745 if test "${ac_cv_path_mkdir+set}" = set; then
2746 MKDIR_P="$ac_cv_path_mkdir -p"
2747 else
2748 # As a last resort, use the slow shell script. Don't cache a
2749 # value for MKDIR_P within a source directory, because that will
2750 # break other packages using the cache if that directory is
2751 # removed, or if the value is a relative name.
db137867
AC
2752 MKDIR_P="$ac_install_sh -d"
2753 fi
2754fi
7083c021 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
030272f3 2756$as_echo "$MKDIR_P" >&6; }
db137867 2757
db137867
AC
2758for ac_prog in gawk mawk nawk awk
2759do
2760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2761set dummy $ac_prog; ac_word=$2
7083c021 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 2763$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2764if ${ac_cv_prog_AWK+:} false; then :
030272f3 2765 $as_echo_n "(cached) " >&6
db137867
AC
2766else
2767 if test -n "$AWK"; then
2768 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2769else
2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771for as_dir in $PATH
2772do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
7083c021 2775 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 2776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
db137867 2777 ac_cv_prog_AWK="$ac_prog"
7083c021 2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
2779 break 2
2780 fi
2781done
7083c021 2782 done
db137867
AC
2783IFS=$as_save_IFS
2784
2785fi
2786fi
2787AWK=$ac_cv_prog_AWK
2788if test -n "$AWK"; then
7083c021 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
030272f3 2790$as_echo "$AWK" >&6; }
db137867 2791else
7083c021 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 2793$as_echo "no" >&6; }
db137867
AC
2794fi
2795
2796
2797 test -n "$AWK" && break
2798done
2799
7083c021 2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
030272f3
VY
2801$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2802set x ${MAKE-make}
2803ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
08c2568c 2804if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
030272f3 2805 $as_echo_n "(cached) " >&6
db137867
AC
2806else
2807 cat >conftest.make <<\_ACEOF
2808SHELL = /bin/sh
2809all:
2810 @echo '@@@%%%=$(MAKE)=@@@%%%'
2811_ACEOF
08c2568c 2812# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
db137867
AC
2813case `${MAKE-make} -f conftest.make 2>/dev/null` in
2814 *@@@%%%=?*=@@@%%%*)
2815 eval ac_cv_prog_make_${ac_make}_set=yes;;
2816 *)
2817 eval ac_cv_prog_make_${ac_make}_set=no;;
2818esac
2819rm -f conftest.make
2820fi
2821if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7083c021 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
030272f3 2823$as_echo "yes" >&6; }
db137867
AC
2824 SET_MAKE=
2825else
7083c021 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 2827$as_echo "no" >&6; }
db137867
AC
2828 SET_MAKE="MAKE=${MAKE-make}"
2829fi
2830
2831rm -rf .tst 2>/dev/null
2832mkdir .tst 2>/dev/null
2833if test -d .tst; then
2834 am__leading_dot=.
2835else
2836 am__leading_dot=_
2837fi
2838rmdir .tst 2>/dev/null
2839
bf4e01a4
AC
2840# Check whether --enable-silent-rules was given.
2841if test "${enable_silent_rules+set}" = set; then :
2842 enableval=$enable_silent_rules;
2843fi
2844
2845case $enable_silent_rules in # (((
2846 yes) AM_DEFAULT_VERBOSITY=0;;
2847 no) AM_DEFAULT_VERBOSITY=1;;
2848 *) AM_DEFAULT_VERBOSITY=1;;
2849esac
2850am_make=${MAKE-make}
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2852$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2853if ${am_cv_make_support_nested_variables+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855else
2856 if $as_echo 'TRUE=$(BAR$(V))
2857BAR0=false
2858BAR1=true
2859V=1
2860am__doit:
2861 @$(TRUE)
2862.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2863 am_cv_make_support_nested_variables=yes
2864else
2865 am_cv_make_support_nested_variables=no
2866fi
2867fi
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2869$as_echo "$am_cv_make_support_nested_variables" >&6; }
2870if test $am_cv_make_support_nested_variables = yes; then
2871 AM_V='$(V)'
2872 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2873else
2874 AM_V=$AM_DEFAULT_VERBOSITY
2875 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2876fi
2877AM_BACKSLASH='\'
2878
db137867
AC
2879if test "`cd $srcdir && pwd`" != "`pwd`"; then
2880 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2881 # is not polluted with repeated "-I."
2882 am__isrc=' -I$(srcdir)'
2883 # test to see if srcdir already configured
2884 if test -f $srcdir/config.status; then
08c2568c 2885 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
db137867
AC
2886 fi
2887fi
2888
2889# test whether we have cygpath
2890if test -z "$CYGPATH_W"; then
2891 if (cygpath --version) >/dev/null 2>/dev/null; then
2892 CYGPATH_W='cygpath -w'
2893 else
2894 CYGPATH_W=echo
2895 fi
2896fi
2897
2898
2899# Define the identity of the package.
bf4e01a4 2900
db137867
AC
2901 PACKAGE=libratbox
2902 VERSION=devel
2903
2904
2905# Some tools Automake needs.
2906
2907ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2908
2909
2910AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2911
2912
2913AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2914
2915
2916AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2917
2918
2919MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2920
bf4e01a4
AC
2921# For better backward compatibility. To be removed once Automake 1.9.x
2922# dies out for good. For more background, see:
2923# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2924# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2925mkdir_p='$(MKDIR_P)'
2926
6f57a957
AC
2927# We need awk for the "check" target (and possibly the TAP driver). The
2928# system "awk" is bad on some platforms.
bf4e01a4
AC
2929# Always define AMTAR for backward compatibility. Yes, it's still used
2930# in the wild :-( We should find a proper way to deprecate it ...
2931AMTAR='$${TAR-tar}'
2932
2933
2934# We'll loop over all known methods to create a tar archive until one works.
2935_am_tools='gnutar pax cpio none'
2936
2937am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
271a98fe 2938
db137867 2939
db137867
AC
2940
2941
2942
2943
bf4e01a4
AC
2944# POSIX will say in a future version that running "rm -f" with no argument
2945# is OK; and we want to be able to make that assumption in our Makefile
2946# recipes. So use an aggressive probe to check that the usage we want is
2947# actually supported "in the wild" to an acceptable degree.
2948# See automake bug#10828.
2949# To make any issue more visible, cause the running configure to be aborted
2950# by default if the 'rm' program in use doesn't match our expectations; the
2951# user can still override this though.
2952if rm -f && rm -fr && rm -rf; then : OK; else
2953 cat >&2 <<'END'
2954Oops!
db137867 2955
bf4e01a4
AC
2956Your 'rm' program seems unable to run without file operands specified
2957on the command line, even when the '-f' option is present. This is contrary
2958to the behaviour of most rm programs out there, and not conforming with
2959the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2960
2961Please tell bug-automake@gnu.org about your system, including the value
2962of your $PATH and any error possibly output before this message. This
2963can help us improve future automake versions.
2964
2965END
2966 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2967 echo 'Configuration will proceed anyway, since you have set the' >&2
2968 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2969 echo >&2
2970 else
2971 cat >&2 <<'END'
2972Aborting the configuration process, to ensure you take notice of the issue.
2973
2974You can download and install GNU coreutils to get an 'rm' implementation
2975that behaves properly: <http://www.gnu.org/software/coreutils/>.
2976
2977If you want to complete the configuration process using your problematic
2978'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2979to "yes", and re-run configure.
2980
2981END
2982 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2983 fi
2984fi
db137867 2985
c52df125
AC
2986# Check whether --enable-silent-rules was given.
2987if test "${enable_silent_rules+set}" = set; then :
2988 enableval=$enable_silent_rules;
2989fi
2990
2991case $enable_silent_rules in # (((
2992 yes) AM_DEFAULT_VERBOSITY=0;;
2993 no) AM_DEFAULT_VERBOSITY=1;;
2994 *) AM_DEFAULT_VERBOSITY=0;;
2995esac
2996am_make=${MAKE-make}
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2998$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2999if ${am_cv_make_support_nested_variables+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001else
3002 if $as_echo 'TRUE=$(BAR$(V))
3003BAR0=false
3004BAR1=true
3005V=1
3006am__doit:
3007 @$(TRUE)
3008.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3009 am_cv_make_support_nested_variables=yes
3010else
3011 am_cv_make_support_nested_variables=no
3012fi
3013fi
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3015$as_echo "$am_cv_make_support_nested_variables" >&6; }
3016if test $am_cv_make_support_nested_variables = yes; then
3017 AM_V='$(V)'
3018 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3019else
3020 AM_V=$AM_DEFAULT_VERBOSITY
3021 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3022fi
3023AM_BACKSLASH='\'
3024
6f57a957 3025
db137867
AC
3026ac_config_headers="$ac_config_headers include/libratbox_config.h"
3027
3028
3029
db137867
AC
3030DEPDIR="${am__leading_dot}deps"
3031
3032ac_config_commands="$ac_config_commands depfiles"
3033
3034
3035am_make=${MAKE-make}
3036cat > confinc << 'END'
3037am__doit:
7083c021 3038 @echo this is the am__doit target
db137867
AC
3039.PHONY: am__doit
3040END
3041# If we don't find an include directive, just comment out the code.
7083c021 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
030272f3 3043$as_echo_n "checking for style of include used by $am_make... " >&6; }
db137867
AC
3044am__include="#"
3045am__quote=
3046_am_result=none
3047# First try GNU make style include.
3048echo "include confinc" > confmf
bf4e01a4 3049# Ignore all kinds of additional output from 'make'.
7083c021
AC
3050case `$am_make -s -f confmf 2> /dev/null` in #(
3051*the\ am__doit\ target*)
3052 am__include=include
3053 am__quote=
3054 _am_result=GNU
3055 ;;
3056esac
db137867
AC
3057# Now try BSD make style include.
3058if test "$am__include" = "#"; then
3059 echo '.include "confinc"' > confmf
7083c021
AC
3060 case `$am_make -s -f confmf 2> /dev/null` in #(
3061 *the\ am__doit\ target*)
3062 am__include=.include
3063 am__quote="\""
3064 _am_result=BSD
3065 ;;
3066 esac
db137867
AC
3067fi
3068
3069
7083c021 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
030272f3 3071$as_echo "$_am_result" >&6; }
db137867
AC
3072rm -f confinc confmf
3073
3074# Check whether --enable-dependency-tracking was given.
7083c021 3075if test "${enable_dependency_tracking+set}" = set; then :
db137867
AC
3076 enableval=$enable_dependency_tracking;
3077fi
3078
3079if test "x$enable_dependency_tracking" != xno; then
3080 am_depcomp="$ac_aux_dir/depcomp"
3081 AMDEPBACKSLASH='\'
bf4e01a4 3082 am__nodep='_no'
db137867
AC
3083fi
3084 if test "x$enable_dependency_tracking" != xno; then
3085 AMDEP_TRUE=
3086 AMDEP_FALSE='#'
3087else
3088 AMDEP_TRUE='#'
3089 AMDEP_FALSE=
3090fi
3091
3092
3093ac_ext=c
3094ac_cpp='$CPP $CPPFLAGS'
3095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098if test -n "$ac_tool_prefix"; then
3099 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3100set dummy ${ac_tool_prefix}gcc; ac_word=$2
7083c021 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3102$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3103if ${ac_cv_prog_CC+:} false; then :
030272f3 3104 $as_echo_n "(cached) " >&6
db137867
AC
3105else
3106 if test -n "$CC"; then
3107 ac_cv_prog_CC="$CC" # Let the user override the test.
3108else
3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110for as_dir in $PATH
3111do
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
7083c021 3114 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 3115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
db137867 3116 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7083c021 3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3118 break 2
3119 fi
3120done
7083c021 3121 done
db137867
AC
3122IFS=$as_save_IFS
3123
3124fi
3125fi
3126CC=$ac_cv_prog_CC
3127if test -n "$CC"; then
7083c021 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3129$as_echo "$CC" >&6; }
db137867 3130else
7083c021 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3132$as_echo "no" >&6; }
db137867
AC
3133fi
3134
3135
3136fi
3137if test -z "$ac_cv_prog_CC"; then
3138 ac_ct_CC=$CC
3139 # Extract the first word of "gcc", so it can be a program name with args.
3140set dummy gcc; ac_word=$2
7083c021 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3142$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3143if ${ac_cv_prog_ac_ct_CC+:} false; then :
030272f3 3144 $as_echo_n "(cached) " >&6
db137867
AC
3145else
3146 if test -n "$ac_ct_CC"; then
3147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3148else
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
7083c021 3154 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
db137867 3156 ac_cv_prog_ac_ct_CC="gcc"
7083c021 3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3158 break 2
3159 fi
3160done
7083c021 3161 done
db137867
AC
3162IFS=$as_save_IFS
3163
3164fi
3165fi
3166ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167if test -n "$ac_ct_CC"; then
7083c021 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
030272f3 3169$as_echo "$ac_ct_CC" >&6; }
db137867 3170else
7083c021 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3172$as_echo "no" >&6; }
db137867
AC
3173fi
3174
3175 if test "x$ac_ct_CC" = x; then
3176 CC=""
3177 else
3178 case $cross_compiling:$ac_tool_warned in
3179yes:)
7083c021 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 3181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
3182ac_tool_warned=yes ;;
3183esac
3184 CC=$ac_ct_CC
3185 fi
3186else
3187 CC="$ac_cv_prog_CC"
3188fi
3189
3190if test -z "$CC"; then
3191 if test -n "$ac_tool_prefix"; then
3192 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3193set dummy ${ac_tool_prefix}cc; ac_word=$2
7083c021 3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3195$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3196if ${ac_cv_prog_CC+:} false; then :
030272f3 3197 $as_echo_n "(cached) " >&6
db137867
AC
3198else
3199 if test -n "$CC"; then
3200 ac_cv_prog_CC="$CC" # Let the user override the test.
3201else
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
7083c021 3207 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 3208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
db137867 3209 ac_cv_prog_CC="${ac_tool_prefix}cc"
7083c021 3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3211 break 2
3212 fi
3213done
7083c021 3214 done
db137867
AC
3215IFS=$as_save_IFS
3216
3217fi
3218fi
3219CC=$ac_cv_prog_CC
3220if test -n "$CC"; then
7083c021 3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3222$as_echo "$CC" >&6; }
db137867 3223else
7083c021 3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3225$as_echo "no" >&6; }
db137867
AC
3226fi
3227
3228
3229 fi
3230fi
3231if test -z "$CC"; then
3232 # Extract the first word of "cc", so it can be a program name with args.
3233set dummy cc; ac_word=$2
7083c021 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3235$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3236if ${ac_cv_prog_CC+:} false; then :
030272f3 3237 $as_echo_n "(cached) " >&6
db137867
AC
3238else
3239 if test -n "$CC"; then
3240 ac_cv_prog_CC="$CC" # Let the user override the test.
3241else
3242 ac_prog_rejected=no
3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244for as_dir in $PATH
3245do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
7083c021 3248 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
db137867
AC
3250 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3251 ac_prog_rejected=yes
3252 continue
3253 fi
3254 ac_cv_prog_CC="cc"
7083c021 3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3256 break 2
3257 fi
3258done
7083c021 3259 done
db137867
AC
3260IFS=$as_save_IFS
3261
3262if test $ac_prog_rejected = yes; then
3263 # We found a bogon in the path, so make sure we never use it.
3264 set dummy $ac_cv_prog_CC
3265 shift
3266 if test $# != 0; then
3267 # We chose a different compiler from the bogus one.
3268 # However, it has the same basename, so the bogon will be chosen
3269 # first if we set CC to just the basename; use the full file name.
3270 shift
3271 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3272 fi
3273fi
3274fi
3275fi
3276CC=$ac_cv_prog_CC
3277if test -n "$CC"; then
7083c021 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3279$as_echo "$CC" >&6; }
db137867 3280else
7083c021 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3282$as_echo "no" >&6; }
db137867
AC
3283fi
3284
3285
3286fi
3287if test -z "$CC"; then
3288 if test -n "$ac_tool_prefix"; then
3289 for ac_prog in cl.exe
3290 do
3291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3292set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7083c021 3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3294$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3295if ${ac_cv_prog_CC+:} false; then :
030272f3 3296 $as_echo_n "(cached) " >&6
db137867
AC
3297else
3298 if test -n "$CC"; then
3299 ac_cv_prog_CC="$CC" # Let the user override the test.
3300else
3301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302for as_dir in $PATH
3303do
3304 IFS=$as_save_IFS
3305 test -z "$as_dir" && as_dir=.
7083c021 3306 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 3307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
db137867 3308 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7083c021 3309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3310 break 2
3311 fi
3312done
7083c021 3313 done
db137867
AC
3314IFS=$as_save_IFS
3315
3316fi
3317fi
3318CC=$ac_cv_prog_CC
3319if test -n "$CC"; then
7083c021 3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3321$as_echo "$CC" >&6; }
db137867 3322else
7083c021 3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3324$as_echo "no" >&6; }
db137867
AC
3325fi
3326
3327
3328 test -n "$CC" && break
3329 done
3330fi
3331if test -z "$CC"; then
3332 ac_ct_CC=$CC
3333 for ac_prog in cl.exe
3334do
3335 # Extract the first word of "$ac_prog", so it can be a program name with args.
3336set dummy $ac_prog; ac_word=$2
7083c021 3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3338$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3339if ${ac_cv_prog_ac_ct_CC+:} false; then :
030272f3 3340 $as_echo_n "(cached) " >&6
db137867
AC
3341else
3342 if test -n "$ac_ct_CC"; then
3343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3344else
3345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346for as_dir in $PATH
3347do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
7083c021 3350 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 3351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
db137867 3352 ac_cv_prog_ac_ct_CC="$ac_prog"
7083c021 3353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3354 break 2
3355 fi
3356done
7083c021 3357 done
db137867
AC
3358IFS=$as_save_IFS
3359
3360fi
3361fi
3362ac_ct_CC=$ac_cv_prog_ac_ct_CC
3363if test -n "$ac_ct_CC"; then
7083c021 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
030272f3 3365$as_echo "$ac_ct_CC" >&6; }
db137867 3366else
7083c021 3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3368$as_echo "no" >&6; }
db137867
AC
3369fi
3370
3371
3372 test -n "$ac_ct_CC" && break
3373done
3374
3375 if test "x$ac_ct_CC" = x; then
3376 CC=""
3377 else
3378 case $cross_compiling:$ac_tool_warned in
3379yes:)
7083c021 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 3381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
3382ac_tool_warned=yes ;;
3383esac
3384 CC=$ac_ct_CC
3385 fi
3386fi
3387
3388fi
3389
3390
7083c021 3391test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3393as_fn_error $? "no acceptable C compiler found in \$PATH
3394See \`config.log' for more details" "$LINENO" 5; }
db137867
AC
3395
3396# Provide some information about the compiler.
7083c021 3397$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
030272f3
VY
3398set X $ac_compile
3399ac_compiler=$2
7083c021
AC
3400for ac_option in --version -v -V -qversion; do
3401 { { ac_try="$ac_compiler $ac_option >&5"
db137867
AC
3402case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405esac
7083c021
AC
3406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407$as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
db137867 3409 ac_status=$?
7083c021
AC
3410 if test -s conftest.err; then
3411 sed '10a\
3412... rest of stderr output deleted ...
3413 10q' conftest.err >conftest.er1
3414 cat conftest.er1 >&5
7083c021 3415 fi
96f4052b 3416 rm -f conftest.er1 conftest.err
7083c021
AC
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }
3419done
db137867 3420
7083c021 3421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 3422/* end confdefs.h. */
96f4052b 3423
db137867
AC
3424int
3425main ()
3426{
3427
3428 ;
3429 return 0;
3430}
3431_ACEOF
3432ac_clean_files_save=$ac_clean_files
96f4052b 3433ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
db137867
AC
3434# Try to create an executable without -o first, disregard a.out.
3435# It will help us diagnose broken compilers, and finding out an intuition
3436# of exeext.
96f4052b
AC
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3438$as_echo_n "checking whether the C compiler works... " >&6; }
030272f3
VY
3439ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3440
3441# The possible output files:
3442ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3443
db137867
AC
3444ac_rmfiles=
3445for ac_file in $ac_files
3446do
3447 case $ac_file in
030272f3 3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
db137867
AC
3449 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3450 esac
3451done
3452rm -f $ac_rmfiles
3453
7083c021 3454if { { ac_try="$ac_link_default"
db137867
AC
3455case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458esac
7083c021
AC
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
db137867
AC
3461 (eval "$ac_link_default") 2>&5
3462 ac_status=$?
7083c021
AC
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }; then :
db137867
AC
3465 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3466# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3467# in a Makefile. We should not override ac_cv_exeext if it was cached,
3468# so that the user can short-circuit this test for compilers unknown to
3469# Autoconf.
3470for ac_file in $ac_files ''
3471do
3472 test -f "$ac_file" || continue
3473 case $ac_file in
030272f3 3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
db137867
AC
3475 ;;
3476 [ab].out )
3477 # We found the default executable, but exeext='' is most
3478 # certainly right.
3479 break;;
3480 *.* )
7083c021 3481 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
db137867
AC
3482 then :; else
3483 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3484 fi
3485 # We set ac_cv_exeext here because the later test for it is not
3486 # safe: cross compilers may not add the suffix if given an `-o'
3487 # argument, so we may need to know it at that point already.
3488 # Even if this section looks crufty: it has the advantage of
3489 # actually working.
3490 break;;
3491 * )
3492 break;;
3493 esac
3494done
3495test "$ac_cv_exeext" = no && ac_cv_exeext=
3496
3497else
3498 ac_file=''
3499fi
7083c021 3500if test -z "$ac_file"; then :
96f4052b
AC
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502$as_echo "no" >&6; }
3503$as_echo "$as_me: failed program was:" >&5
db137867
AC
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
7083c021 3506{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3508as_fn_error 77 "C compiler cannot create executables
3509See \`config.log' for more details" "$LINENO" 5; }
96f4052b
AC
3510else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3512$as_echo "yes" >&6; }
db137867 3513fi
96f4052b
AC
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3515$as_echo_n "checking for C compiler default output file name... " >&6; }
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3517$as_echo "$ac_file" >&6; }
db137867
AC
3518ac_exeext=$ac_cv_exeext
3519
96f4052b 3520rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
db137867 3521ac_clean_files=$ac_clean_files_save
7083c021 3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
030272f3 3523$as_echo_n "checking for suffix of executables... " >&6; }
7083c021 3524if { { ac_try="$ac_link"
db137867
AC
3525case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528esac
7083c021
AC
3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530$as_echo "$ac_try_echo"; } >&5
db137867
AC
3531 (eval "$ac_link") 2>&5
3532 ac_status=$?
7083c021
AC
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; then :
db137867
AC
3535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3536# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3537# work properly (i.e., refer to `conftest.exe'), while it won't with
3538# `rm'.
3539for ac_file in conftest.exe conftest conftest.*; do
3540 test -f "$ac_file" || continue
3541 case $ac_file in
030272f3 3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
db137867
AC
3543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3544 break;;
3545 * ) break;;
3546 esac
3547done
3548else
7083c021 3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3551as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3552See \`config.log' for more details" "$LINENO" 5; }
db137867 3553fi
96f4052b 3554rm -f conftest conftest$ac_cv_exeext
7083c021 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
030272f3 3556$as_echo "$ac_cv_exeext" >&6; }
db137867
AC
3557
3558rm -f conftest.$ac_ext
3559EXEEXT=$ac_cv_exeext
3560ac_exeext=$EXEEXT
96f4052b
AC
3561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562/* end confdefs.h. */
3563#include <stdio.h>
3564int
3565main ()
3566{
3567FILE *f = fopen ("conftest.out", "w");
3568 return ferror (f) || fclose (f) != 0;
3569
3570 ;
3571 return 0;
3572}
3573_ACEOF
3574ac_clean_files="$ac_clean_files conftest.out"
3575# Check that the compiler produces executables we can run. If not, either
3576# the compiler is broken, or we cross compile.
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3578$as_echo_n "checking whether we are cross compiling... " >&6; }
3579if test "$cross_compiling" != yes; then
3580 { { ac_try="$ac_link"
3581case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584esac
3585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586$as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_link") 2>&5
3588 ac_status=$?
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }
3591 if { ac_try='./conftest$ac_cv_exeext'
3592 { { case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595esac
3596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597$as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_try") 2>&5
3599 ac_status=$?
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; }; then
3602 cross_compiling=no
3603 else
3604 if test "$cross_compiling" = maybe; then
3605 cross_compiling=yes
3606 else
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c 3609as_fn_error $? "cannot run C compiled programs.
96f4052b 3610If you meant to cross compile, use \`--host'.
08c2568c 3611See \`config.log' for more details" "$LINENO" 5; }
96f4052b
AC
3612 fi
3613 fi
3614fi
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3616$as_echo "$cross_compiling" >&6; }
3617
3618rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3619ac_clean_files=$ac_clean_files_save
7083c021 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
030272f3 3621$as_echo_n "checking for suffix of object files... " >&6; }
08c2568c 3622if ${ac_cv_objext+:} false; then :
030272f3 3623 $as_echo_n "(cached) " >&6
db137867 3624else
7083c021 3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3626/* end confdefs.h. */
3627
3628int
3629main ()
3630{
3631
3632 ;
3633 return 0;
3634}
3635_ACEOF
3636rm -f conftest.o conftest.obj
7083c021 3637if { { ac_try="$ac_compile"
db137867
AC
3638case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641esac
7083c021
AC
3642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643$as_echo "$ac_try_echo"; } >&5
db137867
AC
3644 (eval "$ac_compile") 2>&5
3645 ac_status=$?
7083c021
AC
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }; then :
db137867
AC
3648 for ac_file in conftest.o conftest.obj conftest.*; do
3649 test -f "$ac_file" || continue;
3650 case $ac_file in
030272f3 3651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
db137867
AC
3652 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3653 break;;
3654 esac
3655done
3656else
030272f3 3657 $as_echo "$as_me: failed program was:" >&5
db137867
AC
3658sed 's/^/| /' conftest.$ac_ext >&5
3659
7083c021 3660{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3662as_fn_error $? "cannot compute suffix of object files: cannot compile
3663See \`config.log' for more details" "$LINENO" 5; }
db137867 3664fi
db137867
AC
3665rm -f conftest.$ac_cv_objext conftest.$ac_ext
3666fi
7083c021 3667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
030272f3 3668$as_echo "$ac_cv_objext" >&6; }
db137867
AC
3669OBJEXT=$ac_cv_objext
3670ac_objext=$OBJEXT
7083c021 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
030272f3 3672$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
08c2568c 3673if ${ac_cv_c_compiler_gnu+:} false; then :
030272f3 3674 $as_echo_n "(cached) " >&6
db137867 3675else
7083c021 3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3677/* end confdefs.h. */
3678
3679int
3680main ()
3681{
3682#ifndef __GNUC__
3683 choke me
3684#endif
3685
3686 ;
3687 return 0;
3688}
3689_ACEOF
7083c021 3690if ac_fn_c_try_compile "$LINENO"; then :
db137867
AC
3691 ac_compiler_gnu=yes
3692else
7083c021 3693 ac_compiler_gnu=no
db137867 3694fi
db137867
AC
3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696ac_cv_c_compiler_gnu=$ac_compiler_gnu
3697
3698fi
7083c021 3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
030272f3
VY
3700$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3701if test $ac_compiler_gnu = yes; then
3702 GCC=yes
3703else
3704 GCC=
3705fi
db137867
AC
3706ac_test_CFLAGS=${CFLAGS+set}
3707ac_save_CFLAGS=$CFLAGS
7083c021 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
030272f3 3709$as_echo_n "checking whether $CC accepts -g... " >&6; }
08c2568c 3710if ${ac_cv_prog_cc_g+:} false; then :
030272f3 3711 $as_echo_n "(cached) " >&6
db137867
AC
3712else
3713 ac_save_c_werror_flag=$ac_c_werror_flag
3714 ac_c_werror_flag=yes
3715 ac_cv_prog_cc_g=no
3716 CFLAGS="-g"
7083c021 3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3718/* end confdefs.h. */
3719
3720int
3721main ()
3722{
3723
3724 ;
3725 return 0;
3726}
3727_ACEOF
7083c021 3728if ac_fn_c_try_compile "$LINENO"; then :
db137867
AC
3729 ac_cv_prog_cc_g=yes
3730else
7083c021
AC
3731 CFLAGS=""
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3733/* end confdefs.h. */
3734
3735int
3736main ()
3737{
3738
3739 ;
3740 return 0;
3741}
3742_ACEOF
7083c021 3743if ac_fn_c_try_compile "$LINENO"; then :
db137867 3744
7083c021
AC
3745else
3746 ac_c_werror_flag=$ac_save_c_werror_flag
db137867 3747 CFLAGS="-g"
7083c021 3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3749/* end confdefs.h. */
3750
3751int
3752main ()
3753{
3754
3755 ;
3756 return 0;
3757}
3758_ACEOF
7083c021 3759if ac_fn_c_try_compile "$LINENO"; then :
db137867 3760 ac_cv_prog_cc_g=yes
db137867 3761fi
db137867
AC
3762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763fi
db137867
AC
3764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765fi
db137867
AC
3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 ac_c_werror_flag=$ac_save_c_werror_flag
3768fi
7083c021 3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
030272f3 3770$as_echo "$ac_cv_prog_cc_g" >&6; }
db137867
AC
3771if test "$ac_test_CFLAGS" = set; then
3772 CFLAGS=$ac_save_CFLAGS
3773elif test $ac_cv_prog_cc_g = yes; then
3774 if test "$GCC" = yes; then
3775 CFLAGS="-g -O2"
3776 else
3777 CFLAGS="-g"
3778 fi
3779else
3780 if test "$GCC" = yes; then
3781 CFLAGS="-O2"
3782 else
3783 CFLAGS=
3784 fi
3785fi
7083c021 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
030272f3 3787$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
08c2568c 3788if ${ac_cv_prog_cc_c89+:} false; then :
030272f3 3789 $as_echo_n "(cached) " >&6
db137867
AC
3790else
3791 ac_cv_prog_cc_c89=no
3792ac_save_CC=$CC
7083c021 3793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3794/* end confdefs.h. */
3795#include <stdarg.h>
3796#include <stdio.h>
bf4e01a4 3797struct stat;
db137867
AC
3798/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3799struct buf { int x; };
3800FILE * (*rcsopen) (struct buf *, struct stat *, int);
3801static char *e (p, i)
3802 char **p;
3803 int i;
3804{
3805 return p[i];
3806}
3807static char *f (char * (*g) (char **, int), char **p, ...)
3808{
3809 char *s;
3810 va_list v;
3811 va_start (v,p);
3812 s = g (p, va_arg (v,int));
3813 va_end (v);
3814 return s;
3815}
3816
3817/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3818 function prototypes and stuff, but not '\xHH' hex character constants.
3819 These don't provoke an error unfortunately, instead are silently treated
3820 as 'x'. The following induces an error, until -std is added to get
3821 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3822 array size at least. It's necessary to write '\x00'==0 to get something
3823 that's true only with -std. */
3824int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3825
3826/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3827 inside strings and character constants. */
3828#define FOO(x) 'x'
3829int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3830
3831int test (int i, double x);
3832struct s1 {int (*f) (int a);};
3833struct s2 {int (*f) (double a);};
3834int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3835int argc;
3836char **argv;
3837int
3838main ()
3839{
3840return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3841 ;
3842 return 0;
3843}
3844_ACEOF
3845for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3846 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3847do
3848 CC="$ac_save_CC $ac_arg"
7083c021 3849 if ac_fn_c_try_compile "$LINENO"; then :
db137867 3850 ac_cv_prog_cc_c89=$ac_arg
db137867 3851fi
db137867
AC
3852rm -f core conftest.err conftest.$ac_objext
3853 test "x$ac_cv_prog_cc_c89" != "xno" && break
3854done
3855rm -f conftest.$ac_ext
3856CC=$ac_save_CC
3857
3858fi
3859# AC_CACHE_VAL
3860case "x$ac_cv_prog_cc_c89" in
3861 x)
7083c021 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
030272f3 3863$as_echo "none needed" >&6; } ;;
db137867 3864 xno)
7083c021 3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
030272f3 3866$as_echo "unsupported" >&6; } ;;
db137867
AC
3867 *)
3868 CC="$CC $ac_cv_prog_cc_c89"
7083c021 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
030272f3 3870$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
db137867 3871esac
7083c021 3872if test "x$ac_cv_prog_cc_c89" != xno; then :
db137867 3873
7083c021 3874fi
db137867
AC
3875
3876ac_ext=c
3877ac_cpp='$CPP $CPPFLAGS'
3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881
bf4e01a4
AC
3882ac_ext=c
3883ac_cpp='$CPP $CPPFLAGS'
3884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3888$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3889if ${am_cv_prog_cc_c_o+:} false; then :
3890 $as_echo_n "(cached) " >&6
3891else
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893/* end confdefs.h. */
3894
3895int
3896main ()
3897{
3898
3899 ;
3900 return 0;
3901}
3902_ACEOF
3903 # Make sure it works both with $CC and with simple cc.
3904 # Following AC_PROG_CC_C_O, we do the test twice because some
3905 # compilers refuse to overwrite an existing .o file with -o,
3906 # though they will create one.
3907 am_cv_prog_cc_c_o=yes
3908 for am_i in 1 2; do
3909 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3910 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } \
3914 && test -f conftest2.$ac_objext; then
3915 : OK
3916 else
3917 am_cv_prog_cc_c_o=no
3918 break
3919 fi
3920 done
3921 rm -f core conftest*
3922 unset am_i
3923fi
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3925$as_echo "$am_cv_prog_cc_c_o" >&6; }
3926if test "$am_cv_prog_cc_c_o" != yes; then
3927 # Losing compiler, so override with the script.
3928 # FIXME: It is wrong to rewrite CC.
3929 # But if we don't then we get into trouble of one sort or another.
3930 # A longer-term fix would be to have automake use am__CC in this case,
3931 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3932 CC="$am_aux_dir/compile $CC"
3933fi
3934ac_ext=c
3935ac_cpp='$CPP $CPPFLAGS'
3936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939
3940
db137867
AC
3941depcc="$CC" am_compiler_list=
3942
7083c021 3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
030272f3 3944$as_echo_n "checking dependency style of $depcc... " >&6; }
08c2568c 3945if ${am_cv_CC_dependencies_compiler_type+:} false; then :
030272f3 3946 $as_echo_n "(cached) " >&6
db137867
AC
3947else
3948 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3949 # We make a subdir and do the tests there. Otherwise we can end up
3950 # making bogus files that we don't know about and never remove. For
3951 # instance it was reported that on HP-UX the gcc test will end up
bf4e01a4
AC
3952 # making a dummy file named 'D' -- because '-MD' means "put the output
3953 # in D".
3954 rm -rf conftest.dir
db137867
AC
3955 mkdir conftest.dir
3956 # Copy depcomp to subdir because otherwise we won't find it if we're
3957 # using a relative directory.
3958 cp "$am_depcomp" conftest.dir
3959 cd conftest.dir
3960 # We will build objects and dependencies in a subdirectory because
3961 # it helps to detect inapplicable dependency modes. For instance
3962 # both Tru64's cc and ICC support -MD to output dependencies as a
3963 # side effect of compilation, but ICC will put the dependencies in
3964 # the current directory while Tru64 will put them in the object
3965 # directory.
3966 mkdir sub
3967
3968 am_cv_CC_dependencies_compiler_type=none
3969 if test "$am_compiler_list" = ""; then
3970 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3971 fi
7083c021
AC
3972 am__universal=false
3973 case " $depcc " in #(
3974 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3975 esac
3976
db137867
AC
3977 for depmode in $am_compiler_list; do
3978 # Setup a source with many dependencies, because some compilers
3979 # like to wrap large dependency lists on column 80 (with \), and
3980 # we should not choose a depcomp mode which is confused by this.
3981 #
3982 # We need to recreate these files for each test, as the compiler may
3983 # overwrite some of them when testing with obscure command lines.
3984 # This happens at least with the AIX C compiler.
3985 : > sub/conftest.c
3986 for i in 1 2 3 4 5 6; do
3987 echo '#include "conftst'$i'.h"' >> sub/conftest.c
bf4e01a4
AC
3988 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3989 # Solaris 10 /bin/sh.
3990 echo '/* dummy */' > sub/conftst$i.h
db137867
AC
3991 done
3992 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3993
bf4e01a4 3994 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7083c021 3995 # mode. It turns out that the SunPro C++ compiler does not properly
bf4e01a4
AC
3996 # handle '-M -o', and we need to detect this. Also, some Intel
3997 # versions had trouble with output in subdirs.
7083c021
AC
3998 am__obj=sub/conftest.${OBJEXT-o}
3999 am__minus_obj="-o $am__obj"
db137867 4000 case $depmode in
7083c021
AC
4001 gcc)
4002 # This depmode causes a compiler race in universal mode.
4003 test "$am__universal" = false || continue
4004 ;;
db137867 4005 nosideeffect)
bf4e01a4
AC
4006 # After this tag, mechanisms are not by side-effect, so they'll
4007 # only be used when explicitly requested.
db137867
AC
4008 if test "x$enable_dependency_tracking" = xyes; then
4009 continue
4010 else
4011 break
4012 fi
4013 ;;
bf4e01a4
AC
4014 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4015 # This compiler won't grok '-c -o', but also, the minuso test has
7083c021
AC
4016 # not run yet. These depmodes are late enough in the game, and
4017 # so weak that their functioning should not be impacted.
4018 am__obj=conftest.${OBJEXT-o}
4019 am__minus_obj=
4020 ;;
db137867
AC
4021 none) break ;;
4022 esac
db137867 4023 if depmode=$depmode \
7083c021 4024 source=sub/conftest.c object=$am__obj \
db137867 4025 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7083c021 4026 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
db137867
AC
4027 >/dev/null 2>conftest.err &&
4028 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4029 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7083c021 4030 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
db137867
AC
4031 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4032 # icc doesn't choke on unknown options, it will just issue warnings
4033 # or remarks (even with -Werror). So we grep stderr for any message
4034 # that says an option was ignored or not supported.
4035 # When given -MP, icc 7.0 and 7.1 complain thusly:
4036 # icc: Command line warning: ignoring option '-M'; no argument required
4037 # The diagnosis changed in icc 8.0:
4038 # icc: Command line remark: option '-MP' not supported
4039 if (grep 'ignoring option' conftest.err ||
4040 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4041 am_cv_CC_dependencies_compiler_type=$depmode
4042 break
4043 fi
4044 fi
4045 done
4046
4047 cd ..
4048 rm -rf conftest.dir
4049else
4050 am_cv_CC_dependencies_compiler_type=none
4051fi
4052
4053fi
7083c021 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
030272f3 4055$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
db137867
AC
4056CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4057
4058 if
4059 test "x$enable_dependency_tracking" != xno \
4060 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4061 am__fastdepCC_TRUE=
4062 am__fastdepCC_FALSE='#'
4063else
4064 am__fastdepCC_TRUE='#'
4065 am__fastdepCC_FALSE=
4066fi
4067
4068
030272f3
VY
4069
4070ac_ext=c
4071ac_cpp='$CPP $CPPFLAGS'
4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074ac_compiler_gnu=$ac_cv_c_compiler_gnu
7083c021 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
030272f3
VY
4076$as_echo_n "checking how to run the C preprocessor... " >&6; }
4077# On Suns, sometimes $CPP names a directory.
4078if test -n "$CPP" && test -d "$CPP"; then
4079 CPP=
4080fi
4081if test -z "$CPP"; then
08c2568c 4082 if ${ac_cv_prog_CPP+:} false; then :
030272f3 4083 $as_echo_n "(cached) " >&6
db137867 4084else
030272f3
VY
4085 # Double quotes because CPP needs to be expanded
4086 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4087 do
4088 ac_preproc_ok=false
4089for ac_c_preproc_warn_flag in '' yes
4090do
4091 # Use a header file that comes with gcc, so configuring glibc
4092 # with a fresh cross-compiler works.
4093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4094 # <limits.h> exists even on freestanding compilers.
4095 # On the NeXT, cc -E runs the code through the compiler's parser,
4096 # not just through cpp. "Syntax error" is here to catch this case.
7083c021 4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4098/* end confdefs.h. */
030272f3
VY
4099#ifdef __STDC__
4100# include <limits.h>
db137867 4101#else
030272f3 4102# include <assert.h>
db137867 4103#endif
030272f3 4104 Syntax error
db137867 4105_ACEOF
7083c021 4106if ac_fn_c_try_cpp "$LINENO"; then :
db137867 4107
7083c021 4108else
030272f3
VY
4109 # Broken: fails on valid input.
4110continue
db137867 4111fi
08c2568c 4112rm -f conftest.err conftest.i conftest.$ac_ext
db137867 4113
030272f3
VY
4114 # OK, works on sane cases. Now check whether nonexistent headers
4115 # can be detected and how.
7083c021 4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4117/* end confdefs.h. */
4118#include <ac_nonexistent.h>
4119_ACEOF
7083c021 4120if ac_fn_c_try_cpp "$LINENO"; then :
030272f3
VY
4121 # Broken: success on invalid input.
4122continue
4123else
030272f3
VY
4124 # Passes both tests.
4125ac_preproc_ok=:
4126break
4127fi
08c2568c 4128rm -f conftest.err conftest.i conftest.$ac_ext
db137867 4129
030272f3
VY
4130done
4131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
08c2568c 4132rm -f conftest.i conftest.err conftest.$ac_ext
7083c021 4133if $ac_preproc_ok; then :
030272f3 4134 break
db137867
AC
4135fi
4136
030272f3
VY
4137 done
4138 ac_cv_prog_CPP=$CPP
db137867 4139
030272f3
VY
4140fi
4141 CPP=$ac_cv_prog_CPP
db137867 4142else
030272f3
VY
4143 ac_cv_prog_CPP=$CPP
4144fi
7083c021 4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
030272f3
VY
4146$as_echo "$CPP" >&6; }
4147ac_preproc_ok=false
4148for ac_c_preproc_warn_flag in '' yes
db137867 4149do
030272f3
VY
4150 # Use a header file that comes with gcc, so configuring glibc
4151 # with a fresh cross-compiler works.
4152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4153 # <limits.h> exists even on freestanding compilers.
4154 # On the NeXT, cc -E runs the code through the compiler's parser,
4155 # not just through cpp. "Syntax error" is here to catch this case.
7083c021 4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4157/* end confdefs.h. */
4158#ifdef __STDC__
4159# include <limits.h>
4160#else
4161# include <assert.h>
4162#endif
4163 Syntax error
4164_ACEOF
7083c021 4165if ac_fn_c_try_cpp "$LINENO"; then :
db137867 4166
7083c021 4167else
030272f3
VY
4168 # Broken: fails on valid input.
4169continue
db137867 4170fi
08c2568c 4171rm -f conftest.err conftest.i conftest.$ac_ext
db137867 4172
030272f3
VY
4173 # OK, works on sane cases. Now check whether nonexistent headers
4174 # can be detected and how.
7083c021 4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4176/* end confdefs.h. */
4177#include <ac_nonexistent.h>
4178_ACEOF
7083c021 4179if ac_fn_c_try_cpp "$LINENO"; then :
030272f3
VY
4180 # Broken: success on invalid input.
4181continue
4182else
030272f3
VY
4183 # Passes both tests.
4184ac_preproc_ok=:
4185break
4186fi
08c2568c 4187rm -f conftest.err conftest.i conftest.$ac_ext
030272f3
VY
4188
4189done
4190# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
08c2568c 4191rm -f conftest.i conftest.err conftest.$ac_ext
7083c021
AC
4192if $ac_preproc_ok; then :
4193
db137867 4194else
7083c021 4195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 4196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
4197as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4198See \`config.log' for more details" "$LINENO" 5; }
030272f3
VY
4199fi
4200
4201ac_ext=c
4202ac_cpp='$CPP $CPPFLAGS'
4203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206
4207
7083c021 4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
030272f3 4209$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
08c2568c 4210if ${ac_cv_path_GREP+:} false; then :
030272f3 4211 $as_echo_n "(cached) " >&6
db137867 4212else
030272f3 4213 if test -z "$GREP"; then
db137867 4214 ac_path_GREP_found=false
030272f3
VY
4215 # Loop through the user's path and test for each of PROGNAME-LIST
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
db137867
AC
4217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4218do
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
7083c021 4221 for ac_prog in grep ggrep; do
030272f3
VY
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
bf4e01a4 4224 as_fn_executable_p "$ac_path_GREP" || continue
030272f3 4225# Check for GNU ac_path_GREP and select it if it is found.
db137867
AC
4226 # Check for GNU $ac_path_GREP
4227case `"$ac_path_GREP" --version 2>&1` in
4228*GNU*)
4229 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4230*)
4231 ac_count=0
030272f3 4232 $as_echo_n 0123456789 >"conftest.in"
db137867
AC
4233 while :
4234 do
4235 cat "conftest.in" "conftest.in" >"conftest.tmp"
4236 mv "conftest.tmp" "conftest.in"
4237 cp "conftest.in" "conftest.nl"
030272f3 4238 $as_echo 'GREP' >> "conftest.nl"
db137867
AC
4239 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4241 as_fn_arith $ac_count + 1 && ac_count=$as_val
db137867
AC
4242 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4243 # Best one so far, save it but keep looking for a better one
4244 ac_cv_path_GREP="$ac_path_GREP"
4245 ac_path_GREP_max=$ac_count
4246 fi
4247 # 10*(2^10) chars as input seems more than enough
4248 test $ac_count -gt 10 && break
4249 done
4250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4251esac
4252
030272f3
VY
4253 $ac_path_GREP_found && break 3
4254 done
db137867 4255 done
7083c021 4256 done
db137867 4257IFS=$as_save_IFS
030272f3 4258 if test -z "$ac_cv_path_GREP"; then
08c2568c 4259 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
030272f3 4260 fi
db137867
AC
4261else
4262 ac_cv_path_GREP=$GREP
4263fi
4264
db137867 4265fi
7083c021 4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
030272f3 4267$as_echo "$ac_cv_path_GREP" >&6; }
db137867
AC
4268 GREP="$ac_cv_path_GREP"
4269
4270
7083c021 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
030272f3 4272$as_echo_n "checking for egrep... " >&6; }
08c2568c 4273if ${ac_cv_path_EGREP+:} false; then :
030272f3 4274 $as_echo_n "(cached) " >&6
db137867
AC
4275else
4276 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4277 then ac_cv_path_EGREP="$GREP -E"
4278 else
030272f3 4279 if test -z "$EGREP"; then
db137867 4280 ac_path_EGREP_found=false
030272f3
VY
4281 # Loop through the user's path and test for each of PROGNAME-LIST
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
db137867
AC
4283for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4284do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
7083c021 4287 for ac_prog in egrep; do
030272f3
VY
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
bf4e01a4 4290 as_fn_executable_p "$ac_path_EGREP" || continue
030272f3 4291# Check for GNU ac_path_EGREP and select it if it is found.
db137867
AC
4292 # Check for GNU $ac_path_EGREP
4293case `"$ac_path_EGREP" --version 2>&1` in
4294*GNU*)
4295 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4296*)
4297 ac_count=0
030272f3 4298 $as_echo_n 0123456789 >"conftest.in"
db137867
AC
4299 while :
4300 do
4301 cat "conftest.in" "conftest.in" >"conftest.tmp"
4302 mv "conftest.tmp" "conftest.in"
4303 cp "conftest.in" "conftest.nl"
030272f3 4304 $as_echo 'EGREP' >> "conftest.nl"
db137867
AC
4305 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4307 as_fn_arith $ac_count + 1 && ac_count=$as_val
db137867
AC
4308 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4309 # Best one so far, save it but keep looking for a better one
4310 ac_cv_path_EGREP="$ac_path_EGREP"
4311 ac_path_EGREP_max=$ac_count
4312 fi
4313 # 10*(2^10) chars as input seems more than enough
4314 test $ac_count -gt 10 && break
4315 done
4316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4317esac
4318
030272f3
VY
4319 $ac_path_EGREP_found && break 3
4320 done
db137867 4321 done
7083c021 4322 done
db137867 4323IFS=$as_save_IFS
030272f3 4324 if test -z "$ac_cv_path_EGREP"; then
08c2568c 4325 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
030272f3 4326 fi
db137867
AC
4327else
4328 ac_cv_path_EGREP=$EGREP
4329fi
4330
db137867
AC
4331 fi
4332fi
7083c021 4333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
030272f3 4334$as_echo "$ac_cv_path_EGREP" >&6; }
db137867
AC
4335 EGREP="$ac_cv_path_EGREP"
4336
4337
7083c021 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
030272f3 4339$as_echo_n "checking for ANSI C header files... " >&6; }
08c2568c 4340if ${ac_cv_header_stdc+:} false; then :
030272f3 4341 $as_echo_n "(cached) " >&6
db137867 4342else
7083c021 4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4344/* end confdefs.h. */
030272f3
VY
4345#include <stdlib.h>
4346#include <stdarg.h>
4347#include <string.h>
4348#include <float.h>
db137867 4349
db137867
AC
4350int
4351main ()
4352{
030272f3 4353
db137867
AC
4354 ;
4355 return 0;
4356}
4357_ACEOF
7083c021 4358if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4359 ac_cv_header_stdc=yes
db137867 4360else
7083c021 4361 ac_cv_header_stdc=no
db137867 4362fi
030272f3
VY
4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364
4365if test $ac_cv_header_stdc = yes; then
4366 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7083c021 4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4368/* end confdefs.h. */
4369#include <string.h>
4370
4371_ACEOF
4372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021
AC
4373 $EGREP "memchr" >/dev/null 2>&1; then :
4374
db137867 4375else
030272f3 4376 ac_cv_header_stdc=no
db137867 4377fi
030272f3 4378rm -f conftest*
db137867
AC
4379
4380fi
4381
030272f3
VY
4382if test $ac_cv_header_stdc = yes; then
4383 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7083c021 4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4385/* end confdefs.h. */
030272f3 4386#include <stdlib.h>
db137867
AC
4387
4388_ACEOF
030272f3 4389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021
AC
4390 $EGREP "free" >/dev/null 2>&1; then :
4391
db137867 4392else
030272f3 4393 ac_cv_header_stdc=no
db137867 4394fi
030272f3 4395rm -f conftest*
db137867
AC
4396
4397fi
db137867 4398
030272f3
VY
4399if test $ac_cv_header_stdc = yes; then
4400 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7083c021 4401 if test "$cross_compiling" = yes; then :
030272f3 4402 :
db137867 4403else
7083c021 4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4405/* end confdefs.h. */
030272f3
VY
4406#include <ctype.h>
4407#include <stdlib.h>
4408#if ((' ' & 0x0FF) == 0x020)
4409# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4410# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4411#else
4412# define ISLOWER(c) \
4413 (('a' <= (c) && (c) <= 'i') \
4414 || ('j' <= (c) && (c) <= 'r') \
4415 || ('s' <= (c) && (c) <= 'z'))
4416# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
db137867
AC
4417#endif
4418
030272f3
VY
4419#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4420int
4421main ()
4422{
4423 int i;
4424 for (i = 0; i < 256; i++)
4425 if (XOR (islower (i), ISLOWER (i))
4426 || toupper (i) != TOUPPER (i))
4427 return 2;
db137867
AC
4428 return 0;
4429}
4430_ACEOF
7083c021 4431if ac_fn_c_try_run "$LINENO"; then :
030272f3 4432
7083c021
AC
4433else
4434 ac_cv_header_stdc=no
030272f3 4435fi
7083c021
AC
4436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4437 conftest.$ac_objext conftest.beam conftest.$ac_ext
030272f3
VY
4438fi
4439
030272f3
VY
4440fi
4441fi
7083c021 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
030272f3
VY
4443$as_echo "$ac_cv_header_stdc" >&6; }
4444if test $ac_cv_header_stdc = yes; then
4445
7083c021 4446$as_echo "#define STDC_HEADERS 1" >>confdefs.h
030272f3
VY
4447
4448fi
4449
4450# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7083c021
AC
4451for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4452 inttypes.h stdint.h unistd.h
4453do :
4454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4455ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4456"
08c2568c 4457if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
4458 cat >>confdefs.h <<_ACEOF
4459#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4460_ACEOF
030272f3 4461
7083c021 4462fi
030272f3 4463
7083c021 4464done
030272f3
VY
4465
4466
4467
7083c021 4468 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
08c2568c 4469if test "x$ac_cv_header_minix_config_h" = xyes; then :
7083c021
AC
4470 MINIX=yes
4471else
4472 MINIX=
4473fi
030272f3
VY
4474
4475
7083c021 4476 if test "$MINIX" = yes; then
030272f3 4477
7083c021 4478$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
030272f3 4479
db137867 4480
7083c021 4481$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
db137867 4482
db137867 4483
7083c021 4484$as_echo "#define _MINIX 1" >>confdefs.h
030272f3 4485
7083c021 4486 fi
030272f3
VY
4487
4488
7083c021 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
030272f3 4490$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
08c2568c 4491if ${ac_cv_safe_to_define___extensions__+:} false; then :
030272f3 4492 $as_echo_n "(cached) " >&6
db137867 4493else
7083c021 4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3 4495/* end confdefs.h. */
db137867 4496
bf4e01a4
AC
4497# define __EXTENSIONS__ 1
4498 $ac_includes_default
030272f3
VY
4499int
4500main ()
4501{
4502
4503 ;
4504 return 0;
4505}
4506_ACEOF
7083c021 4507if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4508 ac_cv_safe_to_define___extensions__=yes
db137867 4509else
7083c021 4510 ac_cv_safe_to_define___extensions__=no
db137867 4511fi
030272f3
VY
4512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513fi
7083c021 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
030272f3
VY
4515$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4516 test $ac_cv_safe_to_define___extensions__ = yes &&
7083c021 4517 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
db137867 4518
7083c021 4519 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
030272f3 4520
7083c021 4521 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
030272f3 4522
7083c021
AC
4523 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4524
4525 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
030272f3 4526
030272f3
VY
4527
4528
4529
7083c021 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
030272f3 4531$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
08c2568c 4532if ${ac_cv_prog_cc_c99+:} false; then :
030272f3 4533 $as_echo_n "(cached) " >&6
db137867 4534else
030272f3
VY
4535 ac_cv_prog_cc_c99=no
4536ac_save_CC=$CC
7083c021 4537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4538/* end confdefs.h. */
4539#include <stdarg.h>
4540#include <stdbool.h>
4541#include <stdlib.h>
4542#include <wchar.h>
4543#include <stdio.h>
db137867 4544
030272f3
VY
4545// Check varargs macros. These examples are taken from C99 6.10.3.5.
4546#define debug(...) fprintf (stderr, __VA_ARGS__)
4547#define showlist(...) puts (#__VA_ARGS__)
4548#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4549static void
4550test_varargs_macros (void)
4551{
4552 int x = 1234;
4553 int y = 5678;
4554 debug ("Flag");
4555 debug ("X = %d\n", x);
4556 showlist (The first, second, and third items.);
4557 report (x>y, "x is %d but y is %d", x, y);
4558}
db137867 4559
030272f3
VY
4560// Check long long types.
4561#define BIG64 18446744073709551615ull
4562#define BIG32 4294967295ul
4563#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4564#if !BIG_OK
4565 your preprocessor is broken;
4566#endif
4567#if BIG_OK
4568#else
4569 your preprocessor is broken;
4570#endif
4571static long long int bignum = -9223372036854775807LL;
4572static unsigned long long int ubignum = BIG64;
db137867 4573
030272f3
VY
4574struct incomplete_array
4575{
4576 int datasize;
4577 double data[];
4578};
db137867 4579
030272f3
VY
4580struct named_init {
4581 int number;
4582 const wchar_t *name;
4583 double average;
4584};
db137867 4585
030272f3 4586typedef const char *ccp;
db137867 4587
030272f3
VY
4588static inline int
4589test_restrict (ccp restrict text)
4590{
4591 // See if C++-style comments work.
4592 // Iterate through items via the restricted pointer.
4593 // Also check for declarations in for loops.
4594 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4595 continue;
4596 return 0;
4597}
db137867 4598
030272f3
VY
4599// Check varargs and va_copy.
4600static void
4601test_varargs (const char *format, ...)
4602{
4603 va_list args;
4604 va_start (args, format);
4605 va_list args_copy;
4606 va_copy (args_copy, args);
db137867 4607
030272f3
VY
4608 const char *str;
4609 int number;
4610 float fnumber;
db137867 4611
030272f3
VY
4612 while (*format)
4613 {
4614 switch (*format++)
4615 {
4616 case 's': // string
4617 str = va_arg (args_copy, const char *);
4618 break;
4619 case 'd': // int
4620 number = va_arg (args_copy, int);
4621 break;
4622 case 'f': // float
4623 fnumber = va_arg (args_copy, double);
4624 break;
4625 default:
4626 break;
4627 }
4628 }
4629 va_end (args_copy);
4630 va_end (args);
4631}
db137867 4632
030272f3
VY
4633int
4634main ()
4635{
db137867 4636
030272f3
VY
4637 // Check bool.
4638 _Bool success = false;
db137867 4639
030272f3
VY
4640 // Check restrict.
4641 if (test_restrict ("String literal") == 0)
4642 success = true;
4643 char *restrict newvar = "Another string";
db137867 4644
030272f3
VY
4645 // Check varargs.
4646 test_varargs ("s, d' f .", "string", 65, 34.234);
4647 test_varargs_macros ();
db137867 4648
030272f3
VY
4649 // Check flexible array members.
4650 struct incomplete_array *ia =
4651 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4652 ia->datasize = 10;
4653 for (int i = 0; i < ia->datasize; ++i)
4654 ia->data[i] = i * 1.234;
db137867 4655
030272f3
VY
4656 // Check named initializers.
4657 struct named_init ni = {
4658 .number = 34,
4659 .name = L"Test wide string",
4660 .average = 543.34343,
4661 };
db137867 4662
030272f3 4663 ni.number = 58;
db137867 4664
030272f3
VY
4665 int dynamic_array[ni.number];
4666 dynamic_array[ni.number - 1] = 543;
4667
4668 // work around unused variable warnings
4669 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4670 || dynamic_array[ni.number - 1] != 543);
4671
4672 ;
4673 return 0;
4674}
4675_ACEOF
bf4e01a4 4676for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
030272f3
VY
4677do
4678 CC="$ac_save_CC $ac_arg"
7083c021 4679 if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4680 ac_cv_prog_cc_c99=$ac_arg
db137867 4681fi
030272f3
VY
4682rm -f core conftest.err conftest.$ac_objext
4683 test "x$ac_cv_prog_cc_c99" != "xno" && break
4684done
4685rm -f conftest.$ac_ext
4686CC=$ac_save_CC
4687
db137867 4688fi
030272f3
VY
4689# AC_CACHE_VAL
4690case "x$ac_cv_prog_cc_c99" in
4691 x)
7083c021 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
030272f3
VY
4693$as_echo "none needed" >&6; } ;;
4694 xno)
7083c021 4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
030272f3
VY
4696$as_echo "unsupported" >&6; } ;;
4697 *)
4698 CC="$CC $ac_cv_prog_cc_c99"
7083c021 4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
030272f3 4700$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
db137867 4701esac
7083c021 4702if test "x$ac_cv_prog_cc_c99" != xno; then :
db137867 4703
030272f3
VY
4704fi
4705
4706
030272f3 4707
7083c021 4708if test x"$ac_cv_prog_cc_c99" = "xno"; then
08c2568c 4709 as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
030272f3 4710fi
db137867 4711
db137867
AC
4712
4713
7083c021 4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
030272f3 4715$as_echo_n "checking for egrep... " >&6; }
08c2568c 4716if ${ac_cv_path_EGREP+:} false; then :
030272f3 4717 $as_echo_n "(cached) " >&6
db137867 4718else
030272f3
VY
4719 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4720 then ac_cv_path_EGREP="$GREP -E"
4721 else
4722 if test -z "$EGREP"; then
4723 ac_path_EGREP_found=false
4724 # Loop through the user's path and test for each of PROGNAME-LIST
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4727do
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
7083c021 4730 for ac_prog in egrep; do
030272f3
VY
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
bf4e01a4 4733 as_fn_executable_p "$ac_path_EGREP" || continue
030272f3
VY
4734# Check for GNU ac_path_EGREP and select it if it is found.
4735 # Check for GNU $ac_path_EGREP
4736case `"$ac_path_EGREP" --version 2>&1` in
4737*GNU*)
4738 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4739*)
4740 ac_count=0
4741 $as_echo_n 0123456789 >"conftest.in"
4742 while :
4743 do
4744 cat "conftest.in" "conftest.in" >"conftest.tmp"
4745 mv "conftest.tmp" "conftest.in"
4746 cp "conftest.in" "conftest.nl"
4747 $as_echo 'EGREP' >> "conftest.nl"
4748 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4750 as_fn_arith $ac_count + 1 && ac_count=$as_val
030272f3
VY
4751 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4752 # Best one so far, save it but keep looking for a better one
4753 ac_cv_path_EGREP="$ac_path_EGREP"
4754 ac_path_EGREP_max=$ac_count
4755 fi
4756 # 10*(2^10) chars as input seems more than enough
4757 test $ac_count -gt 10 && break
4758 done
4759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4760esac
db137867 4761
030272f3
VY
4762 $ac_path_EGREP_found && break 3
4763 done
4764 done
7083c021 4765 done
030272f3
VY
4766IFS=$as_save_IFS
4767 if test -z "$ac_cv_path_EGREP"; then
08c2568c 4768 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
030272f3 4769 fi
db137867 4770else
030272f3 4771 ac_cv_path_EGREP=$EGREP
db137867 4772fi
030272f3
VY
4773
4774 fi
4775fi
7083c021 4776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
030272f3
VY
4777$as_echo "$ac_cv_path_EGREP" >&6; }
4778 EGREP="$ac_cv_path_EGREP"
4779
4780
7083c021 4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
030272f3 4782$as_echo_n "checking for a sed that does not truncate output... " >&6; }
08c2568c 4783if ${ac_cv_path_SED+:} false; then :
030272f3
VY
4784 $as_echo_n "(cached) " >&6
4785else
4786 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4787 for ac_i in 1 2 3 4 5 6 7; do
4788 ac_script="$ac_script$as_nl$ac_script"
4789 done
4790 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7083c021 4791 { ac_script=; unset ac_script;}
030272f3
VY
4792 if test -z "$SED"; then
4793 ac_path_SED_found=false
4794 # Loop through the user's path and test for each of PROGNAME-LIST
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796for as_dir in $PATH
4797do
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
7083c021 4800 for ac_prog in sed gsed; do
030272f3
VY
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
bf4e01a4 4803 as_fn_executable_p "$ac_path_SED" || continue
030272f3
VY
4804# Check for GNU ac_path_SED and select it if it is found.
4805 # Check for GNU $ac_path_SED
4806case `"$ac_path_SED" --version 2>&1` in
4807*GNU*)
4808 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4809*)
4810 ac_count=0
4811 $as_echo_n 0123456789 >"conftest.in"
4812 while :
4813 do
4814 cat "conftest.in" "conftest.in" >"conftest.tmp"
4815 mv "conftest.tmp" "conftest.in"
4816 cp "conftest.in" "conftest.nl"
4817 $as_echo '' >> "conftest.nl"
4818 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4819 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4820 as_fn_arith $ac_count + 1 && ac_count=$as_val
030272f3
VY
4821 if test $ac_count -gt ${ac_path_SED_max-0}; then
4822 # Best one so far, save it but keep looking for a better one
4823 ac_cv_path_SED="$ac_path_SED"
4824 ac_path_SED_max=$ac_count
db137867 4825 fi
030272f3
VY
4826 # 10*(2^10) chars as input seems more than enough
4827 test $ac_count -gt 10 && break
db137867 4828 done
030272f3
VY
4829 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4830esac
4831
4832 $ac_path_SED_found && break 3
4833 done
4834 done
7083c021 4835 done
030272f3
VY
4836IFS=$as_save_IFS
4837 if test -z "$ac_cv_path_SED"; then
08c2568c 4838 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
030272f3 4839 fi
db137867 4840else
030272f3 4841 ac_cv_path_SED=$SED
db137867 4842fi
030272f3 4843
db137867 4844fi
7083c021 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
030272f3
VY
4846$as_echo "$ac_cv_path_SED" >&6; }
4847 SED="$ac_cv_path_SED"
4848 rm -f conftest.sed
db137867 4849
030272f3
VY
4850
4851F77=no
4852CXX=no
4853GCJ=no
4854
4855# Check whether --enable-static was given.
7083c021 4856if test "${enable_static+set}" = set; then :
030272f3
VY
4857 enableval=$enable_static; p=${PACKAGE-default}
4858 case $enableval in
4859 yes) enable_static=yes ;;
4860 no) enable_static=no ;;
4861 *)
4862 enable_static=no
4863 # Look at the argument we got. We use all the common list separators.
6f57a957 4864 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
030272f3 4865 for pkg in $enableval; do
6f57a957 4866 IFS=$lt_save_ifs
030272f3
VY
4867 if test "X$pkg" = "X$p"; then
4868 enable_static=yes
4869 fi
4870 done
6f57a957 4871 IFS=$lt_save_ifs
030272f3
VY
4872 ;;
4873 esac
db137867 4874else
030272f3 4875 enable_static=no
db137867 4876fi
030272f3
VY
4877
4878
4879
7083c021
AC
4880
4881
4882
4883
4884
4885
030272f3 4886# Check whether --enable-shared was given.
7083c021 4887if test "${enable_shared+set}" = set; then :
030272f3
VY
4888 enableval=$enable_shared; p=${PACKAGE-default}
4889 case $enableval in
4890 yes) enable_shared=yes ;;
4891 no) enable_shared=no ;;
4892 *)
4893 enable_shared=no
4894 # Look at the argument we got. We use all the common list separators.
6f57a957 4895 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
030272f3 4896 for pkg in $enableval; do
6f57a957 4897 IFS=$lt_save_ifs
030272f3
VY
4898 if test "X$pkg" = "X$p"; then
4899 enable_shared=yes
4900 fi
4901 done
6f57a957 4902 IFS=$lt_save_ifs
030272f3
VY
4903 ;;
4904 esac
db137867 4905else
030272f3 4906 enable_shared=yes
db137867 4907fi
db137867
AC
4908
4909
7083c021
AC
4910
4911
4912
4913
4914
4915
4916
4917
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
030272f3
VY
4919$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4920 # Check whether --enable-maintainer-mode was given.
7083c021 4921if test "${enable_maintainer_mode+set}" = set; then :
030272f3 4922 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
db137867 4923else
030272f3 4924 USE_MAINTAINER_MODE=no
db137867 4925fi
030272f3 4926
7083c021 4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
030272f3
VY
4928$as_echo "$USE_MAINTAINER_MODE" >&6; }
4929 if test $USE_MAINTAINER_MODE = yes; then
4930 MAINTAINER_MODE_TRUE=
4931 MAINTAINER_MODE_FALSE='#'
4932else
4933 MAINTAINER_MODE_TRUE='#'
4934 MAINTAINER_MODE_FALSE=
4935fi
4936
4937 MAINT=$MAINTAINER_MODE_TRUE
4938
4939
4940
7083c021 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
030272f3 4942$as_echo_n "checking for library containing strerror... " >&6; }
08c2568c 4943if ${ac_cv_search_strerror+:} false; then :
030272f3
VY
4944 $as_echo_n "(cached) " >&6
4945else
4946 ac_func_search_save_LIBS=$LIBS
7083c021 4947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4948/* end confdefs.h. */
4949
4950/* Override any GCC internal prototype to avoid an error.
4951 Use char because int might match the return type of a GCC
4952 builtin and then its argument prototype would still apply. */
4953#ifdef __cplusplus
4954extern "C"
4955#endif
4956char strerror ();
4957int
4958main ()
4959{
4960return strerror ();
4961 ;
4962 return 0;
4963}
4964_ACEOF
4965for ac_lib in '' cposix; do
4966 if test -z "$ac_lib"; then
4967 ac_res="none required"
4968 else
4969 ac_res=-l$ac_lib
4970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4971 fi
7083c021 4972 if ac_fn_c_try_link "$LINENO"; then :
030272f3 4973 ac_cv_search_strerror=$ac_res
030272f3 4974fi
7083c021
AC
4975rm -f core conftest.err conftest.$ac_objext \
4976 conftest$ac_exeext
08c2568c 4977 if ${ac_cv_search_strerror+:} false; then :
030272f3
VY
4978 break
4979fi
4980done
08c2568c 4981if ${ac_cv_search_strerror+:} false; then :
7083c021 4982
030272f3
VY
4983else
4984 ac_cv_search_strerror=no
4985fi
4986rm conftest.$ac_ext
4987LIBS=$ac_func_search_save_LIBS
4988fi
7083c021 4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
030272f3
VY
4990$as_echo "$ac_cv_search_strerror" >&6; }
4991ac_res=$ac_cv_search_strerror
7083c021 4992if test "$ac_res" != no; then :
030272f3
VY
4993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4994
4995fi
4996
7083c021 4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
030272f3 4998$as_echo_n "checking for inline... " >&6; }
08c2568c 4999if ${ac_cv_c_inline+:} false; then :
030272f3
VY
5000 $as_echo_n "(cached) " >&6
5001else
5002 ac_cv_c_inline=no
5003for ac_kw in inline __inline__ __inline; do
7083c021 5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
5005/* end confdefs.h. */
5006#ifndef __cplusplus
5007typedef int foo_t;
5008static $ac_kw foo_t static_foo () {return 0; }
5009$ac_kw foo_t foo () {return 0; }
5010#endif
5011
5012_ACEOF
7083c021 5013if ac_fn_c_try_compile "$LINENO"; then :
030272f3 5014 ac_cv_c_inline=$ac_kw
030272f3 5015fi
030272f3
VY
5016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 test "$ac_cv_c_inline" != no && break
5018done
5019
5020fi
7083c021 5021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
030272f3
VY
5022$as_echo "$ac_cv_c_inline" >&6; }
5023
030272f3
VY
5024case $ac_cv_c_inline in
5025 inline | yes) ;;
5026 *)
5027 case $ac_cv_c_inline in
5028 no) ac_val=;;
5029 *) ac_val=$ac_cv_c_inline;;
5030 esac
5031 cat >>confdefs.h <<_ACEOF
5032#ifndef __cplusplus
5033#define inline $ac_val
5034#endif
5035_ACEOF
db137867
AC
5036 ;;
5037esac
5038
7083c021 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
030272f3 5040$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
08c2568c 5041if ${ac_cv_c_const+:} false; then :
030272f3 5042 $as_echo_n "(cached) " >&6
db137867 5043else
7083c021 5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
5045/* end confdefs.h. */
5046
5047int
5048main ()
5049{
bf4e01a4 5050
030272f3 5051#ifndef __cplusplus
bf4e01a4 5052 /* Ultrix mips cc rejects this sort of thing. */
030272f3 5053 typedef int charset[2];
bf4e01a4 5054 const charset cs = { 0, 0 };
030272f3
VY
5055 /* SunOS 4.1.1 cc rejects this. */
5056 char const *const *pcpcc;
5057 char **ppc;
5058 /* NEC SVR4.0.2 mips cc rejects this. */
5059 struct point {int x, y;};
5060 static struct point const zero = {0,0};
5061 /* AIX XL C 1.02.0.0 rejects this.
5062 It does not let you subtract one const X* pointer from another in
5063 an arm of an if-expression whose if-part is not a constant
5064 expression */
5065 const char *g = "string";
5066 pcpcc = &g + (g ? g-g : 0);
5067 /* HPUX 7.0 cc rejects these. */
5068 ++pcpcc;
5069 ppc = (char**) pcpcc;
5070 pcpcc = (char const *const *) ppc;
bf4e01a4
AC
5071 { /* SCO 3.2v4 cc rejects this sort of thing. */
5072 char tx;
5073 char *t = &tx;
030272f3
VY
5074 char const *s = 0 ? (char *) 0 : (char const *) 0;
5075
5076 *t++ = 0;
5077 if (s) return 0;
5078 }
5079 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5080 int x[] = {25, 17};
5081 const int *foo = &x[0];
5082 ++foo;
5083 }
5084 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5085 typedef const int *iptr;
5086 iptr p = 0;
5087 ++p;
5088 }
bf4e01a4 5089 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
030272f3 5090 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
bf4e01a4
AC
5091 struct s { int j; const int *ap[3]; } bx;
5092 struct s *b = &bx; b->j = 5;
030272f3
VY
5093 }
5094 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5095 const int foo = 10;
5096 if (!foo) return 0;
5097 }
5098 return !cs[0] && !zero.x;
5099#endif
5100
5101 ;
5102 return 0;
5103}
5104_ACEOF
7083c021 5105if ac_fn_c_try_compile "$LINENO"; then :
030272f3 5106 ac_cv_c_const=yes
db137867 5107else
7083c021 5108 ac_cv_c_const=no
030272f3 5109fi
030272f3
VY
5110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111fi
7083c021 5112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
030272f3
VY
5113$as_echo "$ac_cv_c_const" >&6; }
5114if test $ac_cv_c_const = no; then
5115
7083c021 5116$as_echo "#define const /**/" >>confdefs.h
030272f3
VY
5117
5118fi
5119
f171dafb
EM
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5121$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5122if ${ac_cv_c_bigendian+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124else
5125 ac_cv_c_bigendian=unknown
5126 # See if we're dealing with a universal compiler.
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h. */
5129#ifndef __APPLE_CC__
5130 not a universal capable compiler
5131 #endif
5132 typedef int dummy;
5133
5134_ACEOF
5135if ac_fn_c_try_compile "$LINENO"; then :
5136
5137 # Check for potential -arch flags. It is not universal unless
5138 # there are at least two -arch flags with different values.
5139 ac_arch=
5140 ac_prev=
5141 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5142 if test -n "$ac_prev"; then
5143 case $ac_word in
5144 i?86 | x86_64 | ppc | ppc64)
5145 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5146 ac_arch=$ac_word
5147 else
5148 ac_cv_c_bigendian=universal
5149 break
5150 fi
5151 ;;
5152 esac
5153 ac_prev=
5154 elif test "x$ac_word" = "x-arch"; then
5155 ac_prev=arch
5156 fi
5157 done
5158fi
5159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 if test $ac_cv_c_bigendian = unknown; then
5161 # See if sys/param.h defines the BYTE_ORDER macro.
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163/* end confdefs.h. */
5164#include <sys/types.h>
5165 #include <sys/param.h>
5166
5167int
5168main ()
5169{
5170#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5171 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5172 && LITTLE_ENDIAN)
5173 bogus endian macros
5174 #endif
5175
5176 ;
5177 return 0;
5178}
5179_ACEOF
5180if ac_fn_c_try_compile "$LINENO"; then :
5181 # It does; now see whether it defined to BIG_ENDIAN or not.
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183/* end confdefs.h. */
5184#include <sys/types.h>
5185 #include <sys/param.h>
5186
5187int
5188main ()
5189{
5190#if BYTE_ORDER != BIG_ENDIAN
5191 not big endian
5192 #endif
5193
5194 ;
5195 return 0;
5196}
5197_ACEOF
5198if ac_fn_c_try_compile "$LINENO"; then :
5199 ac_cv_c_bigendian=yes
5200else
5201 ac_cv_c_bigendian=no
5202fi
5203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204fi
5205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5206 fi
5207 if test $ac_cv_c_bigendian = unknown; then
5208 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210/* end confdefs.h. */
5211#include <limits.h>
5212
5213int
5214main ()
5215{
5216#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5217 bogus endian macros
5218 #endif
5219
5220 ;
5221 return 0;
5222}
5223_ACEOF
5224if ac_fn_c_try_compile "$LINENO"; then :
5225 # It does; now see whether it defined to _BIG_ENDIAN or not.
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227/* end confdefs.h. */
5228#include <limits.h>
5229
5230int
5231main ()
5232{
5233#ifndef _BIG_ENDIAN
5234 not big endian
5235 #endif
5236
5237 ;
5238 return 0;
5239}
5240_ACEOF
5241if ac_fn_c_try_compile "$LINENO"; then :
5242 ac_cv_c_bigendian=yes
5243else
5244 ac_cv_c_bigendian=no
5245fi
5246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247fi
5248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249 fi
5250 if test $ac_cv_c_bigendian = unknown; then
5251 # Compile a test program.
5252 if test "$cross_compiling" = yes; then :
5253 # Try to guess by grepping values from an object file.
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255/* end confdefs.h. */
5256short int ascii_mm[] =
5257 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5258 short int ascii_ii[] =
5259 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5260 int use_ascii (int i) {
5261 return ascii_mm[i] + ascii_ii[i];
5262 }
5263 short int ebcdic_ii[] =
5264 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5265 short int ebcdic_mm[] =
5266 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5267 int use_ebcdic (int i) {
5268 return ebcdic_mm[i] + ebcdic_ii[i];
5269 }
5270 extern int foo;
5271
5272int
5273main ()
5274{
5275return use_ascii (foo) == use_ebcdic (foo);
5276 ;
5277 return 0;
5278}
5279_ACEOF
5280if ac_fn_c_try_compile "$LINENO"; then :
5281 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5282 ac_cv_c_bigendian=yes
5283 fi
5284 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5285 if test "$ac_cv_c_bigendian" = unknown; then
5286 ac_cv_c_bigendian=no
5287 else
5288 # finding both strings is unlikely to happen, but who knows?
5289 ac_cv_c_bigendian=unknown
5290 fi
5291 fi
5292fi
5293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294else
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296/* end confdefs.h. */
5297$ac_includes_default
5298int
5299main ()
5300{
5301
5302 /* Are we little or big endian? From Harbison&Steele. */
5303 union
5304 {
5305 long int l;
5306 char c[sizeof (long int)];
5307 } u;
5308 u.l = 1;
5309 return u.c[sizeof (long int) - 1] == 1;
5310
5311 ;
5312 return 0;
5313}
5314_ACEOF
5315if ac_fn_c_try_run "$LINENO"; then :
5316 ac_cv_c_bigendian=no
5317else
5318 ac_cv_c_bigendian=yes
5319fi
5320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5321 conftest.$ac_objext conftest.beam conftest.$ac_ext
5322fi
5323
5324 fi
5325fi
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5327$as_echo "$ac_cv_c_bigendian" >&6; }
5328 case $ac_cv_c_bigendian in #(
5329 yes)
5330 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5331;; #(
5332 no)
5333 ;; #(
5334 universal)
5335
5336$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5337
5338 ;; #(
5339 *)
5340 as_fn_error $? "unknown endianness
5341 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5342 esac
5343
7083c021 5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
030272f3
VY
5345$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5346set x ${MAKE-make}
5347ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
08c2568c 5348if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
030272f3
VY
5349 $as_echo_n "(cached) " >&6
5350else
5351 cat >conftest.make <<\_ACEOF
5352SHELL = /bin/sh
5353all:
5354 @echo '@@@%%%=$(MAKE)=@@@%%%'
5355_ACEOF
08c2568c 5356# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
030272f3
VY
5357case `${MAKE-make} -f conftest.make 2>/dev/null` in
5358 *@@@%%%=?*=@@@%%%*)
5359 eval ac_cv_prog_make_${ac_make}_set=yes;;
5360 *)
5361 eval ac_cv_prog_make_${ac_make}_set=no;;
5362esac
5363rm -f conftest.make
5364fi
5365if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7083c021 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
030272f3
VY
5367$as_echo "yes" >&6; }
5368 SET_MAKE=
5369else
7083c021 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5371$as_echo "no" >&6; }
5372 SET_MAKE="MAKE=${MAKE-make}"
5373fi
5374
db137867 5375
030272f3
VY
5376# Extract the first word of "automake", so it can be a program name with args.
5377set dummy automake; ac_word=$2
7083c021 5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5379$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5380if ${ac_cv_path_AUTOMAKE+:} false; then :
030272f3
VY
5381 $as_echo_n "(cached) " >&6
5382else
5383 case $AUTOMAKE in
5384 [\\/]* | ?:[\\/]*)
5385 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
db137867 5386 ;;
030272f3
VY
5387 *)
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389for as_dir in $PATH
5390do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
7083c021 5393 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 5394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
030272f3 5395 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
7083c021 5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5397 break 2
5398 fi
5399done
7083c021 5400 done
030272f3 5401IFS=$as_save_IFS
db137867 5402
db137867 5403 ;;
030272f3
VY
5404esac
5405fi
5406AUTOMAKE=$ac_cv_path_AUTOMAKE
5407if test -n "$AUTOMAKE"; then
7083c021 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
030272f3
VY
5409$as_echo "$AUTOMAKE" >&6; }
5410else
7083c021 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5412$as_echo "no" >&6; }
5413fi
db137867 5414
db137867 5415
030272f3
VY
5416# Extract the first word of "aclocal", so it can be a program name with args.
5417set dummy aclocal; ac_word=$2
7083c021 5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5419$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5420if ${ac_cv_path_ACLOCAL+:} false; then :
030272f3
VY
5421 $as_echo_n "(cached) " >&6
5422else
5423 case $ACLOCAL in
5424 [\\/]* | ?:[\\/]*)
5425 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
db137867 5426 ;;
db137867 5427 *)
030272f3
VY
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429for as_dir in $PATH
5430do
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
7083c021 5433 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 5434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
030272f3 5435 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
7083c021 5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5437 break 2
5438 fi
5439done
7083c021 5440 done
030272f3 5441IFS=$as_save_IFS
db137867 5442
db137867 5443 ;;
030272f3
VY
5444esac
5445fi
5446ACLOCAL=$ac_cv_path_ACLOCAL
5447if test -n "$ACLOCAL"; then
7083c021 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
030272f3
VY
5449$as_echo "$ACLOCAL" >&6; }
5450else
7083c021 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5452$as_echo "no" >&6; }
5453fi
db137867 5454
db137867 5455
030272f3
VY
5456# Extract the first word of "autoheader", so it can be a program name with args.
5457set dummy autoheader; ac_word=$2
7083c021 5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5459$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5460if ${ac_cv_path_AUTOHEADER+:} false; then :
030272f3
VY
5461 $as_echo_n "(cached) " >&6
5462else
5463 case $AUTOHEADER in
5464 [\\/]* | ?:[\\/]*)
5465 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
db137867 5466 ;;
030272f3
VY
5467 *)
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469for as_dir in $PATH
5470do
5471 IFS=$as_save_IFS
5472 test -z "$as_dir" && as_dir=.
7083c021 5473 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 5474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
030272f3 5475 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
7083c021 5476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3 5477 break 2
db137867 5478 fi
030272f3 5479done
7083c021 5480 done
030272f3
VY
5481IFS=$as_save_IFS
5482
db137867 5483 ;;
030272f3
VY
5484esac
5485fi
5486AUTOHEADER=$ac_cv_path_AUTOHEADER
5487if test -n "$AUTOHEADER"; then
7083c021 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
030272f3
VY
5489$as_echo "$AUTOHEADER" >&6; }
5490else
7083c021 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5492$as_echo "no" >&6; }
5493fi
db137867 5494
030272f3
VY
5495
5496# Extract the first word of "as", so it can be a program name with args.
5497set dummy as; ac_word=$2
7083c021 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5499$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5500if ${ac_cv_path_AS+:} false; then :
030272f3
VY
5501 $as_echo_n "(cached) " >&6
5502else
5503 case $AS in
5504 [\\/]* | ?:[\\/]*)
5505 ac_cv_path_AS="$AS" # Let the user override the test with a path.
db137867 5506 ;;
030272f3
VY
5507 *)
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509for as_dir in $PATH
5510do
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
7083c021 5513 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 5514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
030272f3 5515 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
7083c021 5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5517 break 2
5518 fi
5519done
7083c021 5520 done
030272f3 5521IFS=$as_save_IFS
db137867 5522
db137867 5523 ;;
030272f3
VY
5524esac
5525fi
5526AS=$ac_cv_path_AS
5527if test -n "$AS"; then
7083c021 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
030272f3
VY
5529$as_echo "$AS" >&6; }
5530else
7083c021 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5532$as_echo "no" >&6; }
5533fi
db137867 5534
db137867 5535
030272f3
VY
5536# Extract the first word of "rm", so it can be a program name with args.
5537set dummy rm; ac_word=$2
7083c021 5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5539$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5540if ${ac_cv_path_RM+:} false; then :
030272f3
VY
5541 $as_echo_n "(cached) " >&6
5542else
5543 case $RM in
5544 [\\/]* | ?:[\\/]*)
5545 ac_cv_path_RM="$RM" # Let the user override the test with a path.
db137867 5546 ;;
030272f3
VY
5547 *)
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549for as_dir in $PATH
5550do
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
7083c021 5553 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 5554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
030272f3 5555 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7083c021 5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5557 break 2
5558 fi
5559done
7083c021 5560 done
030272f3 5561IFS=$as_save_IFS
db137867 5562
db137867 5563 ;;
030272f3
VY
5564esac
5565fi
5566RM=$ac_cv_path_RM
5567if test -n "$RM"; then
7083c021 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
030272f3
VY
5569$as_echo "$RM" >&6; }
5570else
7083c021 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5572$as_echo "no" >&6; }
5573fi
db137867 5574
db137867 5575
030272f3
VY
5576# Extract the first word of "cp", so it can be a program name with args.
5577set dummy cp; ac_word=$2
7083c021 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5579$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5580if ${ac_cv_path_CP+:} false; then :
030272f3
VY
5581 $as_echo_n "(cached) " >&6
5582else
5583 case $CP in
5584 [\\/]* | ?:[\\/]*)
5585 ac_cv_path_CP="$CP" # Let the user override the test with a path.
db137867 5586 ;;
030272f3
VY
5587 *)
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589for as_dir in $PATH
5590do
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
7083c021 5593 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 5594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
030272f3 5595 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
7083c021 5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5597 break 2
5598 fi
5599done
7083c021 5600 done
030272f3 5601IFS=$as_save_IFS
db137867 5602
db137867
AC
5603 ;;
5604esac
db137867 5605fi
030272f3
VY
5606CP=$ac_cv_path_CP
5607if test -n "$CP"; then
7083c021 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
030272f3
VY
5609$as_echo "$CP" >&6; }
5610else
7083c021 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 5612$as_echo "no" >&6; }
db137867
AC
5613fi
5614
db137867 5615
030272f3
VY
5616# Extract the first word of "mv", so it can be a program name with args.
5617set dummy mv; ac_word=$2
7083c021 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5619$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5620if ${ac_cv_path_MV+:} false; then :
030272f3
VY
5621 $as_echo_n "(cached) " >&6
5622else
5623 case $MV in
5624 [\\/]* | ?:[\\/]*)
5625 ac_cv_path_MV="$MV" # Let the user override the test with a path.
db137867 5626 ;;
030272f3
VY
5627 *)
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629for as_dir in $PATH
5630do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
7083c021 5633 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
030272f3 5635 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7083c021 5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3 5637 break 2
db137867 5638 fi
030272f3 5639done
7083c021 5640 done
030272f3 5641IFS=$as_save_IFS
db137867 5642
db137867 5643 ;;
030272f3
VY
5644esac
5645fi
5646MV=$ac_cv_path_MV
5647if test -n "$MV"; then
7083c021 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
030272f3
VY
5649$as_echo "$MV" >&6; }
5650else
7083c021 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5652$as_echo "no" >&6; }
5653fi
5654
5655
5656# Extract the first word of "ln", so it can be a program name with args.
5657set dummy ln; ac_word=$2
7083c021 5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5659$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5660if ${ac_cv_path_LN+:} false; then :
030272f3
VY
5661 $as_echo_n "(cached) " >&6
5662else
5663 case $LN in
5664 [\\/]* | ?:[\\/]*)
5665 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5666 ;;
5667 *)
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669for as_dir in $PATH
5670do
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
7083c021 5673 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 5674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
030272f3 5675 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7083c021 5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5677 break 2
5678 fi
5679done
7083c021 5680 done
030272f3 5681IFS=$as_save_IFS
db137867 5682
030272f3
VY
5683 ;;
5684esac
5685fi
5686LN=$ac_cv_path_LN
5687if test -n "$LN"; then
7083c021 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
030272f3 5689$as_echo "$LN" >&6; }
db137867 5690else
7083c021 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5692$as_echo "no" >&6; }
5693fi
db137867 5694
db137867 5695
030272f3
VY
5696# Extract the first word of "touch", so it can be a program name with args.
5697set dummy touch; ac_word=$2
7083c021 5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5699$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5700if ${ac_cv_path_TOUCH+:} false; then :
030272f3
VY
5701 $as_echo_n "(cached) " >&6
5702else
5703 case $TOUCH in
5704 [\\/]* | ?:[\\/]*)
5705 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5706 ;;
5707 *)
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
7083c021 5713 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 5714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
030272f3 5715 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
7083c021 5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5717 break 2
5718 fi
5719done
7083c021 5720 done
030272f3 5721IFS=$as_save_IFS
db137867 5722
030272f3 5723 ;;
db137867 5724esac
030272f3
VY
5725fi
5726TOUCH=$ac_cv_path_TOUCH
5727if test -n "$TOUCH"; then
7083c021 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
030272f3 5729$as_echo "$TOUCH" >&6; }
db137867 5730else
7083c021 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 5732$as_echo "no" >&6; }
db137867
AC
5733fi
5734
030272f3
VY
5735
5736ac_ext=c
db137867
AC
5737ac_cpp='$CPP $CPPFLAGS'
5738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5740ac_compiler_gnu=$ac_cv_c_compiler_gnu
5741
030272f3 5742
7083c021
AC
5743case `pwd` in
5744 *\ * | *\ *)
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5746$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5747esac
5748
5749
5750
6f57a957
AC
5751macro_version='2.4.6'
5752macro_revision='2.4.6'
7083c021
AC
5753
5754
5755
5756
5757
5758
5759
5760
5761
030272f3
VY
5762
5763
7083c021
AC
5764
5765
6f57a957 5766ltmain=$ac_aux_dir/ltmain.sh
7083c021 5767
030272f3
VY
5768# Make sure we can run config.sub.
5769$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
08c2568c 5770 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
030272f3 5771
7083c021 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
030272f3 5773$as_echo_n "checking build system type... " >&6; }
08c2568c 5774if ${ac_cv_build+:} false; then :
030272f3
VY
5775 $as_echo_n "(cached) " >&6
5776else
5777 ac_build_alias=$build_alias
5778test "x$ac_build_alias" = x &&
5779 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5780test "x$ac_build_alias" = x &&
08c2568c 5781 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
030272f3 5782ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
08c2568c 5783 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
030272f3
VY
5784
5785fi
7083c021 5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
030272f3
VY
5787$as_echo "$ac_cv_build" >&6; }
5788case $ac_cv_build in
5789*-*-*) ;;
08c2568c 5790*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
030272f3
VY
5791esac
5792build=$ac_cv_build
5793ac_save_IFS=$IFS; IFS='-'
5794set x $ac_cv_build
5795shift
5796build_cpu=$1
5797build_vendor=$2
5798shift; shift
5799# Remember, the first character of IFS is used to create $*,
5800# except with old shells:
5801build_os=$*
5802IFS=$ac_save_IFS
5803case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5804
5805
7083c021 5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
030272f3 5807$as_echo_n "checking host system type... " >&6; }
08c2568c 5808if ${ac_cv_host+:} false; then :
030272f3
VY
5809 $as_echo_n "(cached) " >&6
5810else
5811 if test "x$host_alias" = x; then
5812 ac_cv_host=$ac_cv_build
5813else
5814 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
08c2568c 5815 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
030272f3
VY
5816fi
5817
5818fi
7083c021 5819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
030272f3
VY
5820$as_echo "$ac_cv_host" >&6; }
5821case $ac_cv_host in
5822*-*-*) ;;
08c2568c 5823*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
030272f3
VY
5824esac
5825host=$ac_cv_host
5826ac_save_IFS=$IFS; IFS='-'
5827set x $ac_cv_host
5828shift
5829host_cpu=$1
5830host_vendor=$2
5831shift; shift
5832# Remember, the first character of IFS is used to create $*,
5833# except with old shells:
5834host_os=$*
5835IFS=$ac_save_IFS
5836case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5837
5838
b6d0720c
AC
5839# Backslashify metacharacters that are still active within
5840# double-quoted strings.
5841sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5842
5843# Same as above, but do not quote variable references.
5844double_quote_subst='s/\(["`\\]\)/\\\1/g'
5845
5846# Sed substitution to delay expansion of an escaped shell variable in a
5847# double_quote_subst'ed string.
5848delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5849
5850# Sed substitution to delay expansion of an escaped single quote.
5851delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5852
5853# Sed substitution to avoid accidental globbing in evaled expressions
5854no_glob_subst='s/\*/\\\*/g'
5855
5856ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5857ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5858ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5859
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5861$as_echo_n "checking how to print strings... " >&6; }
5862# Test print first, because it will be a builtin if present.
5863if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5864 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5865 ECHO='print -r --'
5866elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5867 ECHO='printf %s\n'
5868else
5869 # Use this function as a fallback that always works.
5870 func_fallback_echo ()
5871 {
5872 eval 'cat <<_LTECHO_EOF
5873$1
5874_LTECHO_EOF'
5875 }
5876 ECHO='func_fallback_echo'
5877fi
5878
5879# func_echo_all arg...
5880# Invoke $ECHO with all args, space-separated.
5881func_echo_all ()
5882{
5883 $ECHO ""
5884}
5885
6f57a957 5886case $ECHO in
b6d0720c
AC
5887 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5888$as_echo "printf" >&6; } ;;
5889 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5890$as_echo "print -r" >&6; } ;;
5891 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5892$as_echo "cat" >&6; } ;;
5893esac
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
7083c021 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
030272f3 5909$as_echo_n "checking for a sed that does not truncate output... " >&6; }
08c2568c 5910if ${ac_cv_path_SED+:} false; then :
030272f3
VY
5911 $as_echo_n "(cached) " >&6
5912else
7083c021
AC
5913 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5914 for ac_i in 1 2 3 4 5 6 7; do
5915 ac_script="$ac_script$as_nl$ac_script"
5916 done
5917 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5918 { ac_script=; unset ac_script;}
5919 if test -z "$SED"; then
5920 ac_path_SED_found=false
5921 # Loop through the user's path and test for each of PROGNAME-LIST
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
030272f3
VY
5923for as_dir in $PATH
5924do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
7083c021 5927 for ac_prog in sed gsed; do
030272f3 5928 for ac_exec_ext in '' $ac_executable_extensions; do
7083c021 5929 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
bf4e01a4 5930 as_fn_executable_p "$ac_path_SED" || continue
7083c021
AC
5931# Check for GNU ac_path_SED and select it if it is found.
5932 # Check for GNU $ac_path_SED
5933case `"$ac_path_SED" --version 2>&1` in
5934*GNU*)
5935 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5936*)
5937 ac_count=0
5938 $as_echo_n 0123456789 >"conftest.in"
5939 while :
5940 do
5941 cat "conftest.in" "conftest.in" >"conftest.tmp"
5942 mv "conftest.tmp" "conftest.in"
5943 cp "conftest.in" "conftest.nl"
5944 $as_echo '' >> "conftest.nl"
5945 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5946 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5947 as_fn_arith $ac_count + 1 && ac_count=$as_val
5948 if test $ac_count -gt ${ac_path_SED_max-0}; then
5949 # Best one so far, save it but keep looking for a better one
5950 ac_cv_path_SED="$ac_path_SED"
5951 ac_path_SED_max=$ac_count
5952 fi
5953 # 10*(2^10) chars as input seems more than enough
5954 test $ac_count -gt 10 && break
5955 done
5956 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5957esac
5958
5959 $ac_path_SED_found && break 3
030272f3
VY
5960 done
5961 done
7083c021 5962 done
030272f3 5963IFS=$as_save_IFS
7083c021 5964 if test -z "$ac_cv_path_SED"; then
08c2568c 5965 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
db137867 5966 fi
7083c021
AC
5967else
5968 ac_cv_path_SED=$SED
5969fi
db137867 5970
030272f3 5971fi
7083c021
AC
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5973$as_echo "$ac_cv_path_SED" >&6; }
5974 SED="$ac_cv_path_SED"
5975 rm -f conftest.sed
db137867 5976
7083c021
AC
5977test -z "$SED" && SED=sed
5978Xsed="$SED -e 1s/^X//"
db137867 5979
db137867
AC
5980
5981
db137867 5982
7083c021
AC
5983
5984
5985
5986
5987
5988
5989
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5991$as_echo_n "checking for fgrep... " >&6; }
08c2568c 5992if ${ac_cv_path_FGREP+:} false; then :
7083c021
AC
5993 $as_echo_n "(cached) " >&6
5994else
5995 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5996 then ac_cv_path_FGREP="$GREP -F"
5997 else
5998 if test -z "$FGREP"; then
5999 ac_path_FGREP_found=false
6000 # Loop through the user's path and test for each of PROGNAME-LIST
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6003do
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_prog in fgrep; do
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
bf4e01a4 6009 as_fn_executable_p "$ac_path_FGREP" || continue
7083c021
AC
6010# Check for GNU ac_path_FGREP and select it if it is found.
6011 # Check for GNU $ac_path_FGREP
6012case `"$ac_path_FGREP" --version 2>&1` in
6013*GNU*)
6014 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6015*)
6016 ac_count=0
6017 $as_echo_n 0123456789 >"conftest.in"
6018 while :
6019 do
6020 cat "conftest.in" "conftest.in" >"conftest.tmp"
6021 mv "conftest.tmp" "conftest.in"
6022 cp "conftest.in" "conftest.nl"
6023 $as_echo 'FGREP' >> "conftest.nl"
6024 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6026 as_fn_arith $ac_count + 1 && ac_count=$as_val
6027 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6028 # Best one so far, save it but keep looking for a better one
6029 ac_cv_path_FGREP="$ac_path_FGREP"
6030 ac_path_FGREP_max=$ac_count
6031 fi
6032 # 10*(2^10) chars as input seems more than enough
6033 test $ac_count -gt 10 && break
6034 done
6035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6036esac
6037
6038 $ac_path_FGREP_found && break 3
6039 done
6040 done
6041 done
6042IFS=$as_save_IFS
6043 if test -z "$ac_cv_path_FGREP"; then
08c2568c 6044 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083c021
AC
6045 fi
6046else
6047 ac_cv_path_FGREP=$FGREP
6048fi
6049
6050 fi
6051fi
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6053$as_echo "$ac_cv_path_FGREP" >&6; }
6054 FGREP="$ac_cv_path_FGREP"
6055
6056
6057test -z "$GREP" && GREP=grep
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077# Check whether --with-gnu-ld was given.
6078if test "${with_gnu_ld+set}" = set; then :
6f57a957 6079 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7083c021
AC
6080else
6081 with_gnu_ld=no
6082fi
6083
6084ac_prog=ld
6f57a957 6085if test yes = "$GCC"; then
7083c021
AC
6086 # Check if gcc -print-prog-name=ld gives a path.
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6088$as_echo_n "checking for ld used by $CC... " >&6; }
6089 case $host in
6090 *-*-mingw*)
6f57a957 6091 # gcc leaves a trailing carriage return, which upsets mingw
7083c021
AC
6092 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6093 *)
6094 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6095 esac
6096 case $ac_prog in
6097 # Accept absolute paths.
6098 [\\/]* | ?:[\\/]*)
6099 re_direlt='/[^/][^/]*/\.\./'
6100 # Canonicalize the pathname of ld
6101 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6102 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6103 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6104 done
6f57a957 6105 test -z "$LD" && LD=$ac_prog
7083c021
AC
6106 ;;
6107 "")
6108 # If it fails, then pretend we aren't using GCC.
6109 ac_prog=ld
6110 ;;
6111 *)
6112 # If it is relative, then search for the first ld in PATH.
6113 with_gnu_ld=unknown
6114 ;;
6115 esac
6f57a957 6116elif test yes = "$with_gnu_ld"; then
7083c021
AC
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6118$as_echo_n "checking for GNU ld... " >&6; }
6119else
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
030272f3 6121$as_echo_n "checking for non-GNU ld... " >&6; }
db137867 6122fi
08c2568c 6123if ${lt_cv_path_LD+:} false; then :
030272f3
VY
6124 $as_echo_n "(cached) " >&6
6125else
6126 if test -z "$LD"; then
6f57a957 6127 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
030272f3 6128 for ac_dir in $PATH; do
6f57a957 6129 IFS=$lt_save_ifs
030272f3
VY
6130 test -z "$ac_dir" && ac_dir=.
6131 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6f57a957 6132 lt_cv_path_LD=$ac_dir/$ac_prog
030272f3
VY
6133 # Check to see if the program is GNU ld. I'd rather use --version,
6134 # but apparently some variants of GNU ld only accept -v.
6135 # Break only if it was the GNU/non-GNU ld that we prefer.
6136 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6137 *GNU* | *'with BFD'*)
6f57a957 6138 test no != "$with_gnu_ld" && break
030272f3
VY
6139 ;;
6140 *)
6f57a957 6141 test yes != "$with_gnu_ld" && break
030272f3
VY
6142 ;;
6143 esac
6144 fi
6145 done
6f57a957 6146 IFS=$lt_save_ifs
030272f3 6147else
6f57a957 6148 lt_cv_path_LD=$LD # Let the user override the test with a path.
db137867 6149fi
db137867 6150fi
030272f3 6151
6f57a957 6152LD=$lt_cv_path_LD
030272f3 6153if test -n "$LD"; then
7083c021 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
030272f3 6155$as_echo "$LD" >&6; }
db137867 6156else
7083c021 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6158$as_echo "no" >&6; }
db137867 6159fi
08c2568c 6160test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7083c021 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
030272f3 6162$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
08c2568c 6163if ${lt_cv_prog_gnu_ld+:} false; then :
030272f3 6164 $as_echo_n "(cached) " >&6
db137867 6165else
030272f3
VY
6166 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6167case `$LD -v 2>&1 </dev/null` in
6168*GNU* | *'with BFD'*)
6169 lt_cv_prog_gnu_ld=yes
6170 ;;
6171*)
6172 lt_cv_prog_gnu_ld=no
6173 ;;
6174esac
db137867 6175fi
7083c021 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
030272f3
VY
6177$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6178with_gnu_ld=$lt_cv_prog_gnu_ld
db137867 6179
db137867 6180
db137867 6181
7083c021
AC
6182
6183
6184
6185
6186
6187
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6189$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
08c2568c 6190if ${lt_cv_path_NM+:} false; then :
030272f3
VY
6191 $as_echo_n "(cached) " >&6
6192else
6193 if test -n "$NM"; then
6194 # Let the user override the test.
6f57a957 6195 lt_cv_path_NM=$NM
030272f3 6196else
6f57a957 6197 lt_nm_to_check=${ac_tool_prefix}nm
030272f3
VY
6198 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6199 lt_nm_to_check="$lt_nm_to_check nm"
6200 fi
6201 for lt_tmp_nm in $lt_nm_to_check; do
6f57a957 6202 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
030272f3 6203 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6f57a957 6204 IFS=$lt_save_ifs
030272f3 6205 test -z "$ac_dir" && ac_dir=.
6f57a957
AC
6206 tmp_nm=$ac_dir/$lt_tmp_nm
6207 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
030272f3 6208 # Check to see if the nm accepts a BSD-compat flag.
6f57a957 6209 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
030272f3
VY
6210 # nm: unknown option "B" ignored
6211 # Tru64's nm complains that /dev/null is an invalid object file
6f57a957
AC
6212 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6213 case $build_os in
6214 mingw*) lt_bad_file=conftest.nm/nofile ;;
6215 *) lt_bad_file=/dev/null ;;
6216 esac
6217 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6218 *$lt_bad_file* | *'Invalid file or object type'*)
030272f3 6219 lt_cv_path_NM="$tmp_nm -B"
6f57a957 6220 break 2
030272f3
VY
6221 ;;
6222 *)
6223 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6224 */dev/null*)
6225 lt_cv_path_NM="$tmp_nm -p"
6f57a957 6226 break 2
030272f3
VY
6227 ;;
6228 *)
6229 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6230 continue # so that we can try to find one that supports BSD flags
6231 ;;
6232 esac
6233 ;;
6234 esac
6235 fi
6236 done
6f57a957 6237 IFS=$lt_save_ifs
030272f3 6238 done
7083c021 6239 : ${lt_cv_path_NM=no}
db137867 6240fi
030272f3 6241fi
7083c021 6242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
030272f3 6243$as_echo "$lt_cv_path_NM" >&6; }
6f57a957
AC
6244if test no != "$lt_cv_path_NM"; then
6245 NM=$lt_cv_path_NM
7083c021
AC
6246else
6247 # Didn't find any BSD compatible name lister, look for dumpbin.
b6d0720c
AC
6248 if test -n "$DUMPBIN"; then :
6249 # Let the user override the test.
6250 else
6251 if test -n "$ac_tool_prefix"; then
6252 for ac_prog in dumpbin "link -dump"
7083c021
AC
6253 do
6254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6255set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6258if ${ac_cv_prog_DUMPBIN+:} false; then :
7083c021
AC
6259 $as_echo_n "(cached) " >&6
6260else
6261 if test -n "$DUMPBIN"; then
6262 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6263else
6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
6271 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6274 fi
6275done
6276 done
6277IFS=$as_save_IFS
db137867 6278
7083c021
AC
6279fi
6280fi
6281DUMPBIN=$ac_cv_prog_DUMPBIN
6282if test -n "$DUMPBIN"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6284$as_echo "$DUMPBIN" >&6; }
db137867 6285else
7083c021
AC
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287$as_echo "no" >&6; }
db137867
AC
6288fi
6289
7083c021
AC
6290
6291 test -n "$DUMPBIN" && break
6292 done
6293fi
6294if test -z "$DUMPBIN"; then
6295 ac_ct_DUMPBIN=$DUMPBIN
b6d0720c 6296 for ac_prog in dumpbin "link -dump"
7083c021
AC
6297do
6298 # Extract the first word of "$ac_prog", so it can be a program name with args.
6299set dummy $ac_prog; ac_word=$2
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6302if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
030272f3
VY
6303 $as_echo_n "(cached) " >&6
6304else
7083c021
AC
6305 if test -n "$ac_ct_DUMPBIN"; then
6306 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6307else
6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 6314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
6315 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6318 fi
6319done
6320 done
6321IFS=$as_save_IFS
db137867 6322
7083c021
AC
6323fi
6324fi
6325ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6326if test -n "$ac_ct_DUMPBIN"; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6328$as_echo "$ac_ct_DUMPBIN" >&6; }
6329else
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331$as_echo "no" >&6; }
6332fi
db137867 6333
db137867 6334
7083c021
AC
6335 test -n "$ac_ct_DUMPBIN" && break
6336done
db137867 6337
7083c021
AC
6338 if test "x$ac_ct_DUMPBIN" = x; then
6339 DUMPBIN=":"
030272f3 6340 else
7083c021
AC
6341 case $cross_compiling:$ac_tool_warned in
6342yes:)
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6345ac_tool_warned=yes ;;
6346esac
6347 DUMPBIN=$ac_ct_DUMPBIN
030272f3 6348 fi
7083c021 6349fi
db137867 6350
6f57a957 6351 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
b6d0720c 6352 *COFF*)
6f57a957 6353 DUMPBIN="$DUMPBIN -symbols -headers"
b6d0720c
AC
6354 ;;
6355 *)
6356 DUMPBIN=:
6357 ;;
6358 esac
6359 fi
db137867 6360
6f57a957
AC
6361 if test : != "$DUMPBIN"; then
6362 NM=$DUMPBIN
030272f3 6363 fi
7083c021
AC
6364fi
6365test -z "$NM" && NM=nm
db137867 6366
db137867 6367
db137867 6368
db137867 6369
030272f3 6370
030272f3 6371
7083c021
AC
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6373$as_echo_n "checking the name lister ($NM) interface... " >&6; }
08c2568c 6374if ${lt_cv_nm_interface+:} false; then :
7083c021
AC
6375 $as_echo_n "(cached) " >&6
6376else
6377 lt_cv_nm_interface="BSD nm"
6378 echo "int some_variable = 0;" > conftest.$ac_ext
b6d0720c 6379 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7083c021
AC
6380 (eval "$ac_compile" 2>conftest.err)
6381 cat conftest.err >&5
b6d0720c 6382 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7083c021
AC
6383 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6384 cat conftest.err >&5
b6d0720c 6385 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7083c021
AC
6386 cat conftest.out >&5
6387 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6388 lt_cv_nm_interface="MS dumpbin"
030272f3 6389 fi
7083c021
AC
6390 rm -f conftest*
6391fi
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6393$as_echo "$lt_cv_nm_interface" >&6; }
db137867 6394
7083c021
AC
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6396$as_echo_n "checking whether ln -s works... " >&6; }
6397LN_S=$as_ln_s
6398if test "$LN_S" = "ln -s"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6400$as_echo "yes" >&6; }
6401else
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6403$as_echo "no, using $LN_S" >&6; }
6404fi
db137867 6405
7083c021
AC
6406# find the maximum length of command line arguments
6407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6408$as_echo_n "checking the maximum length of command line arguments... " >&6; }
08c2568c 6409if ${lt_cv_sys_max_cmd_len+:} false; then :
7083c021
AC
6410 $as_echo_n "(cached) " >&6
6411else
6412 i=0
6f57a957 6413 teststring=ABCD
db137867 6414
7083c021
AC
6415 case $build_os in
6416 msdosdjgpp*)
6417 # On DJGPP, this test can blow up pretty badly due to problems in libc
6418 # (any single argument exceeding 2000 bytes causes a buffer overrun
6419 # during glob expansion). Even if it were fixed, the result of this
6420 # check would be larger than it should be.
6421 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6422 ;;
db137867 6423
7083c021
AC
6424 gnu*)
6425 # Under GNU Hurd, this test is not required because there is
6426 # no limit to the length of command line arguments.
6427 # Libtool will interpret -1 as no limit whatsoever
6428 lt_cv_sys_max_cmd_len=-1;
6429 ;;
db137867 6430
7083c021
AC
6431 cygwin* | mingw* | cegcc*)
6432 # On Win9x/ME, this test blows up -- it succeeds, but takes
6433 # about 5 minutes as the teststring grows exponentially.
6434 # Worse, since 9x/ME are not pre-emptively multitasking,
6435 # you end up with a "frozen" computer, even though with patience
6436 # the test eventually succeeds (with a max line length of 256k).
6437 # Instead, let's just punt: use the minimum linelength reported by
6438 # all of the supported platforms: 8192 (on NT/2K/XP).
6439 lt_cv_sys_max_cmd_len=8192;
6440 ;;
db137867 6441
b6d0720c
AC
6442 mint*)
6443 # On MiNT this can take a long time and run out of memory.
6444 lt_cv_sys_max_cmd_len=8192;
6445 ;;
6446
7083c021
AC
6447 amigaos*)
6448 # On AmigaOS with pdksh, this test takes hours, literally.
6449 # So we just punt and use a minimum line length of 8192.
6450 lt_cv_sys_max_cmd_len=8192;
6451 ;;
db137867 6452
6f57a957 6453 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7083c021
AC
6454 # This has been around since 386BSD, at least. Likely further.
6455 if test -x /sbin/sysctl; then
6456 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6457 elif test -x /usr/sbin/sysctl; then
6458 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6459 else
6460 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6461 fi
6462 # And add a safety zone
6463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
030272f3 6465 ;;
7083c021
AC
6466
6467 interix*)
6468 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6469 lt_cv_sys_max_cmd_len=196608
030272f3 6470 ;;
7083c021 6471
a949ab1a
AC
6472 os2*)
6473 # The test takes a long time on OS/2.
6474 lt_cv_sys_max_cmd_len=8192
6475 ;;
6476
7083c021
AC
6477 osf*)
6478 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6479 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6480 # nice to cause kernel panics so lets avoid the loop below.
6481 # First set a reasonable default.
6482 lt_cv_sys_max_cmd_len=16384
6483 #
6484 if test -x /sbin/sysconfig; then
6485 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6486 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6487 esac
6488 fi
030272f3 6489 ;;
7083c021
AC
6490 sco3.2v5*)
6491 lt_cv_sys_max_cmd_len=102400
030272f3 6492 ;;
7083c021
AC
6493 sysv5* | sco5v6* | sysv4.2uw2*)
6494 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6495 if test -n "$kargmax"; then
6496 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6497 else
6498 lt_cv_sys_max_cmd_len=32768
6499 fi
030272f3 6500 ;;
7083c021
AC
6501 *)
6502 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6f57a957
AC
6503 if test -n "$lt_cv_sys_max_cmd_len" && \
6504 test undefined != "$lt_cv_sys_max_cmd_len"; then
7083c021
AC
6505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6507 else
6508 # Make teststring a little bigger before we do anything with it.
6509 # a 1K string should be a reasonable start.
6f57a957 6510 for i in 1 2 3 4 5 6 7 8; do
7083c021
AC
6511 teststring=$teststring$teststring
6512 done
6513 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6514 # If test is not a shell built-in, we'll probably end up computing a
6515 # maximum length that is only half of the actual maximum length, but
6516 # we can't tell.
6f57a957 6517 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
b6d0720c 6518 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6f57a957 6519 test 17 != "$i" # 1/2 MB should be enough
7083c021
AC
6520 do
6521 i=`expr $i + 1`
6522 teststring=$teststring$teststring
6523 done
6524 # Only check the string length outside the loop.
6525 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6526 teststring=
6527 # Add a significant safety factor because C++ compilers can tack on
6528 # massive amounts of additional arguments before passing them to the
6529 # linker. It appears as though 1/2 is a usable value.
6530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6531 fi
030272f3
VY
6532 ;;
6533 esac
030272f3 6534
7083c021 6535fi
db137867 6536
6f57a957 6537if test -n "$lt_cv_sys_max_cmd_len"; then
7083c021
AC
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6539$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6540else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6542$as_echo "none" >&6; }
db137867 6543fi
7083c021 6544max_cmd_len=$lt_cv_sys_max_cmd_len
030272f3 6545
db137867 6546
db137867
AC
6547
6548
6549
6550
7083c021
AC
6551: ${CP="cp -f"}
6552: ${MV="mv -f"}
6553: ${RM="rm -f"}
db137867 6554
7083c021
AC
6555if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6556 lt_unset=unset
6557else
6558 lt_unset=false
030272f3 6559fi
db137867
AC
6560
6561
7083c021
AC
6562
6563
6564
6565# test EBCDIC or ASCII
6566case `echo X|tr X '\101'` in
6567 A) # ASCII based system
6568 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6569 lt_SP2NL='tr \040 \012'
6570 lt_NL2SP='tr \015\012 \040\040'
030272f3 6571 ;;
7083c021
AC
6572 *) # EBCDIC based system
6573 lt_SP2NL='tr \100 \n'
6574 lt_NL2SP='tr \r\n \100\100'
030272f3 6575 ;;
7083c021 6576esac
db137867 6577
db137867 6578
db137867 6579
db137867 6580
030272f3 6581
030272f3 6582
db137867
AC
6583
6584
6585
b6d0720c
AC
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6587$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6588if ${lt_cv_to_host_file_cmd+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590else
6591 case $host in
6592 *-*-mingw* )
6593 case $build in
6594 *-*-mingw* ) # actually msys
6595 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6596 ;;
6597 *-*-cygwin* )
6598 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6599 ;;
6600 * ) # otherwise, assume *nix
6601 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6602 ;;
6603 esac
6604 ;;
6605 *-*-cygwin* )
6606 case $build in
6607 *-*-mingw* ) # actually msys
6608 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6609 ;;
6610 *-*-cygwin* )
6611 lt_cv_to_host_file_cmd=func_convert_file_noop
6612 ;;
6613 * ) # otherwise, assume *nix
6614 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6615 ;;
6616 esac
6617 ;;
6618 * ) # unhandled hosts (and "normal" native builds)
6619 lt_cv_to_host_file_cmd=func_convert_file_noop
6620 ;;
6621esac
6622
6623fi
6624
6625to_host_file_cmd=$lt_cv_to_host_file_cmd
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6627$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6628
6629
6630
6631
6632
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6634$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6635if ${lt_cv_to_tool_file_cmd+:} false; then :
6636 $as_echo_n "(cached) " >&6
6637else
6638 #assume ordinary cross tools, or native build.
6639lt_cv_to_tool_file_cmd=func_convert_file_noop
6640case $host in
6641 *-*-mingw* )
6642 case $build in
6643 *-*-mingw* ) # actually msys
6644 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6645 ;;
6646 esac
6647 ;;
6648esac
6649
6650fi
6651
6652to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6654$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6655
6656
6657
6658
6659
7083c021
AC
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6661$as_echo_n "checking for $LD option to reload object files... " >&6; }
08c2568c 6662if ${lt_cv_ld_reload_flag+:} false; then :
030272f3 6663 $as_echo_n "(cached) " >&6
db137867 6664else
7083c021 6665 lt_cv_ld_reload_flag='-r'
db137867 6666fi
7083c021
AC
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6668$as_echo "$lt_cv_ld_reload_flag" >&6; }
6669reload_flag=$lt_cv_ld_reload_flag
6670case $reload_flag in
6671"" | " "*) ;;
6672*) reload_flag=" $reload_flag" ;;
6673esac
6674reload_cmds='$LD$reload_flag -o $output$reload_objs'
6675case $host_os in
b6d0720c 6676 cygwin* | mingw* | pw32* | cegcc*)
6f57a957 6677 if test yes != "$GCC"; then
b6d0720c
AC
6678 reload_cmds=false
6679 fi
6680 ;;
7083c021 6681 darwin*)
6f57a957
AC
6682 if test yes = "$GCC"; then
6683 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7083c021
AC
6684 else
6685 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6686 fi
6687 ;;
db137867 6688esac
db137867 6689
db137867 6690
db137867 6691
db137867 6692
db137867 6693
db137867 6694
db137867 6695
db137867 6696
7083c021
AC
6697
6698if test -n "$ac_tool_prefix"; then
6699 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6700set dummy ${ac_tool_prefix}objdump; ac_word=$2
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6702$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6703if ${ac_cv_prog_OBJDUMP+:} false; then :
030272f3 6704 $as_echo_n "(cached) " >&6
db137867 6705else
7083c021
AC
6706 if test -n "$OBJDUMP"; then
6707 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
db137867
AC
6708else
6709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710for as_dir in $PATH
6711do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
7083c021 6714 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
6716 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6718 break 2
6719 fi
6720done
7083c021 6721 done
db137867
AC
6722IFS=$as_save_IFS
6723
6724fi
6725fi
7083c021
AC
6726OBJDUMP=$ac_cv_prog_OBJDUMP
6727if test -n "$OBJDUMP"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6729$as_echo "$OBJDUMP" >&6; }
db137867 6730else
7083c021 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6732$as_echo "no" >&6; }
db137867
AC
6733fi
6734
6735
db137867 6736fi
7083c021
AC
6737if test -z "$ac_cv_prog_OBJDUMP"; then
6738 ac_ct_OBJDUMP=$OBJDUMP
6739 # Extract the first word of "objdump", so it can be a program name with args.
6740set dummy objdump; ac_word=$2
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6742$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6743if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
030272f3 6744 $as_echo_n "(cached) " >&6
db137867 6745else
7083c021
AC
6746 if test -n "$ac_ct_OBJDUMP"; then
6747 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
db137867
AC
6748else
6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750for as_dir in $PATH
6751do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
7083c021 6754 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
6756 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6758 break 2
6759 fi
6760done
7083c021 6761 done
db137867
AC
6762IFS=$as_save_IFS
6763
6764fi
6765fi
7083c021
AC
6766ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6767if test -n "$ac_ct_OBJDUMP"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6769$as_echo "$ac_ct_OBJDUMP" >&6; }
db137867 6770else
7083c021 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6772$as_echo "no" >&6; }
db137867
AC
6773fi
6774
7083c021
AC
6775 if test "x$ac_ct_OBJDUMP" = x; then
6776 OBJDUMP="false"
db137867
AC
6777 else
6778 case $cross_compiling:$ac_tool_warned in
6779yes:)
7083c021 6780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 6781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
6782ac_tool_warned=yes ;;
6783esac
7083c021 6784 OBJDUMP=$ac_ct_OBJDUMP
db137867 6785 fi
7083c021
AC
6786else
6787 OBJDUMP="$ac_cv_prog_OBJDUMP"
db137867 6788fi
db137867 6789
7083c021 6790test -z "$OBJDUMP" && OBJDUMP=objdump
db137867 6791
db137867 6792
db137867 6793
db137867 6794
db137867 6795
db137867 6796
db137867 6797
db137867 6798
db137867 6799
7083c021
AC
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6801$as_echo_n "checking how to recognize dependent libraries... " >&6; }
08c2568c 6802if ${lt_cv_deplibs_check_method+:} false; then :
7083c021 6803 $as_echo_n "(cached) " >&6
db137867 6804else
7083c021
AC
6805 lt_cv_file_magic_cmd='$MAGIC_CMD'
6806lt_cv_file_magic_test_file=
6807lt_cv_deplibs_check_method='unknown'
6808# Need to set the preceding variable on all platforms that support
6809# interlibrary dependencies.
6810# 'none' -- dependencies not supported.
6f57a957 6811# 'unknown' -- same as none, but documents that we really don't know.
7083c021
AC
6812# 'pass_all' -- all dependencies passed with no checks.
6813# 'test_compile' -- check by making test program.
6814# 'file_magic [[regex]]' -- check by looking for files in library path
6f57a957
AC
6815# that responds to the $file_magic_cmd with a given extended regex.
6816# If you have 'file' or equivalent on your system and you're not sure
6817# whether 'pass_all' will *always* work, you probably want this one.
db137867 6818
7083c021
AC
6819case $host_os in
6820aix[4-9]*)
6821 lt_cv_deplibs_check_method=pass_all
6822 ;;
db137867 6823
7083c021
AC
6824beos*)
6825 lt_cv_deplibs_check_method=pass_all
6826 ;;
db137867 6827
7083c021
AC
6828bsdi[45]*)
6829 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6830 lt_cv_file_magic_cmd='/usr/bin/file -L'
6831 lt_cv_file_magic_test_file=/shlib/libc.so
6832 ;;
db137867 6833
7083c021
AC
6834cygwin*)
6835 # func_win32_libid is a shell function defined in ltmain.sh
6836 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6837 lt_cv_file_magic_cmd='func_win32_libid'
6838 ;;
db137867 6839
7083c021
AC
6840mingw* | pw32*)
6841 # Base MSYS/MinGW do not provide the 'file' command needed by
6842 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6843 # unless we find 'file', for example because we are cross-compiling.
6f57a957 6844 if ( file / ) >/dev/null 2>&1; then
7083c021
AC
6845 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6846 lt_cv_file_magic_cmd='func_win32_libid'
6847 else
b6d0720c
AC
6848 # Keep this pattern in sync with the one in func_win32_libid.
6849 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7083c021
AC
6850 lt_cv_file_magic_cmd='$OBJDUMP -f'
6851 fi
6852 ;;
db137867 6853
b6d0720c 6854cegcc*)
7083c021
AC
6855 # use the weaker test based on 'objdump'. See mingw*.
6856 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6857 lt_cv_file_magic_cmd='$OBJDUMP -f'
6858 ;;
db137867 6859
7083c021
AC
6860darwin* | rhapsody*)
6861 lt_cv_deplibs_check_method=pass_all
6862 ;;
db137867 6863
7083c021
AC
6864freebsd* | dragonfly*)
6865 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6866 case $host_cpu in
6867 i*86 )
6868 # Not sure whether the presence of OpenBSD here was a mistake.
6869 # Let's accept both of them until this is cleared up.
6870 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6871 lt_cv_file_magic_cmd=/usr/bin/file
6872 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6873 ;;
6874 esac
db137867 6875 else
7083c021 6876 lt_cv_deplibs_check_method=pass_all
db137867 6877 fi
7083c021 6878 ;;
db137867 6879
b6d0720c
AC
6880haiku*)
6881 lt_cv_deplibs_check_method=pass_all
6882 ;;
6883
7083c021
AC
6884hpux10.20* | hpux11*)
6885 lt_cv_file_magic_cmd=/usr/bin/file
6886 case $host_cpu in
6887 ia64*)
6888 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6889 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6890 ;;
6891 hppa*64*)
b6d0720c 6892 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]'
7083c021
AC
6893 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6894 ;;
6895 *)
b6d0720c 6896 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7083c021
AC
6897 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6898 ;;
6899 esac
6900 ;;
db137867 6901
7083c021
AC
6902interix[3-9]*)
6903 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6904 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6905 ;;
db137867 6906
7083c021
AC
6907irix5* | irix6* | nonstopux*)
6908 case $LD in
6909 *-32|*"-32 ") libmagic=32-bit;;
6910 *-n32|*"-n32 ") libmagic=N32;;
6911 *-64|*"-64 ") libmagic=64-bit;;
6912 *) libmagic=never-match;;
6913 esac
6914 lt_cv_deplibs_check_method=pass_all
6915 ;;
db137867 6916
a949ab1a 6917# This must be glibc/ELF.
6f57a957 6918linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7083c021
AC
6919 lt_cv_deplibs_check_method=pass_all
6920 ;;
db137867 6921
96f4052b 6922netbsd*)
7083c021
AC
6923 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6925 else
6926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6927 fi
6928 ;;
db137867 6929
7083c021
AC
6930newos6*)
6931 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6932 lt_cv_file_magic_cmd=/usr/bin/file
6933 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6934 ;;
db137867 6935
7083c021
AC
6936*nto* | *qnx*)
6937 lt_cv_deplibs_check_method=pass_all
6938 ;;
db137867 6939
6f57a957
AC
6940openbsd* | bitrig*)
6941 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7083c021
AC
6942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6943 else
6944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6945 fi
6946 ;;
db137867 6947
7083c021
AC
6948osf3* | osf4* | osf5*)
6949 lt_cv_deplibs_check_method=pass_all
6950 ;;
db137867 6951
7083c021
AC
6952rdos*)
6953 lt_cv_deplibs_check_method=pass_all
6954 ;;
db137867 6955
7083c021
AC
6956solaris*)
6957 lt_cv_deplibs_check_method=pass_all
6958 ;;
db137867 6959
7083c021
AC
6960sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6961 lt_cv_deplibs_check_method=pass_all
6962 ;;
db137867 6963
7083c021
AC
6964sysv4 | sysv4.3*)
6965 case $host_vendor in
6966 motorola)
6967 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]'
6968 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6969 ;;
6970 ncr)
6971 lt_cv_deplibs_check_method=pass_all
6972 ;;
6973 sequent)
6974 lt_cv_file_magic_cmd='/bin/file'
6975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6976 ;;
6977 sni)
6978 lt_cv_file_magic_cmd='/bin/file'
6979 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6980 lt_cv_file_magic_test_file=/lib/libc.so
6981 ;;
6982 siemens)
6983 lt_cv_deplibs_check_method=pass_all
6984 ;;
6985 pc)
6986 lt_cv_deplibs_check_method=pass_all
6987 ;;
6988 esac
6989 ;;
db137867 6990
7083c021
AC
6991tpf*)
6992 lt_cv_deplibs_check_method=pass_all
6993 ;;
6f57a957
AC
6994os2*)
6995 lt_cv_deplibs_check_method=pass_all
6996 ;;
7083c021 6997esac
db137867 6998
db137867 6999fi
7083c021
AC
7000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7001$as_echo "$lt_cv_deplibs_check_method" >&6; }
b6d0720c
AC
7002
7003file_magic_glob=
7004want_nocaseglob=no
7005if test "$build" = "$host"; then
7006 case $host_os in
7007 mingw* | pw32*)
7008 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7009 want_nocaseglob=yes
7010 else
7011 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7012 fi
7013 ;;
7014 esac
7015fi
7016
7083c021
AC
7017file_magic_cmd=$lt_cv_file_magic_cmd
7018deplibs_check_method=$lt_cv_deplibs_check_method
7019test -z "$deplibs_check_method" && deplibs_check_method=unknown
db137867 7020
db137867 7021
db137867 7022
db137867 7023
db137867 7024
db137867 7025
db137867 7026
db137867 7027
db137867 7028
db137867 7029
b6d0720c
AC
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
db137867
AC
7040
7041
db137867 7042if test -n "$ac_tool_prefix"; then
b6d0720c
AC
7043 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7044set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7083c021 7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 7046$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 7047if ${ac_cv_prog_DLLTOOL+:} false; then :
030272f3 7048 $as_echo_n "(cached) " >&6
db137867 7049else
b6d0720c
AC
7050 if test -n "$DLLTOOL"; then
7051 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
db137867
AC
7052else
7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7083c021 7058 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 7059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b6d0720c 7060 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7083c021 7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
7062 break 2
7063 fi
7064done
7083c021 7065 done
db137867
AC
7066IFS=$as_save_IFS
7067
7068fi
7069fi
b6d0720c
AC
7070DLLTOOL=$ac_cv_prog_DLLTOOL
7071if test -n "$DLLTOOL"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7073$as_echo "$DLLTOOL" >&6; }
db137867 7074else
7083c021 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7076$as_echo "no" >&6; }
db137867
AC
7077fi
7078
7079
db137867 7080fi
b6d0720c
AC
7081if test -z "$ac_cv_prog_DLLTOOL"; then
7082 ac_ct_DLLTOOL=$DLLTOOL
7083 # Extract the first word of "dlltool", so it can be a program name with args.
7084set dummy dlltool; ac_word=$2
7083c021 7085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 7086$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 7087if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
030272f3 7088 $as_echo_n "(cached) " >&6
db137867 7089else
b6d0720c
AC
7090 if test -n "$ac_ct_DLLTOOL"; then
7091 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
db137867
AC
7092else
7093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094for as_dir in $PATH
7095do
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
7083c021 7098 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 7099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b6d0720c 7100 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7083c021 7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
7102 break 2
7103 fi
7104done
7083c021 7105 done
db137867
AC
7106IFS=$as_save_IFS
7107
7108fi
7109fi
b6d0720c
AC
7110ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7111if test -n "$ac_ct_DLLTOOL"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7113$as_echo "$ac_ct_DLLTOOL" >&6; }
db137867 7114else
7083c021 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7116$as_echo "no" >&6; }
db137867
AC
7117fi
7118
b6d0720c
AC
7119 if test "x$ac_ct_DLLTOOL" = x; then
7120 DLLTOOL="false"
db137867
AC
7121 else
7122 case $cross_compiling:$ac_tool_warned in
7123yes:)
7083c021 7124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 7125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
7126ac_tool_warned=yes ;;
7127esac
b6d0720c 7128 DLLTOOL=$ac_ct_DLLTOOL
db137867 7129 fi
7083c021 7130else
b6d0720c 7131 DLLTOOL="$ac_cv_prog_DLLTOOL"
db137867
AC
7132fi
7133
b6d0720c
AC
7134test -z "$DLLTOOL" && DLLTOOL=dlltool
7135
7136
7137
7138
7139
7140
7141
db137867 7142
db137867 7143
db137867 7144
b6d0720c
AC
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7146$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7147if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7148 $as_echo_n "(cached) " >&6
7149else
7150 lt_cv_sharedlib_from_linklib_cmd='unknown'
7151
7152case $host_os in
7153cygwin* | mingw* | pw32* | cegcc*)
6f57a957
AC
7154 # two different shell functions defined in ltmain.sh;
7155 # decide which one to use based on capabilities of $DLLTOOL
b6d0720c
AC
7156 case `$DLLTOOL --help 2>&1` in
7157 *--identify-strict*)
7158 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7159 ;;
7160 *)
7161 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7162 ;;
7163 esac
7164 ;;
7165*)
7166 # fallback: assume linklib IS sharedlib
6f57a957 7167 lt_cv_sharedlib_from_linklib_cmd=$ECHO
b6d0720c
AC
7168 ;;
7169esac
db137867 7170
b6d0720c
AC
7171fi
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7173$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7174sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7175test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
db137867 7176
db137867 7177
db137867 7178
db137867 7179
7083c021
AC
7180
7181
7182
7183if test -n "$ac_tool_prefix"; then
b6d0720c
AC
7184 for ac_prog in ar
7185 do
7186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7187set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7083c021
AC
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 7190if ${ac_cv_prog_AR+:} false; then :
7083c021
AC
7191 $as_echo_n "(cached) " >&6
7192else
b6d0720c
AC
7193 if test -n "$AR"; then
7194 ac_cv_prog_AR="$AR" # Let the user override the test.
7083c021
AC
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 7202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b6d0720c 7203 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7083c021
AC
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
db137867 7206 fi
7083c021
AC
7207done
7208 done
7209IFS=$as_save_IFS
7210
7211fi
7212fi
b6d0720c
AC
7213AR=$ac_cv_prog_AR
7214if test -n "$AR"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7216$as_echo "$AR" >&6; }
db137867 7217else
7083c021
AC
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219$as_echo "no" >&6; }
7220fi
7221
7222
b6d0720c
AC
7223 test -n "$AR" && break
7224 done
7083c021 7225fi
b6d0720c
AC
7226if test -z "$AR"; then
7227 ac_ct_AR=$AR
7228 for ac_prog in ar
7229do
7230 # Extract the first word of "$ac_prog", so it can be a program name with args.
7231set dummy $ac_prog; ac_word=$2
7083c021
AC
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 7234if ${ac_cv_prog_ac_ct_AR+:} false; then :
7083c021
AC
7235 $as_echo_n "(cached) " >&6
7236else
b6d0720c
AC
7237 if test -n "$ac_ct_AR"; then
7238 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7083c021
AC
7239else
7240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241for as_dir in $PATH
7242do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 7246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b6d0720c 7247 ac_cv_prog_ac_ct_AR="$ac_prog"
7083c021
AC
7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
db137867 7250 fi
7083c021
AC
7251done
7252 done
7253IFS=$as_save_IFS
7254
7255fi
7256fi
b6d0720c
AC
7257ac_ct_AR=$ac_cv_prog_ac_ct_AR
7258if test -n "$ac_ct_AR"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7260$as_echo "$ac_ct_AR" >&6; }
7083c021
AC
7261else
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263$as_echo "no" >&6; }
db137867
AC
7264fi
7265
b6d0720c
AC
7266
7267 test -n "$ac_ct_AR" && break
7268done
7269
7270 if test "x$ac_ct_AR" = x; then
7271 AR="false"
7272 else
7273 case $cross_compiling:$ac_tool_warned in
7274yes:)
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277ac_tool_warned=yes ;;
7278esac
7279 AR=$ac_ct_AR
7280 fi
7281fi
7282
7283: ${AR=ar}
7284: ${AR_FLAGS=cru}
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7297$as_echo_n "checking for archiver @FILE support... " >&6; }
7298if ${lt_cv_ar_at_file+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300else
7301 lt_cv_ar_at_file=no
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303/* end confdefs.h. */
7304
7305int
7306main ()
7307{
7308
7309 ;
7310 return 0;
7311}
7312_ACEOF
7313if ac_fn_c_try_compile "$LINENO"; then :
7314 echo conftest.$ac_objext > conftest.lst
7315 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7317 (eval $lt_ar_try) 2>&5
7318 ac_status=$?
7319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7320 test $ac_status = 0; }
6f57a957 7321 if test 0 -eq "$ac_status"; then
b6d0720c
AC
7322 # Ensure the archiver fails upon bogus file names.
7323 rm -f conftest.$ac_objext libconftest.a
7324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7325 (eval $lt_ar_try) 2>&5
7326 ac_status=$?
7327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7328 test $ac_status = 0; }
6f57a957 7329 if test 0 -ne "$ac_status"; then
b6d0720c
AC
7330 lt_cv_ar_at_file=@
7331 fi
7332 fi
7333 rm -f conftest.* libconftest.a
7334
7335fi
7336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337
7338fi
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7340$as_echo "$lt_cv_ar_at_file" >&6; }
7341
6f57a957 7342if test no = "$lt_cv_ar_at_file"; then
b6d0720c
AC
7343 archiver_list_spec=
7344else
7345 archiver_list_spec=$lt_cv_ar_at_file
7346fi
7347
7348
7349
7350
7351
7352
7353
7354if test -n "$ac_tool_prefix"; then
7355 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7356set dummy ${ac_tool_prefix}strip; ac_word=$2
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358$as_echo_n "checking for $ac_word... " >&6; }
7359if ${ac_cv_prog_STRIP+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361else
7362 if test -n "$STRIP"; then
7363 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7364else
7365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366for as_dir in $PATH
7367do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 7371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b6d0720c
AC
7372 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7375 fi
7376done
7377 done
7378IFS=$as_save_IFS
7379
7380fi
7381fi
7382STRIP=$ac_cv_prog_STRIP
7383if test -n "$STRIP"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7385$as_echo "$STRIP" >&6; }
7386else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388$as_echo "no" >&6; }
7389fi
7390
7391
7392fi
7393if test -z "$ac_cv_prog_STRIP"; then
7394 ac_ct_STRIP=$STRIP
7395 # Extract the first word of "strip", so it can be a program name with args.
7396set dummy strip; ac_word=$2
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398$as_echo_n "checking for $ac_word... " >&6; }
7399if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7400 $as_echo_n "(cached) " >&6
7401else
7402 if test -n "$ac_ct_STRIP"; then
7403 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7404else
7405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406for as_dir in $PATH
7407do
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 7411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b6d0720c
AC
7412 ac_cv_prog_ac_ct_STRIP="strip"
7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7415 fi
7416done
7417 done
7418IFS=$as_save_IFS
7419
7420fi
7421fi
7422ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7423if test -n "$ac_ct_STRIP"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7425$as_echo "$ac_ct_STRIP" >&6; }
7426else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428$as_echo "no" >&6; }
7429fi
7430
7431 if test "x$ac_ct_STRIP" = x; then
7432 STRIP=":"
7433 else
7434 case $cross_compiling:$ac_tool_warned in
7435yes:)
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7083c021
AC
7437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7438ac_tool_warned=yes ;;
7439esac
7440 STRIP=$ac_ct_STRIP
7441 fi
030272f3 7442else
7083c021 7443 STRIP="$ac_cv_prog_STRIP"
030272f3 7444fi
db137867 7445
7083c021 7446test -z "$STRIP" && STRIP=:
db137867
AC
7447
7448
db137867 7449
db137867 7450
db137867 7451
db137867 7452
7083c021
AC
7453if test -n "$ac_tool_prefix"; then
7454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7455set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7458if ${ac_cv_prog_RANLIB+:} false; then :
7083c021
AC
7459 $as_echo_n "(cached) " >&6
7460else
7461 if test -n "$RANLIB"; then
7462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7463else
7464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 7470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
7471 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 break 2
7474 fi
7475done
7476 done
7477IFS=$as_save_IFS
db137867 7478
7083c021
AC
7479fi
7480fi
7481RANLIB=$ac_cv_prog_RANLIB
7482if test -n "$RANLIB"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7484$as_echo "$RANLIB" >&6; }
7485else
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487$as_echo "no" >&6; }
7488fi
db137867 7489
db137867 7490
7083c021
AC
7491fi
7492if test -z "$ac_cv_prog_RANLIB"; then
7493 ac_ct_RANLIB=$RANLIB
7494 # Extract the first word of "ranlib", so it can be a program name with args.
7495set dummy ranlib; ac_word=$2
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7498if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7083c021
AC
7499 $as_echo_n "(cached) " >&6
7500else
7501 if test -n "$ac_ct_RANLIB"; then
7502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7503else
7504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 7510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
7511 ac_cv_prog_ac_ct_RANLIB="ranlib"
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7514 fi
7515done
7516 done
7517IFS=$as_save_IFS
db137867 7518
7083c021
AC
7519fi
7520fi
7521ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7522if test -n "$ac_ct_RANLIB"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7524$as_echo "$ac_ct_RANLIB" >&6; }
7525else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527$as_echo "no" >&6; }
db137867
AC
7528fi
7529
7083c021
AC
7530 if test "x$ac_ct_RANLIB" = x; then
7531 RANLIB=":"
7532 else
7533 case $cross_compiling:$ac_tool_warned in
7534yes:)
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537ac_tool_warned=yes ;;
7538esac
7539 RANLIB=$ac_ct_RANLIB
7540 fi
db137867 7541else
7083c021 7542 RANLIB="$ac_cv_prog_RANLIB"
db137867
AC
7543fi
7544
7083c021 7545test -z "$RANLIB" && RANLIB=:
db137867
AC
7546
7547
7548
7549
7083c021
AC
7550
7551
7552# Determine commands to create old-style static archives.
7553old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7554old_postinstall_cmds='chmod 644 $oldlib'
7555old_postuninstall_cmds=
7556
7557if test -n "$RANLIB"; then
7558 case $host_os in
6f57a957 7559 bitrig* | openbsd*)
a949ab1a 7560 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7083c021
AC
7561 ;;
7562 *)
a949ab1a 7563 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7083c021
AC
7564 ;;
7565 esac
a949ab1a 7566 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7083c021
AC
7567fi
7568
b6d0720c
AC
7569case $host_os in
7570 darwin*)
7571 lock_old_archive_extraction=yes ;;
7572 *)
7573 lock_old_archive_extraction=no ;;
7574esac
7575
7576
7577
7578
7579
7580
7083c021
AC
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614# If no C compiler was specified, use CC.
7615LTCC=${LTCC-"$CC"}
7616
7617# If no C compiler flags were specified, use CFLAGS.
7618LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7619
7620# Allow CC to be a program name with arguments.
7621compiler=$CC
7622
7623
7624# Check for command to grab the raw symbol name followed by C symbol from nm.
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7626$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
08c2568c 7627if ${lt_cv_sys_global_symbol_pipe+:} false; then :
030272f3 7628 $as_echo_n "(cached) " >&6
db137867
AC
7629else
7630
7631# These are sane defaults that work on at least a few old systems.
7632# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7633
7634# Character class describing NM global symbol codes.
7635symcode='[BCDEGRST]'
7636
7637# Regexp to match symbols that can be accessed directly from C.
7638sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7639
db137867
AC
7640# Define system-specific variables.
7641case $host_os in
7642aix*)
7643 symcode='[BCDT]'
7644 ;;
7083c021 7645cygwin* | mingw* | pw32* | cegcc*)
db137867
AC
7646 symcode='[ABCDGISTW]'
7647 ;;
7083c021 7648hpux*)
6f57a957 7649 if test ia64 = "$host_cpu"; then
db137867
AC
7650 symcode='[ABCDEGRST]'
7651 fi
db137867
AC
7652 ;;
7653irix* | nonstopux*)
7654 symcode='[BCDEGRST]'
7655 ;;
7656osf*)
7657 symcode='[BCDEGQRST]'
7658 ;;
7659solaris*)
7660 symcode='[BDRT]'
7661 ;;
7662sco3.2v5*)
7663 symcode='[DT]'
7664 ;;
7665sysv4.2uw2*)
7666 symcode='[DT]'
7667 ;;
7668sysv5* | sco5v6* | unixware* | OpenUNIX*)
7669 symcode='[ABDT]'
7670 ;;
7671sysv4)
7672 symcode='[DFNSTU]'
7673 ;;
7674esac
7675
7083c021
AC
7676# If we're using GNU nm, then use its standard symbol codes.
7677case `$NM -V 2>&1` in
7678*GNU* | *'with BFD'*)
7679 symcode='[ABCDGIRSTW]' ;;
7680esac
7681
6f57a957
AC
7682if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7683 # Gets list of data symbols to import.
7684 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7685 # Adjust the below global symbol transforms to fixup imported variables.
7686 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7687 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7688 lt_c_name_lib_hook="\
7689 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7690 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7691else
7692 # Disable hooks by default.
7693 lt_cv_sys_global_symbol_to_import=
7694 lt_cdecl_hook=
7695 lt_c_name_hook=
7696 lt_c_name_lib_hook=
7697fi
7698
7083c021
AC
7699# Transform an extracted symbol line into a proper C declaration.
7700# Some systems (esp. on ia64) link data and code symbols differently,
7701# so use this general approach.
6f57a957
AC
7702lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7703$lt_cdecl_hook\
7704" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7705" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7083c021
AC
7706
7707# Transform an extracted symbol line into symbol name and symbol address
6f57a957
AC
7708lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7709$lt_c_name_hook\
7710" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7711" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7712
7713# Transform an extracted symbol line into symbol name with lib prefix and
7714# symbol address.
7715lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7716$lt_c_name_lib_hook\
7717" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7718" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7719" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7083c021 7720
db137867
AC
7721# Handle CRLF in mingw tool chain
7722opt_cr=
7723case $build_os in
7724mingw*)
7083c021 7725 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
db137867
AC
7726 ;;
7727esac
7728
7083c021 7729# Try without a prefix underscore, then with it.
db137867
AC
7730for ac_symprfx in "" "_"; do
7731
7732 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7733 symxfrm="\\1 $ac_symprfx\\2 \\2"
7734
7735 # Write the raw and C identifiers.
7083c021 7736 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6f57a957
AC
7737 # Fake it for dumpbin and say T for any non-static function,
7738 # D for any global variable and I for any imported variable.
7083c021
AC
7739 # Also find C++ and __fastcall symbols from MSVC++,
7740 # which start with @ or ?.
7741 lt_cv_sys_global_symbol_pipe="$AWK '"\
7742" {last_section=section; section=\$ 3};"\
a949ab1a 7743" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7083c021 7744" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6f57a957
AC
7745" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7746" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7747" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7083c021
AC
7748" \$ 0!~/External *\|/{next};"\
7749" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7750" {if(hide[section]) next};"\
6f57a957
AC
7751" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7752" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7753" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7754" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7083c021
AC
7755" ' prfx=^$ac_symprfx"
7756 else
7757 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7758 fi
b6d0720c 7759 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
db137867
AC
7760
7761 # Check to see that the pipe works correctly.
7762 pipe_works=no
7763
7764 rm -f conftest*
7083c021 7765 cat > conftest.$ac_ext <<_LT_EOF
db137867
AC
7766#ifdef __cplusplus
7767extern "C" {
7768#endif
7769char nm_test_var;
7083c021
AC
7770void nm_test_func(void);
7771void nm_test_func(void){}
db137867
AC
7772#ifdef __cplusplus
7773}
7774#endif
7775int main(){nm_test_var='a';nm_test_func();return(0);}
7083c021 7776_LT_EOF
db137867 7777
7083c021 7778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
db137867
AC
7779 (eval $ac_compile) 2>&5
7780 ac_status=$?
7083c021
AC
7781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7782 test $ac_status = 0; }; then
db137867
AC
7783 # Now try to grab the symbols.
7784 nlist=conftest.nm
b6d0720c
AC
7785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7786 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
db137867 7787 ac_status=$?
7083c021
AC
7788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7789 test $ac_status = 0; } && test -s "$nlist"; then
db137867
AC
7790 # Try sorting and uniquifying the output.
7791 if sort "$nlist" | uniq > "$nlist"T; then
7792 mv -f "$nlist"T "$nlist"
7793 else
7794 rm -f "$nlist"T
7795 fi
7796
7797 # Make sure that we snagged all the symbols we need.
7083c021
AC
7798 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7799 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7800 cat <<_LT_EOF > conftest.$ac_ext
b6d0720c 7801/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6f57a957
AC
7802#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7803/* DATA imports from DLLs on WIN32 can't be const, because runtime
b6d0720c
AC
7804 relocations are performed -- see ld's documentation on pseudo-relocs. */
7805# define LT_DLSYM_CONST
6f57a957 7806#elif defined __osf__
b6d0720c
AC
7807/* This system does not cope well with relocations in const data. */
7808# define LT_DLSYM_CONST
7809#else
7810# define LT_DLSYM_CONST const
7811#endif
7812
db137867
AC
7813#ifdef __cplusplus
7814extern "C" {
7815#endif
7816
7083c021 7817_LT_EOF
db137867 7818 # Now generate the symbol file.
7083c021 7819 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
db137867 7820
7083c021 7821 cat <<_LT_EOF >> conftest.$ac_ext
db137867 7822
7083c021 7823/* The mapping between symbol names and symbols. */
b6d0720c 7824LT_DLSYM_CONST struct {
db137867 7825 const char *name;
7083c021 7826 void *address;
db137867 7827}
7083c021 7828lt__PROGRAM__LTX_preloaded_symbols[] =
db137867 7829{
7083c021
AC
7830 { "@PROGRAM@", (void *) 0 },
7831_LT_EOF
6f57a957 7832 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7083c021
AC
7833 cat <<\_LT_EOF >> conftest.$ac_ext
7834 {0, (void *) 0}
db137867
AC
7835};
7836
7083c021
AC
7837/* This works around a problem in FreeBSD linker */
7838#ifdef FREEBSD_WORKAROUND
7839static const void *lt_preloaded_setup() {
7840 return lt__PROGRAM__LTX_preloaded_symbols;
7841}
7842#endif
7843
db137867
AC
7844#ifdef __cplusplus
7845}
7846#endif
7083c021 7847_LT_EOF
db137867
AC
7848 # Now try linking the two files.
7849 mv conftest.$ac_objext conftstm.$ac_objext
b6d0720c
AC
7850 lt_globsym_save_LIBS=$LIBS
7851 lt_globsym_save_CFLAGS=$CFLAGS
6f57a957 7852 LIBS=conftstm.$ac_objext
db137867 7853 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7083c021 7854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
db137867
AC
7855 (eval $ac_link) 2>&5
7856 ac_status=$?
7083c021 7857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6f57a957 7858 test $ac_status = 0; } && test -s conftest$ac_exeext; then
db137867
AC
7859 pipe_works=yes
7860 fi
b6d0720c
AC
7861 LIBS=$lt_globsym_save_LIBS
7862 CFLAGS=$lt_globsym_save_CFLAGS
db137867
AC
7863 else
7864 echo "cannot find nm_test_func in $nlist" >&5
7865 fi
7866 else
7867 echo "cannot find nm_test_var in $nlist" >&5
7868 fi
7869 else
7870 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7871 fi
7872 else
7873 echo "$progname: failed program was:" >&5
7874 cat conftest.$ac_ext >&5
7875 fi
b676ea3b 7876 rm -rf conftest* conftst*
db137867
AC
7877
7878 # Do not use the global_symbol_pipe unless it works.
6f57a957 7879 if test yes = "$pipe_works"; then
db137867
AC
7880 break
7881 else
7882 lt_cv_sys_global_symbol_pipe=
7883 fi
7884done
7885
7886fi
7887
7888if test -z "$lt_cv_sys_global_symbol_pipe"; then
7889 lt_cv_sys_global_symbol_to_cdecl=
7890fi
7891if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7083c021 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
030272f3 7893$as_echo "failed" >&6; }
db137867 7894else
7083c021 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
030272f3 7896$as_echo "ok" >&6; }
db137867
AC
7897fi
7898
b6d0720c
AC
7899# Response file support.
7900if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7901 nm_file_list_spec='@'
7902elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7903 nm_file_list_spec='@'
7904fi
7905
7906
7907
7908
7909
7910
7911
db137867
AC
7912
7913
7914
7915
7916
db137867 7917
db137867 7918
db137867 7919
db137867 7920
6f57a957
AC
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
db137867 7931
db137867 7932
db137867 7933
db137867 7934
db137867 7935
db137867
AC
7936
7937
b6d0720c
AC
7938
7939
7940
7941
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7943$as_echo_n "checking for sysroot... " >&6; }
7944
7945# Check whether --with-sysroot was given.
7946if test "${with_sysroot+set}" = set; then :
7947 withval=$with_sysroot;
7948else
7949 with_sysroot=no
7950fi
7951
7952
7953lt_sysroot=
6f57a957 7954case $with_sysroot in #(
b6d0720c 7955 yes)
6f57a957 7956 if test yes = "$GCC"; then
b6d0720c
AC
7957 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7958 fi
7959 ;; #(
7960 /*)
7961 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7962 ;; #(
7963 no|'')
7964 ;; #(
7965 *)
6f57a957
AC
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7967$as_echo "$with_sysroot" >&6; }
b6d0720c
AC
7968 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7969 ;;
7970esac
7971
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7973$as_echo "${lt_sysroot:-no}" >&6; }
db137867 7974
db137867 7975
db137867 7976
db137867 7977
7083c021 7978
6f57a957
AC
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7980$as_echo_n "checking for a working dd... " >&6; }
7981if ${ac_cv_path_lt_DD+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983else
7984 printf 0123456789abcdef0123456789abcdef >conftest.i
7985cat conftest.i conftest.i >conftest2.i
7986: ${lt_DD:=$DD}
7987if test -z "$lt_DD"; then
7988 ac_path_lt_DD_found=false
7989 # Loop through the user's path and test for each of PROGNAME-LIST
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
7995 for ac_prog in dd; do
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7998 as_fn_executable_p "$ac_path_lt_DD" || continue
7999if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8000 cmp -s conftest.i conftest.out \
8001 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8002fi
8003 $ac_path_lt_DD_found && break 3
8004 done
8005 done
8006 done
8007IFS=$as_save_IFS
8008 if test -z "$ac_cv_path_lt_DD"; then
8009 :
8010 fi
8011else
8012 ac_cv_path_lt_DD=$lt_DD
8013fi
8014
8015rm -f conftest.i conftest2.i conftest.out
8016fi
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8018$as_echo "$ac_cv_path_lt_DD" >&6; }
8019
8020
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8022$as_echo_n "checking how to truncate binary pipes... " >&6; }
8023if ${lt_cv_truncate_bin+:} false; then :
8024 $as_echo_n "(cached) " >&6
8025else
8026 printf 0123456789abcdef0123456789abcdef >conftest.i
8027cat conftest.i conftest.i >conftest2.i
8028lt_cv_truncate_bin=
8029if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8030 cmp -s conftest.i conftest.out \
8031 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8032fi
8033rm -f conftest.i conftest2.i conftest.out
8034test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8035fi
8036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8037$as_echo "$lt_cv_truncate_bin" >&6; }
8038
8039
8040
8041
8042
8043
8044
8045# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8046func_cc_basename ()
8047{
8048 for cc_temp in $*""; do
8049 case $cc_temp in
8050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8052 \-*) ;;
8053 *) break;;
8054 esac
8055 done
8056 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8057}
8058
7083c021
AC
8059# Check whether --enable-libtool-lock was given.
8060if test "${enable_libtool_lock+set}" = set; then :
8061 enableval=$enable_libtool_lock;
db137867
AC
8062fi
8063
6f57a957 8064test no = "$enable_libtool_lock" || enable_libtool_lock=yes
db137867 8065
7083c021
AC
8066# Some flags need to be propagated to the compiler or linker for good
8067# libtool support.
8068case $host in
8069ia64-*-hpux*)
6f57a957
AC
8070 # Find out what ABI is being produced by ac_compile, and set mode
8071 # options accordingly.
7083c021
AC
8072 echo 'int i;' > conftest.$ac_ext
8073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8074 (eval $ac_compile) 2>&5
8075 ac_status=$?
8076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8077 test $ac_status = 0; }; then
8078 case `/usr/bin/file conftest.$ac_objext` in
8079 *ELF-32*)
6f57a957 8080 HPUX_IA64_MODE=32
7083c021
AC
8081 ;;
8082 *ELF-64*)
6f57a957 8083 HPUX_IA64_MODE=64
7083c021
AC
8084 ;;
8085 esac
8086 fi
8087 rm -rf conftest*
8088 ;;
8089*-*-irix6*)
6f57a957
AC
8090 # Find out what ABI is being produced by ac_compile, and set linker
8091 # options accordingly.
b6d0720c 8092 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7083c021
AC
8093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8094 (eval $ac_compile) 2>&5
8095 ac_status=$?
8096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8097 test $ac_status = 0; }; then
6f57a957 8098 if test yes = "$lt_cv_prog_gnu_ld"; then
7083c021
AC
8099 case `/usr/bin/file conftest.$ac_objext` in
8100 *32-bit*)
8101 LD="${LD-ld} -melf32bsmip"
8102 ;;
8103 *N32*)
8104 LD="${LD-ld} -melf32bmipn32"
8105 ;;
8106 *64-bit*)
8107 LD="${LD-ld} -melf64bmip"
8108 ;;
8109 esac
8110 else
8111 case `/usr/bin/file conftest.$ac_objext` in
8112 *32-bit*)
8113 LD="${LD-ld} -32"
8114 ;;
8115 *N32*)
8116 LD="${LD-ld} -n32"
8117 ;;
8118 *64-bit*)
8119 LD="${LD-ld} -64"
8120 ;;
8121 esac
8122 fi
8123 fi
8124 rm -rf conftest*
8125 ;;
8126
6f57a957
AC
8127mips64*-*linux*)
8128 # Find out what ABI is being produced by ac_compile, and set linker
8129 # options accordingly.
8130 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8132 (eval $ac_compile) 2>&5
8133 ac_status=$?
8134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8135 test $ac_status = 0; }; then
8136 emul=elf
8137 case `/usr/bin/file conftest.$ac_objext` in
8138 *32-bit*)
8139 emul="${emul}32"
8140 ;;
8141 *64-bit*)
8142 emul="${emul}64"
8143 ;;
8144 esac
8145 case `/usr/bin/file conftest.$ac_objext` in
8146 *MSB*)
8147 emul="${emul}btsmip"
8148 ;;
8149 *LSB*)
8150 emul="${emul}ltsmip"
8151 ;;
8152 esac
8153 case `/usr/bin/file conftest.$ac_objext` in
8154 *N32*)
8155 emul="${emul}n32"
8156 ;;
8157 esac
8158 LD="${LD-ld} -m $emul"
8159 fi
8160 rm -rf conftest*
8161 ;;
8162
8163x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7083c021 8164s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6f57a957
AC
8165 # Find out what ABI is being produced by ac_compile, and set linker
8166 # options accordingly. Note that the listed cases only cover the
8167 # situations where additional linker options are needed (such as when
8168 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8169 # vice versa); the common cases where no linker options are needed do
8170 # not appear in the list.
7083c021
AC
8171 echo 'int i;' > conftest.$ac_ext
8172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8173 (eval $ac_compile) 2>&5
8174 ac_status=$?
8175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8176 test $ac_status = 0; }; then
8177 case `/usr/bin/file conftest.o` in
8178 *32-bit*)
8179 case $host in
8180 x86_64-*kfreebsd*-gnu)
8181 LD="${LD-ld} -m elf_i386_fbsd"
8182 ;;
8183 x86_64-*linux*)
6f57a957
AC
8184 case `/usr/bin/file conftest.o` in
8185 *x86-64*)
8186 LD="${LD-ld} -m elf32_x86_64"
8187 ;;
8188 *)
8189 LD="${LD-ld} -m elf_i386"
8190 ;;
8191 esac
8192 ;;
8193 powerpc64le-*linux*)
8194 LD="${LD-ld} -m elf32lppclinux"
7083c021 8195 ;;
6f57a957 8196 powerpc64-*linux*)
7083c021
AC
8197 LD="${LD-ld} -m elf32ppclinux"
8198 ;;
8199 s390x-*linux*)
8200 LD="${LD-ld} -m elf_s390"
8201 ;;
8202 sparc64-*linux*)
8203 LD="${LD-ld} -m elf32_sparc"
8204 ;;
8205 esac
8206 ;;
8207 *64-bit*)
8208 case $host in
8209 x86_64-*kfreebsd*-gnu)
8210 LD="${LD-ld} -m elf_x86_64_fbsd"
8211 ;;
8212 x86_64-*linux*)
8213 LD="${LD-ld} -m elf_x86_64"
8214 ;;
6f57a957
AC
8215 powerpcle-*linux*)
8216 LD="${LD-ld} -m elf64lppc"
8217 ;;
8218 powerpc-*linux*)
7083c021
AC
8219 LD="${LD-ld} -m elf64ppc"
8220 ;;
8221 s390*-*linux*|s390*-*tpf*)
8222 LD="${LD-ld} -m elf64_s390"
8223 ;;
8224 sparc*-*linux*)
8225 LD="${LD-ld} -m elf64_sparc"
8226 ;;
8227 esac
8228 ;;
8229 esac
8230 fi
8231 rm -rf conftest*
8232 ;;
8233
8234*-*-sco3.2v5*)
8235 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6f57a957 8236 SAVE_CFLAGS=$CFLAGS
7083c021
AC
8237 CFLAGS="$CFLAGS -belf"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8239$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
08c2568c 8240if ${lt_cv_cc_needs_belf+:} false; then :
7083c021
AC
8241 $as_echo_n "(cached) " >&6
8242else
8243 ac_ext=c
8244ac_cpp='$CPP $CPPFLAGS'
8245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8247ac_compiler_gnu=$ac_cv_c_compiler_gnu
8248
8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250/* end confdefs.h. */
8251
8252int
8253main ()
8254{
8255
8256 ;
8257 return 0;
8258}
8259_ACEOF
8260if ac_fn_c_try_link "$LINENO"; then :
8261 lt_cv_cc_needs_belf=yes
8262else
8263 lt_cv_cc_needs_belf=no
8264fi
8265rm -f core conftest.err conftest.$ac_objext \
8266 conftest$ac_exeext conftest.$ac_ext
8267 ac_ext=c
8268ac_cpp='$CPP $CPPFLAGS'
8269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8271ac_compiler_gnu=$ac_cv_c_compiler_gnu
8272
8273fi
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8275$as_echo "$lt_cv_cc_needs_belf" >&6; }
6f57a957 8276 if test yes != "$lt_cv_cc_needs_belf"; then
7083c021 8277 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6f57a957 8278 CFLAGS=$SAVE_CFLAGS
7083c021
AC
8279 fi
8280 ;;
a949ab1a 8281*-*solaris*)
6f57a957
AC
8282 # Find out what ABI is being produced by ac_compile, and set linker
8283 # options accordingly.
7083c021
AC
8284 echo 'int i;' > conftest.$ac_ext
8285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8286 (eval $ac_compile) 2>&5
8287 ac_status=$?
8288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8289 test $ac_status = 0; }; then
8290 case `/usr/bin/file conftest.o` in
8291 *64-bit*)
8292 case $lt_cv_prog_gnu_ld in
a949ab1a
AC
8293 yes*)
8294 case $host in
6f57a957 8295 i?86-*-solaris*|x86_64-*-solaris*)
a949ab1a
AC
8296 LD="${LD-ld} -m elf_x86_64"
8297 ;;
8298 sparc*-*-solaris*)
8299 LD="${LD-ld} -m elf64_sparc"
8300 ;;
8301 esac
8302 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8303 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6f57a957 8304 LD=${LD-ld}_sol2
a949ab1a
AC
8305 fi
8306 ;;
7083c021
AC
8307 *)
8308 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8309 LD="${LD-ld} -64"
8310 fi
8311 ;;
8312 esac
8313 ;;
8314 esac
8315 fi
8316 rm -rf conftest*
8317 ;;
8318esac
8319
6f57a957 8320need_locks=$enable_libtool_lock
7083c021 8321
b6d0720c
AC
8322if test -n "$ac_tool_prefix"; then
8323 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8324set dummy ${ac_tool_prefix}mt; ac_word=$2
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8326$as_echo_n "checking for $ac_word... " >&6; }
8327if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8328 $as_echo_n "(cached) " >&6
8329else
8330 if test -n "$MANIFEST_TOOL"; then
8331 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8332else
8333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334for as_dir in $PATH
8335do
8336 IFS=$as_save_IFS
8337 test -z "$as_dir" && as_dir=.
8338 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 8339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b6d0720c
AC
8340 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 break 2
8343 fi
8344done
8345 done
8346IFS=$as_save_IFS
8347
8348fi
8349fi
8350MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8351if test -n "$MANIFEST_TOOL"; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8353$as_echo "$MANIFEST_TOOL" >&6; }
8354else
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356$as_echo "no" >&6; }
8357fi
8358
8359
8360fi
8361if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8362 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8363 # Extract the first word of "mt", so it can be a program name with args.
8364set dummy mt; ac_word=$2
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366$as_echo_n "checking for $ac_word... " >&6; }
8367if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369else
8370 if test -n "$ac_ct_MANIFEST_TOOL"; then
8371 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8372else
8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374for as_dir in $PATH
8375do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b6d0720c
AC
8380 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8383 fi
8384done
8385 done
8386IFS=$as_save_IFS
8387
8388fi
8389fi
8390ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8391if test -n "$ac_ct_MANIFEST_TOOL"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8393$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8394else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396$as_echo "no" >&6; }
8397fi
8398
8399 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8400 MANIFEST_TOOL=":"
8401 else
8402 case $cross_compiling:$ac_tool_warned in
8403yes:)
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8406ac_tool_warned=yes ;;
8407esac
8408 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8409 fi
8410else
8411 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8412fi
8413
8414test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8416$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8417if ${lt_cv_path_mainfest_tool+:} false; then :
8418 $as_echo_n "(cached) " >&6
8419else
8420 lt_cv_path_mainfest_tool=no
8421 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8422 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8423 cat conftest.err >&5
8424 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8425 lt_cv_path_mainfest_tool=yes
8426 fi
8427 rm -f conftest*
8428fi
8429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8430$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6f57a957 8431if test yes != "$lt_cv_path_mainfest_tool"; then
b6d0720c
AC
8432 MANIFEST_TOOL=:
8433fi
8434
8435
8436
8437
8438
7083c021
AC
8439
8440 case $host_os in
8441 rhapsody* | darwin*)
8442 if test -n "$ac_tool_prefix"; then
8443 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8444set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8447if ${ac_cv_prog_DSYMUTIL+:} false; then :
7083c021
AC
8448 $as_echo_n "(cached) " >&6
8449else
8450 if test -n "$DSYMUTIL"; then
8451 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8452else
8453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454for as_dir in $PATH
db137867
AC
8455do
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
7083c021 8458 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 8459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
8460 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
8462 break 2
8463 fi
8464done
7083c021
AC
8465 done
8466IFS=$as_save_IFS
8467
8468fi
8469fi
8470DSYMUTIL=$ac_cv_prog_DSYMUTIL
8471if test -n "$DSYMUTIL"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8473$as_echo "$DSYMUTIL" >&6; }
8474else
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476$as_echo "no" >&6; }
8477fi
8478
8479
8480fi
8481if test -z "$ac_cv_prog_DSYMUTIL"; then
8482 ac_ct_DSYMUTIL=$DSYMUTIL
8483 # Extract the first word of "dsymutil", so it can be a program name with args.
8484set dummy dsymutil; ac_word=$2
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8487if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7083c021
AC
8488 $as_echo_n "(cached) " >&6
8489else
8490 if test -n "$ac_ct_DSYMUTIL"; then
8491 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8492else
8493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494for as_dir in $PATH
8495do
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 8499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
8500 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 break 2
8503 fi
db137867 8504done
7083c021 8505 done
db137867
AC
8506IFS=$as_save_IFS
8507
8508fi
8509fi
7083c021
AC
8510ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8511if test -n "$ac_ct_DSYMUTIL"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8513$as_echo "$ac_ct_DSYMUTIL" >&6; }
db137867 8514else
7083c021 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8516$as_echo "no" >&6; }
db137867
AC
8517fi
8518
7083c021
AC
8519 if test "x$ac_ct_DSYMUTIL" = x; then
8520 DSYMUTIL=":"
db137867
AC
8521 else
8522 case $cross_compiling:$ac_tool_warned in
8523yes:)
7083c021 8524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 8525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
8526ac_tool_warned=yes ;;
8527esac
7083c021 8528 DSYMUTIL=$ac_ct_DSYMUTIL
db137867
AC
8529 fi
8530else
7083c021 8531 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
db137867
AC
8532fi
8533
7083c021
AC
8534 if test -n "$ac_tool_prefix"; then
8535 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8536set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8538$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8539if ${ac_cv_prog_NMEDIT+:} false; then :
030272f3 8540 $as_echo_n "(cached) " >&6
db137867 8541else
7083c021
AC
8542 if test -n "$NMEDIT"; then
8543 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
db137867
AC
8544else
8545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546for as_dir in $PATH
8547do
8548 IFS=$as_save_IFS
8549 test -z "$as_dir" && as_dir=.
7083c021 8550 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 8551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
8552 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
8554 break 2
8555 fi
8556done
7083c021 8557 done
db137867
AC
8558IFS=$as_save_IFS
8559
8560fi
8561fi
7083c021
AC
8562NMEDIT=$ac_cv_prog_NMEDIT
8563if test -n "$NMEDIT"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8565$as_echo "$NMEDIT" >&6; }
db137867 8566else
7083c021 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8568$as_echo "no" >&6; }
db137867
AC
8569fi
8570
8571
8572fi
7083c021
AC
8573if test -z "$ac_cv_prog_NMEDIT"; then
8574 ac_ct_NMEDIT=$NMEDIT
8575 # Extract the first word of "nmedit", so it can be a program name with args.
8576set dummy nmedit; ac_word=$2
8577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8578$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8579if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
030272f3 8580 $as_echo_n "(cached) " >&6
db137867 8581else
7083c021
AC
8582 if test -n "$ac_ct_NMEDIT"; then
8583 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
db137867
AC
8584else
8585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586for as_dir in $PATH
8587do
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
7083c021 8590 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 8591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
8592 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
8594 break 2
8595 fi
8596done
7083c021 8597 done
db137867
AC
8598IFS=$as_save_IFS
8599
8600fi
8601fi
7083c021
AC
8602ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8603if test -n "$ac_ct_NMEDIT"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8605$as_echo "$ac_ct_NMEDIT" >&6; }
db137867 8606else
7083c021 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8608$as_echo "no" >&6; }
db137867
AC
8609fi
8610
7083c021
AC
8611 if test "x$ac_ct_NMEDIT" = x; then
8612 NMEDIT=":"
db137867
AC
8613 else
8614 case $cross_compiling:$ac_tool_warned in
8615yes:)
7083c021 8616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 8617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
8618ac_tool_warned=yes ;;
8619esac
7083c021 8620 NMEDIT=$ac_ct_NMEDIT
db137867
AC
8621 fi
8622else
7083c021 8623 NMEDIT="$ac_cv_prog_NMEDIT"
db137867
AC
8624fi
8625
7083c021
AC
8626 if test -n "$ac_tool_prefix"; then
8627 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8628set dummy ${ac_tool_prefix}lipo; ac_word=$2
8629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8630$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8631if ${ac_cv_prog_LIPO+:} false; then :
7083c021
AC
8632 $as_echo_n "(cached) " >&6
8633else
8634 if test -n "$LIPO"; then
8635 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8636else
8637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638for as_dir in $PATH
8639do
8640 IFS=$as_save_IFS
8641 test -z "$as_dir" && as_dir=.
8642 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 8643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
8644 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8646 break 2
8647 fi
8648done
8649 done
8650IFS=$as_save_IFS
db137867 8651
db137867 8652fi
db137867 8653fi
7083c021
AC
8654LIPO=$ac_cv_prog_LIPO
8655if test -n "$LIPO"; then
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8657$as_echo "$LIPO" >&6; }
db137867 8658else
7083c021 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8660$as_echo "no" >&6; }
db137867
AC
8661fi
8662
7083c021
AC
8663
8664fi
8665if test -z "$ac_cv_prog_LIPO"; then
8666 ac_ct_LIPO=$LIPO
8667 # Extract the first word of "lipo", so it can be a program name with args.
8668set dummy lipo; ac_word=$2
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8670$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8671if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
030272f3 8672 $as_echo_n "(cached) " >&6
db137867 8673else
7083c021
AC
8674 if test -n "$ac_ct_LIPO"; then
8675 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8676else
8677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678for as_dir in $PATH
8679do
8680 IFS=$as_save_IFS
8681 test -z "$as_dir" && as_dir=.
8682 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 8683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
8684 ac_cv_prog_ac_ct_LIPO="lipo"
8685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8686 break 2
8687 fi
8688done
db137867 8689 done
7083c021 8690IFS=$as_save_IFS
db137867 8691
7083c021
AC
8692fi
8693fi
8694ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8695if test -n "$ac_ct_LIPO"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8697$as_echo "$ac_ct_LIPO" >&6; }
db137867 8698else
7083c021 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8700$as_echo "no" >&6; }
db137867
AC
8701fi
8702
7083c021
AC
8703 if test "x$ac_ct_LIPO" = x; then
8704 LIPO=":"
db137867 8705 else
7083c021
AC
8706 case $cross_compiling:$ac_tool_warned in
8707yes:)
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8710ac_tool_warned=yes ;;
8711esac
8712 LIPO=$ac_ct_LIPO
db137867 8713 fi
7083c021
AC
8714else
8715 LIPO="$ac_cv_prog_LIPO"
db137867
AC
8716fi
8717
b676ea3b 8718 if test -n "$ac_tool_prefix"; then
7083c021
AC
8719 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8720set dummy ${ac_tool_prefix}otool; ac_word=$2
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8722$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8723if ${ac_cv_prog_OTOOL+:} false; then :
030272f3 8724 $as_echo_n "(cached) " >&6
b676ea3b 8725else
7083c021
AC
8726 if test -n "$OTOOL"; then
8727 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
b676ea3b
AC
8728else
8729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730for as_dir in $PATH
8731do
8732 IFS=$as_save_IFS
8733 test -z "$as_dir" && as_dir=.
7083c021 8734 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 8735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
8736 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
8738 break 2
8739 fi
8740done
7083c021 8741 done
b676ea3b
AC
8742IFS=$as_save_IFS
8743
8744fi
8745fi
7083c021
AC
8746OTOOL=$ac_cv_prog_OTOOL
8747if test -n "$OTOOL"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8749$as_echo "$OTOOL" >&6; }
b676ea3b 8750else
7083c021 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8752$as_echo "no" >&6; }
b676ea3b
AC
8753fi
8754
8755
8756fi
7083c021
AC
8757if test -z "$ac_cv_prog_OTOOL"; then
8758 ac_ct_OTOOL=$OTOOL
8759 # Extract the first word of "otool", so it can be a program name with args.
8760set dummy otool; ac_word=$2
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8762$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8763if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
030272f3 8764 $as_echo_n "(cached) " >&6
b676ea3b 8765else
7083c021
AC
8766 if test -n "$ac_ct_OTOOL"; then
8767 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
b676ea3b
AC
8768else
8769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770for as_dir in $PATH
8771do
8772 IFS=$as_save_IFS
8773 test -z "$as_dir" && as_dir=.
7083c021 8774 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 8775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
8776 ac_cv_prog_ac_ct_OTOOL="otool"
8777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
8778 break 2
8779 fi
8780done
7083c021 8781 done
b676ea3b
AC
8782IFS=$as_save_IFS
8783
8784fi
8785fi
7083c021
AC
8786ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8787if test -n "$ac_ct_OTOOL"; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8789$as_echo "$ac_ct_OTOOL" >&6; }
b676ea3b 8790else
7083c021 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8792$as_echo "no" >&6; }
b676ea3b
AC
8793fi
8794
7083c021
AC
8795 if test "x$ac_ct_OTOOL" = x; then
8796 OTOOL=":"
b676ea3b
AC
8797 else
8798 case $cross_compiling:$ac_tool_warned in
8799yes:)
7083c021 8800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 8801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b676ea3b
AC
8802ac_tool_warned=yes ;;
8803esac
7083c021 8804 OTOOL=$ac_ct_OTOOL
b676ea3b
AC
8805 fi
8806else
7083c021 8807 OTOOL="$ac_cv_prog_OTOOL"
b676ea3b
AC
8808fi
8809
8810 if test -n "$ac_tool_prefix"; then
7083c021
AC
8811 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8812set dummy ${ac_tool_prefix}otool64; ac_word=$2
8813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8814$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8815if ${ac_cv_prog_OTOOL64+:} false; then :
030272f3 8816 $as_echo_n "(cached) " >&6
b676ea3b 8817else
7083c021
AC
8818 if test -n "$OTOOL64"; then
8819 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
b676ea3b
AC
8820else
8821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822for as_dir in $PATH
8823do
8824 IFS=$as_save_IFS
8825 test -z "$as_dir" && as_dir=.
7083c021 8826 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 8827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
8828 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
8830 break 2
8831 fi
8832done
7083c021 8833 done
b676ea3b
AC
8834IFS=$as_save_IFS
8835
8836fi
8837fi
7083c021
AC
8838OTOOL64=$ac_cv_prog_OTOOL64
8839if test -n "$OTOOL64"; then
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8841$as_echo "$OTOOL64" >&6; }
b676ea3b 8842else
7083c021 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8844$as_echo "no" >&6; }
b676ea3b
AC
8845fi
8846
8847
8848fi
7083c021
AC
8849if test -z "$ac_cv_prog_OTOOL64"; then
8850 ac_ct_OTOOL64=$OTOOL64
8851 # Extract the first word of "otool64", so it can be a program name with args.
8852set dummy otool64; ac_word=$2
8853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8854$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8855if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
030272f3 8856 $as_echo_n "(cached) " >&6
b676ea3b 8857else
7083c021
AC
8858 if test -n "$ac_ct_OTOOL64"; then
8859 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
b676ea3b
AC
8860else
8861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862for as_dir in $PATH
8863do
8864 IFS=$as_save_IFS
8865 test -z "$as_dir" && as_dir=.
7083c021 8866 for ac_exec_ext in '' $ac_executable_extensions; do
bf4e01a4 8867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
8868 ac_cv_prog_ac_ct_OTOOL64="otool64"
8869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
8870 break 2
8871 fi
8872done
7083c021 8873 done
b676ea3b
AC
8874IFS=$as_save_IFS
8875
8876fi
8877fi
7083c021
AC
8878ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8879if test -n "$ac_ct_OTOOL64"; then
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8881$as_echo "$ac_ct_OTOOL64" >&6; }
b676ea3b 8882else
7083c021 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8884$as_echo "no" >&6; }
b676ea3b
AC
8885fi
8886
7083c021
AC
8887 if test "x$ac_ct_OTOOL64" = x; then
8888 OTOOL64=":"
b676ea3b
AC
8889 else
8890 case $cross_compiling:$ac_tool_warned in
8891yes:)
7083c021 8892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 8893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b676ea3b
AC
8894ac_tool_warned=yes ;;
8895esac
7083c021 8896 OTOOL64=$ac_ct_OTOOL64
b676ea3b
AC
8897 fi
8898else
7083c021 8899 OTOOL64="$ac_cv_prog_OTOOL64"
b676ea3b
AC
8900fi
8901
8902
b676ea3b 8903
b676ea3b 8904
7083c021
AC
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8929$as_echo_n "checking for -single_module linker flag... " >&6; }
08c2568c 8930if ${lt_cv_apple_cc_single_mod+:} false; then :
7083c021
AC
8931 $as_echo_n "(cached) " >&6
8932else
8933 lt_cv_apple_cc_single_mod=no
6f57a957 8934 if test -z "$LT_MULTI_MODULE"; then
7083c021
AC
8935 # By default we will add the -single_module flag. You can override
8936 # by either setting the environment variable LT_MULTI_MODULE
8937 # non-empty at configure time, or by adding -multi_module to the
8938 # link flags.
8939 rm -rf libconftest.dylib*
8940 echo "int foo(void){return 1;}" > conftest.c
8941 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8942-dynamiclib -Wl,-single_module conftest.c" >&5
8943 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8944 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8945 _lt_result=$?
a949ab1a
AC
8946 # If there is a non-empty error log, and "single_module"
8947 # appears in it, assume the flag caused a linker warning
8948 if test -s conftest.err && $GREP single_module conftest.err; then
8949 cat conftest.err >&5
8950 # Otherwise, if the output was created with a 0 exit code from
8951 # the compiler, it worked.
6f57a957 8952 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7083c021
AC
8953 lt_cv_apple_cc_single_mod=yes
8954 else
8955 cat conftest.err >&5
8956 fi
8957 rm -rf libconftest.dylib*
8958 rm -f conftest.*
8959 fi
8960fi
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8962$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
a949ab1a 8963
7083c021
AC
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8965$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
08c2568c 8966if ${lt_cv_ld_exported_symbols_list+:} false; then :
7083c021
AC
8967 $as_echo_n "(cached) " >&6
8968else
8969 lt_cv_ld_exported_symbols_list=no
8970 save_LDFLAGS=$LDFLAGS
8971 echo "_main" > conftest.sym
8972 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974/* end confdefs.h. */
8975
8976int
8977main ()
8978{
8979
8980 ;
8981 return 0;
b676ea3b
AC
8982}
8983_ACEOF
7083c021 8984if ac_fn_c_try_link "$LINENO"; then :
b676ea3b
AC
8985 lt_cv_ld_exported_symbols_list=yes
8986else
7083c021 8987 lt_cv_ld_exported_symbols_list=no
b676ea3b 8988fi
7083c021
AC
8989rm -f core conftest.err conftest.$ac_objext \
8990 conftest$ac_exeext conftest.$ac_ext
6f57a957 8991 LDFLAGS=$save_LDFLAGS
b676ea3b
AC
8992
8993fi
7083c021 8994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
030272f3 8995$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
a949ab1a 8996
b6d0720c
AC
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8998$as_echo_n "checking for -force_load linker flag... " >&6; }
8999if ${lt_cv_ld_force_load+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001else
9002 lt_cv_ld_force_load=no
9003 cat > conftest.c << _LT_EOF
9004int forced_loaded() { return 2;}
9005_LT_EOF
9006 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9007 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9008 echo "$AR cru libconftest.a conftest.o" >&5
9009 $AR cru libconftest.a conftest.o 2>&5
9010 echo "$RANLIB libconftest.a" >&5
9011 $RANLIB libconftest.a 2>&5
9012 cat > conftest.c << _LT_EOF
9013int main() { return 0;}
9014_LT_EOF
9015 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9016 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9017 _lt_result=$?
a949ab1a
AC
9018 if test -s conftest.err && $GREP force_load conftest.err; then
9019 cat conftest.err >&5
6f57a957 9020 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
b6d0720c
AC
9021 lt_cv_ld_force_load=yes
9022 else
9023 cat conftest.err >&5
9024 fi
9025 rm -f conftest.err libconftest.a conftest conftest.c
9026 rm -rf conftest.dSYM
9027
9028fi
9029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9030$as_echo "$lt_cv_ld_force_load" >&6; }
b676ea3b 9031 case $host_os in
7083c021 9032 rhapsody* | darwin1.[012])
6f57a957 9033 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
b676ea3b 9034 darwin1.*)
6f57a957 9035 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7083c021 9036 darwin*) # darwin 5.x on
b676ea3b
AC
9037 # if running on 10.5 or later, the deployment target defaults
9038 # to the OS version, if on x86, and 10.4, the deployment
9039 # target defaults to 10.4. Don't you love it?
9040 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7083c021 9041 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6f57a957
AC
9042 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9043 10.[012][,.]*)
9044 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7083c021 9045 10.*)
6f57a957 9046 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
b676ea3b
AC
9047 esac
9048 ;;
9049 esac
6f57a957 9050 if test yes = "$lt_cv_apple_cc_single_mod"; then
b676ea3b
AC
9051 _lt_dar_single_mod='$single_module'
9052 fi
6f57a957
AC
9053 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9054 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
b676ea3b 9055 else
6f57a957 9056 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
b676ea3b 9057 fi
6f57a957 9058 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7083c021 9059 _lt_dsymutil='~$DSYMUTIL $lib || :'
b676ea3b
AC
9060 else
9061 _lt_dsymutil=
9062 fi
9063 ;;
9064 esac
9065
6f57a957
AC
9066# func_munge_path_list VARIABLE PATH
9067# -----------------------------------
9068# VARIABLE is name of variable containing _space_ separated list of
9069# directories to be munged by the contents of PATH, which is string
9070# having a format:
9071# "DIR[:DIR]:"
9072# string "DIR[ DIR]" will be prepended to VARIABLE
9073# ":DIR[:DIR]"
9074# string "DIR[ DIR]" will be appended to VARIABLE
9075# "DIRP[:DIRP]::[DIRA:]DIRA"
9076# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9077# "DIRA[ DIRA]" will be appended to VARIABLE
9078# "DIR[:DIR]"
9079# VARIABLE will be replaced by "DIR[ DIR]"
9080func_munge_path_list ()
9081{
9082 case x$2 in
9083 x)
9084 ;;
9085 *:)
9086 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9087 ;;
9088 x:*)
9089 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9090 ;;
9091 *::*)
9092 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9093 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9094 ;;
9095 *)
9096 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9097 ;;
9098 esac
9099}
9100
7083c021
AC
9101for ac_header in dlfcn.h
9102do :
9103 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9104"
08c2568c 9105if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7083c021
AC
9106 cat >>confdefs.h <<_ACEOF
9107#define HAVE_DLFCN_H 1
9108_ACEOF
b676ea3b 9109
db137867
AC
9110fi
9111
7083c021
AC
9112done
9113
9114
9115
b6d0720c
AC
9116
9117
7083c021
AC
9118# Set options
9119
9120
9121
9122 enable_dlopen=no
9123
9124
9125 enable_win32_dll=no
9126
9127
9128
db137867
AC
9129
9130
9131# Check whether --with-pic was given.
7083c021 9132if test "${with_pic+set}" = set; then :
a949ab1a
AC
9133 withval=$with_pic; lt_p=${PACKAGE-default}
9134 case $withval in
9135 yes|no) pic_mode=$withval ;;
9136 *)
9137 pic_mode=default
9138 # Look at the argument we got. We use all the common list separators.
6f57a957 9139 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a949ab1a 9140 for lt_pkg in $withval; do
6f57a957 9141 IFS=$lt_save_ifs
a949ab1a
AC
9142 if test "X$lt_pkg" = "X$lt_p"; then
9143 pic_mode=yes
9144 fi
9145 done
6f57a957 9146 IFS=$lt_save_ifs
a949ab1a
AC
9147 ;;
9148 esac
db137867
AC
9149else
9150 pic_mode=default
9151fi
9152
7083c021 9153
db137867
AC
9154
9155
db137867 9156
db137867 9157
db137867 9158
db137867 9159
7083c021
AC
9160 # Check whether --enable-fast-install was given.
9161if test "${enable_fast_install+set}" = set; then :
9162 enableval=$enable_fast_install; p=${PACKAGE-default}
9163 case $enableval in
9164 yes) enable_fast_install=yes ;;
9165 no) enable_fast_install=no ;;
9166 *)
9167 enable_fast_install=no
9168 # Look at the argument we got. We use all the common list separators.
6f57a957 9169 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7083c021 9170 for pkg in $enableval; do
6f57a957 9171 IFS=$lt_save_ifs
7083c021
AC
9172 if test "X$pkg" = "X$p"; then
9173 enable_fast_install=yes
9174 fi
9175 done
6f57a957 9176 IFS=$lt_save_ifs
7083c021
AC
9177 ;;
9178 esac
9179else
9180 enable_fast_install=yes
9181fi
db137867 9182
db137867 9183
db137867 9184
db137867
AC
9185
9186
db137867 9187
db137867
AC
9188
9189
6f57a957
AC
9190 shared_archive_member_spec=
9191case $host,$enable_shared in
9192power*-*-aix[5-9]*,yes)
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9194$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9195
9196# Check whether --with-aix-soname was given.
9197if test "${with_aix_soname+set}" = set; then :
9198 withval=$with_aix_soname; case $withval in
9199 aix|svr4|both)
9200 ;;
9201 *)
9202 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9203 ;;
9204 esac
9205 lt_cv_with_aix_soname=$with_aix_soname
9206else
9207 if ${lt_cv_with_aix_soname+:} false; then :
9208 $as_echo_n "(cached) " >&6
9209else
9210 lt_cv_with_aix_soname=aix
9211fi
9212
9213 with_aix_soname=$lt_cv_with_aix_soname
9214fi
9215
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9217$as_echo "$with_aix_soname" >&6; }
9218 if test aix != "$with_aix_soname"; then
9219 # For the AIX way of multilib, we name the shared archive member
9220 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9221 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9222 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9223 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9224 if test 64 = "${OBJECT_MODE-32}"; then
9225 shared_archive_member_spec=shr_64
9226 else
9227 shared_archive_member_spec=shr
9228 fi
9229 fi
9230 ;;
9231*)
9232 with_aix_soname=aix
9233 ;;
9234esac
9235
9236
9237
9238
9239
9240
9241
db137867 9242
db137867 9243
db137867 9244
7083c021 9245# This can be used to rebuild libtool when needed
6f57a957 9246LIBTOOL_DEPS=$ltmain
db137867 9247
7083c021
AC
9248# Always use our own libtool.
9249LIBTOOL='$(SHELL) $(top_builddir)/libtool'
db137867 9250
db137867 9251
db137867 9252
db137867 9253
db137867 9254
db137867 9255
db137867 9256
db137867 9257
db137867 9258
db137867 9259
db137867 9260
db137867 9261
db137867 9262
db137867 9263
db137867 9264
db137867 9265
db137867 9266
db137867 9267
db137867 9268
db137867 9269
db137867 9270
a949ab1a
AC
9271
9272
9273
9274
db137867 9275
db137867 9276
b6d0720c 9277
db137867 9278
db137867 9279
7083c021 9280test -z "$LN_S" && LN_S="ln -s"
db137867 9281
db137867 9282
db137867 9283
db137867 9284
db137867 9285
db137867 9286
db137867 9287
db137867 9288
db137867 9289
db137867 9290
db137867 9291
db137867 9292
db137867 9293
db137867 9294
6f57a957 9295if test -n "${ZSH_VERSION+set}"; then
7083c021 9296 setopt NO_GLOB_SUBST
db137867 9297fi
db137867 9298
7083c021
AC
9299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9300$as_echo_n "checking for objdir... " >&6; }
08c2568c 9301if ${lt_cv_objdir+:} false; then :
7083c021 9302 $as_echo_n "(cached) " >&6
db137867 9303else
7083c021
AC
9304 rm -f .libs 2>/dev/null
9305mkdir .libs 2>/dev/null
9306if test -d .libs; then
9307 lt_cv_objdir=.libs
9308else
9309 # MS-DOS does not allow filenames that begin with a dot.
9310 lt_cv_objdir=_libs
9311fi
9312rmdir .libs 2>/dev/null
db137867 9313fi
7083c021
AC
9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9315$as_echo "$lt_cv_objdir" >&6; }
9316objdir=$lt_cv_objdir
db137867
AC
9317
9318
db137867 9319
db137867 9320
db137867 9321
7083c021
AC
9322cat >>confdefs.h <<_ACEOF
9323#define LT_OBJDIR "$lt_cv_objdir/"
9324_ACEOF
db137867 9325
db137867 9326
db137867 9327
db137867 9328
7083c021
AC
9329case $host_os in
9330aix3*)
9331 # AIX sometimes has problems with the GCC collect2 program. For some
9332 # reason, if we set the COLLECT_NAMES environment variable, the problems
9333 # vanish in a puff of smoke.
6f57a957 9334 if test set != "${COLLECT_NAMES+set}"; then
7083c021
AC
9335 COLLECT_NAMES=
9336 export COLLECT_NAMES
9337 fi
9338 ;;
9339esac
db137867 9340
7083c021
AC
9341# Global variables:
9342ofile=libtool
9343can_build_shared=yes
db137867 9344
6f57a957 9345# All known linkers require a '.a' archive for static linking (except MSVC,
7083c021
AC
9346# which needs '.lib').
9347libext=a
db137867 9348
6f57a957 9349with_gnu_ld=$lt_cv_prog_gnu_ld
db137867 9350
6f57a957
AC
9351old_CC=$CC
9352old_CFLAGS=$CFLAGS
db137867 9353
7083c021
AC
9354# Set sane defaults for various variables
9355test -z "$CC" && CC=cc
9356test -z "$LTCC" && LTCC=$CC
9357test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9358test -z "$LD" && LD=ld
9359test -z "$ac_objext" && ac_objext=o
db137867 9360
6f57a957
AC
9361func_cc_basename $compiler
9362cc_basename=$func_cc_basename_result
db137867 9363
db137867 9364
7083c021
AC
9365# Only perform the check for file, if the check method requires it
9366test -z "$MAGIC_CMD" && MAGIC_CMD=file
9367case $deplibs_check_method in
9368file_magic*)
9369 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9371$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
08c2568c 9372if ${lt_cv_path_MAGIC_CMD+:} false; then :
7083c021
AC
9373 $as_echo_n "(cached) " >&6
9374else
9375 case $MAGIC_CMD in
9376[\\/*] | ?:[\\/]*)
6f57a957 9377 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7083c021
AC
9378 ;;
9379*)
6f57a957
AC
9380 lt_save_MAGIC_CMD=$MAGIC_CMD
9381 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7083c021
AC
9382 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9383 for ac_dir in $ac_dummy; do
6f57a957 9384 IFS=$lt_save_ifs
7083c021 9385 test -z "$ac_dir" && ac_dir=.
6f57a957
AC
9386 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9387 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7083c021
AC
9388 if test -n "$file_magic_test_file"; then
9389 case $deplibs_check_method in
9390 "file_magic "*)
9391 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6f57a957 9392 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7083c021
AC
9393 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9394 $EGREP "$file_magic_regex" > /dev/null; then
9395 :
9396 else
9397 cat <<_LT_EOF 1>&2
db137867 9398
7083c021
AC
9399*** Warning: the command libtool uses to detect shared libraries,
9400*** $file_magic_cmd, produces output that libtool cannot recognize.
9401*** The result is that libtool may fail to recognize shared libraries
9402*** as such. This will affect the creation of libtool libraries that
9403*** depend on shared libraries, but programs linked with such libtool
9404*** libraries will work regardless of this problem. Nevertheless, you
9405*** may want to report the problem to your system manager and/or to
9406*** bug-libtool@gnu.org
db137867 9407
7083c021
AC
9408_LT_EOF
9409 fi ;;
db137867 9410 esac
db137867 9411 fi
7083c021
AC
9412 break
9413 fi
9414 done
6f57a957
AC
9415 IFS=$lt_save_ifs
9416 MAGIC_CMD=$lt_save_MAGIC_CMD
7083c021
AC
9417 ;;
9418esac
9419fi
db137867 9420
6f57a957 9421MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7083c021
AC
9422if test -n "$MAGIC_CMD"; then
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9424$as_echo "$MAGIC_CMD" >&6; }
9425else
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427$as_echo "no" >&6; }
9428fi
db137867 9429
db137867 9430
db137867 9431
7083c021
AC
9432
9433
9434if test -z "$lt_cv_path_MAGIC_CMD"; then
9435 if test -n "$ac_tool_prefix"; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9437$as_echo_n "checking for file... " >&6; }
08c2568c 9438if ${lt_cv_path_MAGIC_CMD+:} false; then :
7083c021 9439 $as_echo_n "(cached) " >&6
db137867 9440else
7083c021
AC
9441 case $MAGIC_CMD in
9442[\\/*] | ?:[\\/]*)
6f57a957 9443 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7083c021
AC
9444 ;;
9445*)
6f57a957
AC
9446 lt_save_MAGIC_CMD=$MAGIC_CMD
9447 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7083c021
AC
9448 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9449 for ac_dir in $ac_dummy; do
6f57a957 9450 IFS=$lt_save_ifs
7083c021 9451 test -z "$ac_dir" && ac_dir=.
6f57a957
AC
9452 if test -f "$ac_dir/file"; then
9453 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7083c021
AC
9454 if test -n "$file_magic_test_file"; then
9455 case $deplibs_check_method in
9456 "file_magic "*)
9457 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6f57a957 9458 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7083c021
AC
9459 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9460 $EGREP "$file_magic_regex" > /dev/null; then
9461 :
9462 else
9463 cat <<_LT_EOF 1>&2
db137867 9464
7083c021
AC
9465*** Warning: the command libtool uses to detect shared libraries,
9466*** $file_magic_cmd, produces output that libtool cannot recognize.
9467*** The result is that libtool may fail to recognize shared libraries
9468*** as such. This will affect the creation of libtool libraries that
9469*** depend on shared libraries, but programs linked with such libtool
9470*** libraries will work regardless of this problem. Nevertheless, you
9471*** may want to report the problem to your system manager and/or to
9472*** bug-libtool@gnu.org
db137867 9473
7083c021
AC
9474_LT_EOF
9475 fi ;;
9476 esac
9477 fi
9478 break
9479 fi
9480 done
6f57a957
AC
9481 IFS=$lt_save_ifs
9482 MAGIC_CMD=$lt_save_MAGIC_CMD
7083c021
AC
9483 ;;
9484esac
db137867
AC
9485fi
9486
6f57a957 9487MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7083c021
AC
9488if test -n "$MAGIC_CMD"; then
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9490$as_echo "$MAGIC_CMD" >&6; }
9491else
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493$as_echo "no" >&6; }
9494fi
db137867 9495
db137867 9496
7083c021
AC
9497 else
9498 MAGIC_CMD=:
9499 fi
9500fi
db137867 9501
7083c021
AC
9502 fi
9503 ;;
db137867 9504esac
db137867 9505
7083c021
AC
9506# Use C for the default configuration in the libtool script
9507
6f57a957 9508lt_save_CC=$CC
7083c021
AC
9509ac_ext=c
9510ac_cpp='$CPP $CPPFLAGS'
9511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9513ac_compiler_gnu=$ac_cv_c_compiler_gnu
9514
9515
9516# Source file extension for C test sources.
9517ac_ext=c
9518
9519# Object file extension for compiled C test sources.
9520objext=o
9521objext=$objext
9522
9523# Code to be used in simple compile tests
9524lt_simple_compile_test_code="int some_variable = 0;"
9525
9526# Code to be used in simple link tests
9527lt_simple_link_test_code='int main(){return(0);}'
9528
9529
9530
9531
9532
9533
9534
9535# If no C compiler was specified, use CC.
9536LTCC=${LTCC-"$CC"}
9537
9538# If no C compiler flags were specified, use CFLAGS.
9539LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9540
9541# Allow CC to be a program name with arguments.
9542compiler=$CC
9543
9544# Save the default compiler, since it gets overwritten when the other
9545# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9546compiler_DEFAULT=$CC
9547
9548# save warnings/boilerplate of simple test code
9549ac_outfile=conftest.$ac_objext
9550echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9551eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9552_lt_compiler_boilerplate=`cat conftest.err`
9553$RM conftest*
9554
9555ac_outfile=conftest.$ac_objext
9556echo "$lt_simple_link_test_code" >conftest.$ac_ext
9557eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9558_lt_linker_boilerplate=`cat conftest.err`
9559$RM -r conftest*
9560
9561
9562if test -n "$compiler"; then
9563
9564lt_prog_compiler_no_builtin_flag=
9565
6f57a957 9566if test yes = "$GCC"; then
b6d0720c
AC
9567 case $cc_basename in
9568 nvcc*)
9569 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9570 *)
9571 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9572 esac
7083c021
AC
9573
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9575$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
08c2568c 9576if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7083c021 9577 $as_echo_n "(cached) " >&6
db137867 9578else
7083c021
AC
9579 lt_cv_prog_compiler_rtti_exceptions=no
9580 ac_outfile=conftest.$ac_objext
9581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6f57a957 9582 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7083c021
AC
9583 # Insert the option either (1) after the last *FLAGS variable, or
9584 # (2) before a word containing "conftest.", or (3) at the end.
9585 # Note that $ac_compile itself does not contain backslashes and begins
9586 # with a dollar sign (not a hyphen), so the echo should work correctly.
9587 # The option is referenced via a variable to avoid confusing sed.
9588 lt_compile=`echo "$ac_compile" | $SED \
9589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9591 -e 's:$: $lt_compiler_flag:'`
b6d0720c 9592 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7083c021
AC
9593 (eval "$lt_compile" 2>conftest.err)
9594 ac_status=$?
9595 cat conftest.err >&5
b6d0720c 9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083c021
AC
9597 if (exit $ac_status) && test -s "$ac_outfile"; then
9598 # The compiler can only warn and ignore the option if not recognized
9599 # So say no if there are warnings other than the usual output.
b6d0720c 9600 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7083c021
AC
9601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9602 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9603 lt_cv_prog_compiler_rtti_exceptions=yes
9604 fi
9605 fi
9606 $RM conftest*
db137867 9607
7083c021
AC
9608fi
9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9610$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
db137867 9611
6f57a957 9612if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7083c021
AC
9613 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9614else
9615 :
db137867
AC
9616fi
9617
7083c021 9618fi
db137867 9619
7083c021
AC
9620
9621
9622
9623
9624
9625 lt_prog_compiler_wl=
9626lt_prog_compiler_pic=
9627lt_prog_compiler_static=
9628
7083c021 9629
6f57a957 9630 if test yes = "$GCC"; then
7083c021
AC
9631 lt_prog_compiler_wl='-Wl,'
9632 lt_prog_compiler_static='-static'
9633
9634 case $host_os in
9635 aix*)
9636 # All AIX code is PIC.
6f57a957 9637 if test ia64 = "$host_cpu"; then
7083c021
AC
9638 # AIX 5 now supports IA64 processor
9639 lt_prog_compiler_static='-Bstatic'
db137867 9640 fi
6f57a957 9641 lt_prog_compiler_pic='-fPIC'
db137867
AC
9642 ;;
9643
9644 amigaos*)
7083c021
AC
9645 case $host_cpu in
9646 powerpc)
9647 # see comment about AmigaOS4 .so support
9648 lt_prog_compiler_pic='-fPIC'
9649 ;;
9650 m68k)
9651 # FIXME: we need at least 68020 code to build shared libraries, but
6f57a957
AC
9652 # adding the '-m68020' flag to GCC prevents building anything better,
9653 # like '-m68040'.
7083c021
AC
9654 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9655 ;;
9656 esac
db137867
AC
9657 ;;
9658
7083c021
AC
9659 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9660 # PIC is the default for these OSes.
db137867
AC
9661 ;;
9662
7083c021
AC
9663 mingw* | cygwin* | pw32* | os2* | cegcc*)
9664 # This hack is so that the source file can tell whether it is being
9665 # built for inclusion in a dll (and should export symbols for example).
9666 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9667 # (--disable-auto-import) libraries
9668 lt_prog_compiler_pic='-DDLL_EXPORT'
6f57a957
AC
9669 case $host_os in
9670 os2*)
9671 lt_prog_compiler_static='$wl-static'
9672 ;;
9673 esac
db137867
AC
9674 ;;
9675
9676 darwin* | rhapsody*)
7083c021
AC
9677 # PIC is the default on this platform
9678 # Common symbols not allowed in MH_DYLIB files
9679 lt_prog_compiler_pic='-fno-common'
db137867
AC
9680 ;;
9681
b6d0720c
AC
9682 haiku*)
9683 # PIC is the default for Haiku.
9684 # The "-static" flag exists, but is broken.
9685 lt_prog_compiler_static=
9686 ;;
9687
7083c021
AC
9688 hpux*)
9689 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9690 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9691 # sets the default TLS model and affects inlining.
9692 case $host_cpu in
9693 hppa*64*)
9694 # +Z the default
9695 ;;
9696 *)
9697 lt_prog_compiler_pic='-fPIC'
9698 ;;
9699 esac
db137867
AC
9700 ;;
9701
7083c021
AC
9702 interix[3-9]*)
9703 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9704 # Instead, we relocate shared libraries at runtime.
db137867
AC
9705 ;;
9706
7083c021
AC
9707 msdosdjgpp*)
9708 # Just because we use GCC doesn't mean we suddenly get shared libraries
9709 # on systems that don't support them.
9710 lt_prog_compiler_can_build_shared=no
9711 enable_shared=no
db137867
AC
9712 ;;
9713
7083c021
AC
9714 *nto* | *qnx*)
9715 # QNX uses GNU C++, but need to define -shared option too, otherwise
9716 # it will coredump.
9717 lt_prog_compiler_pic='-fPIC -shared'
db137867
AC
9718 ;;
9719
7083c021
AC
9720 sysv4*MP*)
9721 if test -d /usr/nec; then
9722 lt_prog_compiler_pic=-Kconform_pic
9723 fi
db137867
AC
9724 ;;
9725
7083c021
AC
9726 *)
9727 lt_prog_compiler_pic='-fPIC'
9728 ;;
9729 esac
b6d0720c
AC
9730
9731 case $cc_basename in
9732 nvcc*) # Cuda Compiler Driver 2.2
9733 lt_prog_compiler_wl='-Xlinker '
a949ab1a
AC
9734 if test -n "$lt_prog_compiler_pic"; then
9735 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9736 fi
b6d0720c
AC
9737 ;;
9738 esac
7083c021
AC
9739 else
9740 # PORTME Check for flag to pass linker flags through the system compiler.
9741 case $host_os in
9742 aix*)
9743 lt_prog_compiler_wl='-Wl,'
6f57a957 9744 if test ia64 = "$host_cpu"; then
7083c021
AC
9745 # AIX 5 now supports IA64 processor
9746 lt_prog_compiler_static='-Bstatic'
db137867 9747 else
7083c021 9748 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
db137867 9749 fi
db137867
AC
9750 ;;
9751
6f57a957
AC
9752 darwin* | rhapsody*)
9753 # PIC is the default on this platform
9754 # Common symbols not allowed in MH_DYLIB files
9755 lt_prog_compiler_pic='-fno-common'
9756 case $cc_basename in
9757 nagfor*)
9758 # NAG Fortran compiler
9759 lt_prog_compiler_wl='-Wl,-Wl,,'
9760 lt_prog_compiler_pic='-PIC'
9761 lt_prog_compiler_static='-Bstatic'
9762 ;;
9763 esac
9764 ;;
9765
7083c021
AC
9766 mingw* | cygwin* | pw32* | os2* | cegcc*)
9767 # This hack is so that the source file can tell whether it is being
9768 # built for inclusion in a dll (and should export symbols for example).
9769 lt_prog_compiler_pic='-DDLL_EXPORT'
6f57a957
AC
9770 case $host_os in
9771 os2*)
9772 lt_prog_compiler_static='$wl-static'
9773 ;;
9774 esac
7083c021 9775 ;;
db137867 9776
7083c021
AC
9777 hpux9* | hpux10* | hpux11*)
9778 lt_prog_compiler_wl='-Wl,'
9779 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9780 # not for PA HP-UX.
9781 case $host_cpu in
9782 hppa*64*|ia64*)
9783 # +Z the default
9784 ;;
9785 *)
9786 lt_prog_compiler_pic='+Z'
9787 ;;
9788 esac
9789 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6f57a957 9790 lt_prog_compiler_static='$wl-a ${wl}archive'
7083c021 9791 ;;
db137867 9792
7083c021
AC
9793 irix5* | irix6* | nonstopux*)
9794 lt_prog_compiler_wl='-Wl,'
9795 # PIC (with -KPIC) is the default.
9796 lt_prog_compiler_static='-non_shared'
db137867
AC
9797 ;;
9798
6f57a957 9799 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7083c021 9800 case $cc_basename in
6f57a957 9801 # old Intel for x86_64, which still supported -KPIC.
7083c021
AC
9802 ecc*)
9803 lt_prog_compiler_wl='-Wl,'
9804 lt_prog_compiler_pic='-KPIC'
9805 lt_prog_compiler_static='-static'
9806 ;;
9807 # icc used to be incompatible with GCC.
9808 # ICC 10 doesn't accept -KPIC any more.
9809 icc* | ifort*)
9810 lt_prog_compiler_wl='-Wl,'
9811 lt_prog_compiler_pic='-fPIC'
9812 lt_prog_compiler_static='-static'
9813 ;;
9814 # Lahey Fortran 8.1.
9815 lf95*)
9816 lt_prog_compiler_wl='-Wl,'
9817 lt_prog_compiler_pic='--shared'
9818 lt_prog_compiler_static='--static'
9819 ;;
b6d0720c
AC
9820 nagfor*)
9821 # NAG Fortran compiler
9822 lt_prog_compiler_wl='-Wl,-Wl,,'
9823 lt_prog_compiler_pic='-PIC'
9824 lt_prog_compiler_static='-Bstatic'
9825 ;;
6f57a957
AC
9826 tcc*)
9827 # Fabrice Bellard et al's Tiny C Compiler
9828 lt_prog_compiler_wl='-Wl,'
9829 lt_prog_compiler_pic='-fPIC'
9830 lt_prog_compiler_static='-static'
9831 ;;
b6d0720c 9832 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7083c021
AC
9833 # Portland Group compilers (*not* the Pentium gcc compiler,
9834 # which looks to be a dead project)
9835 lt_prog_compiler_wl='-Wl,'
9836 lt_prog_compiler_pic='-fpic'
9837 lt_prog_compiler_static='-Bstatic'
9838 ;;
9839 ccc*)
9840 lt_prog_compiler_wl='-Wl,'
9841 # All Alpha code is PIC.
9842 lt_prog_compiler_static='-non_shared'
9843 ;;
b6d0720c
AC
9844 xl* | bgxl* | bgf* | mpixl*)
9845 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7083c021
AC
9846 lt_prog_compiler_wl='-Wl,'
9847 lt_prog_compiler_pic='-qpic'
9848 lt_prog_compiler_static='-qstaticlink'
9849 ;;
9850 *)
9851 case `$CC -V 2>&1 | sed 5q` in
a949ab1a 9852 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
b6d0720c 9853 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7083c021
AC
9854 lt_prog_compiler_pic='-KPIC'
9855 lt_prog_compiler_static='-Bstatic'
b6d0720c 9856 lt_prog_compiler_wl=''
db137867 9857 ;;
a949ab1a
AC
9858 *Sun\ F* | *Sun*Fortran*)
9859 lt_prog_compiler_pic='-KPIC'
9860 lt_prog_compiler_static='-Bstatic'
9861 lt_prog_compiler_wl='-Qoption ld '
9862 ;;
b6d0720c
AC
9863 *Sun\ C*)
9864 # Sun C 5.9
7083c021
AC
9865 lt_prog_compiler_pic='-KPIC'
9866 lt_prog_compiler_static='-Bstatic'
b6d0720c 9867 lt_prog_compiler_wl='-Wl,'
db137867 9868 ;;
a949ab1a
AC
9869 *Intel*\ [CF]*Compiler*)
9870 lt_prog_compiler_wl='-Wl,'
9871 lt_prog_compiler_pic='-fPIC'
9872 lt_prog_compiler_static='-static'
9873 ;;
9874 *Portland\ Group*)
9875 lt_prog_compiler_wl='-Wl,'
9876 lt_prog_compiler_pic='-fpic'
9877 lt_prog_compiler_static='-Bstatic'
9878 ;;
db137867 9879 esac
7083c021
AC
9880 ;;
9881 esac
9882 ;;
db137867 9883
7083c021
AC
9884 newsos6)
9885 lt_prog_compiler_pic='-KPIC'
9886 lt_prog_compiler_static='-Bstatic'
9887 ;;
db137867 9888
7083c021
AC
9889 *nto* | *qnx*)
9890 # QNX uses GNU C++, but need to define -shared option too, otherwise
9891 # it will coredump.
9892 lt_prog_compiler_pic='-fPIC -shared'
db137867
AC
9893 ;;
9894
7083c021
AC
9895 osf3* | osf4* | osf5*)
9896 lt_prog_compiler_wl='-Wl,'
9897 # All OSF/1 code is PIC.
9898 lt_prog_compiler_static='-non_shared'
db137867
AC
9899 ;;
9900
7083c021
AC
9901 rdos*)
9902 lt_prog_compiler_static='-non_shared'
db137867
AC
9903 ;;
9904
7083c021
AC
9905 solaris*)
9906 lt_prog_compiler_pic='-KPIC'
9907 lt_prog_compiler_static='-Bstatic'
9908 case $cc_basename in
b6d0720c 9909 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7083c021
AC
9910 lt_prog_compiler_wl='-Qoption ld ';;
9911 *)
9912 lt_prog_compiler_wl='-Wl,';;
9913 esac
db137867
AC
9914 ;;
9915
7083c021
AC
9916 sunos4*)
9917 lt_prog_compiler_wl='-Qoption ld '
9918 lt_prog_compiler_pic='-PIC'
9919 lt_prog_compiler_static='-Bstatic'
db137867
AC
9920 ;;
9921
7083c021
AC
9922 sysv4 | sysv4.2uw2* | sysv4.3*)
9923 lt_prog_compiler_wl='-Wl,'
9924 lt_prog_compiler_pic='-KPIC'
9925 lt_prog_compiler_static='-Bstatic'
db137867
AC
9926 ;;
9927
7083c021 9928 sysv4*MP*)
6f57a957 9929 if test -d /usr/nec; then
7083c021
AC
9930 lt_prog_compiler_pic='-Kconform_pic'
9931 lt_prog_compiler_static='-Bstatic'
db137867 9932 fi
db137867
AC
9933 ;;
9934
7083c021
AC
9935 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9936 lt_prog_compiler_wl='-Wl,'
9937 lt_prog_compiler_pic='-KPIC'
9938 lt_prog_compiler_static='-Bstatic'
9939 ;;
db137867 9940
7083c021
AC
9941 unicos*)
9942 lt_prog_compiler_wl='-Wl,'
9943 lt_prog_compiler_can_build_shared=no
db137867
AC
9944 ;;
9945
7083c021
AC
9946 uts4*)
9947 lt_prog_compiler_pic='-pic'
9948 lt_prog_compiler_static='-Bstatic'
db137867
AC
9949 ;;
9950
7083c021
AC
9951 *)
9952 lt_prog_compiler_can_build_shared=no
db137867 9953 ;;
7083c021
AC
9954 esac
9955 fi
db137867 9956
7083c021 9957case $host_os in
6f57a957 9958 # For platforms that do not support PIC, -DPIC is meaningless:
7083c021
AC
9959 *djgpp*)
9960 lt_prog_compiler_pic=
9961 ;;
9962 *)
9963 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9964 ;;
9965esac
db137867 9966
b6d0720c
AC
9967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9968$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9969if ${lt_cv_prog_compiler_pic+:} false; then :
9970 $as_echo_n "(cached) " >&6
9971else
9972 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9973fi
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9975$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9976lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
db137867 9977
7083c021
AC
9978#
9979# Check to make sure the PIC flag actually works.
9980#
9981if test -n "$lt_prog_compiler_pic"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9983$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
08c2568c 9984if ${lt_cv_prog_compiler_pic_works+:} false; then :
7083c021
AC
9985 $as_echo_n "(cached) " >&6
9986else
9987 lt_cv_prog_compiler_pic_works=no
9988 ac_outfile=conftest.$ac_objext
9989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6f57a957 9990 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
7083c021
AC
9991 # Insert the option either (1) after the last *FLAGS variable, or
9992 # (2) before a word containing "conftest.", or (3) at the end.
9993 # Note that $ac_compile itself does not contain backslashes and begins
9994 # with a dollar sign (not a hyphen), so the echo should work correctly.
9995 # The option is referenced via a variable to avoid confusing sed.
9996 lt_compile=`echo "$ac_compile" | $SED \
9997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9999 -e 's:$: $lt_compiler_flag:'`
b6d0720c 10000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7083c021
AC
10001 (eval "$lt_compile" 2>conftest.err)
10002 ac_status=$?
10003 cat conftest.err >&5
b6d0720c 10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083c021
AC
10005 if (exit $ac_status) && test -s "$ac_outfile"; then
10006 # The compiler can only warn and ignore the option if not recognized
10007 # So say no if there are warnings other than the usual output.
b6d0720c 10008 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7083c021
AC
10009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10010 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10011 lt_cv_prog_compiler_pic_works=yes
10012 fi
10013 fi
10014 $RM conftest*
10015
10016fi
10017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10018$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10019
6f57a957 10020if test yes = "$lt_cv_prog_compiler_pic_works"; then
7083c021
AC
10021 case $lt_prog_compiler_pic in
10022 "" | " "*) ;;
10023 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10024 esac
10025else
10026 lt_prog_compiler_pic=
10027 lt_prog_compiler_can_build_shared=no
10028fi
10029
10030fi
10031
10032
db137867 10033
db137867 10034
db137867 10035
db137867 10036
b6d0720c
AC
10037
10038
10039
10040
10041
db137867 10042#
7083c021 10043# Check to make sure the static flag actually works.
db137867 10044#
7083c021
AC
10045wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10047$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
08c2568c 10048if ${lt_cv_prog_compiler_static_works+:} false; then :
7083c021
AC
10049 $as_echo_n "(cached) " >&6
10050else
10051 lt_cv_prog_compiler_static_works=no
6f57a957 10052 save_LDFLAGS=$LDFLAGS
7083c021
AC
10053 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10054 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10056 # The linker can only warn and ignore the option if not recognized
10057 # So say no if there are warnings
10058 if test -s conftest.err; then
10059 # Append any errors to the config.log.
10060 cat conftest.err 1>&5
b6d0720c 10061 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7083c021
AC
10062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10063 if diff conftest.exp conftest.er2 >/dev/null; then
10064 lt_cv_prog_compiler_static_works=yes
10065 fi
10066 else
10067 lt_cv_prog_compiler_static_works=yes
10068 fi
10069 fi
10070 $RM -r conftest*
6f57a957 10071 LDFLAGS=$save_LDFLAGS
db137867 10072
7083c021
AC
10073fi
10074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10075$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
db137867 10076
6f57a957 10077if test yes = "$lt_cv_prog_compiler_static_works"; then
7083c021
AC
10078 :
10079else
10080 lt_prog_compiler_static=
10081fi
db137867 10082
db137867 10083
db137867 10084
db137867 10085
db137867 10086
db137867 10087
db137867 10088
7083c021
AC
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10090$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
08c2568c 10091if ${lt_cv_prog_compiler_c_o+:} false; then :
7083c021
AC
10092 $as_echo_n "(cached) " >&6
10093else
10094 lt_cv_prog_compiler_c_o=no
10095 $RM -r conftest 2>/dev/null
10096 mkdir conftest
10097 cd conftest
10098 mkdir out
10099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
db137867 10100
7083c021
AC
10101 lt_compiler_flag="-o out/conftest2.$ac_objext"
10102 # Insert the option either (1) after the last *FLAGS variable, or
10103 # (2) before a word containing "conftest.", or (3) at the end.
10104 # Note that $ac_compile itself does not contain backslashes and begins
10105 # with a dollar sign (not a hyphen), so the echo should work correctly.
10106 lt_compile=`echo "$ac_compile" | $SED \
10107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10109 -e 's:$: $lt_compiler_flag:'`
b6d0720c 10110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7083c021
AC
10111 (eval "$lt_compile" 2>out/conftest.err)
10112 ac_status=$?
10113 cat out/conftest.err >&5
b6d0720c 10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083c021
AC
10115 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10116 then
10117 # The compiler can only warn and ignore the option if not recognized
10118 # So say no if there are warnings
b6d0720c 10119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7083c021
AC
10120 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10121 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10122 lt_cv_prog_compiler_c_o=yes
10123 fi
10124 fi
10125 chmod u+w . 2>&5
10126 $RM conftest*
10127 # SGI C++ compiler will create directory out/ii_files/ for
10128 # template instantiation
10129 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10130 $RM out/* && rmdir out
10131 cd ..
10132 $RM -r conftest
10133 $RM conftest*
db137867 10134
7083c021
AC
10135fi
10136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10137$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
db137867 10138
db137867 10139
db137867 10140
db137867 10141
db137867 10142
db137867 10143
7083c021
AC
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10145$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
08c2568c 10146if ${lt_cv_prog_compiler_c_o+:} false; then :
7083c021
AC
10147 $as_echo_n "(cached) " >&6
10148else
10149 lt_cv_prog_compiler_c_o=no
10150 $RM -r conftest 2>/dev/null
10151 mkdir conftest
10152 cd conftest
10153 mkdir out
10154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
db137867 10155
7083c021
AC
10156 lt_compiler_flag="-o out/conftest2.$ac_objext"
10157 # Insert the option either (1) after the last *FLAGS variable, or
10158 # (2) before a word containing "conftest.", or (3) at the end.
10159 # Note that $ac_compile itself does not contain backslashes and begins
10160 # with a dollar sign (not a hyphen), so the echo should work correctly.
10161 lt_compile=`echo "$ac_compile" | $SED \
10162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10164 -e 's:$: $lt_compiler_flag:'`
b6d0720c 10165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7083c021
AC
10166 (eval "$lt_compile" 2>out/conftest.err)
10167 ac_status=$?
10168 cat out/conftest.err >&5
b6d0720c 10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083c021
AC
10170 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10171 then
10172 # The compiler can only warn and ignore the option if not recognized
10173 # So say no if there are warnings
b6d0720c 10174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7083c021
AC
10175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10177 lt_cv_prog_compiler_c_o=yes
10178 fi
10179 fi
10180 chmod u+w . 2>&5
10181 $RM conftest*
10182 # SGI C++ compiler will create directory out/ii_files/ for
10183 # template instantiation
10184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10185 $RM out/* && rmdir out
10186 cd ..
10187 $RM -r conftest
10188 $RM conftest*
db137867 10189
7083c021
AC
10190fi
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10192$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10193
10194
10195
10196
6f57a957
AC
10197hard_links=nottested
10198if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
7083c021
AC
10199 # do not overwrite the value of need_locks provided by the user
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10201$as_echo_n "checking if we can lock with hard links... " >&6; }
10202 hard_links=yes
10203 $RM conftest*
10204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10205 touch conftest.a
10206 ln conftest.a conftest.b 2>&5 || hard_links=no
10207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10209$as_echo "$hard_links" >&6; }
6f57a957
AC
10210 if test no = "$hard_links"; then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10212$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
7083c021
AC
10213 need_locks=warn
10214 fi
10215else
10216 need_locks=no
10217fi
10218
10219
10220
10221
10222
10223
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10225$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10226
10227 runpath_var=
10228 allow_undefined_flag=
10229 always_export_symbols=no
10230 archive_cmds=
10231 archive_expsym_cmds=
10232 compiler_needs_object=no
10233 enable_shared_with_static_runtimes=no
10234 export_dynamic_flag_spec=
10235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10236 hardcode_automatic=no
10237 hardcode_direct=no
10238 hardcode_direct_absolute=no
10239 hardcode_libdir_flag_spec=
7083c021
AC
10240 hardcode_libdir_separator=
10241 hardcode_minus_L=no
10242 hardcode_shlibpath_var=unsupported
10243 inherit_rpath=no
10244 link_all_deplibs=unknown
10245 module_cmds=
10246 module_expsym_cmds=
10247 old_archive_from_new_cmds=
10248 old_archive_from_expsyms_cmds=
10249 thread_safe_flag_spec=
10250 whole_archive_flag_spec=
10251 # include_expsyms should be a list of space-separated symbols to be *always*
10252 # included in the symbol list
10253 include_expsyms=
10254 # exclude_expsyms can be an extended regexp of symbols to exclude
6f57a957
AC
10255 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10256 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10257 # as well as any symbol that contains 'd'.
7083c021
AC
10258 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10259 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10260 # platforms (ab)use it in PIC code, but their linkers get confused if
10261 # the symbol is explicitly referenced. Since portable code cannot
10262 # rely on this symbol name, it's probably fine to never include it in
10263 # preloaded symbol tables.
10264 # Exclude shared library initialization/finalization symbols.
10265 extract_expsyms_cmds=
db137867 10266
db137867 10267 case $host_os in
7083c021
AC
10268 cygwin* | mingw* | pw32* | cegcc*)
10269 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10270 # When not using gcc, we currently assume that we are using
10271 # Microsoft Visual C++.
6f57a957 10272 if test yes != "$GCC"; then
7083c021
AC
10273 with_gnu_ld=no
10274 fi
db137867 10275 ;;
7083c021
AC
10276 interix*)
10277 # we just hope/assume this is gcc and not c89 (= MSVC++)
10278 with_gnu_ld=yes
db137867 10279 ;;
6f57a957 10280 openbsd* | bitrig*)
7083c021 10281 with_gnu_ld=no
db137867 10282 ;;
db137867 10283 esac
db137867 10284
7083c021 10285 ld_shlibs=yes
b6d0720c
AC
10286
10287 # On some targets, GNU ld is compatible enough with the native linker
10288 # that we're better off using the native interface for both.
10289 lt_use_gnu_ld_interface=no
6f57a957 10290 if test yes = "$with_gnu_ld"; then
b6d0720c
AC
10291 case $host_os in
10292 aix*)
10293 # The AIX port of GNU ld has always aspired to compatibility
10294 # with the native linker. However, as the warning in the GNU ld
10295 # block says, versions before 2.19.5* couldn't really create working
10296 # shared libraries, regardless of the interface used.
10297 case `$LD -v 2>&1` in
10298 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10299 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10300 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10301 *)
10302 lt_use_gnu_ld_interface=yes
10303 ;;
10304 esac
10305 ;;
10306 *)
10307 lt_use_gnu_ld_interface=yes
10308 ;;
10309 esac
10310 fi
10311
6f57a957 10312 if test yes = "$lt_use_gnu_ld_interface"; then
7083c021 10313 # If archive_cmds runs LD, not CC, wlarc should be empty
6f57a957 10314 wlarc='$wl'
db137867 10315
7083c021
AC
10316 # Set some defaults for GNU ld with shared library support. These
10317 # are reset later if shared libraries are not supported. Putting them
10318 # here allows them to be overridden if necessary.
10319 runpath_var=LD_RUN_PATH
6f57a957
AC
10320 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10321 export_dynamic_flag_spec='$wl--export-dynamic'
7083c021
AC
10322 # ancient GNU ld didn't support --whole-archive et. al.
10323 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6f57a957 10324 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
db137867 10325 else
7083c021 10326 whole_archive_flag_spec=
db137867 10327 fi
7083c021 10328 supports_anon_versioning=no
6f57a957 10329 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
b6d0720c 10330 *GNU\ gold*) supports_anon_versioning=yes ;;
7083c021
AC
10331 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10332 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10333 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10334 *\ 2.11.*) ;; # other 2.11 versions
10335 *) supports_anon_versioning=yes ;;
db137867 10336 esac
db137867 10337
7083c021
AC
10338 # See if GNU ld supports shared libraries.
10339 case $host_os in
10340 aix[3-9]*)
10341 # On AIX/PPC, the GNU linker is very broken
6f57a957 10342 if test ia64 != "$host_cpu"; then
7083c021
AC
10343 ld_shlibs=no
10344 cat <<_LT_EOF 1>&2
db137867 10345
b6d0720c 10346*** Warning: the GNU linker, at least up to release 2.19, is reported
7083c021
AC
10347*** to be unable to reliably create shared libraries on AIX.
10348*** Therefore, libtool is disabling shared libraries support. If you
b6d0720c
AC
10349*** really care for shared libraries, you may want to install binutils
10350*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10351*** You will then need to restart the configuration process.
db137867 10352
7083c021
AC
10353_LT_EOF
10354 fi
10355 ;;
db137867
AC
10356
10357 amigaos*)
7083c021
AC
10358 case $host_cpu in
10359 powerpc)
10360 # see comment about AmigaOS4 .so support
6f57a957 10361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7083c021
AC
10362 archive_expsym_cmds=''
10363 ;;
10364 m68k)
10365 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)'
10366 hardcode_libdir_flag_spec='-L$libdir'
10367 hardcode_minus_L=yes
10368 ;;
10369 esac
db137867
AC
10370 ;;
10371
10372 beos*)
7083c021
AC
10373 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10374 allow_undefined_flag=unsupported
db137867
AC
10375 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10376 # support --undefined. This deserves some investigation. FIXME
6f57a957 10377 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
db137867 10378 else
7083c021 10379 ld_shlibs=no
db137867
AC
10380 fi
10381 ;;
10382
7083c021
AC
10383 cygwin* | mingw* | pw32* | cegcc*)
10384 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
db137867 10385 # as there is no search path for DLLs.
7083c021 10386 hardcode_libdir_flag_spec='-L$libdir'
6f57a957 10387 export_dynamic_flag_spec='$wl--export-all-symbols'
7083c021
AC
10388 allow_undefined_flag=unsupported
10389 always_export_symbols=no
10390 enable_shared_with_static_runtimes=yes
b6d0720c
AC
10391 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'
10392 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
7083c021
AC
10393
10394 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6f57a957
AC
10395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10396 # If the export-symbols file already is a .def file, use it as
10397 # is; otherwise, prepend EXPORTS...
10398 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10399 cp $export_symbols $output_objdir/$soname.def;
10400 else
10401 echo EXPORTS > $output_objdir/$soname.def;
10402 cat $export_symbols >> $output_objdir/$soname.def;
10403 fi~
10404 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
db137867 10405 else
7083c021 10406 ld_shlibs=no
db137867
AC
10407 fi
10408 ;;
10409
b6d0720c 10410 haiku*)
6f57a957 10411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
b6d0720c
AC
10412 link_all_deplibs=yes
10413 ;;
10414
6f57a957
AC
10415 os2*)
10416 hardcode_libdir_flag_spec='-L$libdir'
10417 hardcode_minus_L=yes
10418 allow_undefined_flag=unsupported
10419 shrext_cmds=.dll
10420 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10421 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10422 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10423 $ECHO EXPORTS >> $output_objdir/$libname.def~
10424 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10425 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10426 emximp -o $lib $output_objdir/$libname.def'
10427 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10428 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10429 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10430 $ECHO EXPORTS >> $output_objdir/$libname.def~
10431 prefix_cmds="$SED"~
10432 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10433 prefix_cmds="$prefix_cmds -e 1d";
10434 fi~
10435 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10436 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10437 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10438 emximp -o $lib $output_objdir/$libname.def'
10439 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10440 enable_shared_with_static_runtimes=yes
10441 ;;
10442
db137867 10443 interix[3-9]*)
7083c021
AC
10444 hardcode_direct=no
10445 hardcode_shlibpath_var=no
6f57a957
AC
10446 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10447 export_dynamic_flag_spec='$wl-E'
db137867
AC
10448 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10449 # Instead, shared libraries are loaded at an image base (0x10000000 by
10450 # default) and relocated if they conflict, which is a slow very memory
10451 # consuming and fragmenting process. To avoid this, we pick a random,
10452 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10453 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6f57a957
AC
10454 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10455 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'
db137867
AC
10456 ;;
10457
b6d0720c 10458 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7083c021 10459 tmp_diet=no
6f57a957 10460 if test linux-dietlibc = "$host_os"; then
7083c021
AC
10461 case $cc_basename in
10462 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10463 esac
10464 fi
10465 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6f57a957 10466 && test no = "$tmp_diet"
7083c021 10467 then
b6d0720c 10468 tmp_addflag=' $pic_flag'
7083c021 10469 tmp_sharedflag='-shared'
db137867 10470 case $cc_basename,$host_cpu in
7083c021 10471 pgcc*) # Portland Group C compiler
6f57a957 10472 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'
db137867
AC
10473 tmp_addflag=' $pic_flag'
10474 ;;
b6d0720c
AC
10475 pgf77* | pgf90* | pgf95* | pgfortran*)
10476 # Portland Group f77 and f90 compilers
6f57a957 10477 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'
db137867 10478 tmp_addflag=' $pic_flag -Mnomain' ;;
7083c021 10479 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
db137867
AC
10480 tmp_addflag=' -i_dynamic' ;;
10481 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10482 tmp_addflag=' -i_dynamic -nofor_main' ;;
10483 ifc* | ifort*) # Intel Fortran compiler
10484 tmp_addflag=' -nofor_main' ;;
7083c021
AC
10485 lf95*) # Lahey Fortran 8.1
10486 whole_archive_flag_spec=
10487 tmp_sharedflag='--shared' ;;
6f57a957
AC
10488 nagfor*) # NAGFOR 5.3
10489 tmp_sharedflag='-Wl,-shared' ;;
b6d0720c 10490 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7083c021
AC
10491 tmp_sharedflag='-qmkshrobj'
10492 tmp_addflag= ;;
b6d0720c 10493 nvcc*) # Cuda Compiler Driver 2.2
6f57a957 10494 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'
b6d0720c
AC
10495 compiler_needs_object=yes
10496 ;;
db137867
AC
10497 esac
10498 case `$CC -V 2>&1 | sed 5q` in
10499 *Sun\ C*) # Sun C 5.9
6f57a957 10500 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'
7083c021 10501 compiler_needs_object=yes
db137867
AC
10502 tmp_sharedflag='-G' ;;
10503 *Sun\ F*) # Sun Fortran 8.3
10504 tmp_sharedflag='-G' ;;
db137867 10505 esac
6f57a957 10506 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
db137867 10507
6f57a957 10508 if test yes = "$supports_anon_versioning"; then
7083c021 10509 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6f57a957
AC
10510 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10511 echo "local: *; };" >> $output_objdir/$libname.ver~
10512 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
7083c021
AC
10513 fi
10514
10515 case $cc_basename in
6f57a957
AC
10516 tcc*)
10517 export_dynamic_flag_spec='-rdynamic'
10518 ;;
b6d0720c 10519 xlf* | bgf* | bgxlf* | mpixlf*)
7083c021
AC
10520 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10521 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
6f57a957 10522 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
b6d0720c 10523 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
6f57a957 10524 if test yes = "$supports_anon_versioning"; then
7083c021 10525 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6f57a957
AC
10526 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10527 echo "local: *; };" >> $output_objdir/$libname.ver~
10528 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7083c021
AC
10529 fi
10530 ;;
10531 esac
db137867 10532 else
7083c021 10533 ld_shlibs=no
db137867
AC
10534 fi
10535 ;;
10536
96f4052b 10537 netbsd*)
7083c021
AC
10538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10539 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
db137867
AC
10540 wlarc=
10541 else
6f57a957
AC
10542 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10543 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
db137867
AC
10544 fi
10545 ;;
10546
10547 solaris*)
7083c021
AC
10548 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10549 ld_shlibs=no
10550 cat <<_LT_EOF 1>&2
db137867
AC
10551
10552*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10553*** create shared libraries on Solaris systems. Therefore, libtool
10554*** is disabling shared libraries support. We urge you to upgrade GNU
10555*** binutils to release 2.9.1 or newer. Another option is to modify
10556*** your PATH or compiler configuration so that the native linker is
10557*** used, and then restart.
10558
7083c021
AC
10559_LT_EOF
10560 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6f57a957
AC
10561 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10562 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
db137867 10563 else
7083c021 10564 ld_shlibs=no
db137867
AC
10565 fi
10566 ;;
10567
10568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10569 case `$LD -v 2>&1` in
10570 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7083c021 10571 ld_shlibs=no
db137867
AC
10572 cat <<_LT_EOF 1>&2
10573
6f57a957 10574*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
db137867
AC
10575*** reliably create shared libraries on SCO systems. Therefore, libtool
10576*** is disabling shared libraries support. We urge you to upgrade GNU
10577*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10578*** your PATH or compiler configuration so that the native linker is
10579*** used, and then restart.
10580
10581_LT_EOF
10582 ;;
10583 *)
7083c021
AC
10584 # For security reasons, it is highly recommended that you always
10585 # use absolute paths for naming shared libraries, and exclude the
10586 # DT_RUNPATH tag from executables and libraries. But doing so
10587 # requires that you compile everything twice, which is a pain.
10588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6f57a957
AC
10589 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10591 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
db137867 10592 else
7083c021 10593 ld_shlibs=no
db137867
AC
10594 fi
10595 ;;
10596 esac
10597 ;;
10598
10599 sunos4*)
7083c021 10600 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
db137867 10601 wlarc=
7083c021
AC
10602 hardcode_direct=yes
10603 hardcode_shlibpath_var=no
db137867
AC
10604 ;;
10605
10606 *)
7083c021 10607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6f57a957
AC
10608 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10609 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
db137867 10610 else
7083c021 10611 ld_shlibs=no
db137867
AC
10612 fi
10613 ;;
10614 esac
10615
6f57a957 10616 if test no = "$ld_shlibs"; then
db137867 10617 runpath_var=
7083c021
AC
10618 hardcode_libdir_flag_spec=
10619 export_dynamic_flag_spec=
10620 whole_archive_flag_spec=
db137867
AC
10621 fi
10622 else
10623 # PORTME fill in a description of your system's linker (not GNU ld)
10624 case $host_os in
10625 aix3*)
7083c021
AC
10626 allow_undefined_flag=unsupported
10627 always_export_symbols=yes
10628 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'
db137867
AC
10629 # Note: this linker hardcodes the directories in LIBPATH if there
10630 # are no directories specified by -L.
7083c021 10631 hardcode_minus_L=yes
6f57a957 10632 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
db137867
AC
10633 # Neither direct hardcoding nor static linking is supported with a
10634 # broken collect2.
7083c021 10635 hardcode_direct=unsupported
db137867
AC
10636 fi
10637 ;;
10638
b676ea3b 10639 aix[4-9]*)
6f57a957 10640 if test ia64 = "$host_cpu"; then
db137867
AC
10641 # On IA64, the linker does run time linking by default, so we don't
10642 # have to do anything special.
10643 aix_use_runtimelinking=no
10644 exp_sym_flag='-Bexport'
6f57a957 10645 no_entry_flag=
db137867
AC
10646 else
10647 # If we're using GNU nm, then we don't want the "-C" option.
6f57a957
AC
10648 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10649 # Without the "-l" option, or with the "-B" option, AIX nm treats
10650 # weak defined symbols like other global defined symbols, whereas
10651 # GNU nm marks them as "W".
10652 # While the 'weak' keyword is ignored in the Export File, we need
10653 # it in the Import File for the 'aix-soname' feature, so we have
10654 # to replace the "-B" option with "-P" for AIX nm.
7083c021 10655 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6f57a957 10656 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
db137867 10657 else
6f57a957 10658 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
db137867
AC
10659 fi
10660 aix_use_runtimelinking=no
10661
10662 # Test if we are trying to use run time linking or normal
10663 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6f57a957
AC
10664 # have runtime linking enabled, and use it for executables.
10665 # For shared libraries, we enable/disable runtime linking
10666 # depending on the kind of the shared library created -
10667 # when "with_aix_soname,aix_use_runtimelinking" is:
10668 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10669 # "aix,yes" lib.so shared, rtl:yes, for executables
10670 # lib.a static archive
10671 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10672 # lib.a(lib.so.V) shared, rtl:no, for executables
10673 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10674 # lib.a(lib.so.V) shared, rtl:no
10675 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10676 # lib.a static archive
b676ea3b 10677 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
db137867 10678 for ld_flag in $LDFLAGS; do
6f57a957 10679 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
7083c021
AC
10680 aix_use_runtimelinking=yes
10681 break
10682 fi
db137867 10683 done
6f57a957
AC
10684 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10685 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10686 # so we don't have lib.a shared libs to link our executables.
10687 # We have to force runtime linking in this case.
10688 aix_use_runtimelinking=yes
10689 LDFLAGS="$LDFLAGS -Wl,-brtl"
10690 fi
db137867
AC
10691 ;;
10692 esac
10693
10694 exp_sym_flag='-bexport'
10695 no_entry_flag='-bnoentry'
10696 fi
10697
10698 # When large executables or shared objects are built, AIX ld can
10699 # have problems creating the table of contents. If linking a library
10700 # or program results in "error TOC overflow" add -mminimal-toc to
10701 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10702 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10703
7083c021
AC
10704 archive_cmds=''
10705 hardcode_direct=yes
10706 hardcode_direct_absolute=yes
10707 hardcode_libdir_separator=':'
10708 link_all_deplibs=yes
6f57a957
AC
10709 file_list_spec='$wl-f,'
10710 case $with_aix_soname,$aix_use_runtimelinking in
10711 aix,*) ;; # traditional, no import file
10712 svr4,* | *,yes) # use import file
10713 # The Import File defines what to hardcode.
10714 hardcode_direct=no
10715 hardcode_direct_absolute=no
10716 ;;
10717 esac
db137867 10718
6f57a957 10719 if test yes = "$GCC"; then
db137867
AC
10720 case $host_os in aix4.[012]|aix4.[012].*)
10721 # We only want to do this on AIX 4.2 and lower, the check
10722 # below for broken collect2 doesn't work under 4.3+
6f57a957 10723 collect2name=`$CC -print-prog-name=collect2`
7083c021
AC
10724 if test -f "$collect2name" &&
10725 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
db137867 10726 then
7083c021
AC
10727 # We have reworked collect2
10728 :
db137867 10729 else
7083c021
AC
10730 # We have old collect2
10731 hardcode_direct=unsupported
10732 # It fails to find uninstalled libraries when the uninstalled
10733 # path is not listed in the libpath. Setting hardcode_minus_L
10734 # to unsupported forces relinking
10735 hardcode_minus_L=yes
10736 hardcode_libdir_flag_spec='-L$libdir'
10737 hardcode_libdir_separator=
db137867
AC
10738 fi
10739 ;;
10740 esac
10741 shared_flag='-shared'
6f57a957
AC
10742 if test yes = "$aix_use_runtimelinking"; then
10743 shared_flag="$shared_flag "'$wl-G'
db137867 10744 fi
6f57a957
AC
10745 # Need to ensure runtime linking is disabled for the traditional
10746 # shared library, or the linker may eventually find shared libraries
10747 # /with/ Import File - we do not want to mix them.
10748 shared_flag_aix='-shared'
10749 shared_flag_svr4='-shared $wl-G'
db137867
AC
10750 else
10751 # not using gcc
6f57a957 10752 if test ia64 = "$host_cpu"; then
7083c021
AC
10753 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10754 # chokes on -Wl,-G. The following line is correct:
db137867
AC
10755 shared_flag='-G'
10756 else
6f57a957
AC
10757 if test yes = "$aix_use_runtimelinking"; then
10758 shared_flag='$wl-G'
db137867 10759 else
6f57a957 10760 shared_flag='$wl-bM:SRE'
db137867 10761 fi
6f57a957
AC
10762 shared_flag_aix='$wl-bM:SRE'
10763 shared_flag_svr4='$wl-G'
db137867
AC
10764 fi
10765 fi
10766
6f57a957 10767 export_dynamic_flag_spec='$wl-bexpall'
db137867
AC
10768 # It seems that -bexpall does not export symbols beginning with
10769 # underscore (_), so it is better to generate a list of symbols to export.
7083c021 10770 always_export_symbols=yes
6f57a957 10771 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
db137867
AC
10772 # Warning - without using the other runtime loading flags (-brtl),
10773 # -berok will link without error, but may produce a broken library.
7083c021
AC
10774 allow_undefined_flag='-berok'
10775 # Determine the default libpath from the value encoded in an
10776 # empty executable.
6f57a957 10777 if test set = "${lt_cv_aix_libpath+set}"; then
b6d0720c
AC
10778 aix_libpath=$lt_cv_aix_libpath
10779else
10780 if ${lt_cv_aix_libpath_+:} false; then :
10781 $as_echo_n "(cached) " >&6
10782else
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
10784/* end confdefs.h. */
10785
10786int
10787main ()
10788{
10789
10790 ;
10791 return 0;
10792}
10793_ACEOF
7083c021 10794if ac_fn_c_try_link "$LINENO"; then :
db137867 10795
b6d0720c
AC
10796 lt_aix_libpath_sed='
10797 /Import File Strings/,/^$/ {
10798 /^0/ {
10799 s/^0 *\([^ ]*\) *$/\1/
10800 p
10801 }
10802 }'
10803 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10804 # Check for a 64-bit object if we didn't find anything.
10805 if test -z "$lt_cv_aix_libpath_"; then
10806 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10807 fi
db137867 10808fi
7083c021
AC
10809rm -f core conftest.err conftest.$ac_objext \
10810 conftest$ac_exeext conftest.$ac_ext
b6d0720c 10811 if test -z "$lt_cv_aix_libpath_"; then
6f57a957 10812 lt_cv_aix_libpath_=/usr/lib:/lib
b6d0720c
AC
10813 fi
10814
10815fi
10816
10817 aix_libpath=$lt_cv_aix_libpath_
10818fi
db137867 10819
6f57a957
AC
10820 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10821 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
7083c021 10822 else
6f57a957
AC
10823 if test ia64 = "$host_cpu"; then
10824 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
7083c021 10825 allow_undefined_flag="-z nodefs"
6f57a957 10826 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"
db137867 10827 else
7083c021
AC
10828 # Determine the default libpath from the value encoded in an
10829 # empty executable.
6f57a957 10830 if test set = "${lt_cv_aix_libpath+set}"; then
b6d0720c
AC
10831 aix_libpath=$lt_cv_aix_libpath
10832else
10833 if ${lt_cv_aix_libpath_+:} false; then :
10834 $as_echo_n "(cached) " >&6
10835else
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
10837/* end confdefs.h. */
10838
10839int
10840main ()
10841{
10842
10843 ;
10844 return 0;
10845}
10846_ACEOF
7083c021 10847if ac_fn_c_try_link "$LINENO"; then :
db137867 10848
b6d0720c
AC
10849 lt_aix_libpath_sed='
10850 /Import File Strings/,/^$/ {
10851 /^0/ {
10852 s/^0 *\([^ ]*\) *$/\1/
10853 p
10854 }
10855 }'
10856 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10857 # Check for a 64-bit object if we didn't find anything.
10858 if test -z "$lt_cv_aix_libpath_"; then
10859 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10860 fi
db137867 10861fi
7083c021
AC
10862rm -f core conftest.err conftest.$ac_objext \
10863 conftest$ac_exeext conftest.$ac_ext
b6d0720c 10864 if test -z "$lt_cv_aix_libpath_"; then
6f57a957 10865 lt_cv_aix_libpath_=/usr/lib:/lib
b6d0720c
AC
10866 fi
10867
10868fi
10869
10870 aix_libpath=$lt_cv_aix_libpath_
10871fi
db137867 10872
6f57a957 10873 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
db137867
AC
10874 # Warning - without using the other run time loading flags,
10875 # -berok will link without error, but may produce a broken library.
6f57a957
AC
10876 no_undefined_flag=' $wl-bernotok'
10877 allow_undefined_flag=' $wl-berok'
10878 if test yes = "$with_gnu_ld"; then
b6d0720c 10879 # We only use this code for GNU lds that support --whole-archive.
6f57a957 10880 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
b6d0720c
AC
10881 else
10882 # Exported symbols can be pulled into shared objects from archives
10883 whole_archive_flag_spec='$convenience'
10884 fi
7083c021 10885 archive_cmds_need_lc=yes
6f57a957
AC
10886 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10887 # -brtl affects multiple linker settings, -berok does not and is overridden later
10888 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10889 if test svr4 != "$with_aix_soname"; then
10890 # This is similar to how AIX traditionally builds its shared libraries.
10891 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10892 fi
10893 if test aix != "$with_aix_soname"; then
10894 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10895 else
10896 # used by -dlpreopen to get the symbols
10897 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10898 fi
10899 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
db137867
AC
10900 fi
10901 fi
10902 ;;
10903
10904 amigaos*)
7083c021
AC
10905 case $host_cpu in
10906 powerpc)
10907 # see comment about AmigaOS4 .so support
6f57a957 10908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7083c021
AC
10909 archive_expsym_cmds=''
10910 ;;
10911 m68k)
10912 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)'
10913 hardcode_libdir_flag_spec='-L$libdir'
10914 hardcode_minus_L=yes
10915 ;;
10916 esac
db137867
AC
10917 ;;
10918
10919 bsdi[45]*)
7083c021 10920 export_dynamic_flag_spec=-rdynamic
db137867
AC
10921 ;;
10922
7083c021 10923 cygwin* | mingw* | pw32* | cegcc*)
db137867
AC
10924 # When not using gcc, we currently assume that we are using
10925 # Microsoft Visual C++.
10926 # hardcode_libdir_flag_spec is actually meaningless, as there is
10927 # no search path for DLLs.
b6d0720c
AC
10928 case $cc_basename in
10929 cl*)
10930 # Native MSVC
10931 hardcode_libdir_flag_spec=' '
10932 allow_undefined_flag=unsupported
10933 always_export_symbols=yes
10934 file_list_spec='@'
10935 # Tell ltmain to make .lib files, not .a files.
10936 libext=lib
10937 # Tell ltmain to make .dll files, not .so files.
6f57a957 10938 shrext_cmds=.dll
b6d0720c 10939 # FIXME: Setting linknames here is a bad hack.
6f57a957
AC
10940 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10941 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10942 cp "$export_symbols" "$output_objdir/$soname.def";
10943 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10944 else
10945 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10946 fi~
10947 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10948 linknames='
b6d0720c
AC
10949 # The linker will not automatically build a static lib if we build a DLL.
10950 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10951 enable_shared_with_static_runtimes=yes
a949ab1a 10952 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
b6d0720c
AC
10953 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10954 # Don't use ranlib
10955 old_postinstall_cmds='chmod 644 $oldlib'
10956 postlink_cmds='lt_outputfile="@OUTPUT@"~
6f57a957
AC
10957 lt_tool_outputfile="@TOOL_OUTPUT@"~
10958 case $lt_outputfile in
10959 *.exe|*.EXE) ;;
10960 *)
10961 lt_outputfile=$lt_outputfile.exe
10962 lt_tool_outputfile=$lt_tool_outputfile.exe
10963 ;;
10964 esac~
10965 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10966 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10967 $RM "$lt_outputfile.manifest";
10968 fi'
b6d0720c
AC
10969 ;;
10970 *)
10971 # Assume MSVC wrapper
10972 hardcode_libdir_flag_spec=' '
10973 allow_undefined_flag=unsupported
10974 # Tell ltmain to make .lib files, not .a files.
10975 libext=lib
10976 # Tell ltmain to make .dll files, not .so files.
6f57a957 10977 shrext_cmds=.dll
b6d0720c
AC
10978 # FIXME: Setting linknames here is a bad hack.
10979 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10980 # The linker will automatically build a .lib file if we build a DLL.
10981 old_archive_from_new_cmds='true'
10982 # FIXME: Should let the user specify the lib program.
10983 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10984 enable_shared_with_static_runtimes=yes
10985 ;;
10986 esac
db137867
AC
10987 ;;
10988
7083c021
AC
10989 darwin* | rhapsody*)
10990
10991
10992 archive_cmds_need_lc=no
10993 hardcode_direct=no
10994 hardcode_automatic=yes
10995 hardcode_shlibpath_var=unsupported
6f57a957
AC
10996 if test yes = "$lt_cv_ld_force_load"; then
10997 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\"`'
a949ab1a 10998
b6d0720c
AC
10999 else
11000 whole_archive_flag_spec=''
11001 fi
7083c021 11002 link_all_deplibs=yes
6f57a957 11003 allow_undefined_flag=$_lt_dar_allow_undefined
7083c021 11004 case $cc_basename in
6f57a957 11005 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
7083c021
AC
11006 *) _lt_dar_can_shared=$GCC ;;
11007 esac
6f57a957 11008 if test yes = "$_lt_dar_can_shared"; then
b6d0720c 11009 output_verbose_link_cmd=func_echo_all
6f57a957
AC
11010 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11011 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11012 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"
11013 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"
7083c021
AC
11014
11015 else
11016 ld_shlibs=no
11017 fi
11018
db137867
AC
11019 ;;
11020
11021 dgux*)
7083c021
AC
11022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11023 hardcode_libdir_flag_spec='-L$libdir'
11024 hardcode_shlibpath_var=no
db137867
AC
11025 ;;
11026
db137867
AC
11027 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11028 # support. Future versions do this automatically, but an explicit c++rt0.o
11029 # does not break anything, and helps significantly (at the cost of a little
11030 # extra space).
11031 freebsd2.2*)
7083c021
AC
11032 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11033 hardcode_libdir_flag_spec='-R$libdir'
11034 hardcode_direct=yes
11035 hardcode_shlibpath_var=no
db137867
AC
11036 ;;
11037
11038 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
a949ab1a 11039 freebsd2.*)
7083c021
AC
11040 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11041 hardcode_direct=yes
11042 hardcode_minus_L=yes
11043 hardcode_shlibpath_var=no
db137867
AC
11044 ;;
11045
11046 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11047 freebsd* | dragonfly*)
b6d0720c 11048 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7083c021
AC
11049 hardcode_libdir_flag_spec='-R$libdir'
11050 hardcode_direct=yes
11051 hardcode_shlibpath_var=no
db137867
AC
11052 ;;
11053
11054 hpux9*)
6f57a957
AC
11055 if test yes = "$GCC"; then
11056 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
db137867 11057 else
6f57a957 11058 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
db137867 11059 fi
6f57a957 11060 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
7083c021
AC
11061 hardcode_libdir_separator=:
11062 hardcode_direct=yes
db137867
AC
11063
11064 # hardcode_minus_L: Not really in the search PATH,
11065 # but as the default location of the library.
7083c021 11066 hardcode_minus_L=yes
6f57a957 11067 export_dynamic_flag_spec='$wl-E'
db137867
AC
11068 ;;
11069
11070 hpux10*)
6f57a957
AC
11071 if test yes,no = "$GCC,$with_gnu_ld"; then
11072 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
db137867 11073 else
7083c021 11074 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
db137867 11075 fi
6f57a957
AC
11076 if test no = "$with_gnu_ld"; then
11077 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
7083c021
AC
11078 hardcode_libdir_separator=:
11079 hardcode_direct=yes
11080 hardcode_direct_absolute=yes
6f57a957 11081 export_dynamic_flag_spec='$wl-E'
db137867
AC
11082 # hardcode_minus_L: Not really in the search PATH,
11083 # but as the default location of the library.
7083c021 11084 hardcode_minus_L=yes
db137867
AC
11085 fi
11086 ;;
11087
11088 hpux11*)
6f57a957 11089 if test yes,no = "$GCC,$with_gnu_ld"; then
db137867
AC
11090 case $host_cpu in
11091 hppa*64*)
6f57a957 11092 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
11093 ;;
11094 ia64*)
6f57a957 11095 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
11096 ;;
11097 *)
6f57a957 11098 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
11099 ;;
11100 esac
11101 else
11102 case $host_cpu in
11103 hppa*64*)
6f57a957 11104 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
11105 ;;
11106 ia64*)
6f57a957 11107 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
11108 ;;
11109 *)
b6d0720c
AC
11110
11111 # Older versions of the 11.00 compiler do not understand -b yet
11112 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11114$as_echo_n "checking if $CC understands -b... " >&6; }
11115if ${lt_cv_prog_compiler__b+:} false; then :
11116 $as_echo_n "(cached) " >&6
11117else
11118 lt_cv_prog_compiler__b=no
6f57a957 11119 save_LDFLAGS=$LDFLAGS
b6d0720c
AC
11120 LDFLAGS="$LDFLAGS -b"
11121 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11122 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11123 # The linker can only warn and ignore the option if not recognized
11124 # So say no if there are warnings
11125 if test -s conftest.err; then
11126 # Append any errors to the config.log.
11127 cat conftest.err 1>&5
11128 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11129 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11130 if diff conftest.exp conftest.er2 >/dev/null; then
11131 lt_cv_prog_compiler__b=yes
11132 fi
11133 else
11134 lt_cv_prog_compiler__b=yes
11135 fi
11136 fi
11137 $RM -r conftest*
6f57a957 11138 LDFLAGS=$save_LDFLAGS
b6d0720c
AC
11139
11140fi
11141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11142$as_echo "$lt_cv_prog_compiler__b" >&6; }
11143
6f57a957
AC
11144if test yes = "$lt_cv_prog_compiler__b"; then
11145 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
b6d0720c
AC
11146else
11147 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11148fi
11149
db137867
AC
11150 ;;
11151 esac
11152 fi
6f57a957
AC
11153 if test no = "$with_gnu_ld"; then
11154 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
7083c021 11155 hardcode_libdir_separator=:
db137867
AC
11156
11157 case $host_cpu in
11158 hppa*64*|ia64*)
7083c021
AC
11159 hardcode_direct=no
11160 hardcode_shlibpath_var=no
db137867
AC
11161 ;;
11162 *)
7083c021
AC
11163 hardcode_direct=yes
11164 hardcode_direct_absolute=yes
6f57a957 11165 export_dynamic_flag_spec='$wl-E'
db137867
AC
11166
11167 # hardcode_minus_L: Not really in the search PATH,
11168 # but as the default location of the library.
7083c021 11169 hardcode_minus_L=yes
db137867
AC
11170 ;;
11171 esac
11172 fi
11173 ;;
11174
11175 irix5* | irix6* | nonstopux*)
6f57a957
AC
11176 if test yes = "$GCC"; then
11177 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'
7083c021
AC
11178 # Try to use the -exported_symbol ld option, if it does not
11179 # work, assume that -exports_file does not work either and
11180 # implicitly export all symbols.
b6d0720c
AC
11181 # This should be the same for all languages, so no per-tag cache variable.
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11183$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11184if ${lt_cv_irix_exported_symbol+:} false; then :
11185 $as_echo_n "(cached) " >&6
11186else
6f57a957
AC
11187 save_LDFLAGS=$LDFLAGS
11188 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
b6d0720c 11189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083c021 11190/* end confdefs.h. */
b6d0720c 11191int foo (void) { return 0; }
7083c021
AC
11192_ACEOF
11193if ac_fn_c_try_link "$LINENO"; then :
b6d0720c
AC
11194 lt_cv_irix_exported_symbol=yes
11195else
11196 lt_cv_irix_exported_symbol=no
7083c021
AC
11197fi
11198rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
6f57a957 11200 LDFLAGS=$save_LDFLAGS
b6d0720c
AC
11201fi
11202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11203$as_echo "$lt_cv_irix_exported_symbol" >&6; }
6f57a957
AC
11204 if test yes = "$lt_cv_irix_exported_symbol"; then
11205 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'
b6d0720c 11206 fi
db137867 11207 else
6f57a957
AC
11208 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'
11209 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'
db137867 11210 fi
7083c021 11211 archive_cmds_need_lc='no'
6f57a957 11212 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
7083c021
AC
11213 hardcode_libdir_separator=:
11214 inherit_rpath=yes
11215 link_all_deplibs=yes
db137867
AC
11216 ;;
11217
6f57a957
AC
11218 linux*)
11219 case $cc_basename in
11220 tcc*)
11221 # Fabrice Bellard et al's Tiny C Compiler
11222 ld_shlibs=yes
11223 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11224 ;;
11225 esac
11226 ;;
11227
96f4052b 11228 netbsd*)
7083c021
AC
11229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11230 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
db137867 11231 else
7083c021 11232 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
db137867 11233 fi
7083c021
AC
11234 hardcode_libdir_flag_spec='-R$libdir'
11235 hardcode_direct=yes
11236 hardcode_shlibpath_var=no
db137867
AC
11237 ;;
11238
11239 newsos6)
7083c021
AC
11240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11241 hardcode_direct=yes
6f57a957 11242 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
7083c021
AC
11243 hardcode_libdir_separator=:
11244 hardcode_shlibpath_var=no
11245 ;;
11246
11247 *nto* | *qnx*)
db137867
AC
11248 ;;
11249
6f57a957 11250 openbsd* | bitrig*)
db137867 11251 if test -f /usr/libexec/ld.so; then
7083c021
AC
11252 hardcode_direct=yes
11253 hardcode_shlibpath_var=no
11254 hardcode_direct_absolute=yes
6f57a957 11255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7083c021 11256 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6f57a957
AC
11257 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11258 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11259 export_dynamic_flag_spec='$wl-E'
db137867 11260 else
6f57a957
AC
11261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11262 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
7083c021 11263 fi
db137867 11264 else
7083c021 11265 ld_shlibs=no
db137867
AC
11266 fi
11267 ;;
11268
11269 os2*)
7083c021
AC
11270 hardcode_libdir_flag_spec='-L$libdir'
11271 hardcode_minus_L=yes
11272 allow_undefined_flag=unsupported
6f57a957
AC
11273 shrext_cmds=.dll
11274 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11275 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11276 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11277 $ECHO EXPORTS >> $output_objdir/$libname.def~
11278 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11279 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11280 emximp -o $lib $output_objdir/$libname.def'
11281 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11282 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11283 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11284 $ECHO EXPORTS >> $output_objdir/$libname.def~
11285 prefix_cmds="$SED"~
11286 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11287 prefix_cmds="$prefix_cmds -e 1d";
11288 fi~
11289 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11290 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11291 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11292 emximp -o $lib $output_objdir/$libname.def'
11293 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11294 enable_shared_with_static_runtimes=yes
db137867
AC
11295 ;;
11296
11297 osf3*)
6f57a957
AC
11298 if test yes = "$GCC"; then
11299 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11300 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'
db137867 11301 else
7083c021 11302 allow_undefined_flag=' -expect_unresolved \*'
6f57a957 11303 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'
db137867 11304 fi
7083c021 11305 archive_cmds_need_lc='no'
6f57a957 11306 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
7083c021 11307 hardcode_libdir_separator=:
db137867
AC
11308 ;;
11309
11310 osf4* | osf5*) # as osf3* with the addition of -msym flag
6f57a957
AC
11311 if test yes = "$GCC"; then
11312 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11313 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'
11314 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
db137867 11315 else
7083c021 11316 allow_undefined_flag=' -expect_unresolved \*'
6f57a957 11317 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'
7083c021 11318 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~
6f57a957 11319 $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'
db137867
AC
11320
11321 # Both c and cxx compiler support -rpath directly
7083c021 11322 hardcode_libdir_flag_spec='-rpath $libdir'
db137867 11323 fi
7083c021
AC
11324 archive_cmds_need_lc='no'
11325 hardcode_libdir_separator=:
db137867
AC
11326 ;;
11327
11328 solaris*)
7083c021 11329 no_undefined_flag=' -z defs'
6f57a957
AC
11330 if test yes = "$GCC"; then
11331 wlarc='$wl'
11332 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
7083c021 11333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6f57a957 11334 $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'
db137867 11335 else
7083c021
AC
11336 case `$CC -V 2>&1` in
11337 *"Compilers 5.0"*)
11338 wlarc=''
6f57a957 11339 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
7083c021 11340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6f57a957 11341 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7083c021
AC
11342 ;;
11343 *)
6f57a957
AC
11344 wlarc='$wl'
11345 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7083c021 11346 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6f57a957 11347 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7083c021
AC
11348 ;;
11349 esac
db137867 11350 fi
7083c021
AC
11351 hardcode_libdir_flag_spec='-R$libdir'
11352 hardcode_shlibpath_var=no
db137867
AC
11353 case $host_os in
11354 solaris2.[0-5] | solaris2.[0-5].*) ;;
11355 *)
11356 # The compiler driver will combine and reorder linker options,
6f57a957 11357 # but understands '-z linker_flag'. GCC discards it without '$wl',
db137867 11358 # but is careful enough not to reorder.
7083c021 11359 # Supported since Solaris 2.6 (maybe 2.5.1?)
6f57a957
AC
11360 if test yes = "$GCC"; then
11361 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
db137867 11362 else
7083c021 11363 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
db137867
AC
11364 fi
11365 ;;
11366 esac
7083c021 11367 link_all_deplibs=yes
db137867
AC
11368 ;;
11369
11370 sunos4*)
6f57a957 11371 if test sequent = "$host_vendor"; then
db137867
AC
11372 # Use $CC to link under sequent, because it throws in some extra .o
11373 # files that make .init and .fini sections work.
6f57a957 11374 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
db137867 11375 else
7083c021 11376 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
db137867 11377 fi
7083c021
AC
11378 hardcode_libdir_flag_spec='-L$libdir'
11379 hardcode_direct=yes
11380 hardcode_minus_L=yes
11381 hardcode_shlibpath_var=no
db137867
AC
11382 ;;
11383
11384 sysv4)
11385 case $host_vendor in
11386 sni)
7083c021
AC
11387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11388 hardcode_direct=yes # is this really true???
db137867
AC
11389 ;;
11390 siemens)
11391 ## LD is ld it makes a PLAMLIB
11392 ## CC just makes a GrossModule.
7083c021
AC
11393 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11394 reload_cmds='$CC -r -o $output$reload_objs'
11395 hardcode_direct=no
db137867
AC
11396 ;;
11397 motorola)
7083c021
AC
11398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11399 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
db137867
AC
11400 ;;
11401 esac
11402 runpath_var='LD_RUN_PATH'
7083c021 11403 hardcode_shlibpath_var=no
db137867
AC
11404 ;;
11405
11406 sysv4.3*)
7083c021
AC
11407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11408 hardcode_shlibpath_var=no
11409 export_dynamic_flag_spec='-Bexport'
db137867
AC
11410 ;;
11411
11412 sysv4*MP*)
11413 if test -d /usr/nec; then
7083c021
AC
11414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11415 hardcode_shlibpath_var=no
db137867
AC
11416 runpath_var=LD_RUN_PATH
11417 hardcode_runpath_var=yes
7083c021 11418 ld_shlibs=yes
db137867
AC
11419 fi
11420 ;;
11421
11422 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
6f57a957 11423 no_undefined_flag='$wl-z,text'
7083c021
AC
11424 archive_cmds_need_lc=no
11425 hardcode_shlibpath_var=no
db137867
AC
11426 runpath_var='LD_RUN_PATH'
11427
6f57a957
AC
11428 if test yes = "$GCC"; then
11429 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11430 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867 11431 else
6f57a957
AC
11432 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11433 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
11434 fi
11435 ;;
11436
11437 sysv5* | sco3.2v5* | sco5v6*)
6f57a957 11438 # Note: We CANNOT use -z defs as we might desire, because we do not
db137867
AC
11439 # link with -lc, and that would cause any symbols used from libc to
11440 # always be unresolved, which means just about no library would
11441 # ever link correctly. If we're not using GNU ld we use -z text
11442 # though, which does catch some bad symbols but isn't as heavy-handed
11443 # as -z defs.
6f57a957
AC
11444 no_undefined_flag='$wl-z,text'
11445 allow_undefined_flag='$wl-z,nodefs'
7083c021
AC
11446 archive_cmds_need_lc=no
11447 hardcode_shlibpath_var=no
6f57a957 11448 hardcode_libdir_flag_spec='$wl-R,$libdir'
7083c021
AC
11449 hardcode_libdir_separator=':'
11450 link_all_deplibs=yes
6f57a957 11451 export_dynamic_flag_spec='$wl-Bexport'
db137867
AC
11452 runpath_var='LD_RUN_PATH'
11453
6f57a957
AC
11454 if test yes = "$GCC"; then
11455 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11456 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867 11457 else
6f57a957
AC
11458 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11459 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
11460 fi
11461 ;;
11462
11463 uts4*)
7083c021
AC
11464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11465 hardcode_libdir_flag_spec='-L$libdir'
11466 hardcode_shlibpath_var=no
db137867
AC
11467 ;;
11468
11469 *)
7083c021 11470 ld_shlibs=no
db137867
AC
11471 ;;
11472 esac
7083c021 11473
6f57a957 11474 if test sni = "$host_vendor"; then
7083c021
AC
11475 case $host in
11476 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6f57a957 11477 export_dynamic_flag_spec='$wl-Blargedynsym'
7083c021
AC
11478 ;;
11479 esac
11480 fi
db137867
AC
11481 fi
11482
7083c021
AC
11483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11484$as_echo "$ld_shlibs" >&6; }
6f57a957 11485test no = "$ld_shlibs" && can_build_shared=no
7083c021
AC
11486
11487with_gnu_ld=$with_gnu_ld
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
db137867
AC
11502
11503#
11504# Do we need to explicitly link libc?
11505#
7083c021 11506case "x$archive_cmds_need_lc" in
db137867
AC
11507x|xyes)
11508 # Assume -lc should be added
7083c021 11509 archive_cmds_need_lc=yes
db137867 11510
6f57a957 11511 if test yes,yes = "$GCC,$enable_shared"; then
7083c021 11512 case $archive_cmds in
db137867
AC
11513 *'~'*)
11514 # FIXME: we may have to deal with multi-command sequences.
11515 ;;
11516 '$CC '*)
11517 # Test whether the compiler implicitly links with -lc since on some
11518 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11519 # to ld, don't add -lc before -lgcc.
7083c021 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
030272f3 11521$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b6d0720c
AC
11522if ${lt_cv_archive_cmds_need_lc+:} false; then :
11523 $as_echo_n "(cached) " >&6
11524else
11525 $RM conftest*
11526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
db137867 11527
b6d0720c 11528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
db137867
AC
11529 (eval $ac_compile) 2>&5
11530 ac_status=$?
7083c021
AC
11531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11532 test $ac_status = 0; } 2>conftest.err; then
b6d0720c
AC
11533 soname=conftest
11534 lib=conftest
11535 libobjs=conftest.$ac_objext
11536 deplibs=
11537 wl=$lt_prog_compiler_wl
11538 pic_flag=$lt_prog_compiler_pic
11539 compiler_flags=-v
11540 linker_flags=-v
11541 verstring=
11542 output_objdir=.
11543 libname=conftest
11544 lt_save_allow_undefined_flag=$allow_undefined_flag
11545 allow_undefined_flag=
11546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7083c021 11547 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
db137867 11548 ac_status=$?
7083c021
AC
11549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11550 test $ac_status = 0; }
b6d0720c
AC
11551 then
11552 lt_cv_archive_cmds_need_lc=no
11553 else
11554 lt_cv_archive_cmds_need_lc=yes
11555 fi
11556 allow_undefined_flag=$lt_save_allow_undefined_flag
11557 else
11558 cat conftest.err 1>&5
11559 fi
11560 $RM conftest*
11561
11562fi
11563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11564$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11565 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
db137867
AC
11566 ;;
11567 esac
11568 fi
11569 ;;
11570esac
11571
db137867 11572
db137867 11573
db137867 11574
db137867 11575
db137867 11576
db137867 11577
db137867 11578
db137867 11579
db137867 11580
db137867 11581
db137867 11582
db137867 11583
db137867 11584
db137867 11585
db137867 11586
db137867 11587
db137867 11588
db137867 11589
db137867 11590
db137867 11591
db137867 11592
db137867 11593
db137867 11594
db137867 11595
db137867 11596
db137867 11597
db137867 11598
db137867 11599
db137867 11600
db137867 11601
db137867 11602
db137867 11603
db137867 11604
db137867 11605
db137867 11606
db137867 11607
db137867 11608
db137867 11609
db137867 11610
db137867 11611
db137867 11612
b676ea3b 11613
b676ea3b 11614
b676ea3b 11615
db137867 11616
db137867 11617
db137867 11618
db137867
AC
11619
11620
db137867 11621
db137867 11622
db137867 11623
db137867 11624
db137867 11625
db137867 11626
db137867 11627
db137867 11628
db137867 11629
db137867 11630
db137867 11631
db137867 11632
db137867 11633
db137867 11634
db137867 11635
db137867 11636
db137867 11637
db137867 11638
db137867 11639
db137867 11640
db137867 11641
db137867 11642
db137867 11643
db137867 11644
db137867 11645
db137867 11646
db137867 11647
db137867 11648
db137867 11649
db137867 11650
db137867 11651
db137867 11652
db137867 11653
db137867 11654
db137867 11655
db137867 11656
db137867 11657
db137867 11658
db137867 11659
db137867 11660
db137867 11661
db137867 11662
db137867 11663
db137867 11664
db137867 11665
db137867 11666
db137867 11667
db137867 11668
db137867 11669
db137867 11670
db137867 11671
db137867 11672
db137867 11673
db137867 11674
db137867 11675
db137867 11676
db137867 11677
db137867 11678
db137867 11679
db137867 11680
db137867 11681
db137867 11682
db137867 11683
b676ea3b 11684
db137867 11685
db137867 11686
db137867 11687
db137867 11688
db137867 11689
db137867 11690
db137867 11691
db137867 11692
db137867 11693
db137867 11694
db137867 11695
db137867 11696
db137867 11697
db137867 11698
db137867 11699
db137867 11700
db137867 11701
db137867 11702
db137867 11703
db137867 11704
db137867 11705
db137867 11706
db137867 11707
db137867 11708
db137867 11709
db137867 11710
db137867 11711
db137867 11712
db137867 11713
db137867 11714
db137867 11715
db137867 11716
7083c021
AC
11717
11718
11719
11720
11721
11722
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11724$as_echo_n "checking dynamic linker characteristics... " >&6; }
11725
6f57a957 11726if test yes = "$GCC"; then
7083c021 11727 case $host_os in
6f57a957
AC
11728 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11729 *) lt_awk_arg='/^libraries:/' ;;
7083c021 11730 esac
b6d0720c 11731 case $host_os in
6f57a957
AC
11732 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11733 *) lt_sed_strip_eq='s|=/|/|g' ;;
b6d0720c
AC
11734 esac
11735 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11736 case $lt_search_path_spec in
11737 *\;*)
7083c021
AC
11738 # if the path contains ";" then we assume it to be the separator
11739 # otherwise default to the standard path separator (i.e. ":") - it is
11740 # assumed that no part of a normal pathname contains ";" but that should
11741 # okay in the real world where ";" in dirpaths is itself problematic.
b6d0720c
AC
11742 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11743 ;;
11744 *)
11745 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11746 ;;
11747 esac
7083c021 11748 # Ok, now we have the path, separated by spaces, we can step through it
6f57a957 11749 # and add multilib dir if necessary...
7083c021 11750 lt_tmp_lt_search_path_spec=
6f57a957
AC
11751 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11752 # ...but if some path component already ends with the multilib dir we assume
11753 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11754 case "$lt_multi_os_dir; $lt_search_path_spec " in
11755 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11756 lt_multi_os_dir=
11757 ;;
11758 esac
7083c021 11759 for lt_sys_path in $lt_search_path_spec; do
6f57a957
AC
11760 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11761 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11762 elif test -n "$lt_multi_os_dir"; then
7083c021
AC
11763 test -d "$lt_sys_path" && \
11764 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11765 fi
11766 done
b6d0720c 11767 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
6f57a957
AC
11768BEGIN {RS = " "; FS = "/|\n";} {
11769 lt_foo = "";
11770 lt_count = 0;
7083c021
AC
11771 for (lt_i = NF; lt_i > 0; lt_i--) {
11772 if ($lt_i != "" && $lt_i != ".") {
11773 if ($lt_i == "..") {
11774 lt_count++;
11775 } else {
11776 if (lt_count == 0) {
6f57a957 11777 lt_foo = "/" $lt_i lt_foo;
7083c021
AC
11778 } else {
11779 lt_count--;
11780 }
11781 }
11782 }
11783 }
11784 if (lt_foo != "") { lt_freq[lt_foo]++; }
11785 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11786}'`
b6d0720c
AC
11787 # AWK program above erroneously prepends '/' to C:/dos/paths
11788 # for these hosts.
11789 case $host_os in
11790 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
6f57a957 11791 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
b6d0720c
AC
11792 esac
11793 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
7083c021
AC
11794else
11795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11796fi
11797library_names_spec=
11798libname_spec='lib$name'
11799soname_spec=
6f57a957 11800shrext_cmds=.so
7083c021
AC
11801postinstall_cmds=
11802postuninstall_cmds=
11803finish_cmds=
11804finish_eval=
11805shlibpath_var=
11806shlibpath_overrides_runpath=unknown
11807version_type=none
11808dynamic_linker="$host_os ld.so"
11809sys_lib_dlsearch_path_spec="/lib /usr/lib"
11810need_lib_prefix=unknown
11811hardcode_into_libs=no
11812
11813# when you set need_version to no, make sure it does not cause -set_version
11814# flags to be left without arguments
11815need_version=unknown
11816
6f57a957
AC
11817
11818
7083c021
AC
11819case $host_os in
11820aix3*)
a949ab1a 11821 version_type=linux # correct to gnu/linux during the next big refactor
6f57a957 11822 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
7083c021
AC
11823 shlibpath_var=LIBPATH
11824
11825 # AIX 3 has no versioning support, so we append a major version to the name.
6f57a957 11826 soname_spec='$libname$release$shared_ext$major'
7083c021
AC
11827 ;;
11828
11829aix[4-9]*)
a949ab1a 11830 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
11831 need_lib_prefix=no
11832 need_version=no
11833 hardcode_into_libs=yes
6f57a957 11834 if test ia64 = "$host_cpu"; then
7083c021 11835 # AIX 5 supports IA64
6f57a957 11836 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
7083c021
AC
11837 shlibpath_var=LD_LIBRARY_PATH
11838 else
11839 # With GCC up to 2.95.x, collect2 would create an import file
11840 # for dependence libraries. The import file would start with
6f57a957
AC
11841 # the line '#! .'. This would cause the generated library to
11842 # depend on '.', always an invalid library. This was fixed in
7083c021
AC
11843 # development snapshots of GCC prior to 3.0.
11844 case $host_os in
11845 aix4 | aix4.[01] | aix4.[01].*)
11846 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11847 echo ' yes '
6f57a957 11848 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
7083c021
AC
11849 :
11850 else
11851 can_build_shared=no
11852 fi
11853 ;;
11854 esac
6f57a957
AC
11855 # Using Import Files as archive members, it is possible to support
11856 # filename-based versioning of shared library archives on AIX. While
11857 # this would work for both with and without runtime linking, it will
11858 # prevent static linking of such archives. So we do filename-based
11859 # shared library versioning with .so extension only, which is used
11860 # when both runtime linking and shared linking is enabled.
11861 # Unfortunately, runtime linking may impact performance, so we do
11862 # not want this to be the default eventually. Also, we use the
11863 # versioned .so libs for executables only if there is the -brtl
11864 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11865 # To allow for filename-based versioning support, we need to create
11866 # libNAME.so.V as an archive file, containing:
11867 # *) an Import File, referring to the versioned filename of the
11868 # archive as well as the shared archive member, telling the
11869 # bitwidth (32 or 64) of that shared object, and providing the
11870 # list of exported symbols of that shared object, eventually
11871 # decorated with the 'weak' keyword
11872 # *) the shared object with the F_LOADONLY flag set, to really avoid
11873 # it being seen by the linker.
11874 # At run time we better use the real file rather than another symlink,
11875 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11876
11877 case $with_aix_soname,$aix_use_runtimelinking in
11878 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
7083c021
AC
11879 # soname into executable. Probably we can add versioning support to
11880 # collect2, so additional links can be useful in future.
6f57a957
AC
11881 aix,yes) # traditional libtool
11882 dynamic_linker='AIX unversionable lib.so'
7083c021
AC
11883 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11884 # instead of lib<name>.a to let people know that these are not
11885 # typical AIX shared libraries.
6f57a957
AC
11886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11887 ;;
11888 aix,no) # traditional AIX only
11889 dynamic_linker='AIX lib.a(lib.so.V)'
7083c021
AC
11890 # We preserve .a as extension for shared libraries through AIX4.2
11891 # and later when we are not doing run time linking.
6f57a957
AC
11892 library_names_spec='$libname$release.a $libname.a'
11893 soname_spec='$libname$release$shared_ext$major'
11894 ;;
11895 svr4,*) # full svr4 only
11896 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11897 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11898 # We do not specify a path in Import Files, so LIBPATH fires.
11899 shlibpath_overrides_runpath=yes
11900 ;;
11901 *,yes) # both, prefer svr4
11902 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11903 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11904 # unpreferred sharedlib libNAME.a needs extra handling
11905 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11906 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11907 # We do not specify a path in Import Files, so LIBPATH fires.
11908 shlibpath_overrides_runpath=yes
11909 ;;
11910 *,no) # both, prefer aix
11911 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11912 library_names_spec='$libname$release.a $libname.a'
11913 soname_spec='$libname$release$shared_ext$major'
11914 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11915 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11916 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11917 ;;
11918 esac
7083c021
AC
11919 shlibpath_var=LIBPATH
11920 fi
11921 ;;
11922
11923amigaos*)
11924 case $host_cpu in
11925 powerpc)
11926 # Since July 2007 AmigaOS4 officially supports .so libraries.
11927 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
6f57a957 11928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
7083c021
AC
11929 ;;
11930 m68k)
11931 library_names_spec='$libname.ixlibrary $libname.a'
11932 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6f57a957 11933 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
7083c021
AC
11934 ;;
11935 esac
11936 ;;
11937
11938beos*)
6f57a957 11939 library_names_spec='$libname$shared_ext'
7083c021
AC
11940 dynamic_linker="$host_os ld.so"
11941 shlibpath_var=LIBRARY_PATH
11942 ;;
11943
11944bsdi[45]*)
a949ab1a 11945 version_type=linux # correct to gnu/linux during the next big refactor
7083c021 11946 need_version=no
6f57a957
AC
11947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11948 soname_spec='$libname$release$shared_ext$major'
7083c021
AC
11949 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11952 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11953 # the default ld.so.conf also contains /usr/contrib/lib and
11954 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11955 # libtool to hard-code these into programs
11956 ;;
11957
11958cygwin* | mingw* | pw32* | cegcc*)
11959 version_type=windows
6f57a957 11960 shrext_cmds=.dll
7083c021
AC
11961 need_version=no
11962 need_lib_prefix=no
11963
b6d0720c
AC
11964 case $GCC,$cc_basename in
11965 yes,*)
11966 # gcc
7083c021
AC
11967 library_names_spec='$libname.dll.a'
11968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6f57a957
AC
11969 postinstall_cmds='base_file=`basename \$file`~
11970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
7083c021
AC
11971 dldir=$destdir/`dirname \$dlpath`~
11972 test -d \$dldir || mkdir -p \$dldir~
11973 $install_prog $dir/$dlname \$dldir/$dlname~
11974 chmod a+x \$dldir/$dlname~
11975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11977 fi'
11978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11979 dlpath=$dir/\$dldll~
11980 $RM \$dlpath'
11981 shlibpath_overrides_runpath=yes
11982
11983 case $host_os in
11984 cygwin*)
11985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6f57a957 11986 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
b6d0720c
AC
11987
11988 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
7083c021
AC
11989 ;;
11990 mingw* | cegcc*)
11991 # MinGW DLLs use traditional 'lib' prefix
6f57a957 11992 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
7083c021
AC
11993 ;;
11994 pw32*)
11995 # pw32 DLLs use 'pw' prefix rather than 'lib'
6f57a957 11996 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
7083c021
AC
11997 ;;
11998 esac
b6d0720c
AC
11999 dynamic_linker='Win32 ld.exe'
12000 ;;
12001
12002 *,cl*)
12003 # Native MSVC
12004 libname_spec='$name'
6f57a957
AC
12005 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12006 library_names_spec='$libname.dll.lib'
b6d0720c
AC
12007
12008 case $build_os in
12009 mingw*)
12010 sys_lib_search_path_spec=
12011 lt_save_ifs=$IFS
12012 IFS=';'
12013 for lt_path in $LIB
12014 do
12015 IFS=$lt_save_ifs
12016 # Let DOS variable expansion print the short 8.3 style file name.
12017 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12018 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12019 done
12020 IFS=$lt_save_ifs
12021 # Convert to MSYS style.
12022 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12023 ;;
12024 cygwin*)
12025 # Convert to unix form, then to dos form, then back to unix form
12026 # but this time dos style (no spaces!) so that the unix form looks
12027 # like /cygdrive/c/PROGRA~1:/cygdr...
12028 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12029 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12030 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12031 ;;
12032 *)
6f57a957 12033 sys_lib_search_path_spec=$LIB
b6d0720c
AC
12034 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12035 # It is most probably a Windows format PATH.
12036 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12037 else
12038 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12039 fi
12040 # FIXME: find the short name or the path components, as spaces are
12041 # common. (e.g. "Program Files" -> "PROGRA~1")
12042 ;;
12043 esac
12044
12045 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6f57a957
AC
12046 postinstall_cmds='base_file=`basename \$file`~
12047 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
b6d0720c
AC
12048 dldir=$destdir/`dirname \$dlpath`~
12049 test -d \$dldir || mkdir -p \$dldir~
12050 $install_prog $dir/$dlname \$dldir/$dlname'
12051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12052 dlpath=$dir/\$dldll~
12053 $RM \$dlpath'
12054 shlibpath_overrides_runpath=yes
12055 dynamic_linker='Win32 link.exe'
7083c021
AC
12056 ;;
12057
12058 *)
b6d0720c 12059 # Assume MSVC wrapper
6f57a957 12060 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
b6d0720c 12061 dynamic_linker='Win32 ld.exe'
7083c021
AC
12062 ;;
12063 esac
7083c021
AC
12064 # FIXME: first we should search . and the directory the executable is in
12065 shlibpath_var=PATH
12066 ;;
12067
12068darwin* | rhapsody*)
12069 dynamic_linker="$host_os dyld"
12070 version_type=darwin
12071 need_lib_prefix=no
12072 need_version=no
6f57a957
AC
12073 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12074 soname_spec='$libname$release$major$shared_ext'
7083c021
AC
12075 shlibpath_overrides_runpath=yes
12076 shlibpath_var=DYLD_LIBRARY_PATH
12077 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12078
12079 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12080 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12081 ;;
12082
12083dgux*)
a949ab1a 12084 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
12085 need_lib_prefix=no
12086 need_version=no
6f57a957
AC
12087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12088 soname_spec='$libname$release$shared_ext$major'
7083c021
AC
12089 shlibpath_var=LD_LIBRARY_PATH
12090 ;;
12091
7083c021
AC
12092freebsd* | dragonfly*)
12093 # DragonFly does not have aout. When/if they implement a new
12094 # versioning mechanism, adjust this.
12095 if test -x /usr/bin/objformat; then
12096 objformat=`/usr/bin/objformat`
12097 else
12098 case $host_os in
a949ab1a 12099 freebsd[23].*) objformat=aout ;;
7083c021
AC
12100 *) objformat=elf ;;
12101 esac
db137867 12102 fi
5a241f54 12103 version_type=freebsd-$objformat
7083c021
AC
12104 case $version_type in
12105 freebsd-elf*)
6f57a957
AC
12106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12107 soname_spec='$libname$release$shared_ext$major'
7083c021
AC
12108 need_version=no
12109 need_lib_prefix=no
12110 ;;
12111 freebsd-*)
6f57a957 12112 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
7083c021
AC
12113 need_version=yes
12114 ;;
12115 esac
12116 shlibpath_var=LD_LIBRARY_PATH
12117 case $host_os in
a949ab1a 12118 freebsd2.*)
7083c021
AC
12119 shlibpath_overrides_runpath=yes
12120 ;;
12121 freebsd3.[01]* | freebsdelf3.[01]*)
12122 shlibpath_overrides_runpath=yes
12123 hardcode_into_libs=yes
12124 ;;
12125 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12126 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12127 shlibpath_overrides_runpath=no
12128 hardcode_into_libs=yes
12129 ;;
12130 *) # from 4.6 on, and DragonFly
12131 shlibpath_overrides_runpath=yes
12132 hardcode_into_libs=yes
12133 ;;
12134 esac
12135 ;;
db137867 12136
b6d0720c 12137haiku*)
a949ab1a 12138 version_type=linux # correct to gnu/linux during the next big refactor
b6d0720c
AC
12139 need_lib_prefix=no
12140 need_version=no
12141 dynamic_linker="$host_os runtime_loader"
6f57a957
AC
12142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12143 soname_spec='$libname$release$shared_ext$major'
b6d0720c 12144 shlibpath_var=LIBRARY_PATH
6f57a957 12145 shlibpath_overrides_runpath=no
b6d0720c
AC
12146 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12147 hardcode_into_libs=yes
12148 ;;
12149
7083c021
AC
12150hpux9* | hpux10* | hpux11*)
12151 # Give a soname corresponding to the major version so that dld.sl refuses to
12152 # link against other versions.
12153 version_type=sunos
12154 need_lib_prefix=no
12155 need_version=no
12156 case $host_cpu in
12157 ia64*)
12158 shrext_cmds='.so'
12159 hardcode_into_libs=yes
12160 dynamic_linker="$host_os dld.so"
12161 shlibpath_var=LD_LIBRARY_PATH
12162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6f57a957
AC
12163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12164 soname_spec='$libname$release$shared_ext$major'
12165 if test 32 = "$HPUX_IA64_MODE"; then
7083c021 12166 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6f57a957 12167 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
7083c021
AC
12168 else
12169 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6f57a957 12170 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
7083c021 12171 fi
7083c021
AC
12172 ;;
12173 hppa*64*)
12174 shrext_cmds='.sl'
12175 hardcode_into_libs=yes
12176 dynamic_linker="$host_os dld.sl"
12177 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6f57a957
AC
12179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12180 soname_spec='$libname$release$shared_ext$major'
7083c021
AC
12181 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12182 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12183 ;;
12184 *)
12185 shrext_cmds='.sl'
12186 dynamic_linker="$host_os dld.sl"
12187 shlibpath_var=SHLIB_PATH
12188 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6f57a957
AC
12189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12190 soname_spec='$libname$release$shared_ext$major'
7083c021
AC
12191 ;;
12192 esac
b6d0720c 12193 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
7083c021 12194 postinstall_cmds='chmod 555 $lib'
b6d0720c
AC
12195 # or fails outright, so override atomically:
12196 install_override_mode=555
7083c021 12197 ;;
db137867 12198
7083c021 12199interix[3-9]*)
a949ab1a 12200 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
12201 need_lib_prefix=no
12202 need_version=no
6f57a957
AC
12203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12204 soname_spec='$libname$release$shared_ext$major'
7083c021
AC
12205 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12206 shlibpath_var=LD_LIBRARY_PATH
12207 shlibpath_overrides_runpath=no
12208 hardcode_into_libs=yes
12209 ;;
db137867 12210
7083c021
AC
12211irix5* | irix6* | nonstopux*)
12212 case $host_os in
12213 nonstopux*) version_type=nonstopux ;;
12214 *)
6f57a957 12215 if test yes = "$lt_cv_prog_gnu_ld"; then
a949ab1a 12216 version_type=linux # correct to gnu/linux during the next big refactor
db137867 12217 else
7083c021
AC
12218 version_type=irix
12219 fi ;;
12220 esac
12221 need_lib_prefix=no
12222 need_version=no
6f57a957
AC
12223 soname_spec='$libname$release$shared_ext$major'
12224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
7083c021
AC
12225 case $host_os in
12226 irix5* | nonstopux*)
12227 libsuff= shlibsuff=
12228 ;;
12229 *)
12230 case $LD in # libtool.m4 will add one of these switches to LD
12231 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12232 libsuff= shlibsuff= libmagic=32-bit;;
12233 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12234 libsuff=32 shlibsuff=N32 libmagic=N32;;
12235 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12236 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12237 *) libsuff= shlibsuff= libmagic=never-match;;
12238 esac
12239 ;;
12240 esac
12241 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12242 shlibpath_overrides_runpath=no
6f57a957
AC
12243 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12244 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
7083c021
AC
12245 hardcode_into_libs=yes
12246 ;;
db137867 12247
7083c021
AC
12248# No shared lib support for Linux oldld, aout, or coff.
12249linux*oldld* | linux*aout* | linux*coff*)
12250 dynamic_linker=no
12251 ;;
db137867 12252
6f57a957
AC
12253linux*android*)
12254 version_type=none # Android doesn't support versioned libraries.
12255 need_lib_prefix=no
12256 need_version=no
12257 library_names_spec='$libname$release$shared_ext'
12258 soname_spec='$libname$release$shared_ext'
12259 finish_cmds=
12260 shlibpath_var=LD_LIBRARY_PATH
12261 shlibpath_overrides_runpath=yes
12262
12263 # This implies no fast_install, which is unacceptable.
12264 # Some rework will be needed to allow for fast_install
12265 # before this can be enabled.
12266 hardcode_into_libs=yes
12267
12268 dynamic_linker='Android linker'
12269 # Don't embed -rpath directories since the linker doesn't support them.
12270 hardcode_libdir_flag_spec='-L$libdir'
12271 ;;
12272
a949ab1a 12273# This must be glibc/ELF.
6f57a957 12274linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a949ab1a 12275 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
12276 need_lib_prefix=no
12277 need_version=no
6f57a957
AC
12278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12279 soname_spec='$libname$release$shared_ext$major'
7083c021
AC
12280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12281 shlibpath_var=LD_LIBRARY_PATH
12282 shlibpath_overrides_runpath=no
b6d0720c 12283
7083c021 12284 # Some binutils ld are patched to set DT_RUNPATH
b6d0720c
AC
12285 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12286 $as_echo_n "(cached) " >&6
12287else
12288 lt_cv_shlibpath_overrides_runpath=no
12289 save_LDFLAGS=$LDFLAGS
12290 save_libdir=$libdir
12291 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12292 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083c021 12294/* end confdefs.h. */
db137867 12295
7083c021
AC
12296int
12297main ()
12298{
db137867 12299
7083c021
AC
12300 ;
12301 return 0;
12302}
12303_ACEOF
12304if ac_fn_c_try_link "$LINENO"; then :
12305 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
b6d0720c 12306 lt_cv_shlibpath_overrides_runpath=yes
7083c021
AC
12307fi
12308fi
12309rm -f core conftest.err conftest.$ac_objext \
12310 conftest$ac_exeext conftest.$ac_ext
b6d0720c
AC
12311 LDFLAGS=$save_LDFLAGS
12312 libdir=$save_libdir
12313
12314fi
12315
12316 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
db137867 12317
7083c021
AC
12318 # This implies no fast_install, which is unacceptable.
12319 # Some rework will be needed to allow for fast_install
12320 # before this can be enabled.
12321 hardcode_into_libs=yes
db137867 12322
6f57a957
AC
12323 # Ideally, we could use ldconfig to report *all* directores which are
12324 # searched for libraries, however this is still not possible. Aside from not
12325 # being certain /sbin/ldconfig is available, command
12326 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12327 # even though it is searched at run-time. Try to do the best guess by
12328 # appending ld.so.conf contents (and includes) to the search path.
7083c021 12329 if test -f /etc/ld.so.conf; then
b6d0720c
AC
12330 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' ' '`
12331 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
db137867 12332 fi
db137867 12333
7083c021
AC
12334 # We used to test for /lib/ld.so.1 and disable shared libraries on
12335 # powerpc, because MkLinux only supported shared libraries with the
12336 # GNU dynamic linker. Since this was broken with cross compilers,
12337 # most powerpc-linux boxes support dynamic linking these days and
12338 # people can always --disable-shared, the test was removed, and we
12339 # assume the GNU/Linux dynamic linker is in use.
12340 dynamic_linker='GNU/Linux ld.so'
12341 ;;
12342
7083c021
AC
12343netbsd*)
12344 version_type=sunos
12345 need_lib_prefix=no
12346 need_version=no
12347 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6f57a957 12348 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
7083c021
AC
12349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12350 dynamic_linker='NetBSD (a.out) ld.so'
12351 else
6f57a957
AC
12352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12353 soname_spec='$libname$release$shared_ext$major'
7083c021
AC
12354 dynamic_linker='NetBSD ld.elf_so'
12355 fi
12356 shlibpath_var=LD_LIBRARY_PATH
12357 shlibpath_overrides_runpath=yes
12358 hardcode_into_libs=yes
12359 ;;
db137867 12360
7083c021 12361newsos6)
a949ab1a 12362 version_type=linux # correct to gnu/linux during the next big refactor
6f57a957 12363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
7083c021
AC
12364 shlibpath_var=LD_LIBRARY_PATH
12365 shlibpath_overrides_runpath=yes
12366 ;;
db137867 12367
7083c021
AC
12368*nto* | *qnx*)
12369 version_type=qnx
12370 need_lib_prefix=no
12371 need_version=no
6f57a957
AC
12372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12373 soname_spec='$libname$release$shared_ext$major'
7083c021
AC
12374 shlibpath_var=LD_LIBRARY_PATH
12375 shlibpath_overrides_runpath=no
12376 hardcode_into_libs=yes
12377 dynamic_linker='ldqnx.so'
12378 ;;
db137867 12379
6f57a957 12380openbsd* | bitrig*)
7083c021 12381 version_type=sunos
6f57a957 12382 sys_lib_dlsearch_path_spec=/usr/lib
7083c021 12383 need_lib_prefix=no
6f57a957
AC
12384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12385 need_version=no
7083c021 12386 else
6f57a957 12387 need_version=yes
7083c021 12388 fi
6f57a957
AC
12389 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12391 shlibpath_var=LD_LIBRARY_PATH
12392 shlibpath_overrides_runpath=yes
7083c021 12393 ;;
db137867 12394
7083c021
AC
12395os2*)
12396 libname_spec='$name'
6f57a957
AC
12397 version_type=windows
12398 shrext_cmds=.dll
12399 need_version=no
7083c021 12400 need_lib_prefix=no
6f57a957
AC
12401 # OS/2 can only load a DLL with a base name of 8 characters or less.
12402 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12403 v=$($ECHO $release$versuffix | tr -d .-);
12404 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12405 $ECHO $n$v`$shared_ext'
12406 library_names_spec='${libname}_dll.$libext'
7083c021 12407 dynamic_linker='OS/2 ld.exe'
6f57a957
AC
12408 shlibpath_var=BEGINLIBPATH
12409 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12411 postinstall_cmds='base_file=`basename \$file`~
12412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12413 dldir=$destdir/`dirname \$dlpath`~
12414 test -d \$dldir || mkdir -p \$dldir~
12415 $install_prog $dir/$dlname \$dldir/$dlname~
12416 chmod a+x \$dldir/$dlname~
12417 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12418 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12419 fi'
12420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12421 dlpath=$dir/\$dldll~
12422 $RM \$dlpath'
7083c021 12423 ;;
db137867 12424
7083c021
AC
12425osf3* | osf4* | osf5*)
12426 version_type=osf
12427 need_lib_prefix=no
12428 need_version=no
6f57a957
AC
12429 soname_spec='$libname$release$shared_ext$major'
12430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
7083c021
AC
12431 shlibpath_var=LD_LIBRARY_PATH
12432 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6f57a957 12433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7083c021 12434 ;;
db137867 12435
7083c021
AC
12436rdos*)
12437 dynamic_linker=no
12438 ;;
db137867 12439
7083c021 12440solaris*)
a949ab1a 12441 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
12442 need_lib_prefix=no
12443 need_version=no
6f57a957
AC
12444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12445 soname_spec='$libname$release$shared_ext$major'
7083c021
AC
12446 shlibpath_var=LD_LIBRARY_PATH
12447 shlibpath_overrides_runpath=yes
12448 hardcode_into_libs=yes
12449 # ldd complains unless libraries are executable
12450 postinstall_cmds='chmod +x $lib'
12451 ;;
db137867 12452
7083c021
AC
12453sunos4*)
12454 version_type=sunos
6f57a957 12455 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
7083c021
AC
12456 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12457 shlibpath_var=LD_LIBRARY_PATH
12458 shlibpath_overrides_runpath=yes
6f57a957 12459 if test yes = "$with_gnu_ld"; then
7083c021
AC
12460 need_lib_prefix=no
12461 fi
12462 need_version=yes
12463 ;;
db137867 12464
7083c021 12465sysv4 | sysv4.3*)
a949ab1a 12466 version_type=linux # correct to gnu/linux during the next big refactor
6f57a957
AC
12467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12468 soname_spec='$libname$release$shared_ext$major'
7083c021
AC
12469 shlibpath_var=LD_LIBRARY_PATH
12470 case $host_vendor in
12471 sni)
12472 shlibpath_overrides_runpath=no
12473 need_lib_prefix=no
12474 runpath_var=LD_RUN_PATH
12475 ;;
12476 siemens)
12477 need_lib_prefix=no
12478 ;;
12479 motorola)
12480 need_lib_prefix=no
12481 need_version=no
12482 shlibpath_overrides_runpath=no
12483 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12484 ;;
12485 esac
12486 ;;
db137867 12487
7083c021 12488sysv4*MP*)
6f57a957 12489 if test -d /usr/nec; then
a949ab1a 12490 version_type=linux # correct to gnu/linux during the next big refactor
6f57a957
AC
12491 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12492 soname_spec='$libname$shared_ext.$major'
7083c021
AC
12493 shlibpath_var=LD_LIBRARY_PATH
12494 fi
12495 ;;
db137867 12496
7083c021 12497sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6f57a957 12498 version_type=sco
7083c021
AC
12499 need_lib_prefix=no
12500 need_version=no
6f57a957
AC
12501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12502 soname_spec='$libname$release$shared_ext$major'
7083c021
AC
12503 shlibpath_var=LD_LIBRARY_PATH
12504 shlibpath_overrides_runpath=yes
12505 hardcode_into_libs=yes
6f57a957 12506 if test yes = "$with_gnu_ld"; then
7083c021
AC
12507 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12508 else
12509 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12510 case $host_os in
12511 sco3.2v5*)
12512 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12513 ;;
12514 esac
12515 fi
12516 sys_lib_dlsearch_path_spec='/usr/lib'
12517 ;;
db137867 12518
7083c021
AC
12519tpf*)
12520 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
a949ab1a 12521 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
12522 need_lib_prefix=no
12523 need_version=no
6f57a957 12524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
7083c021
AC
12525 shlibpath_var=LD_LIBRARY_PATH
12526 shlibpath_overrides_runpath=no
12527 hardcode_into_libs=yes
12528 ;;
db137867 12529
7083c021 12530uts4*)
a949ab1a 12531 version_type=linux # correct to gnu/linux during the next big refactor
6f57a957
AC
12532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12533 soname_spec='$libname$release$shared_ext$major'
7083c021
AC
12534 shlibpath_var=LD_LIBRARY_PATH
12535 ;;
db137867 12536
7083c021
AC
12537*)
12538 dynamic_linker=no
12539 ;;
12540esac
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12542$as_echo "$dynamic_linker" >&6; }
6f57a957 12543test no = "$dynamic_linker" && can_build_shared=no
db137867 12544
7083c021 12545variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6f57a957 12546if test yes = "$GCC"; then
7083c021
AC
12547 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12548fi
db137867 12549
6f57a957
AC
12550if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12551 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
7083c021 12552fi
6f57a957
AC
12553
12554if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12555 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
7083c021 12556fi
db137867 12557
6f57a957
AC
12558# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12559configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12560
12561# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12562func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12563
12564# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12565configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12566
12567
12568
12569
12570
12571
db137867 12572
db137867 12573
db137867 12574
db137867 12575
db137867 12576
db137867 12577
db137867 12578
db137867 12579
db137867 12580
db137867 12581
db137867 12582
db137867 12583
db137867 12584
db137867 12585
db137867 12586
db137867 12587
db137867 12588
db137867 12589
db137867 12590
db137867 12591
db137867 12592
db137867 12593
db137867 12594
db137867 12595
db137867 12596
db137867 12597
db137867 12598
db137867 12599
db137867 12600
db137867 12601
db137867 12602
db137867 12603
db137867 12604
db137867 12605
db137867 12606
db137867 12607
db137867 12608
db137867 12609
db137867 12610
db137867 12611
db137867 12612
db137867 12613
db137867 12614
db137867 12615
b676ea3b 12616
db137867 12617
db137867 12618
db137867 12619
db137867 12620
db137867 12621
db137867 12622
db137867 12623
db137867 12624
db137867 12625
db137867 12626
db137867 12627
db137867 12628
db137867 12629
db137867 12630
db137867 12631
db137867 12632
db137867 12633
db137867 12634
db137867 12635
db137867 12636
db137867 12637
db137867 12638
db137867 12639
db137867 12640
db137867 12641
db137867 12642
db137867 12643
db137867 12644
db137867 12645
db137867 12646
db137867 12647
db137867 12648
db137867 12649
db137867
AC
12650
12651
b6d0720c
AC
12652
12653
12654
12655
12656
db137867
AC
12657
12658
db137867 12659
db137867 12660
db137867 12661
db137867 12662
7083c021
AC
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12664$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12665hardcode_action=
12666if test -n "$hardcode_libdir_flag_spec" ||
12667 test -n "$runpath_var" ||
6f57a957 12668 test yes = "$hardcode_automatic"; then
db137867 12669
7083c021 12670 # We can hardcode non-existent directories.
6f57a957 12671 if test no != "$hardcode_direct" &&
7083c021
AC
12672 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12673 # have to relink, otherwise we might link with an installed library
12674 # when we should be linking with a yet-to-be-installed one
6f57a957
AC
12675 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12676 test no != "$hardcode_minus_L"; then
7083c021
AC
12677 # Linking always hardcodes the temporary library directory.
12678 hardcode_action=relink
db137867 12679 else
7083c021
AC
12680 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12681 hardcode_action=immediate
db137867 12682 fi
7083c021
AC
12683else
12684 # We cannot hardcode anything, or else we can only hardcode existing
12685 # directories.
12686 hardcode_action=unsupported
12687fi
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12689$as_echo "$hardcode_action" >&6; }
12690
6f57a957
AC
12691if test relink = "$hardcode_action" ||
12692 test yes = "$inherit_rpath"; then
7083c021
AC
12693 # Fast installation is not supported
12694 enable_fast_install=no
6f57a957
AC
12695elif test yes = "$shlibpath_overrides_runpath" ||
12696 test no = "$enable_shared"; then
7083c021
AC
12697 # Fast installation is not necessary
12698 enable_fast_install=needless
db137867
AC
12699fi
12700
12701
12702
db137867 12703
db137867 12704
db137867 12705
6f57a957 12706 if test yes != "$enable_dlopen"; then
7083c021
AC
12707 enable_dlopen=unknown
12708 enable_dlopen_self=unknown
12709 enable_dlopen_self_static=unknown
12710else
12711 lt_cv_dlopen=no
12712 lt_cv_dlopen_libs=
db137867 12713
7083c021
AC
12714 case $host_os in
12715 beos*)
6f57a957 12716 lt_cv_dlopen=load_add_on
7083c021
AC
12717 lt_cv_dlopen_libs=
12718 lt_cv_dlopen_self=yes
12719 ;;
db137867 12720
7083c021 12721 mingw* | pw32* | cegcc*)
6f57a957 12722 lt_cv_dlopen=LoadLibrary
7083c021
AC
12723 lt_cv_dlopen_libs=
12724 ;;
db137867 12725
7083c021 12726 cygwin*)
6f57a957 12727 lt_cv_dlopen=dlopen
7083c021
AC
12728 lt_cv_dlopen_libs=
12729 ;;
db137867 12730
7083c021 12731 darwin*)
6f57a957 12732 # if libdl is installed we need to link against it
7083c021
AC
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12734$as_echo_n "checking for dlopen in -ldl... " >&6; }
08c2568c 12735if ${ac_cv_lib_dl_dlopen+:} false; then :
7083c021
AC
12736 $as_echo_n "(cached) " >&6
12737else
12738 ac_check_lib_save_LIBS=$LIBS
12739LIBS="-ldl $LIBS"
12740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741/* end confdefs.h. */
db137867 12742
7083c021
AC
12743/* Override any GCC internal prototype to avoid an error.
12744 Use char because int might match the return type of a GCC
12745 builtin and then its argument prototype would still apply. */
12746#ifdef __cplusplus
12747extern "C"
12748#endif
12749char dlopen ();
12750int
12751main ()
12752{
12753return dlopen ();
12754 ;
12755 return 0;
12756}
12757_ACEOF
12758if ac_fn_c_try_link "$LINENO"; then :
12759 ac_cv_lib_dl_dlopen=yes
12760else
12761 ac_cv_lib_dl_dlopen=no
12762fi
12763rm -f core conftest.err conftest.$ac_objext \
12764 conftest$ac_exeext conftest.$ac_ext
12765LIBS=$ac_check_lib_save_LIBS
12766fi
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12768$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
08c2568c 12769if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6f57a957 12770 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
7083c021 12771else
db137867 12772
6f57a957 12773 lt_cv_dlopen=dyld
7083c021
AC
12774 lt_cv_dlopen_libs=
12775 lt_cv_dlopen_self=yes
db137867 12776
7083c021 12777fi
db137867 12778
7083c021 12779 ;;
db137867 12780
6f57a957
AC
12781 tpf*)
12782 # Don't try to run any link tests for TPF. We know it's impossible
12783 # because TPF is a cross-compiler, and we know how we open DSOs.
12784 lt_cv_dlopen=dlopen
12785 lt_cv_dlopen_libs=
12786 lt_cv_dlopen_self=no
12787 ;;
12788
7083c021
AC
12789 *)
12790 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
08c2568c 12791if test "x$ac_cv_func_shl_load" = xyes; then :
6f57a957 12792 lt_cv_dlopen=shl_load
7083c021
AC
12793else
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12795$as_echo_n "checking for shl_load in -ldld... " >&6; }
08c2568c 12796if ${ac_cv_lib_dld_shl_load+:} false; then :
7083c021
AC
12797 $as_echo_n "(cached) " >&6
12798else
12799 ac_check_lib_save_LIBS=$LIBS
12800LIBS="-ldld $LIBS"
12801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802/* end confdefs.h. */
db137867 12803
7083c021
AC
12804/* Override any GCC internal prototype to avoid an error.
12805 Use char because int might match the return type of a GCC
12806 builtin and then its argument prototype would still apply. */
12807#ifdef __cplusplus
12808extern "C"
12809#endif
12810char shl_load ();
12811int
12812main ()
12813{
12814return shl_load ();
12815 ;
12816 return 0;
12817}
12818_ACEOF
12819if ac_fn_c_try_link "$LINENO"; then :
12820 ac_cv_lib_dld_shl_load=yes
12821else
12822 ac_cv_lib_dld_shl_load=no
12823fi
12824rm -f core conftest.err conftest.$ac_objext \
12825 conftest$ac_exeext conftest.$ac_ext
12826LIBS=$ac_check_lib_save_LIBS
12827fi
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12829$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
08c2568c 12830if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6f57a957 12831 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
7083c021
AC
12832else
12833 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
08c2568c 12834if test "x$ac_cv_func_dlopen" = xyes; then :
6f57a957 12835 lt_cv_dlopen=dlopen
7083c021
AC
12836else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12838$as_echo_n "checking for dlopen in -ldl... " >&6; }
08c2568c 12839if ${ac_cv_lib_dl_dlopen+:} false; then :
7083c021
AC
12840 $as_echo_n "(cached) " >&6
12841else
12842 ac_check_lib_save_LIBS=$LIBS
12843LIBS="-ldl $LIBS"
12844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845/* end confdefs.h. */
db137867 12846
7083c021
AC
12847/* Override any GCC internal prototype to avoid an error.
12848 Use char because int might match the return type of a GCC
12849 builtin and then its argument prototype would still apply. */
12850#ifdef __cplusplus
12851extern "C"
12852#endif
12853char dlopen ();
12854int
12855main ()
12856{
12857return dlopen ();
12858 ;
12859 return 0;
12860}
12861_ACEOF
12862if ac_fn_c_try_link "$LINENO"; then :
12863 ac_cv_lib_dl_dlopen=yes
12864else
12865 ac_cv_lib_dl_dlopen=no
12866fi
12867rm -f core conftest.err conftest.$ac_objext \
12868 conftest$ac_exeext conftest.$ac_ext
12869LIBS=$ac_check_lib_save_LIBS
12870fi
12871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12872$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
08c2568c 12873if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6f57a957 12874 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
7083c021
AC
12875else
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12877$as_echo_n "checking for dlopen in -lsvld... " >&6; }
08c2568c 12878if ${ac_cv_lib_svld_dlopen+:} false; then :
7083c021
AC
12879 $as_echo_n "(cached) " >&6
12880else
12881 ac_check_lib_save_LIBS=$LIBS
12882LIBS="-lsvld $LIBS"
12883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884/* end confdefs.h. */
db137867 12885
7083c021
AC
12886/* Override any GCC internal prototype to avoid an error.
12887 Use char because int might match the return type of a GCC
12888 builtin and then its argument prototype would still apply. */
12889#ifdef __cplusplus
12890extern "C"
12891#endif
12892char dlopen ();
12893int
12894main ()
12895{
12896return dlopen ();
12897 ;
12898 return 0;
12899}
12900_ACEOF
12901if ac_fn_c_try_link "$LINENO"; then :
12902 ac_cv_lib_svld_dlopen=yes
12903else
12904 ac_cv_lib_svld_dlopen=no
12905fi
12906rm -f core conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext conftest.$ac_ext
12908LIBS=$ac_check_lib_save_LIBS
12909fi
12910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12911$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
08c2568c 12912if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6f57a957 12913 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
7083c021
AC
12914else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12916$as_echo_n "checking for dld_link in -ldld... " >&6; }
08c2568c 12917if ${ac_cv_lib_dld_dld_link+:} false; then :
7083c021
AC
12918 $as_echo_n "(cached) " >&6
12919else
12920 ac_check_lib_save_LIBS=$LIBS
12921LIBS="-ldld $LIBS"
12922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923/* end confdefs.h. */
db137867 12924
7083c021
AC
12925/* Override any GCC internal prototype to avoid an error.
12926 Use char because int might match the return type of a GCC
12927 builtin and then its argument prototype would still apply. */
12928#ifdef __cplusplus
12929extern "C"
12930#endif
12931char dld_link ();
12932int
12933main ()
12934{
12935return dld_link ();
12936 ;
12937 return 0;
12938}
12939_ACEOF
12940if ac_fn_c_try_link "$LINENO"; then :
12941 ac_cv_lib_dld_dld_link=yes
12942else
12943 ac_cv_lib_dld_dld_link=no
12944fi
12945rm -f core conftest.err conftest.$ac_objext \
12946 conftest$ac_exeext conftest.$ac_ext
12947LIBS=$ac_check_lib_save_LIBS
12948fi
12949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12950$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
08c2568c 12951if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6f57a957 12952 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
7083c021 12953fi
db137867
AC
12954
12955
7083c021 12956fi
db137867
AC
12957
12958
7083c021 12959fi
db137867
AC
12960
12961
7083c021 12962fi
db137867 12963
db137867 12964
7083c021 12965fi
db137867 12966
db137867 12967
7083c021 12968fi
db137867 12969
7083c021
AC
12970 ;;
12971 esac
db137867 12972
6f57a957 12973 if test no = "$lt_cv_dlopen"; then
7083c021 12974 enable_dlopen=no
6f57a957
AC
12975 else
12976 enable_dlopen=yes
7083c021 12977 fi
db137867 12978
7083c021
AC
12979 case $lt_cv_dlopen in
12980 dlopen)
6f57a957
AC
12981 save_CPPFLAGS=$CPPFLAGS
12982 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
db137867 12983
6f57a957 12984 save_LDFLAGS=$LDFLAGS
7083c021 12985 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
db137867 12986
6f57a957 12987 save_LIBS=$LIBS
7083c021 12988 LIBS="$lt_cv_dlopen_libs $LIBS"
db137867 12989
7083c021
AC
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12991$as_echo_n "checking whether a program can dlopen itself... " >&6; }
08c2568c 12992if ${lt_cv_dlopen_self+:} false; then :
030272f3 12993 $as_echo_n "(cached) " >&6
db137867 12994else
6f57a957 12995 if test yes = "$cross_compiling"; then :
7083c021 12996 lt_cv_dlopen_self=cross
db137867 12997else
7083c021
AC
12998 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12999 lt_status=$lt_dlunknown
13000 cat > conftest.$ac_ext <<_LT_EOF
b6d0720c 13001#line $LINENO "configure"
7083c021 13002#include "confdefs.h"
db137867 13003
7083c021
AC
13004#if HAVE_DLFCN_H
13005#include <dlfcn.h>
13006#endif
db137867 13007
7083c021 13008#include <stdio.h>
db137867 13009
7083c021
AC
13010#ifdef RTLD_GLOBAL
13011# define LT_DLGLOBAL RTLD_GLOBAL
13012#else
13013# ifdef DL_GLOBAL
13014# define LT_DLGLOBAL DL_GLOBAL
13015# else
13016# define LT_DLGLOBAL 0
13017# endif
13018#endif
db137867 13019
7083c021
AC
13020/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13021 find out it does not work in some platform. */
13022#ifndef LT_DLLAZY_OR_NOW
13023# ifdef RTLD_LAZY
13024# define LT_DLLAZY_OR_NOW RTLD_LAZY
13025# else
13026# ifdef DL_LAZY
13027# define LT_DLLAZY_OR_NOW DL_LAZY
13028# else
13029# ifdef RTLD_NOW
13030# define LT_DLLAZY_OR_NOW RTLD_NOW
13031# else
13032# ifdef DL_NOW
13033# define LT_DLLAZY_OR_NOW DL_NOW
13034# else
13035# define LT_DLLAZY_OR_NOW 0
13036# endif
13037# endif
13038# endif
13039# endif
13040#endif
db137867 13041
6f57a957 13042/* When -fvisibility=hidden is used, assume the code has been annotated
b6d0720c 13043 correspondingly for the symbols needed. */
6f57a957 13044#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
b6d0720c
AC
13045int fnord () __attribute__((visibility("default")));
13046#endif
13047
13048int fnord () { return 42; }
7083c021
AC
13049int main ()
13050{
13051 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13052 int status = $lt_dlunknown;
db137867 13053
7083c021
AC
13054 if (self)
13055 {
13056 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b6d0720c
AC
13057 else
13058 {
13059 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13060 else puts (dlerror ());
13061 }
7083c021
AC
13062 /* dlclose (self); */
13063 }
13064 else
13065 puts (dlerror ());
db137867 13066
7083c021
AC
13067 return status;
13068}
13069_LT_EOF
13070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13071 (eval $ac_link) 2>&5
13072 ac_status=$?
13073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6f57a957 13074 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
7083c021
AC
13075 (./conftest; exit; ) >&5 2>/dev/null
13076 lt_status=$?
13077 case x$lt_status in
13078 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13079 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13080 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13081 esac
13082 else :
13083 # compilation failed
13084 lt_cv_dlopen_self=no
13085 fi
db137867 13086fi
7083c021 13087rm -fr conftest*
db137867 13088
db137867 13089
7083c021
AC
13090fi
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13092$as_echo "$lt_cv_dlopen_self" >&6; }
db137867 13093
6f57a957 13094 if test yes = "$lt_cv_dlopen_self"; then
7083c021
AC
13095 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13097$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
08c2568c 13098if ${lt_cv_dlopen_self_static+:} false; then :
030272f3 13099 $as_echo_n "(cached) " >&6
db137867 13100else
6f57a957 13101 if test yes = "$cross_compiling"; then :
7083c021 13102 lt_cv_dlopen_self_static=cross
db137867 13103else
7083c021
AC
13104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13105 lt_status=$lt_dlunknown
13106 cat > conftest.$ac_ext <<_LT_EOF
b6d0720c 13107#line $LINENO "configure"
7083c021 13108#include "confdefs.h"
db137867 13109
7083c021
AC
13110#if HAVE_DLFCN_H
13111#include <dlfcn.h>
13112#endif
db137867 13113
7083c021 13114#include <stdio.h>
db137867 13115
7083c021
AC
13116#ifdef RTLD_GLOBAL
13117# define LT_DLGLOBAL RTLD_GLOBAL
13118#else
13119# ifdef DL_GLOBAL
13120# define LT_DLGLOBAL DL_GLOBAL
13121# else
13122# define LT_DLGLOBAL 0
13123# endif
13124#endif
db137867 13125
7083c021
AC
13126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13127 find out it does not work in some platform. */
13128#ifndef LT_DLLAZY_OR_NOW
13129# ifdef RTLD_LAZY
13130# define LT_DLLAZY_OR_NOW RTLD_LAZY
13131# else
13132# ifdef DL_LAZY
13133# define LT_DLLAZY_OR_NOW DL_LAZY
13134# else
13135# ifdef RTLD_NOW
13136# define LT_DLLAZY_OR_NOW RTLD_NOW
13137# else
13138# ifdef DL_NOW
13139# define LT_DLLAZY_OR_NOW DL_NOW
13140# else
13141# define LT_DLLAZY_OR_NOW 0
13142# endif
13143# endif
13144# endif
13145# endif
13146#endif
db137867 13147
6f57a957 13148/* When -fvisibility=hidden is used, assume the code has been annotated
b6d0720c 13149 correspondingly for the symbols needed. */
6f57a957 13150#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
b6d0720c
AC
13151int fnord () __attribute__((visibility("default")));
13152#endif
13153
13154int fnord () { return 42; }
7083c021
AC
13155int main ()
13156{
13157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13158 int status = $lt_dlunknown;
db137867 13159
7083c021
AC
13160 if (self)
13161 {
13162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b6d0720c
AC
13163 else
13164 {
13165 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13166 else puts (dlerror ());
13167 }
7083c021
AC
13168 /* dlclose (self); */
13169 }
13170 else
13171 puts (dlerror ());
db137867 13172
7083c021
AC
13173 return status;
13174}
13175_LT_EOF
13176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13177 (eval $ac_link) 2>&5
13178 ac_status=$?
13179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6f57a957 13180 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
7083c021
AC
13181 (./conftest; exit; ) >&5 2>/dev/null
13182 lt_status=$?
13183 case x$lt_status in
13184 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13185 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13186 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13187 esac
13188 else :
13189 # compilation failed
13190 lt_cv_dlopen_self_static=no
13191 fi
db137867 13192fi
7083c021 13193rm -fr conftest*
3202e249 13194
db137867 13195
db137867 13196fi
7083c021
AC
13197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13198$as_echo "$lt_cv_dlopen_self_static" >&6; }
13199 fi
db137867 13200
6f57a957
AC
13201 CPPFLAGS=$save_CPPFLAGS
13202 LDFLAGS=$save_LDFLAGS
13203 LIBS=$save_LIBS
7083c021
AC
13204 ;;
13205 esac
db137867 13206
7083c021
AC
13207 case $lt_cv_dlopen_self in
13208 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13209 *) enable_dlopen_self=unknown ;;
13210 esac
db137867 13211
7083c021
AC
13212 case $lt_cv_dlopen_self_static in
13213 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13214 *) enable_dlopen_self_static=unknown ;;
13215 esac
db137867
AC
13216fi
13217
db137867 13218
db137867 13219
030272f3
VY
13220
13221
030272f3 13222
db137867 13223
db137867 13224
db137867 13225
030272f3 13226
030272f3 13227
db137867 13228
030272f3 13229
db137867 13230
db137867 13231
db137867 13232
db137867 13233
7083c021
AC
13234striplib=
13235old_striplib=
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13237$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13238if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13239 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13240 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13242$as_echo "yes" >&6; }
030272f3 13243else
7083c021
AC
13244# FIXME - insert some real tests, host_os isn't really good enough
13245 case $host_os in
13246 darwin*)
6f57a957 13247 if test -n "$STRIP"; then
7083c021
AC
13248 striplib="$STRIP -x"
13249 old_striplib="$STRIP -S"
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13251$as_echo "yes" >&6; }
13252 else
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254$as_echo "no" >&6; }
13255 fi
13256 ;;
13257 *)
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259$as_echo "no" >&6; }
13260 ;;
13261 esac
030272f3
VY
13262fi
13263
db137867 13264
030272f3 13265
db137867 13266
db137867 13267
db137867 13268
db137867 13269
db137867 13270
db137867 13271
db137867 13272
db137867
AC
13273
13274
6f57a957 13275 # Report what library types will actually be built
7083c021
AC
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13277$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13279$as_echo "$can_build_shared" >&6; }
db137867 13280
7083c021
AC
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13282$as_echo_n "checking whether to build shared libraries... " >&6; }
6f57a957 13283 test no = "$can_build_shared" && enable_shared=no
db137867 13284
7083c021
AC
13285 # On AIX, shared libraries and static libraries use the same namespace, and
13286 # are all built from PIC.
13287 case $host_os in
13288 aix3*)
6f57a957 13289 test yes = "$enable_shared" && enable_static=no
7083c021
AC
13290 if test -n "$RANLIB"; then
13291 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13292 postinstall_cmds='$RANLIB $lib'
13293 fi
13294 ;;
db137867 13295
7083c021 13296 aix[4-9]*)
6f57a957
AC
13297 if test ia64 != "$host_cpu"; then
13298 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13299 yes,aix,yes) ;; # shared object as lib.so file only
13300 yes,svr4,*) ;; # shared object as lib.so archive member only
13301 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13302 esac
7083c021
AC
13303 fi
13304 ;;
13305 esac
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13307$as_echo "$enable_shared" >&6; }
13308
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13310$as_echo_n "checking whether to build static libraries... " >&6; }
13311 # Make sure either enable_shared or enable_static is yes.
6f57a957 13312 test yes = "$enable_shared" || enable_static=yes
7083c021
AC
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13314$as_echo "$enable_static" >&6; }
db137867 13315
db137867 13316
db137867 13317
db137867 13318
db137867 13319fi
7083c021
AC
13320ac_ext=c
13321ac_cpp='$CPP $CPPFLAGS'
13322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13324ac_compiler_gnu=$ac_cv_c_compiler_gnu
db137867 13325
6f57a957 13326CC=$lt_save_CC
db137867 13327
db137867 13328
db137867 13329
db137867 13330
db137867 13331
db137867 13332
db137867 13333
db137867 13334
db137867 13335
db137867
AC
13336
13337
db137867 13338
db137867 13339
a949ab1a
AC
13340
13341
7083c021 13342 ac_config_commands="$ac_config_commands libtool"
db137867
AC
13343
13344
13345
13346
7083c021 13347# Only expand once:
db137867
AC
13348
13349
13350
7083c021 13351LIBTOOL="$LIBTOOL --silent"
db137867 13352
7083c021
AC
13353case "$host_os" in
13354*cygwin*)
db137867 13355
7083c021
AC
13356cat >>confdefs.h <<_ACEOF
13357#define CYGWIN 1
13358_ACEOF
db137867
AC
13359
13360
7083c021
AC
13361cat >>confdefs.h <<_ACEOF
13362#define WINDOWS 1
13363_ACEOF
db137867 13364
7083c021
AC
13365 ;;
13366*mingw*)
db137867 13367
7083c021
AC
13368cat >>confdefs.h <<_ACEOF
13369#define MINGW 1
13370_ACEOF
db137867
AC
13371
13372
7083c021
AC
13373cat >>confdefs.h <<_ACEOF
13374#define WINDOWS 1
13375_ACEOF
db137867 13376
7083c021 13377 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
08c2568c 13378if test "x$ac_cv_header_windows_h" = xyes; then :
db137867 13379
7083c021 13380else
08c2568c 13381 as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5
7083c021 13382fi
db137867
AC
13383
13384
7083c021 13385 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
08c2568c 13386if test "x$ac_cv_header_winsock2_h" = xyes; then :
db137867 13387
7083c021 13388else
08c2568c 13389 as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5
7083c021 13390fi
db137867 13391
3202e249 13392
7083c021
AC
13393
13394cat >>confdefs.h <<_ACEOF
13395#define HAVE_WINSOCK2_H 1
db137867 13396_ACEOF
7083c021
AC
13397
13398
13399cat >>confdefs.h <<_ACEOF
13400#define HAVE_WINSOCK_H 1
db137867 13401_ACEOF
7083c021
AC
13402
13403 LIBS="$LIBS -lws2_32 -liphlpapi"
13404 is_mingw="yes"
13405 ;;
13406*interix*)
13407 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
13408 ;;
13409*solaris*)
13410 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
13411 ;;
13412*)
13413 ;;
db137867 13414esac
db137867 13415
7083c021
AC
13416 if test "$is_mingw" = "yes"; then
13417 MINGW_TRUE=
13418 MINGW_FALSE='#'
13419else
13420 MINGW_TRUE='#'
13421 MINGW_FALSE=
db137867
AC
13422fi
13423
db137867 13424
db137867 13425
7083c021
AC
13426# backwards support for IRC_CFLAGS
13427CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
13428
13429if test "$libexecdir" = '${exec_prefix}/libexec' &&
13430 test "$localstatedir" = '${prefix}/var'; then
13431 libexecdir='${bindir}'
13432 localstatedir='${prefix}'
db137867
AC
13433fi
13434
7083c021 13435ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
08c2568c 13436if test "x$ac_cv_type_pid_t" = xyes; then :
db137867 13437
db137867 13438else
7083c021
AC
13439
13440cat >>confdefs.h <<_ACEOF
13441#define pid_t int
13442_ACEOF
db137867
AC
13443
13444fi
7083c021
AC
13445
13446ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
08c2568c 13447if test "x$ac_cv_type_size_t" = xyes; then :
7083c021
AC
13448
13449else
13450
13451cat >>confdefs.h <<_ACEOF
13452#define size_t unsigned int
db137867
AC
13453_ACEOF
13454
13455fi
13456
7083c021 13457ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
08c2568c 13458if test "x$ac_cv_type_ssize_t" = xyes; then :
db137867 13459
db137867 13460else
7083c021
AC
13461
13462cat >>confdefs.h <<_ACEOF
13463#define ssize_t int
db137867 13464_ACEOF
7083c021
AC
13465
13466fi
13467
13468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13469$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
08c2568c 13470if ${ac_cv_type_uid_t+:} false; then :
7083c021
AC
13471 $as_echo_n "(cached) " >&6
13472else
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
13474/* end confdefs.h. */
13475#include <sys/types.h>
db137867 13476
db137867 13477_ACEOF
7083c021
AC
13478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13479 $EGREP "uid_t" >/dev/null 2>&1; then :
13480 ac_cv_type_uid_t=yes
db137867 13481else
7083c021 13482 ac_cv_type_uid_t=no
db137867 13483fi
7083c021 13484rm -f conftest*
db137867 13485
db137867 13486fi
7083c021
AC
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13488$as_echo "$ac_cv_type_uid_t" >&6; }
13489if test $ac_cv_type_uid_t = no; then
db137867 13490
7083c021
AC
13491$as_echo "#define uid_t int" >>confdefs.h
13492
13493
13494$as_echo "#define gid_t int" >>confdefs.h
db137867
AC
13495
13496fi
13497
13498
13499
7083c021
AC
13500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13501$as_echo_n "checking for ANSI C header files... " >&6; }
08c2568c 13502if ${ac_cv_header_stdc+:} false; then :
030272f3 13503 $as_echo_n "(cached) " >&6
db137867 13504else
7083c021 13505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13506/* end confdefs.h. */
7083c021
AC
13507#include <stdlib.h>
13508#include <stdarg.h>
13509#include <string.h>
13510#include <float.h>
db137867 13511
db137867
AC
13512int
13513main ()
13514{
7083c021 13515
db137867
AC
13516 ;
13517 return 0;
13518}
13519_ACEOF
7083c021
AC
13520if ac_fn_c_try_compile "$LINENO"; then :
13521 ac_cv_header_stdc=yes
db137867 13522else
7083c021
AC
13523 ac_cv_header_stdc=no
13524fi
13525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
db137867 13526
7083c021
AC
13527if test $ac_cv_header_stdc = yes; then
13528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530/* end confdefs.h. */
13531#include <string.h>
db137867 13532
7083c021
AC
13533_ACEOF
13534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13535 $EGREP "memchr" >/dev/null 2>&1; then :
db137867 13536
db137867 13537else
7083c021 13538 ac_cv_header_stdc=no
db137867 13539fi
7083c021 13540rm -f conftest*
db137867
AC
13541
13542fi
13543
7083c021
AC
13544if test $ac_cv_header_stdc = yes; then
13545 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547/* end confdefs.h. */
13548#include <stdlib.h>
db137867 13549
db137867 13550_ACEOF
7083c021
AC
13551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13552 $EGREP "free" >/dev/null 2>&1; then :
db137867 13553
7083c021
AC
13554else
13555 ac_cv_header_stdc=no
13556fi
13557rm -f conftest*
db137867 13558
7083c021 13559fi
db137867 13560
7083c021
AC
13561if test $ac_cv_header_stdc = yes; then
13562 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13563 if test "$cross_compiling" = yes; then :
13564 :
db137867 13565else
7083c021 13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13567/* end confdefs.h. */
7083c021
AC
13568#include <ctype.h>
13569#include <stdlib.h>
13570#if ((' ' & 0x0FF) == 0x020)
13571# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13572# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13573#else
13574# define ISLOWER(c) \
13575 (('a' <= (c) && (c) <= 'i') \
13576 || ('j' <= (c) && (c) <= 'r') \
13577 || ('s' <= (c) && (c) <= 'z'))
13578# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
db137867
AC
13579#endif
13580
7083c021 13581#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
db137867
AC
13582int
13583main ()
13584{
7083c021
AC
13585 int i;
13586 for (i = 0; i < 256; i++)
13587 if (XOR (islower (i), ISLOWER (i))
13588 || toupper (i) != TOUPPER (i))
13589 return 2;
db137867
AC
13590 return 0;
13591}
13592_ACEOF
7083c021 13593if ac_fn_c_try_run "$LINENO"; then :
db137867 13594
7083c021
AC
13595else
13596 ac_cv_header_stdc=no
13597fi
13598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13599 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
13600fi
13601
db137867 13602fi
7083c021
AC
13603fi
13604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13605$as_echo "$ac_cv_header_stdc" >&6; }
13606if test $ac_cv_header_stdc = yes; then
13607
13608$as_echo "#define STDC_HEADERS 1" >>confdefs.h
db137867 13609
db137867 13610fi
db137867 13611
7083c021 13612
77cb59b3 13613for 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 linux/tcp.h
7083c021
AC
13614do :
13615 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13616ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
08c2568c 13617if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
13618 cat >>confdefs.h <<_ACEOF
13619#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
db137867
AC
13620_ACEOF
13621
13622fi
13623
7083c021 13624done
db137867 13625
7083c021
AC
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13627$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
08c2568c 13628if ${ac_cv_header_time+:} false; then :
030272f3 13629 $as_echo_n "(cached) " >&6
db137867 13630else
7083c021 13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13632/* end confdefs.h. */
db137867 13633#include <sys/types.h>
7083c021
AC
13634#include <sys/time.h>
13635#include <time.h>
db137867 13636
db137867
AC
13637int
13638main ()
13639{
7083c021
AC
13640if ((struct tm *) 0)
13641return 0;
030272f3 13642 ;
db137867 13643 return 0;
7083c021 13644}
030272f3 13645_ACEOF
7083c021
AC
13646if ac_fn_c_try_compile "$LINENO"; then :
13647 ac_cv_header_time=yes
13648else
13649 ac_cv_header_time=no
13650fi
13651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13652fi
13653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13654$as_echo "$ac_cv_header_time" >&6; }
13655if test $ac_cv_header_time = yes; then
13656
13657$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13658
13659fi
13660
13661
13662
13663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13664$as_echo_n "checking for library containing socket... " >&6; }
08c2568c 13665if ${ac_cv_search_socket+:} false; then :
7083c021
AC
13666 $as_echo_n "(cached) " >&6
13667else
13668 ac_func_search_save_LIBS=$LIBS
13669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3 13670/* end confdefs.h. */
030272f3 13671
7083c021
AC
13672/* Override any GCC internal prototype to avoid an error.
13673 Use char because int might match the return type of a GCC
13674 builtin and then its argument prototype would still apply. */
13675#ifdef __cplusplus
13676extern "C"
13677#endif
13678char socket ();
030272f3
VY
13679int
13680main ()
13681{
7083c021 13682return socket ();
db137867
AC
13683 ;
13684 return 0;
13685}
13686_ACEOF
7083c021
AC
13687for ac_lib in '' socket; do
13688 if test -z "$ac_lib"; then
13689 ac_res="none required"
13690 else
13691 ac_res=-l$ac_lib
13692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13693 fi
13694 if ac_fn_c_try_link "$LINENO"; then :
13695 ac_cv_search_socket=$ac_res
13696fi
13697rm -f core conftest.err conftest.$ac_objext \
13698 conftest$ac_exeext
08c2568c 13699 if ${ac_cv_search_socket+:} false; then :
7083c021
AC
13700 break
13701fi
13702done
08c2568c 13703if ${ac_cv_search_socket+:} false; then :
7083c021 13704
db137867 13705else
7083c021
AC
13706 ac_cv_search_socket=no
13707fi
13708rm conftest.$ac_ext
13709LIBS=$ac_func_search_save_LIBS
13710fi
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13712$as_echo "$ac_cv_search_socket" >&6; }
13713ac_res=$ac_cv_search_socket
13714if test "$ac_res" != no; then :
13715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
db137867 13716
db137867
AC
13717fi
13718
030272f3
VY
13719
13720
7083c021
AC
13721ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
13722#ifdef HAVE_SYS_TYPES_H
13723#include <sys/types.h>
13724#endif
13725#ifdef HAVE_SYS_SOCKET_H
13726#include <sys/socket.h>
13727#endif
13728#ifdef HAVE_WINSOCK2_H
13729#include <winsock2.h>
13730#endif
13731
13732"
08c2568c 13733if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7083c021
AC
13734
13735$as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
030272f3 13736
030272f3 13737fi
7083c021
AC
13738
13739
13740ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13741#include <sys/socket.h>
13742"
08c2568c 13743if test "x$ac_cv_type_socklen_t" = xyes; then :
030272f3 13744 rb_cv_socklen_t=socklen_t
db137867
AC
13745else
13746
7083c021 13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
030272f3 13748$as_echo_n "checking for socklen_t equivalent... " >&6; }
08c2568c 13749 if ${rb_cv_socklen_t+:} false; then :
030272f3 13750 $as_echo_n "(cached) " >&6
a9fb3ed0
VY
13751else
13752
13753 # Systems have either "struct sockaddr *" or
13754 # "void *" as the second argument to getpeername
030272f3 13755 rb_cv_socklen_t=
a9fb3ed0
VY
13756 for arg2 in "struct sockaddr" void; do
13757 for t in int size_t unsigned long "unsigned long"; do
7083c021 13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9fb3ed0
VY
13759/* end confdefs.h. */
13760
3202e249 13761#ifdef HAVE_SYS_TYPES_H
a9fb3ed0 13762#include <sys/types.h>
3202e249
VY
13763#endif
13764#ifdef HAVE_SYS_SOCKET_H
a9fb3ed0 13765#include <sys/socket.h>
3202e249
VY
13766#endif
13767#ifdef HAVE_WINSOCK2_H
13768#include <winsock2.h>
13769#endif
a9fb3ed0
VY
13770int getpeername (int, $arg2 *, $t *);
13771
13772int
13773main ()
13774{
13775
13776$t len;
13777getpeername(0,0,&len);
13778
13779 ;
13780 return 0;
13781}
db137867 13782_ACEOF
7083c021 13783if ac_fn_c_try_compile "$LINENO"; then :
a9fb3ed0 13784
030272f3 13785 rb_cv_socklen_t="$t"
a9fb3ed0
VY
13786 break
13787
a9fb3ed0 13788fi
a9fb3ed0
VY
13789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13790 done
13791 done
13792
030272f3 13793 if test "x$rb_cv_socklen_t" = x; then
7083c021 13794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
030272f3
VY
13795$as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
13796 rb_cv_socklen_t=int
a9fb3ed0
VY
13797 fi
13798
13799fi
13800
7083c021
AC
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
13802$as_echo "$rb_cv_socklen_t" >&6; }
13803fi
13804
13805
13806rb_socklen_t=$rb_cv_socklen_t
13807
13808
13809
13810
13811
13812# Check whether --enable-ipv6 was given.
13813if test "${enable_ipv6+set}" = set; then :
13814 enableval=$enable_ipv6; ipv6=$enableval
13815else
13816 ipv6=yes
13817fi
13818
13819
13820if test x$ipv6 != xyes; then
13821 have_v6="no"
13822else
13823
13824have_v6=yes
13825
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
13827$as_echo_n "checking for INET6 protocol support... " >&6; }
08c2568c 13828if ${rb_cv_proto_inet6+:} false; then :
7083c021
AC
13829 $as_echo_n "(cached) " >&6
13830else
13831
13832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833/* end confdefs.h. */
13834
13835#include <sys/types.h>
13836#include <sys/socket.h>
13837
13838#ifndef PF_INET6
13839#error Missing PF_INET6
13840#endif
13841#ifndef AF_INET6
13842#error Mlssing AF_INET6
13843#endif
13844
13845_ACEOF
13846if ac_fn_c_try_cpp "$LINENO"; then :
13847
13848 rb_cv_proto_inet6=yes
13849
13850else
13851
13852 rb_cv_proto_inet6=no
13853
13854fi
08c2568c 13855rm -f conftest.err conftest.i conftest.$ac_ext
7083c021
AC
13856
13857fi
13858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
13859$as_echo "$rb_cv_proto_inet6" >&6; }
13860
13861 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
13862
13863 else :
13864
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
13866$as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
13867 have_v6=no
13868
13869 fi
13870
13871
13872 if test "X$have_v6" = "Xyes"; then
13873
13874 rb_have_sockaddr_in6=
13875 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
13876#include <sys/types.h>
13877#include <sys/socket.h>
13878#include <netinet/in.h>
13879
13880"
08c2568c 13881if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7083c021
AC
13882
13883cat >>confdefs.h <<_ACEOF
13884#define HAVE_STRUCT_SOCKADDR_IN6 1
13885_ACEOF
13886
13887
13888 rb_have_sockaddr_in6=yes
13889
13890else
13891
13892 rb_have_sockaddr_in6=no
13893
13894fi
13895
13896
13897 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
13898
13899 else :
13900
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
13902$as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
13903 have_v6=no
13904
13905 fi
13906
13907 fi
13908
13909fi
13910
13911ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
13912 #include <sys/types.h>
13913 #include <sys/socket.h>
13914
13915"
08c2568c 13916if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7083c021
AC
13917
13918cat >>confdefs.h <<_ACEOF
13919#define HAVE_STRUCT_SOCKADDR_STORAGE 1
13920_ACEOF
13921
13922
13923 rb_have_sockaddr_storage=yes
13924
13925fi
13926
13927
13928
7083c021 13929ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
08c2568c 13930if test "x$ac_cv_header_stdarg_h" = xyes; then :
db137867 13931
7083c021 13932else
08c2568c 13933 as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
7083c021 13934fi
db137867 13935
db137867 13936
db137867 13937
7083c021
AC
13938ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
13939#include <sys/socket.h>
13940"
08c2568c 13941if test "x$ac_cv_type_sa_family_t" = xyes; then :
db137867
AC
13942
13943else
db137867 13944
7083c021 13945$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
db137867
AC
13946
13947fi
db137867 13948
db137867 13949
db137867 13950
7083c021
AC
13951for 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
13952do :
13953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13954ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
08c2568c 13955if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
13956 cat >>confdefs.h <<_ACEOF
13957#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13958_ACEOF
db137867 13959
7083c021
AC
13960fi
13961done
db137867 13962
db137867 13963
7083c021
AC
13964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
13965$as_echo_n "checking for library containing nanosleep... " >&6; }
08c2568c 13966if ${ac_cv_search_nanosleep+:} false; then :
030272f3 13967 $as_echo_n "(cached) " >&6
db137867 13968else
7083c021
AC
13969 ac_func_search_save_LIBS=$LIBS
13970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
13971/* end confdefs.h. */
13972
7083c021
AC
13973/* Override any GCC internal prototype to avoid an error.
13974 Use char because int might match the return type of a GCC
13975 builtin and then its argument prototype would still apply. */
13976#ifdef __cplusplus
13977extern "C"
13978#endif
13979char nanosleep ();
db137867
AC
13980int
13981main ()
13982{
7083c021 13983return nanosleep ();
030272f3 13984 ;
db137867 13985 return 0;
030272f3
VY
13986}
13987_ACEOF
7083c021
AC
13988for ac_lib in '' rt posix4; do
13989 if test -z "$ac_lib"; then
13990 ac_res="none required"
13991 else
13992 ac_res=-l$ac_lib
13993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13994 fi
13995 if ac_fn_c_try_link "$LINENO"; then :
13996 ac_cv_search_nanosleep=$ac_res
13997fi
13998rm -f core conftest.err conftest.$ac_objext \
13999 conftest$ac_exeext
08c2568c 14000 if ${ac_cv_search_nanosleep+:} false; then :
7083c021
AC
14001 break
14002fi
14003done
08c2568c 14004if ${ac_cv_search_nanosleep+:} false; then :
030272f3 14005
7083c021
AC
14006else
14007 ac_cv_search_nanosleep=no
14008fi
14009rm conftest.$ac_ext
14010LIBS=$ac_func_search_save_LIBS
14011fi
14012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14013$as_echo "$ac_cv_search_nanosleep" >&6; }
14014ac_res=$ac_cv_search_nanosleep
14015if test "$ac_res" != no; then :
14016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
030272f3 14017
7083c021
AC
14018$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
14019
14020fi
14021
14022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
14023$as_echo_n "checking for library containing timer_create... " >&6; }
08c2568c 14024if ${ac_cv_search_timer_create+:} false; then :
7083c021
AC
14025 $as_echo_n "(cached) " >&6
14026else
14027 ac_func_search_save_LIBS=$LIBS
14028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029/* end confdefs.h. */
030272f3 14030
7083c021
AC
14031/* Override any GCC internal prototype to avoid an error.
14032 Use char because int might match the return type of a GCC
14033 builtin and then its argument prototype would still apply. */
14034#ifdef __cplusplus
14035extern "C"
14036#endif
14037char timer_create ();
030272f3
VY
14038int
14039main ()
14040{
7083c021 14041return timer_create ();
db137867
AC
14042 ;
14043 return 0;
14044}
14045_ACEOF
7083c021
AC
14046for ac_lib in '' rt; do
14047 if test -z "$ac_lib"; then
14048 ac_res="none required"
14049 else
14050 ac_res=-l$ac_lib
14051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14052 fi
14053 if ac_fn_c_try_link "$LINENO"; then :
14054 ac_cv_search_timer_create=$ac_res
14055fi
14056rm -f core conftest.err conftest.$ac_objext \
14057 conftest$ac_exeext
08c2568c 14058 if ${ac_cv_search_timer_create+:} false; then :
7083c021 14059 break
030272f3 14060fi
7083c021 14061done
08c2568c 14062if ${ac_cv_search_timer_create+:} false; then :
030272f3 14063
db137867 14064else
7083c021 14065 ac_cv_search_timer_create=no
db137867 14066fi
7083c021
AC
14067rm conftest.$ac_ext
14068LIBS=$ac_func_search_save_LIBS
db137867 14069fi
7083c021
AC
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
14071$as_echo "$ac_cv_search_timer_create" >&6; }
14072ac_res=$ac_cv_search_timer_create
14073if test "$ac_res" != no; then :
14074 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
db137867 14075
7083c021 14076$as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
db137867 14077
7083c021 14078fi
db137867 14079
7083c021
AC
14080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
14081$as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
08c2568c 14082if ${rb__cv_timer_create_works+:} false; then :
7083c021
AC
14083 $as_echo_n "(cached) " >&6
14084else
14085 if test "$cross_compiling" = yes; then :
14086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
14088as_fn_error $? "cannot run test program while cross compiling
14089See \`config.log' for more details" "$LINENO" 5; }
db137867 14090else
7083c021
AC
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092/* end confdefs.h. */
db137867 14093
7083c021
AC
14094#ifdef HAVE_TIME_H
14095#include <time.h>
14096#endif
14097#ifdef HAVE_SIGNAL_H
14098#include <signal.h>
14099#endif
14100#ifdef HAVE_UNISTD_H
14101#include <unistd.h>
14102#endif
14103int main(int argc, char *argv[])
14104{
14105#if HAVE_TIMER_CREATE
14106 struct sigevent ev;
14107 timer_t timer;
14108 ev.sigev_notify = SIGEV_SIGNAL;
14109 ev.sigev_signo = SIGVTALRM;
14110 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
14111 return 1;
14112 }
14113#else
14114 return 1;
14115#endif
14116 return 0;
14117}
db137867 14118
7083c021
AC
14119_ACEOF
14120if ac_fn_c_try_run "$LINENO"; then :
14121 rb__cv_timer_create_works=yes
14122else
14123 rb__cv_timer_create_works=no
14124fi
14125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14126 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
14127fi
14128
14129
7083c021
AC
14130fi
14131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
14132$as_echo "$rb__cv_timer_create_works" >&6; }
14133case $rb__cv_timer_create_works in
14134 yes)
14135$as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
14136;;
14137esac
db137867 14138
7083c021
AC
14139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
14140$as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
08c2568c 14141if ${rb__cv_timerfd_create_works+:} false; then :
7083c021
AC
14142 $as_echo_n "(cached) " >&6
14143else
14144 if test "$cross_compiling" = yes; then :
14145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
14147as_fn_error $? "cannot run test program while cross compiling
14148See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
14149else
14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151/* end confdefs.h. */
db137867 14152
7083c021
AC
14153#ifdef HAVE_TIME_H
14154#include <time.h>
14155#endif
14156#ifdef HAVE_SIGNAL_H
14157#include <signal.h>
14158#endif
14159#ifdef HAVE_UNISTD_H
14160#include <unistd.h>
14161#endif
14162#ifdef HAVE_SYS_TIMERFD_H
14163#include <sys/timerfd.h>
14164#endif
14165int main(int argc, char *argv[])
14166{
14167#if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
14168 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
14169 return 1;
14170 }
14171#else
14172 return 1;
14173#endif
14174 return 0;
14175}
db137867 14176
7083c021
AC
14177_ACEOF
14178if ac_fn_c_try_run "$LINENO"; then :
14179 rb__cv_timerfd_create_works=yes
14180else
14181 rb__cv_timerfd_create_works=no
14182fi
14183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14184 conftest.$ac_objext conftest.beam conftest.$ac_ext
14185fi
db137867 14186
db137867
AC
14187
14188fi
7083c021
AC
14189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
14190$as_echo "$rb__cv_timerfd_create_works" >&6; }
14191case $rb__cv_timerfd_create_works in
14192 yes)
14193$as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
14194;;
14195esac
db137867 14196
7083c021
AC
14197
14198# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14199# for constant arguments. Useless!
14200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14201$as_echo_n "checking for working alloca.h... " >&6; }
08c2568c 14202if ${ac_cv_working_alloca_h+:} false; then :
030272f3 14203 $as_echo_n "(cached) " >&6
db137867 14204else
7083c021 14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3 14206/* end confdefs.h. */
7083c021 14207#include <alloca.h>
030272f3
VY
14208int
14209main ()
14210{
7083c021
AC
14211char *p = (char *) alloca (2 * sizeof (int));
14212 if (p) return 0;
db137867
AC
14213 ;
14214 return 0;
14215}
14216_ACEOF
7083c021
AC
14217if ac_fn_c_try_link "$LINENO"; then :
14218 ac_cv_working_alloca_h=yes
030272f3 14219else
7083c021 14220 ac_cv_working_alloca_h=no
db137867 14221fi
7083c021
AC
14222rm -f core conftest.err conftest.$ac_objext \
14223 conftest$ac_exeext conftest.$ac_ext
030272f3 14224fi
7083c021
AC
14225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14226$as_echo "$ac_cv_working_alloca_h" >&6; }
14227if test $ac_cv_working_alloca_h = yes; then
db137867 14228
7083c021 14229$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
db137867
AC
14230
14231fi
14232
7083c021
AC
14233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14234$as_echo_n "checking for alloca... " >&6; }
08c2568c 14235if ${ac_cv_func_alloca_works+:} false; then :
030272f3 14236 $as_echo_n "(cached) " >&6
db137867 14237else
7083c021 14238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 14239/* end confdefs.h. */
7083c021
AC
14240#ifdef __GNUC__
14241# define alloca __builtin_alloca
14242#else
14243# ifdef _MSC_VER
14244# include <malloc.h>
14245# define alloca _alloca
14246# else
14247# ifdef HAVE_ALLOCA_H
14248# include <alloca.h>
14249# else
14250# ifdef _AIX
14251 #pragma alloca
14252# else
14253# ifndef alloca /* predefined by HP cc +Olibcalls */
08c2568c 14254void *alloca (size_t);
7083c021
AC
14255# endif
14256# endif
14257# endif
14258# endif
db137867 14259#endif
7083c021 14260
db137867
AC
14261int
14262main ()
14263{
7083c021
AC
14264char *p = (char *) alloca (1);
14265 if (p) return 0;
db137867
AC
14266 ;
14267 return 0;
14268}
14269_ACEOF
7083c021
AC
14270if ac_fn_c_try_link "$LINENO"; then :
14271 ac_cv_func_alloca_works=yes
db137867 14272else
7083c021 14273 ac_cv_func_alloca_works=no
db137867 14274fi
7083c021
AC
14275rm -f core conftest.err conftest.$ac_objext \
14276 conftest$ac_exeext conftest.$ac_ext
db137867 14277fi
7083c021
AC
14278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14279$as_echo "$ac_cv_func_alloca_works" >&6; }
db137867 14280
7083c021 14281if test $ac_cv_func_alloca_works = yes; then
db137867 14282
7083c021 14283$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
db137867 14284
db137867 14285else
7083c021
AC
14286 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14287# that cause trouble. Some versions do not even contain alloca or
14288# contain a buggy version. If you still want to use their alloca,
14289# use ar to extract alloca.o from them instead of compiling alloca.c.
db137867 14290
7083c021 14291ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
db137867 14292
7083c021 14293$as_echo "#define C_ALLOCA 1" >>confdefs.h
db137867
AC
14294
14295
7083c021
AC
14296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14297$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
08c2568c 14298if ${ac_cv_os_cray+:} false; then :
030272f3 14299 $as_echo_n "(cached) " >&6
db137867 14300else
7083c021 14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 14302/* end confdefs.h. */
7083c021
AC
14303#if defined CRAY && ! defined CRAY2
14304webecray
14305#else
14306wenotbecray
14307#endif
db137867 14308
db137867 14309_ACEOF
7083c021
AC
14310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14311 $EGREP "webecray" >/dev/null 2>&1; then :
14312 ac_cv_os_cray=yes
db137867 14313else
7083c021 14314 ac_cv_os_cray=no
db137867 14315fi
7083c021 14316rm -f conftest*
db137867 14317
db137867 14318fi
7083c021
AC
14319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14320$as_echo "$ac_cv_os_cray" >&6; }
14321if test $ac_cv_os_cray = yes; then
14322 for ac_func in _getb67 GETB67 getb67; do
14323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14324ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
08c2568c 14325if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
db137867 14326
7083c021
AC
14327cat >>confdefs.h <<_ACEOF
14328#define CRAY_STACKSEG_END $ac_func
14329_ACEOF
db137867 14330
7083c021
AC
14331 break
14332fi
db137867 14333
7083c021
AC
14334 done
14335fi
db137867 14336
7083c021
AC
14337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14338$as_echo_n "checking stack direction for C alloca... " >&6; }
08c2568c 14339if ${ac_cv_c_stack_direction+:} false; then :
030272f3 14340 $as_echo_n "(cached) " >&6
db137867 14341else
7083c021
AC
14342 if test "$cross_compiling" = yes; then :
14343 ac_cv_c_stack_direction=0
14344else
14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 14346/* end confdefs.h. */
7083c021 14347$ac_includes_default
db137867 14348int
bf4e01a4 14349find_stack_direction (int *addr, int depth)
db137867 14350{
bf4e01a4
AC
14351 int dir, dummy = 0;
14352 if (! addr)
14353 addr = &dummy;
14354 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14355 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14356 return dir + dummy;
030272f3 14357}
030272f3
VY
14358
14359int
bf4e01a4 14360main (int argc, char **argv)
030272f3 14361{
bf4e01a4 14362 return find_stack_direction (0, argc + !argv + 20) < 0;
db137867
AC
14363}
14364_ACEOF
7083c021
AC
14365if ac_fn_c_try_run "$LINENO"; then :
14366 ac_cv_c_stack_direction=1
030272f3 14367else
7083c021 14368 ac_cv_c_stack_direction=-1
030272f3 14369fi
7083c021
AC
14370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14371 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
14372fi
14373
db137867 14374fi
7083c021
AC
14375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14376$as_echo "$ac_cv_c_stack_direction" >&6; }
14377cat >>confdefs.h <<_ACEOF
14378#define STACK_DIRECTION $ac_cv_c_stack_direction
db137867
AC
14379_ACEOF
14380
db137867 14381
7083c021 14382fi
db137867 14383
7083c021
AC
14384for ac_header in vfork.h
14385do :
14386 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
08c2568c 14387if test "x$ac_cv_header_vfork_h" = xyes; then :
7083c021
AC
14388 cat >>confdefs.h <<_ACEOF
14389#define HAVE_VFORK_H 1
14390_ACEOF
db137867 14391
7083c021 14392fi
db137867 14393
7083c021 14394done
a9fb3ed0 14395
7083c021
AC
14396for ac_func in fork vfork
14397do :
14398 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14399ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
08c2568c 14400if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
14401 cat >>confdefs.h <<_ACEOF
14402#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14403_ACEOF
a9fb3ed0 14404
7083c021
AC
14405fi
14406done
3202e249 14407
7083c021
AC
14408if test "x$ac_cv_func_fork" = xyes; then
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14410$as_echo_n "checking for working fork... " >&6; }
08c2568c 14411if ${ac_cv_func_fork_works+:} false; then :
030272f3 14412 $as_echo_n "(cached) " >&6
db137867 14413else
7083c021
AC
14414 if test "$cross_compiling" = yes; then :
14415 ac_cv_func_fork_works=cross
14416else
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 14418/* end confdefs.h. */
7083c021 14419$ac_includes_default
db137867
AC
14420int
14421main ()
14422{
7083c021
AC
14423
14424 /* By Ruediger Kuhlmann. */
14425 return fork () < 0;
14426
db137867
AC
14427 ;
14428 return 0;
14429}
14430_ACEOF
7083c021
AC
14431if ac_fn_c_try_run "$LINENO"; then :
14432 ac_cv_func_fork_works=yes
db137867 14433else
7083c021 14434 ac_cv_func_fork_works=no
db137867 14435fi
7083c021
AC
14436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14437 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867 14438fi
db137867
AC
14439
14440fi
7083c021
AC
14441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14442$as_echo "$ac_cv_func_fork_works" >&6; }
db137867 14443
7083c021
AC
14444else
14445 ac_cv_func_fork_works=$ac_cv_func_fork
14446fi
14447if test "x$ac_cv_func_fork_works" = xcross; then
14448 case $host in
14449 *-*-amigaos* | *-*-msdosdjgpp*)
14450 # Override, as these systems have only a dummy fork() stub
14451 ac_cv_func_fork_works=no
14452 ;;
14453 *)
14454 ac_cv_func_fork_works=yes
14455 ;;
14456 esac
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14458$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14459fi
14460ac_cv_func_vfork_works=$ac_cv_func_vfork
14461if test "x$ac_cv_func_vfork" = xyes; then
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14463$as_echo_n "checking for working vfork... " >&6; }
08c2568c 14464if ${ac_cv_func_vfork_works+:} false; then :
030272f3 14465 $as_echo_n "(cached) " >&6
db137867 14466else
7083c021
AC
14467 if test "$cross_compiling" = yes; then :
14468 ac_cv_func_vfork_works=cross
14469else
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 14471/* end confdefs.h. */
7083c021
AC
14472/* Thanks to Paul Eggert for this test. */
14473$ac_includes_default
14474#include <sys/wait.h>
14475#ifdef HAVE_VFORK_H
14476# include <vfork.h>
14477#endif
14478/* On some sparc systems, changes by the child to local and incoming
14479 argument registers are propagated back to the parent. The compiler
14480 is told about this with #include <vfork.h>, but some compilers
14481 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14482 static variable whose address is put into a register that is
14483 clobbered by the vfork. */
14484static void
db137867 14485#ifdef __cplusplus
7083c021
AC
14486sparc_address_test (int arg)
14487# else
14488sparc_address_test (arg) int arg;
db137867 14489#endif
7083c021
AC
14490{
14491 static pid_t child;
14492 if (!child) {
14493 child = vfork ();
14494 if (child < 0) {
14495 perror ("vfork");
14496 _exit(2);
14497 }
14498 if (!child) {
14499 arg = getpid();
14500 write(-1, "", 0);
14501 _exit (arg);
14502 }
14503 }
14504}
14505
db137867
AC
14506int
14507main ()
14508{
7083c021
AC
14509 pid_t parent = getpid ();
14510 pid_t child;
14511
14512 sparc_address_test (0);
14513
14514 child = vfork ();
14515
14516 if (child == 0) {
14517 /* Here is another test for sparc vfork register problems. This
14518 test uses lots of local variables, at least as many local
14519 variables as main has allocated so far including compiler
14520 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14521 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14522 reuse the register of parent for one of the local variables,
14523 since it will think that parent can't possibly be used any more
14524 in this routine. Assigning to the local variable will thus
14525 munge parent in the parent process. */
14526 pid_t
14527 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14528 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14529 /* Convince the compiler that p..p7 are live; otherwise, it might
14530 use the same hardware register for all 8 local variables. */
14531 if (p != p1 || p != p2 || p != p3 || p != p4
14532 || p != p5 || p != p6 || p != p7)
14533 _exit(1);
db137867 14534
7083c021
AC
14535 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14536 from child file descriptors. If the child closes a descriptor
14537 before it execs or exits, this munges the parent's descriptor
14538 as well. Test for this by closing stdout in the child. */
14539 _exit(close(fileno(stdout)) != 0);
14540 } else {
14541 int status;
14542 struct stat st;
db137867 14543
7083c021
AC
14544 while (wait(&status) != child)
14545 ;
14546 return (
14547 /* Was there some problem with vforking? */
14548 child < 0
db137867 14549
7083c021
AC
14550 /* Did the child fail? (This shouldn't happen.) */
14551 || status
14552
14553 /* Did the vfork/compiler bug occur? */
14554 || parent != getpid()
14555
14556 /* Did the file descriptor bug occur? */
14557 || fstat(fileno(stdout), &st) != 0
14558 );
14559 }
14560}
14561_ACEOF
14562if ac_fn_c_try_run "$LINENO"; then :
14563 ac_cv_func_vfork_works=yes
db137867 14564else
7083c021 14565 ac_cv_func_vfork_works=no
db137867 14566fi
7083c021
AC
14567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14568 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867 14569fi
db137867 14570
7083c021
AC
14571fi
14572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14573$as_echo "$ac_cv_func_vfork_works" >&6; }
db137867 14574
7083c021
AC
14575fi;
14576if test "x$ac_cv_func_fork_works" = xcross; then
14577 ac_cv_func_vfork_works=$ac_cv_func_vfork
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14579$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
db137867
AC
14580fi
14581
7083c021
AC
14582if test "x$ac_cv_func_vfork_works" = xyes; then
14583
14584$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
db137867 14585
db137867 14586else
db137867 14587
7083c021 14588$as_echo "#define vfork fork" >>confdefs.h
db137867
AC
14589
14590fi
7083c021
AC
14591if test "x$ac_cv_func_fork_works" = xyes; then
14592
14593$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
db137867 14594
db137867 14595fi
7083c021 14596
96f4052b
AC
14597
14598
14599
14600 for ac_header in $ac_header_list
7083c021
AC
14601do :
14602 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
96f4052b
AC
14603ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14604"
08c2568c 14605if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
14606 cat >>confdefs.h <<_ACEOF
14607#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14608_ACEOF
14609
db137867 14610fi
db137867 14611
7083c021
AC
14612done
14613
96f4052b
AC
14614
14615
14616
14617
14618
14619
14620
7083c021
AC
14621for ac_func in getpagesize
14622do :
14623 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
08c2568c 14624if test "x$ac_cv_func_getpagesize" = xyes; then :
7083c021
AC
14625 cat >>confdefs.h <<_ACEOF
14626#define HAVE_GETPAGESIZE 1
db137867
AC
14627_ACEOF
14628
14629fi
7083c021 14630done
db137867 14631
7083c021
AC
14632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14633$as_echo_n "checking for working mmap... " >&6; }
08c2568c 14634if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
030272f3 14635 $as_echo_n "(cached) " >&6
db137867 14636else
7083c021
AC
14637 if test "$cross_compiling" = yes; then :
14638 ac_cv_func_mmap_fixed_mapped=no
14639else
14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 14641/* end confdefs.h. */
7083c021
AC
14642$ac_includes_default
14643/* malloc might have been renamed as rpl_malloc. */
14644#undef malloc
db137867 14645
7083c021
AC
14646/* Thanks to Mike Haertel and Jim Avera for this test.
14647 Here is a matrix of mmap possibilities:
14648 mmap private not fixed
14649 mmap private fixed at somewhere currently unmapped
14650 mmap private fixed at somewhere already mapped
14651 mmap shared not fixed
14652 mmap shared fixed at somewhere currently unmapped
14653 mmap shared fixed at somewhere already mapped
14654 For private mappings, we should verify that changes cannot be read()
14655 back from the file, nor mmap's back from the file at a different
14656 address. (There have been systems where private was not correctly
14657 implemented like the infamous i386 svr4.0, and systems where the
14658 VM page cache was not coherent with the file system buffer cache
14659 like early versions of FreeBSD and possibly contemporary NetBSD.)
14660 For shared mappings, we should conversely verify that changes get
14661 propagated back to all the places they're supposed to be.
14662
14663 Grep wants private fixed already mapped.
14664 The main things grep needs to know about mmap are:
14665 * does it exist and is it safe to write into the mmap'd area
14666 * how to use it (BSD variants) */
14667
14668#include <fcntl.h>
14669#include <sys/mman.h>
14670
14671#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14672char *malloc ();
db137867 14673#endif
7083c021
AC
14674
14675/* This mess was copied from the GNU getpagesize.h. */
14676#ifndef HAVE_GETPAGESIZE
7083c021
AC
14677# ifdef _SC_PAGESIZE
14678# define getpagesize() sysconf(_SC_PAGESIZE)
14679# else /* no _SC_PAGESIZE */
14680# ifdef HAVE_SYS_PARAM_H
14681# include <sys/param.h>
14682# ifdef EXEC_PAGESIZE
14683# define getpagesize() EXEC_PAGESIZE
14684# else /* no EXEC_PAGESIZE */
14685# ifdef NBPG
14686# define getpagesize() NBPG * CLSIZE
14687# ifndef CLSIZE
14688# define CLSIZE 1
14689# endif /* no CLSIZE */
14690# else /* no NBPG */
14691# ifdef NBPC
14692# define getpagesize() NBPC
14693# else /* no NBPC */
14694# ifdef PAGESIZE
14695# define getpagesize() PAGESIZE
14696# endif /* PAGESIZE */
14697# endif /* no NBPC */
14698# endif /* no NBPG */
14699# endif /* no EXEC_PAGESIZE */
14700# else /* no HAVE_SYS_PARAM_H */
14701# define getpagesize() 8192 /* punt totally */
14702# endif /* no HAVE_SYS_PARAM_H */
14703# endif /* no _SC_PAGESIZE */
14704
14705#endif /* no HAVE_GETPAGESIZE */
14706
14707int
14708main ()
db137867 14709{
7083c021 14710 char *data, *data2, *data3;
5a241f54 14711 const char *cdata2;
7083c021 14712 int i, pagesize;
96f4052b 14713 int fd, fd2;
7083c021
AC
14714
14715 pagesize = getpagesize ();
14716
14717 /* First, make a file with some known garbage in it. */
14718 data = (char *) malloc (pagesize);
14719 if (!data)
14720 return 1;
14721 for (i = 0; i < pagesize; ++i)
14722 *(data + i) = rand ();
14723 umask (0);
14724 fd = creat ("conftest.mmap", 0600);
14725 if (fd < 0)
96f4052b 14726 return 2;
7083c021 14727 if (write (fd, data, pagesize) != pagesize)
96f4052b 14728 return 3;
7083c021
AC
14729 close (fd);
14730
96f4052b
AC
14731 /* Next, check that the tail of a page is zero-filled. File must have
14732 non-zero length, otherwise we risk SIGBUS for entire page. */
14733 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14734 if (fd2 < 0)
14735 return 4;
5a241f54
AC
14736 cdata2 = "";
14737 if (write (fd2, cdata2, 1) != 1)
96f4052b 14738 return 5;
5a241f54 14739 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
96f4052b
AC
14740 if (data2 == MAP_FAILED)
14741 return 6;
14742 for (i = 0; i < pagesize; ++i)
14743 if (*(data2 + i))
14744 return 7;
14745 close (fd2);
14746 if (munmap (data2, pagesize))
14747 return 8;
14748
7083c021
AC
14749 /* Next, try to mmap the file at a fixed address which already has
14750 something else allocated at it. If we can, also make sure that
14751 we see the same garbage. */
14752 fd = open ("conftest.mmap", O_RDWR);
14753 if (fd < 0)
96f4052b 14754 return 9;
7083c021
AC
14755 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14756 MAP_PRIVATE | MAP_FIXED, fd, 0L))
96f4052b 14757 return 10;
7083c021
AC
14758 for (i = 0; i < pagesize; ++i)
14759 if (*(data + i) != *(data2 + i))
96f4052b 14760 return 11;
7083c021
AC
14761
14762 /* Finally, make sure that changes to the mapped area do not
14763 percolate back to the file as seen by read(). (This is a bug on
14764 some variants of i386 svr4.0.) */
14765 for (i = 0; i < pagesize; ++i)
14766 *(data2 + i) = *(data2 + i) + 1;
14767 data3 = (char *) malloc (pagesize);
14768 if (!data3)
96f4052b 14769 return 12;
7083c021 14770 if (read (fd, data3, pagesize) != pagesize)
96f4052b 14771 return 13;
7083c021
AC
14772 for (i = 0; i < pagesize; ++i)
14773 if (*(data + i) != *(data3 + i))
96f4052b 14774 return 14;
7083c021
AC
14775 close (fd);
14776 return 0;
db137867 14777}
db137867 14778_ACEOF
7083c021
AC
14779if ac_fn_c_try_run "$LINENO"; then :
14780 ac_cv_func_mmap_fixed_mapped=yes
db137867 14781else
7083c021 14782 ac_cv_func_mmap_fixed_mapped=no
db137867 14783fi
7083c021
AC
14784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14785 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
14786fi
14787
7083c021
AC
14788fi
14789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14790$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14791if test $ac_cv_func_mmap_fixed_mapped = yes; then
db137867 14792
7083c021 14793$as_echo "#define HAVE_MMAP 1" >>confdefs.h
db137867
AC
14794
14795fi
96f4052b 14796rm -f conftest.mmap conftest.txt
db137867 14797
3202e249 14798
7083c021
AC
14799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14800$as_echo_n "checking for /dev/poll... " >&6; }
14801if test -c "/dev/poll"; then
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14803$as_echo "yes" >&6; }
3202e249 14804
7083c021 14805$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
3202e249 14806
7083c021
AC
14807else
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14809$as_echo "no" >&6; }
3202e249
VY
14810fi
14811
14812
7083c021
AC
14813if test "$is_mingw" = "yes"; then
14814
14815$as_echo "#define HAVE_WIN32 1" >>confdefs.h
3202e249
VY
14816
14817fi
3202e249 14818
db137867 14819
7083c021
AC
14820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14821$as_echo_n "checking for OpenSSL... " >&6; }
14822# Check whether --enable-openssl was given.
14823if test "${enable_openssl+set}" = set; then :
14824 enableval=$enable_openssl; cf_enable_openssl=$enableval
db137867 14825else
7083c021 14826 cf_enable_openssl="auto"
db137867
AC
14827fi
14828
db137867 14829
7083c021
AC
14830if test "$cf_enable_openssl" != "no" ; then
14831 cf_openssl_basedir=""
14832 if test "$cf_enable_openssl" != "auto" &&
14833 test "$cf_enable_openssl" != "yes" ; then
14834 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
14835 else
14836 for dirs in /usr/local/ssl /usr/pkg /usr/local \
14837 /usr/local/openssl ; do
14838 if test -f "${dirs}/include/openssl/opensslv.h" ; then
14839 cf_openssl_basedir="${dirs}"
14840 break
14841 fi
14842 done
14843 unset dirs
14844 fi
14845 if test ! -z "$cf_openssl_basedir"; then
14846 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
14847 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
14848 SSL_LIBS="-L${cf_openssl_basedir}/lib"
14849 else
14850 cf_openssl_basedir=""
14851 fi
14852 else
14853 if test -f "/usr/include/openssl/opensslv.h" ; then
14854 cf_openssl_basedir="/usr"
14855 fi
14856 fi
db137867 14857
7083c021
AC
14858 if test ! -z "$cf_openssl_basedir"; then
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14860$as_echo "$cf_openssl_basedir" >&6; }
14861 cf_enable_openssl="yes"
14862 else
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
14864$as_echo "not found. Specify a correct path?" >&6; }
14865 cf_enable_openssl="no"
14866 fi
14867 unset cf_openssl_basedir
14868else
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14870$as_echo "disabled" >&6; }
db137867
AC
14871fi
14872
7083c021
AC
14873save_CPPFLAGS="$CPPFLAGS"
14874CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
14875save_LIBS="$LIBS"
14876LIBS="$LIBS $SSL_LIBS"
14877if test "$cf_enable_openssl" != no; then
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
14879$as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
14880 if test "$cross_compiling" = yes; then :
14881 cf_enable_openssl=no
db137867 14882else
7083c021 14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 14884/* end confdefs.h. */
7083c021
AC
14885#include <openssl/opensslv.h>
14886 #include <stdlib.h>
db137867
AC
14887int
14888main ()
14889{
7083c021
AC
14890if (OPENSSL_VERSION_NUMBER >= 0x00907000)
14891 exit(0); else exit(1);
14892 ;
14893 return 0;
14894}
db137867 14895_ACEOF
7083c021
AC
14896if ac_fn_c_try_run "$LINENO"; then :
14897 cf_enable_openssl=yes
14898else
14899 cf_enable_openssl=no
14900fi
14901rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14902 conftest.$ac_objext conftest.beam conftest.$ac_ext
14903fi
db137867
AC
14904
14905
7083c021
AC
14906 if test "$cf_enable_openssl" != no; then
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14908$as_echo "found" >&6; }
14909 else
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14911$as_echo "no - OpenSSL support disabled" >&6; }
14912 fi
db137867 14913
db137867 14914fi
db137867 14915
7083c021
AC
14916
14917if test "$cf_enable_openssl" != no; then
14918 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
14920$as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
08c2568c 14921if ${ac_cv_lib_crypto_RAND_status+:} false; then :
030272f3 14922 $as_echo_n "(cached) " >&6
db137867 14923else
7083c021
AC
14924 ac_check_lib_save_LIBS=$LIBS
14925LIBS="-lcrypto $LIBS"
14926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 14927/* end confdefs.h. */
db137867
AC
14928
14929/* Override any GCC internal prototype to avoid an error.
14930 Use char because int might match the return type of a GCC
14931 builtin and then its argument prototype would still apply. */
14932#ifdef __cplusplus
14933extern "C"
14934#endif
7083c021 14935char RAND_status ();
db137867
AC
14936int
14937main ()
14938{
7083c021 14939return RAND_status ();
db137867
AC
14940 ;
14941 return 0;
14942}
14943_ACEOF
7083c021
AC
14944if ac_fn_c_try_link "$LINENO"; then :
14945 ac_cv_lib_crypto_RAND_status=yes
db137867 14946else
7083c021 14947 ac_cv_lib_crypto_RAND_status=no
db137867 14948fi
7083c021
AC
14949rm -f core conftest.err conftest.$ac_objext \
14950 conftest$ac_exeext conftest.$ac_ext
14951LIBS=$ac_check_lib_save_LIBS
db137867 14952fi
7083c021
AC
14953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
14954$as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
08c2568c 14955if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then :
7083c021
AC
14956 cf_enable_openssl=yes
14957else
14958 cf_enable_openssl=no
db137867
AC
14959fi
14960
db137867
AC
14961fi
14962
7083c021
AC
14963if test "$cf_enable_openssl" != no; then
14964 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
14966$as_echo_n "checking for SSL_read in -lssl... " >&6; }
08c2568c 14967if ${ac_cv_lib_ssl_SSL_read+:} false; then :
030272f3 14968 $as_echo_n "(cached) " >&6
db137867 14969else
7083c021
AC
14970 ac_check_lib_save_LIBS=$LIBS
14971LIBS="-lssl -lcrypto $LIBS"
14972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 14973/* end confdefs.h. */
db137867 14974
7083c021
AC
14975/* Override any GCC internal prototype to avoid an error.
14976 Use char because int might match the return type of a GCC
14977 builtin and then its argument prototype would still apply. */
14978#ifdef __cplusplus
14979extern "C"
14980#endif
14981char SSL_read ();
db137867
AC
14982int
14983main ()
14984{
7083c021
AC
14985return SSL_read ();
14986 ;
14987 return 0;
db137867
AC
14988}
14989_ACEOF
7083c021
AC
14990if ac_fn_c_try_link "$LINENO"; then :
14991 ac_cv_lib_ssl_SSL_read=yes
db137867 14992else
7083c021 14993 ac_cv_lib_ssl_SSL_read=no
db137867 14994fi
7083c021
AC
14995rm -f core conftest.err conftest.$ac_objext \
14996 conftest$ac_exeext conftest.$ac_ext
14997LIBS=$ac_check_lib_save_LIBS
14998fi
14999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
15000$as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
08c2568c 15001if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then :
7083c021
AC
15002 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
15003else
15004 cf_enable_openssl=no
db137867 15005fi
db137867
AC
15006
15007fi
db137867 15008
db137867 15009
6f57a957
AC
15010# Check whether --enable-mbedtls was given.
15011if test "${enable_mbedtls+set}" = set; then :
15012 enableval=$enable_mbedtls; cf_enable_mbedtls=$enableval
15013else
15014 cf_enable_mbedtls="auto"
15015fi
15016
15017
15018if test "$cf_enable_mbedtls" != no; then
15019 save_CPPFLAGS="$CPPFLAGS"
15020 save_LIBS="$LIBS"
15021 LIBS="$LIBS $MBEDTLS_LIBS"
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
15023$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
15024if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
15025 $as_echo_n "(cached) " >&6
15026else
15027 ac_check_lib_save_LIBS=$LIBS
15028LIBS="-lmbedtls -lmbedcrypto -lmbedx509 $LIBS"
15029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030/* end confdefs.h. */
15031
15032/* Override any GCC internal prototype to avoid an error.
15033 Use char because int might match the return type of a GCC
15034 builtin and then its argument prototype would still apply. */
15035#ifdef __cplusplus
15036extern "C"
15037#endif
15038char mbedtls_ssl_init ();
15039int
15040main ()
15041{
15042return mbedtls_ssl_init ();
15043 ;
15044 return 0;
15045}
15046_ACEOF
15047if ac_fn_c_try_link "$LINENO"; then :
15048 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
15049else
15050 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
15051fi
15052rm -f core conftest.err conftest.$ac_objext \
15053 conftest$ac_exeext conftest.$ac_ext
15054LIBS=$ac_check_lib_save_LIBS
15055fi
15056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
15057$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
15058if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
15059
15060 MBEDTLS_LIBS="$MBEDTLS_LIBS -lmbedtls -lmbedcrypto -lmbedx509"
15061 cf_enable_mbedtls=yes
15062
15063else
15064 cf_enable_mbedtls=no
15065fi
15066
15067fi
db137867 15068
bf4e01a4
AC
15069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
15070$as_echo_n "checking for GnuTLS... " >&6; }
15071# Check whether --enable-gnutls was given.
15072if test "${enable_gnutls+set}" = set; then :
15073 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
15074else
15075 cf_enable_gnutls="auto"
15076fi
15077
15078
15079if test "$cf_enable_gnutls" != no; then
15080
15081
15082
15083
15084
15085
15086
15087if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15088 if test -n "$ac_tool_prefix"; then
15089 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15090set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15092$as_echo_n "checking for $ac_word... " >&6; }
15093if ${ac_cv_path_PKG_CONFIG+:} false; then :
15094 $as_echo_n "(cached) " >&6
15095else
15096 case $PKG_CONFIG in
15097 [\\/]* | ?:[\\/]*)
15098 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15099 ;;
15100 *)
15101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15102for as_dir in $PATH
15103do
15104 IFS=$as_save_IFS
15105 test -z "$as_dir" && as_dir=.
15106 for ac_exec_ext in '' $ac_executable_extensions; do
15107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15108 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15110 break 2
15111 fi
15112done
15113 done
15114IFS=$as_save_IFS
15115
15116 ;;
15117esac
15118fi
15119PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15120if test -n "$PKG_CONFIG"; then
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15122$as_echo "$PKG_CONFIG" >&6; }
15123else
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15125$as_echo "no" >&6; }
15126fi
15127
15128
15129fi
15130if test -z "$ac_cv_path_PKG_CONFIG"; then
15131 ac_pt_PKG_CONFIG=$PKG_CONFIG
15132 # Extract the first word of "pkg-config", so it can be a program name with args.
15133set dummy pkg-config; ac_word=$2
15134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15135$as_echo_n "checking for $ac_word... " >&6; }
15136if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15137 $as_echo_n "(cached) " >&6
15138else
15139 case $ac_pt_PKG_CONFIG in
15140 [\\/]* | ?:[\\/]*)
15141 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15142 ;;
15143 *)
15144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15145for as_dir in $PATH
15146do
15147 IFS=$as_save_IFS
15148 test -z "$as_dir" && as_dir=.
15149 for ac_exec_ext in '' $ac_executable_extensions; do
15150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15151 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15153 break 2
15154 fi
15155done
15156 done
15157IFS=$as_save_IFS
15158
15159 ;;
15160esac
15161fi
15162ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15163if test -n "$ac_pt_PKG_CONFIG"; then
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15165$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15166else
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15168$as_echo "no" >&6; }
15169fi
15170
15171 if test "x$ac_pt_PKG_CONFIG" = x; then
15172 PKG_CONFIG=""
15173 else
15174 case $cross_compiling:$ac_tool_warned in
15175yes:)
15176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15178ac_tool_warned=yes ;;
15179esac
15180 PKG_CONFIG=$ac_pt_PKG_CONFIG
15181 fi
15182else
15183 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15184fi
15185
15186fi
15187if test -n "$PKG_CONFIG"; then
15188 _pkg_min_version=0.9.0
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15190$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15191 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15193$as_echo "yes" >&6; }
15194 else
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15196$as_echo "no" >&6; }
15197 PKG_CONFIG=""
15198 fi
15199fi
15200
15201pkg_failed=no
15202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
15203$as_echo_n "checking for GNUTLS... " >&6; }
15204
15205if test -n "$GNUTLS_CFLAGS"; then
15206 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
15207 elif test -n "$PKG_CONFIG"; then
15208 if test -n "$PKG_CONFIG" && \
15209 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
15210 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
15211 ac_status=$?
15212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15213 test $ac_status = 0; }; then
15214 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
15215 test "x$?" != "x0" && pkg_failed=yes
15216else
15217 pkg_failed=yes
15218fi
15219 else
15220 pkg_failed=untried
15221fi
15222if test -n "$GNUTLS_LIBS"; then
15223 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
15224 elif test -n "$PKG_CONFIG"; then
15225 if test -n "$PKG_CONFIG" && \
15226 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
15227 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
15228 ac_status=$?
15229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15230 test $ac_status = 0; }; then
15231 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
15232 test "x$?" != "x0" && pkg_failed=yes
15233else
15234 pkg_failed=yes
15235fi
15236 else
15237 pkg_failed=untried
15238fi
15239
15240
15241
15242if test $pkg_failed = yes; then
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15244$as_echo "no" >&6; }
15245
15246if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15247 _pkg_short_errors_supported=yes
15248else
15249 _pkg_short_errors_supported=no
15250fi
15251 if test $_pkg_short_errors_supported = yes; then
15252 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1`
15253 else
15254 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1`
15255 fi
15256 # Put the nasty error message in config.log where it belongs
15257 echo "$GNUTLS_PKG_ERRORS" >&5
15258
15259 cf_enable_gnutls="no"
15260elif test $pkg_failed = untried; then
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15262$as_echo "no" >&6; }
15263 cf_enable_gnutls="no"
15264else
15265 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
15266 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15268$as_echo "yes" >&6; }
15269
15270 cf_enable_gnutls="yes"
15271
15272fi
15273fi
15274
6f57a957
AC
15275if test "$cf_enable_openssl" = "auto" -a "$cf_enable_mbedtls" = "yes"; then
15276 cf_enable_openssl="no"
15277fi
15278
15279if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes" -a "$cf_enable_mbedtls" = "yes"; then
bf4e01a4
AC
15280 cf_enable_gnutls="no"
15281fi
15282
7083c021 15283if test x"$cf_enable_openssl" != xno; then
db137867 15284
7083c021 15285$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
db137867 15286
bf4e01a4
AC
15287 GNUTLS_CFLAGS=""
15288 GNUTLS_LIBS=""
6f57a957
AC
15289 MBEDTLS_LIBS=""
15290 MBEDTLS_CFLAGS=""
7083c021 15291 SSL_TYPE="openssl"
6f57a957
AC
15292elif test x"$cf_enable_mbedtls" != xno; then
15293
15294$as_echo "#define HAVE_MBEDTLS 1" >>confdefs.h
15295
15296 SSL_LIBS=""
15297 SSL_CFLAGS=""
15298 GNUTLS_CFLAGS=""
15299 GNUTLS_LIBS=""
15300 SSL_TYPE="mbedtls"
bf4e01a4
AC
15301elif test x"$cf_enable_gnutls" != xno; then
15302
15303$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
15304
15305 SSL_LIBS=""
15306 SSL_CFLAGS=""
6f57a957
AC
15307 MBEDTLS_LIBS=""
15308 MBEDTLS_CFLAGS=""
bf4e01a4 15309 SSL_TYPE="gnutls"
db137867 15310fi
db137867 15311
db137867 15312
db137867 15313
db137867 15314
7083c021
AC
15315CPPFLAGS="$save_CPPFLAGS"
15316LIBS="$save_LIBS"
15317
15318
db137867
AC
15319
15320
db137867 15321
db137867 15322
7083c021
AC
15323# Check whether --enable-assert was given.
15324if test "${enable_assert+set}" = set; then :
15325 enableval=$enable_assert; assert=$enableval
15326else
15327 assert=no
15328fi
db137867 15329
db137867 15330
7083c021 15331if test "$assert" = no; then
db137867 15332
7083c021 15333$as_echo "#define NDEBUG 1" >>confdefs.h
db137867 15334
7083c021 15335elif test "$assert" = soft; then
db137867 15336
7083c021 15337$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
db137867 15338
db137867 15339
7083c021 15340$as_echo "#define NDEBUG 1" >>confdefs.h
db137867 15341
7083c021
AC
15342elif test "$assert" = yes; then
15343 assert = "hard";
15344fi
15345
15346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
15347$as_echo_n "checking if you want to do a profile build... " >&6; }
15348# Check whether --enable-profile was given.
15349if test "${enable_profile+set}" = set; then :
15350 enableval=$enable_profile; profile=$enableval
db137867 15351else
7083c021
AC
15352 profile=no
15353fi
15354
15355
15356if test "$profile" = yes; then
15357 if test "$ac_cv_c_compiler_gnu" = yes; then
15358 CFLAGS="$CFLAGS -pg -static"
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
15360$as_echo "yes, adding -pg -static" >&6; }
db137867 15361
7083c021
AC
15362$as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
15363
15364 else
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
15366$as_echo "no, profile builds only work with gcc" >&6; }
15367 fi
15368else
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15370$as_echo "no" >&6; }
db137867 15371fi
7083c021
AC
15372
15373# Check whether --enable-balloc was given.
15374if test "${enable_balloc+set}" = set; then :
15375 enableval=$enable_balloc; balloc=$enableval
15376else
15377 balloc=yes
db137867
AC
15378fi
15379
15380
7083c021
AC
15381if test "$balloc" = no; then
15382
15383$as_echo "#define NOBALLOC 1" >>confdefs.h
15384
db137867 15385fi
db137867 15386
7083c021
AC
15387# Check whether --enable-warnings was given.
15388if test "${enable_warnings+set}" = set; then :
15389 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"
db137867
AC
15390fi
15391
db137867 15392
db137867 15393
db137867 15394
db137867 15395
db137867 15396
db137867 15397
db137867
AC
15398
15399
bf4e01a4
AC
15400
15401
cd492e44
AC
15402
15403
7083c021
AC
15404if test "$prefix" = "NONE"; then
15405
15406cat >>confdefs.h <<_ACEOF
15407#define RB_PREFIX "$ac_default_prefix"
db137867 15408_ACEOF
7083c021
AC
15409
15410
db137867 15411else
db137867 15412
db137867 15413
7083c021 15414 prefix=`echo $prefix | sed 's/\/$//'`
db137867 15415
7083c021
AC
15416cat >>confdefs.h <<_ACEOF
15417#define RB_PREFIX "$prefix"
db137867 15418_ACEOF
db137867 15419
7083c021 15420
db137867
AC
15421fi
15422
db137867 15423
db137867 15424
7083c021 15425ac_config_commands="$ac_config_commands include/librb-config.h"
db137867 15426
db137867 15427
db137867 15428
7083c021 15429ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
db137867
AC
15430
15431
7083c021
AC
15432cat >confcache <<\_ACEOF
15433# This file is a shell script that caches the results of configure
15434# tests run on this system so they can be shared between configure
15435# scripts and configure runs, see configure's option --config-cache.
15436# It is not useful on other systems. If it contains results you don't
15437# want to keep, you may remove or edit it.
15438#
15439# config.status only pays attention to the cache file if you give it
15440# the --recheck option to rerun configure.
15441#
15442# `ac_cv_env_foo' variables (set or unset) will be overridden when
15443# loading this file, other *unset* `ac_cv_foo' will be assigned the
15444# following values.
15445
db137867 15446_ACEOF
db137867 15447
7083c021
AC
15448# The following way of writing the cache mishandles newlines in values,
15449# but we know of no workaround that is simple, portable, and efficient.
15450# So, we kill variables containing newlines.
15451# Ultrix sh set writes to stderr and can't be redirected directly,
15452# and sets the high bit in the cache file unless we assign to the vars.
15453(
15454 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15455 eval ac_val=\$$ac_var
15456 case $ac_val in #(
15457 *${as_nl}*)
15458 case $ac_var in #(
15459 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15460$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15461 esac
15462 case $ac_var in #(
15463 _ | IFS | as_nl) ;; #(
15464 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15465 *) { eval $ac_var=; unset $ac_var;} ;;
15466 esac ;;
15467 esac
15468 done
15469
15470 (set) 2>&1 |
15471 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15472 *${as_nl}ac_space=\ *)
15473 # `set' does not quote correctly, so add quotes: double-quote
15474 # substitution turns \\\\ into \\, and sed turns \\ into \.
15475 sed -n \
15476 "s/'/'\\\\''/g;
15477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15478 ;; #(
15479 *)
15480 # `set' quotes correctly as required by POSIX, so do not add quotes.
15481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15482 ;;
15483 esac |
15484 sort
15485) |
15486 sed '
15487 /^ac_cv_env_/b end
15488 t clear
15489 :clear
15490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15491 t end
15492 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15493 :end' >>confcache
15494if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15495 if test -w "$cache_file"; then
08c2568c 15496 if test "x$cache_file" != "x/dev/null"; then
7083c021
AC
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15498$as_echo "$as_me: updating cache $cache_file" >&6;}
08c2568c
EM
15499 if test ! -f "$cache_file" || test -h "$cache_file"; then
15500 cat confcache >"$cache_file"
15501 else
15502 case $cache_file in #(
15503 */* | ?:*)
15504 mv -f confcache "$cache_file"$$ &&
15505 mv -f "$cache_file"$$ "$cache_file" ;; #(
15506 *)
15507 mv -f confcache "$cache_file" ;;
15508 esac
15509 fi
15510 fi
7083c021
AC
15511 else
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15513$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15514 fi
15515fi
15516rm -f confcache
15517
15518test "x$prefix" = xNONE && prefix=$ac_default_prefix
15519# Let make expand exec_prefix.
15520test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
db137867 15521
7083c021 15522DEFS=-DHAVE_CONFIG_H
db137867 15523
7083c021
AC
15524ac_libobjs=
15525ac_ltlibobjs=
15526for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15527 # 1. Remove the extension, and $U if already installed.
15528 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15529 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15530 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15531 # will be set to the directory where LIBOBJS objects are built.
15532 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15533 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15534done
15535LIBOBJS=$ac_libobjs
db137867 15536
7083c021 15537LTLIBOBJS=$ac_ltlibobjs
db137867 15538
db137867 15539
bf4e01a4
AC
15540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15541$as_echo_n "checking that generated files are newer than configure... " >&6; }
15542 if test -n "$am_sleep_pid"; then
15543 # Hide warnings about reused PIDs.
15544 wait $am_sleep_pid 2>/dev/null
15545 fi
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15547$as_echo "done" >&6; }
7083c021
AC
15548 if test -n "$EXEEXT"; then
15549 am__EXEEXT_TRUE=
15550 am__EXEEXT_FALSE='#'
15551else
15552 am__EXEEXT_TRUE='#'
15553 am__EXEEXT_FALSE=
db137867
AC
15554fi
15555
7083c021 15556if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
08c2568c 15557 as_fn_error $? "conditional \"AMDEP\" was never defined.
7083c021 15558Usually this means the macro was only invoked conditionally." "$LINENO" 5
db137867 15559fi
7083c021 15560if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
08c2568c 15561 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7083c021
AC
15562Usually this means the macro was only invoked conditionally." "$LINENO" 5
15563fi
15564if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
08c2568c 15565 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7083c021
AC
15566Usually this means the macro was only invoked conditionally." "$LINENO" 5
15567fi
f171dafb 15568
7083c021 15569if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
08c2568c 15570 as_fn_error $? "conditional \"MINGW\" was never defined.
7083c021 15571Usually this means the macro was only invoked conditionally." "$LINENO" 5
db137867 15572fi
db137867 15573
08c2568c 15574: "${CONFIG_STATUS=./config.status}"
7083c021
AC
15575ac_write_fail=0
15576ac_clean_files_save=$ac_clean_files
15577ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15578{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15579$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15580as_write_fail=0
15581cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15582#! $SHELL
15583# Generated by $as_me.
15584# Run this file to recreate the current configuration.
15585# Compiler output produced by configure, useful for debugging
15586# configure, is in config.log if it exists.
db137867 15587
7083c021
AC
15588debug=false
15589ac_cs_recheck=false
15590ac_cs_silent=false
db137867 15591
7083c021
AC
15592SHELL=\${CONFIG_SHELL-$SHELL}
15593export SHELL
15594_ASEOF
15595cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15596## -------------------- ##
15597## M4sh Initialization. ##
15598## -------------------- ##
db137867 15599
7083c021
AC
15600# Be more Bourne compatible
15601DUALCASE=1; export DUALCASE # for MKS sh
15602if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15603 emulate sh
15604 NULLCMD=:
15605 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15606 # is contrary to our usage. Disable this feature.
15607 alias -g '${1+"$@"}'='"$@"'
15608 setopt NO_GLOB_SUBST
15609else
15610 case `(set -o) 2>/dev/null` in #(
15611 *posix*) :
15612 set -o posix ;; #(
15613 *) :
15614 ;;
15615esac
15616fi
db137867 15617
db137867 15618
7083c021
AC
15619as_nl='
15620'
15621export as_nl
15622# Printing a long string crashes Solaris 7 /usr/bin/printf.
15623as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15624as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15625as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15626# Prefer a ksh shell builtin over an external printf program on Solaris,
15627# but without wasting forks for bash or zsh.
15628if test -z "$BASH_VERSION$ZSH_VERSION" \
15629 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15630 as_echo='print -r --'
15631 as_echo_n='print -rn --'
15632elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15633 as_echo='printf %s\n'
15634 as_echo_n='printf %s'
db137867 15635else
7083c021
AC
15636 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15637 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15638 as_echo_n='/usr/ucb/echo -n'
15639 else
15640 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15641 as_echo_n_body='eval
15642 arg=$1;
15643 case $arg in #(
15644 *"$as_nl"*)
15645 expr "X$arg" : "X\\(.*\\)$as_nl";
15646 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15647 esac;
15648 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15649 '
15650 export as_echo_n_body
15651 as_echo_n='sh -c $as_echo_n_body as_echo'
15652 fi
15653 export as_echo_body
15654 as_echo='sh -c $as_echo_body as_echo'
db137867 15655fi
7083c021
AC
15656
15657# The user is always right.
15658if test "${PATH_SEPARATOR+set}" != set; then
15659 PATH_SEPARATOR=:
15660 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15661 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15662 PATH_SEPARATOR=';'
15663 }
db137867
AC
15664fi
15665
15666
7083c021
AC
15667# IFS
15668# We need space, tab and new line, in precisely that order. Quoting is
15669# there to prevent editors from complaining about space-tab.
15670# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15671# splitting by setting IFS to empty value.)
15672IFS=" "" $as_nl"
db137867 15673
7083c021 15674# Find who we are. Look in the path if we contain no directory separator.
08c2568c 15675as_myself=
7083c021
AC
15676case $0 in #((
15677 *[\\/]* ) as_myself=$0 ;;
15678 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15679for as_dir in $PATH
15680do
15681 IFS=$as_save_IFS
15682 test -z "$as_dir" && as_dir=.
15683 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15684 done
15685IFS=$as_save_IFS
db137867 15686
7083c021
AC
15687 ;;
15688esac
15689# We did not find ourselves, most probably we were run as `sh COMMAND'
15690# in which case we are not to be found in the path.
15691if test "x$as_myself" = x; then
15692 as_myself=$0
15693fi
15694if test ! -f "$as_myself"; then
15695 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15696 exit 1
db137867 15697fi
db137867 15698
7083c021
AC
15699# Unset variables that we do not need and which cause bugs (e.g. in
15700# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15701# suppresses any "Segmentation fault" message there. '((' could
15702# trigger a bug in pdksh 5.2.14.
15703for as_var in BASH_ENV ENV MAIL MAILPATH
15704do eval test x\${$as_var+set} = xset \
15705 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15706done
15707PS1='$ '
15708PS2='> '
15709PS4='+ '
db137867 15710
7083c021
AC
15711# NLS nuisances.
15712LC_ALL=C
15713export LC_ALL
15714LANGUAGE=C
15715export LANGUAGE
db137867 15716
7083c021
AC
15717# CDPATH.
15718(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
db137867 15719
db137867 15720
08c2568c
EM
15721# as_fn_error STATUS ERROR [LINENO LOG_FD]
15722# ----------------------------------------
7083c021
AC
15723# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15724# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
08c2568c 15725# script with STATUS, using 1 if that was 0.
7083c021
AC
15726as_fn_error ()
15727{
08c2568c
EM
15728 as_status=$1; test $as_status -eq 0 && as_status=1
15729 if test "$4"; then
15730 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15731 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7083c021 15732 fi
08c2568c 15733 $as_echo "$as_me: error: $2" >&2
7083c021
AC
15734 as_fn_exit $as_status
15735} # as_fn_error
db137867 15736
db137867 15737
7083c021
AC
15738# as_fn_set_status STATUS
15739# -----------------------
15740# Set $? to STATUS, without forking.
15741as_fn_set_status ()
15742{
15743 return $1
15744} # as_fn_set_status
15745
15746# as_fn_exit STATUS
15747# -----------------
15748# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15749as_fn_exit ()
15750{
15751 set +e
15752 as_fn_set_status $1
15753 exit $1
15754} # as_fn_exit
15755
15756# as_fn_unset VAR
15757# ---------------
15758# Portably unset VAR.
15759as_fn_unset ()
15760{
15761 { eval $1=; unset $1;}
15762}
15763as_unset=as_fn_unset
15764# as_fn_append VAR VALUE
15765# ----------------------
15766# Append the text in VALUE to the end of the definition contained in VAR. Take
15767# advantage of any shell optimizations that allow amortized linear growth over
15768# repeated appends, instead of the typical quadratic growth present in naive
15769# implementations.
15770if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15771 eval 'as_fn_append ()
15772 {
15773 eval $1+=\$2
15774 }'
15775else
15776 as_fn_append ()
15777 {
15778 eval $1=\$$1\$2
15779 }
15780fi # as_fn_append
15781
15782# as_fn_arith ARG...
15783# ------------------
15784# Perform arithmetic evaluation on the ARGs, and store the result in the
15785# global $as_val. Take advantage of shells that can avoid forks. The arguments
15786# must be portable across $(()) and expr.
15787if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15788 eval 'as_fn_arith ()
15789 {
15790 as_val=$(( $* ))
15791 }'
15792else
15793 as_fn_arith ()
15794 {
15795 as_val=`expr "$@" || test $? -eq 1`
15796 }
15797fi # as_fn_arith
15798
db137867 15799
7083c021
AC
15800if expr a : '\(a\)' >/dev/null 2>&1 &&
15801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15802 as_expr=expr
15803else
15804 as_expr=false
db137867
AC
15805fi
15806
7083c021
AC
15807if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15808 as_basename=basename
15809else
15810 as_basename=false
15811fi
db137867 15812
7083c021
AC
15813if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15814 as_dirname=dirname
db137867 15815else
7083c021 15816 as_dirname=false
db137867
AC
15817fi
15818
7083c021
AC
15819as_me=`$as_basename -- "$0" ||
15820$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15821 X"$0" : 'X\(//\)$' \| \
15822 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15823$as_echo X/"$0" |
15824 sed '/^.*\/\([^/][^/]*\)\/*$/{
15825 s//\1/
15826 q
15827 }
15828 /^X\/\(\/\/\)$/{
15829 s//\1/
15830 q
15831 }
15832 /^X\/\(\/\).*/{
15833 s//\1/
15834 q
15835 }
15836 s/.*/./; q'`
db137867 15837
7083c021
AC
15838# Avoid depending upon Character Ranges.
15839as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15840as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15841as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15842as_cr_digits='0123456789'
15843as_cr_alnum=$as_cr_Letters$as_cr_digits
db137867 15844
7083c021
AC
15845ECHO_C= ECHO_N= ECHO_T=
15846case `echo -n x` in #(((((
15847-n*)
15848 case `echo 'xy\c'` in
15849 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15850 xy) ECHO_C='\c';;
15851 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15852 ECHO_T=' ';;
15853 esac;;
15854*)
15855 ECHO_N='-n';;
15856esac
15857
15858rm -f conf$$ conf$$.exe conf$$.file
15859if test -d conf$$.dir; then
15860 rm -f conf$$.dir/conf$$.file
db137867 15861else
7083c021
AC
15862 rm -f conf$$.dir
15863 mkdir conf$$.dir 2>/dev/null
db137867 15864fi
7083c021
AC
15865if (echo >conf$$.file) 2>/dev/null; then
15866 if ln -s conf$$.file conf$$ 2>/dev/null; then
15867 as_ln_s='ln -s'
15868 # ... but there are two gotchas:
15869 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15870 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
bf4e01a4 15871 # In both cases, we have to default to `cp -pR'.
7083c021 15872 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
bf4e01a4 15873 as_ln_s='cp -pR'
7083c021
AC
15874 elif ln conf$$.file conf$$ 2>/dev/null; then
15875 as_ln_s=ln
15876 else
bf4e01a4 15877 as_ln_s='cp -pR'
7083c021 15878 fi
db137867 15879else
bf4e01a4 15880 as_ln_s='cp -pR'
7083c021
AC
15881fi
15882rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15883rmdir conf$$.dir 2>/dev/null
15884
15885
15886# as_fn_mkdir_p
15887# -------------
15888# Create "$as_dir" as a directory, including parents if necessary.
15889as_fn_mkdir_p ()
db137867 15890{
db137867 15891
7083c021
AC
15892 case $as_dir in #(
15893 -*) as_dir=./$as_dir;;
15894 esac
15895 test -d "$as_dir" || eval $as_mkdir_p || {
15896 as_dirs=
15897 while :; do
15898 case $as_dir in #(
15899 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15900 *) as_qdir=$as_dir;;
15901 esac
15902 as_dirs="'$as_qdir' $as_dirs"
15903 as_dir=`$as_dirname -- "$as_dir" ||
15904$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15905 X"$as_dir" : 'X\(//\)[^/]' \| \
15906 X"$as_dir" : 'X\(//\)$' \| \
15907 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15908$as_echo X"$as_dir" |
15909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15910 s//\1/
15911 q
15912 }
15913 /^X\(\/\/\)[^/].*/{
15914 s//\1/
15915 q
15916 }
15917 /^X\(\/\/\)$/{
15918 s//\1/
15919 q
15920 }
15921 /^X\(\/\).*/{
15922 s//\1/
15923 q
15924 }
15925 s/.*/./; q'`
15926 test -d "$as_dir" && break
15927 done
15928 test -z "$as_dirs" || eval "mkdir $as_dirs"
08c2568c 15929 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
15930
15931
15932} # as_fn_mkdir_p
15933if mkdir -p . 2>/dev/null; then
15934 as_mkdir_p='mkdir -p "$as_dir"'
15935else
15936 test -d ./-p && rmdir ./-p
15937 as_mkdir_p=false
db137867 15938fi
7083c021 15939
bf4e01a4
AC
15940
15941# as_fn_executable_p FILE
15942# -----------------------
15943# Test if FILE is an executable regular file.
15944as_fn_executable_p ()
15945{
15946 test -f "$1" && test -x "$1"
15947} # as_fn_executable_p
15948as_test_x='test -x'
15949as_executable_p=as_fn_executable_p
db137867 15950
7083c021
AC
15951# Sed expression to map a string onto a valid CPP name.
15952as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
db137867 15953
7083c021
AC
15954# Sed expression to map a string onto a valid variable name.
15955as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
db137867 15956
db137867 15957
7083c021
AC
15958exec 6>&1
15959## ----------------------------------- ##
15960## Main body of $CONFIG_STATUS script. ##
15961## ----------------------------------- ##
15962_ASEOF
15963test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
db137867 15964
7083c021
AC
15965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15966# Save the log message, to keep $0 and so on meaningful, and to
15967# report actual input values of CONFIG_FILES etc. instead of their
15968# values after options handling.
15969ac_log="
15970This file was extended by libratbox $as_me devel, which was
bf4e01a4 15971generated by GNU Autoconf 2.69. Invocation command line was
db137867 15972
7083c021
AC
15973 CONFIG_FILES = $CONFIG_FILES
15974 CONFIG_HEADERS = $CONFIG_HEADERS
15975 CONFIG_LINKS = $CONFIG_LINKS
15976 CONFIG_COMMANDS = $CONFIG_COMMANDS
15977 $ $0 $@
15978
15979on `(hostname || uname -n) 2>/dev/null | sed 1q`
15980"
db137867 15981
db137867 15982_ACEOF
7083c021
AC
15983
15984case $ac_config_files in *"
15985"*) set x $ac_config_files; shift; ac_config_files=$*;;
db137867 15986esac
db137867 15987
7083c021
AC
15988case $ac_config_headers in *"
15989"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15990esac
db137867 15991
db137867 15992
7083c021
AC
15993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15994# Files that config.status was made for.
15995config_files="$ac_config_files"
15996config_headers="$ac_config_headers"
15997config_commands="$ac_config_commands"
db137867 15998
db137867 15999_ACEOF
db137867 16000
7083c021
AC
16001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16002ac_cs_usage="\
16003\`$as_me' instantiates files and other configuration actions
16004from templates according to the current configuration. Unless the files
16005and actions are specified as TAGs, all are instantiated by default.
16006
16007Usage: $0 [OPTION]... [TAG]...
16008
16009 -h, --help print this help, then exit
16010 -V, --version print version number and configuration settings, then exit
96f4052b 16011 --config print configuration, then exit
7083c021
AC
16012 -q, --quiet, --silent
16013 do not print progress messages
16014 -d, --debug don't remove temporary files
16015 --recheck update $as_me by reconfiguring in the same conditions
16016 --file=FILE[:TEMPLATE]
16017 instantiate the configuration file FILE
16018 --header=FILE[:TEMPLATE]
16019 instantiate the configuration header FILE
16020
16021Configuration files:
16022$config_files
16023
16024Configuration headers:
16025$config_headers
16026
16027Configuration commands:
16028$config_commands
16029
16030Report bugs to the package provider."
16031
db137867 16032_ACEOF
7083c021 16033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
96f4052b 16034ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7083c021
AC
16035ac_cs_version="\\
16036libratbox config.status devel
bf4e01a4 16037configured by $0, generated by GNU Autoconf 2.69,
96f4052b 16038 with options \\"\$ac_cs_config\\"
db137867 16039
bf4e01a4 16040Copyright (C) 2012 Free Software Foundation, Inc.
7083c021
AC
16041This config.status script is free software; the Free Software Foundation
16042gives unlimited permission to copy, distribute and modify it."
db137867 16043
7083c021
AC
16044ac_pwd='$ac_pwd'
16045srcdir='$srcdir'
16046INSTALL='$INSTALL'
16047MKDIR_P='$MKDIR_P'
16048AWK='$AWK'
16049test -n "\$AWK" || AWK=awk
16050_ACEOF
db137867 16051
7083c021
AC
16052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16053# The default lists apply if the user does not specify any file.
16054ac_need_defaults=:
16055while test $# != 0
16056do
16057 case $1 in
08c2568c 16058 --*=?*)
7083c021
AC
16059 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16060 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16061 ac_shift=:
16062 ;;
08c2568c
EM
16063 --*=)
16064 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16065 ac_optarg=
16066 ac_shift=:
16067 ;;
7083c021
AC
16068 *)
16069 ac_option=$1
16070 ac_optarg=$2
16071 ac_shift=shift
16072 ;;
16073 esac
16074
16075 case $ac_option in
16076 # Handling of the options.
16077 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16078 ac_cs_recheck=: ;;
16079 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16080 $as_echo "$ac_cs_version"; exit ;;
96f4052b
AC
16081 --config | --confi | --conf | --con | --co | --c )
16082 $as_echo "$ac_cs_config"; exit ;;
7083c021
AC
16083 --debug | --debu | --deb | --de | --d | -d )
16084 debug=: ;;
16085 --file | --fil | --fi | --f )
16086 $ac_shift
16087 case $ac_optarg in
16088 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
08c2568c 16089 '') as_fn_error $? "missing file argument" ;;
7083c021
AC
16090 esac
16091 as_fn_append CONFIG_FILES " '$ac_optarg'"
16092 ac_need_defaults=false;;
16093 --header | --heade | --head | --hea )
16094 $ac_shift
16095 case $ac_optarg in
16096 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16097 esac
16098 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16099 ac_need_defaults=false;;
16100 --he | --h)
16101 # Conflict between --help and --header
08c2568c 16102 as_fn_error $? "ambiguous option: \`$1'
7083c021
AC
16103Try \`$0 --help' for more information.";;
16104 --help | --hel | -h )
16105 $as_echo "$ac_cs_usage"; exit ;;
16106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16107 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16108 ac_cs_silent=: ;;
16109
16110 # This is an error.
08c2568c 16111 -*) as_fn_error $? "unrecognized option: \`$1'
7083c021
AC
16112Try \`$0 --help' for more information." ;;
16113
16114 *) as_fn_append ac_config_targets " $1"
16115 ac_need_defaults=false ;;
16116
16117 esac
16118 shift
16119done
db137867 16120
7083c021 16121ac_configure_extra_args=
c2ac22cc 16122
7083c021
AC
16123if $ac_cs_silent; then
16124 exec 6>/dev/null
16125 ac_configure_extra_args="$ac_configure_extra_args --silent"
16126fi
c2ac22cc 16127
7083c021
AC
16128_ACEOF
16129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16130if \$ac_cs_recheck; then
bf4e01a4 16131 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7083c021
AC
16132 shift
16133 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16134 CONFIG_SHELL='$SHELL'
16135 export CONFIG_SHELL
16136 exec "\$@"
c2ac22cc
VY
16137fi
16138
7083c021
AC
16139_ACEOF
16140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16141exec 5>>config.log
16142{
16143 echo
16144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16145## Running $as_me. ##
16146_ASBOX
16147 $as_echo "$ac_log"
16148} >&5
c2ac22cc 16149
7083c021
AC
16150_ACEOF
16151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16152#
16153# INIT-COMMANDS
16154#
16155AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
c2ac22cc
VY
16156
16157
7083c021
AC
16158# The HP-UX ksh and POSIX shell print the target directory to stdout
16159# if CDPATH is set.
16160(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16161
16162sed_quote_subst='$sed_quote_subst'
16163double_quote_subst='$double_quote_subst'
16164delay_variable_subst='$delay_variable_subst'
b6d0720c
AC
16165enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16166enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16167macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16168macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16169pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16170enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
6f57a957 16171shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
b6d0720c
AC
16172SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16173ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
a949ab1a 16174PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
b6d0720c
AC
16175host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16176host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16177host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16178build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16179build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16180build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16181SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16182Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16183GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16184EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16185FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16186LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16187NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16188LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16189max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16190ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16191exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16192lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16193lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16194lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16195lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16196lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16197reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16198reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16199OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16200deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16201file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16202file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16203want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16204DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16205sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16206AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16207AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16208archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16209STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16210RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16211old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16212old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16213old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16214lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16215CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16216CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16217compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16218GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16219lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16220lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
6f57a957 16221lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
b6d0720c
AC
16222lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16223lt_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"`'
6f57a957 16224lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
b6d0720c
AC
16225nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16226lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
6f57a957 16227lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
b6d0720c
AC
16228objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16229MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16230lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16231lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16232lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16233lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16234lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16235need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16236MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16237DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16238NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16239LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16240OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16241OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16242libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16243shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16244extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16245archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16246enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16247export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16248whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16249compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16250old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16251old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16252archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16253archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16254module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16255module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16256with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16257allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16258no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16259hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
b6d0720c
AC
16260hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16261hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16262hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16263hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16264hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16265hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16266inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16267link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16268always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16269export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16270exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16271include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16272prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16273postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16274file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16275variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16276need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16277need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16278version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16279runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16280shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16281shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16282libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16283library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16284soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16285install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16286postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16287postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16288finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16289finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16290hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16291sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
6f57a957
AC
16292configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16293configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
b6d0720c
AC
16294hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16295enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16296enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16297enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16298old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16299striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
7083c021
AC
16300
16301LTCC='$LTCC'
16302LTCFLAGS='$LTCFLAGS'
16303compiler='$compiler_DEFAULT'
16304
b6d0720c
AC
16305# A function that is used when there is no print builtin or printf.
16306func_fallback_echo ()
16307{
16308 eval 'cat <<_LTECHO_EOF
16309\$1
16310_LTECHO_EOF'
16311}
16312
7083c021 16313# Quote evaled strings.
b6d0720c
AC
16314for var in SHELL \
16315ECHO \
a949ab1a 16316PATH_SEPARATOR \
b6d0720c 16317SED \
7083c021
AC
16318GREP \
16319EGREP \
16320FGREP \
16321LD \
16322NM \
16323LN_S \
16324lt_SP2NL \
16325lt_NL2SP \
16326reload_flag \
16327OBJDUMP \
16328deplibs_check_method \
16329file_magic_cmd \
b6d0720c
AC
16330file_magic_glob \
16331want_nocaseglob \
16332DLLTOOL \
16333sharedlib_from_linklib_cmd \
7083c021
AC
16334AR \
16335AR_FLAGS \
b6d0720c 16336archiver_list_spec \
7083c021
AC
16337STRIP \
16338RANLIB \
16339CC \
16340CFLAGS \
16341compiler \
16342lt_cv_sys_global_symbol_pipe \
16343lt_cv_sys_global_symbol_to_cdecl \
6f57a957 16344lt_cv_sys_global_symbol_to_import \
7083c021
AC
16345lt_cv_sys_global_symbol_to_c_name_address \
16346lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
6f57a957 16347lt_cv_nm_interface \
b6d0720c 16348nm_file_list_spec \
6f57a957 16349lt_cv_truncate_bin \
7083c021 16350lt_prog_compiler_no_builtin_flag \
7083c021 16351lt_prog_compiler_pic \
b6d0720c 16352lt_prog_compiler_wl \
7083c021
AC
16353lt_prog_compiler_static \
16354lt_cv_prog_compiler_c_o \
16355need_locks \
b6d0720c 16356MANIFEST_TOOL \
7083c021
AC
16357DSYMUTIL \
16358NMEDIT \
16359LIPO \
16360OTOOL \
16361OTOOL64 \
16362shrext_cmds \
16363export_dynamic_flag_spec \
16364whole_archive_flag_spec \
16365compiler_needs_object \
16366with_gnu_ld \
16367allow_undefined_flag \
16368no_undefined_flag \
16369hardcode_libdir_flag_spec \
7083c021 16370hardcode_libdir_separator \
7083c021
AC
16371exclude_expsyms \
16372include_expsyms \
16373file_list_spec \
16374variables_saved_for_relink \
16375libname_spec \
16376library_names_spec \
16377soname_spec \
b6d0720c 16378install_override_mode \
7083c021
AC
16379finish_eval \
16380old_striplib \
16381striplib; do
b6d0720c 16382 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
7083c021 16383 *[\\\\\\\`\\"\\\$]*)
6f57a957 16384 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
7083c021
AC
16385 ;;
16386 *)
16387 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16388 ;;
16389 esac
c2ac22cc 16390done
7083c021
AC
16391
16392# Double-quote double-evaled strings.
16393for var in reload_cmds \
16394old_postinstall_cmds \
16395old_postuninstall_cmds \
16396old_archive_cmds \
16397extract_expsyms_cmds \
16398old_archive_from_new_cmds \
16399old_archive_from_expsyms_cmds \
16400archive_cmds \
16401archive_expsym_cmds \
16402module_cmds \
16403module_expsym_cmds \
16404export_symbols_cmds \
16405prelink_cmds \
b6d0720c 16406postlink_cmds \
7083c021
AC
16407postinstall_cmds \
16408postuninstall_cmds \
16409finish_cmds \
16410sys_lib_search_path_spec \
6f57a957
AC
16411configure_time_dlsearch_path \
16412configure_time_lt_sys_library_path; do
b6d0720c 16413 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
7083c021 16414 *[\\\\\\\`\\"\\\$]*)
6f57a957 16415 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
7083c021
AC
16416 ;;
16417 *)
16418 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16419 ;;
16420 esac
c2ac22cc 16421done
c2ac22cc 16422
7083c021 16423ac_aux_dir='$ac_aux_dir'
c2ac22cc 16424
6f57a957 16425# See if we are running on zsh, and set the options that allow our
7083c021 16426# commands through without removal of \ escapes INIT.
6f57a957 16427if test -n "\${ZSH_VERSION+set}"; then
7083c021 16428 setopt NO_GLOB_SUBST
c2ac22cc 16429fi
c2ac22cc 16430
c2ac22cc 16431
7083c021
AC
16432 PACKAGE='$PACKAGE'
16433 VERSION='$VERSION'
7083c021
AC
16434 RM='$RM'
16435 ofile='$ofile'
c2ac22cc 16436
c2ac22cc 16437
c2ac22cc 16438
c2ac22cc 16439
7083c021
AC
16440 if test x$ac_cv_header_stdc = xyes; then
16441 rb_header_stdc=yes
16442 fi
16443 if test x$ac_cv_header_stdlib_h = xyes; then
16444 rb_header_stdlib_h=yes
16445 fi
16446 if test x$ac_cv_header_string_h = xyes; then
16447 rb_header_string_h=yes
16448 fi
16449 if test x$ac_cv_header_memory_h = xyes; then
16450 rb_header_memory_h=yes
16451 fi
16452 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
16453 rb_alloca_h="$ac_cv_working_alloca_h"
16454 else
16455 rb_alloc_h="$ac_cv_header_alloca_h"
16456 fi
16457 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
16458 rb_sockaddr_sa_len=yes
16459 fi
16460 if test x$ac_cv_header_sys_socket_h = xyes; then
16461 rb_sys_socket_h=yes
16462 fi
16463 if test x$ac_cv_header_sys_types_h = xyes; then
16464 rb_sys_types_h=yes
16465 fi
16466 if test x$ac_cv_header_sys_stat_h = xyes; then
16467 rb_sys_stat_h=yes
16468 fi
16469 if test x$ac_cv_header_sys_time_h = xyes; then
16470 rb_sys_time_h=yes
16471 fi
16472 if test x$ac_cv_header_time = xyes; then
16473 rb_time_h=yes
16474 fi
c2ac22cc 16475
7083c021
AC
16476 if test x$ac_cv_header_stdint_h = xyes; then
16477 rb_stdint_h=yes
16478 fi
16479 if test x$ac_cv_header_inttypes_h = xyes; then
16480 rb_inttypes_h=yes
16481 fi
16482 if test x$ac_cv_header_netinet_in_h = xyes; then
16483 rb_netinet_in_h=yes
16484 fi
c2ac22cc 16485
7083c021
AC
16486 if test x$ac_cv_header_crypt_h = xyes; then
16487 rb_crypt_h=yes
16488 fi
16489 if test x$ac_cv_header_errno_h = xyes; then
16490 rb_errno_h=yes
16491 fi
16492 if test x$ac_cv_header_unistd_h = xyes; then
16493 rb_unistd_h=yes
16494 fi
16495 if test x$ac_cv_header_windows_h = xyes; then
16496 rb_windows_h=yes
16497 fi
16498 if test x$ac_cv_header_winsock2_h = xyes; then
16499 rb_winsock2_h=yes
16500 fi
c2ac22cc 16501
7083c021 16502 rb_socklen_t=$rb_socklen_t
c2ac22cc 16503
7083c021
AC
16504 if test "x$rb_have_sockaddr_storage" = "xyes"; then
16505 rb_sockaddr_storage="yes"
16506 else
16507 rb_sockaddr_storage="no"
16508 fi
c2ac22cc 16509
7083c021 16510 rb_have_ipv6="$have_v6"
c2ac22cc 16511
7083c021
AC
16512 rb_mv="$MV"
16513 rb_rm="$RM"
c2ac22cc 16514
c2ac22cc 16515
c2ac22cc 16516
db137867 16517
db137867 16518
c2ac22cc 16519
c2ac22cc
VY
16520_ACEOF
16521
7083c021 16522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
db137867 16523
7083c021
AC
16524# Handling of arguments.
16525for ac_config_target in $ac_config_targets
16526do
16527 case $ac_config_target in
16528 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
16529 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16530 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16531 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
16532 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16533 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16534 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
c2ac22cc 16535
08c2568c 16536 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7083c021
AC
16537 esac
16538done
c2ac22cc 16539
db137867 16540
7083c021
AC
16541# If the user did not use the arguments to specify the items to instantiate,
16542# then the envvar interface is used. Set only those that are not.
16543# We use the long form for the default assignment because of an extremely
16544# bizarre bug on SunOS 4.1.3.
16545if $ac_need_defaults; then
16546 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16547 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16548 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16549fi
db137867 16550
7083c021
AC
16551# Have a temporary directory for convenience. Make it in the build tree
16552# simply because there is no reason against having it here, and in addition,
16553# creating and moving files from /tmp can sometimes cause problems.
16554# Hook for its removal unless debugging.
16555# Note that there is a small window in which the directory will not be cleaned:
16556# after its creation but before its name has been assigned to `$tmp'.
16557$debug ||
16558{
08c2568c 16559 tmp= ac_tmp=
7083c021 16560 trap 'exit_status=$?
08c2568c
EM
16561 : "${ac_tmp:=$tmp}"
16562 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7083c021
AC
16563' 0
16564 trap 'as_fn_exit 1' 1 2 13 15
16565}
16566# Create a (secure) tmp directory for tmp files.
db137867 16567
7083c021
AC
16568{
16569 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
08c2568c 16570 test -d "$tmp"
7083c021
AC
16571} ||
16572{
16573 tmp=./conf$$-$RANDOM
16574 (umask 077 && mkdir "$tmp")
08c2568c
EM
16575} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16576ac_tmp=$tmp
db137867 16577
7083c021
AC
16578# Set up the scripts for CONFIG_FILES section.
16579# No need to generate them if there are no CONFIG_FILES.
16580# This happens for instance with `./config.status config.h'.
16581if test -n "$CONFIG_FILES"; then
db137867
AC
16582
16583
7083c021
AC
16584ac_cr=`echo X | tr X '\015'`
16585# On cygwin, bash can eat \r inside `` if the user requested igncr.
16586# But we know of no other shell where ac_cr would be empty at this
16587# point, so we can use a bashism as a fallback.
16588if test "x$ac_cr" = x; then
16589 eval ac_cr=\$\'\\r\'
16590fi
16591ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16592if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
08c2568c 16593 ac_cs_awk_cr='\\r'
db137867 16594else
7083c021 16595 ac_cs_awk_cr=$ac_cr
db137867
AC
16596fi
16597
08c2568c 16598echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
db137867
AC
16599_ACEOF
16600
db137867 16601
7083c021
AC
16602{
16603 echo "cat >conf$$subs.awk <<_ACEOF" &&
16604 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16605 echo "_ACEOF"
16606} >conf$$subs.sh ||
08c2568c
EM
16607 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16608ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7083c021
AC
16609ac_delim='%!_!# '
16610for ac_last_try in false false false false false :; do
16611 . ./conf$$subs.sh ||
08c2568c 16612 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
db137867 16613
7083c021
AC
16614 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16615 if test $ac_delim_n = $ac_delim_num; then
16616 break
16617 elif $ac_last_try; then
08c2568c 16618 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7083c021
AC
16619 else
16620 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16621 fi
16622done
16623rm -f conf$$subs.sh
db137867 16624
7083c021 16625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
08c2568c 16626cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
db137867 16627_ACEOF
7083c021
AC
16628sed -n '
16629h
16630s/^/S["/; s/!.*/"]=/
16631p
16632g
16633s/^[^!]*!//
16634:repl
16635t repl
16636s/'"$ac_delim"'$//
16637t delim
16638:nl
16639h
96f4052b 16640s/\(.\{148\}\)..*/\1/
7083c021
AC
16641t more1
16642s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16643p
16644n
16645b repl
16646:more1
16647s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16648p
16649g
16650s/.\{148\}//
16651t nl
16652:delim
16653h
96f4052b 16654s/\(.\{148\}\)..*/\1/
7083c021
AC
16655t more2
16656s/["\\]/\\&/g; s/^/"/; s/$/"/
16657p
16658b
16659:more2
16660s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16661p
16662g
16663s/.\{148\}//
16664t delim
16665' <conf$$subs.awk | sed '
16666/^[^""]/{
16667 N
16668 s/\n//
16669}
16670' >>$CONFIG_STATUS || ac_write_fail=1
16671rm -f conf$$subs.awk
16672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16673_ACAWK
08c2568c 16674cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7083c021
AC
16675 for (key in S) S_is_set[key] = 1
16676 FS = "\a"
db137867 16677
7083c021
AC
16678}
16679{
16680 line = $ 0
16681 nfields = split(line, field, "@")
16682 substed = 0
16683 len = length(field[1])
16684 for (i = 2; i < nfields; i++) {
16685 key = field[i]
16686 keylen = length(key)
16687 if (S_is_set[key]) {
16688 value = S[key]
16689 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16690 len += length(value) + length(field[++i])
16691 substed = 1
16692 } else
16693 len += 1 + keylen
16694 }
db137867 16695
7083c021
AC
16696 print line
16697}
16698
16699_ACAWK
16700_ACEOF
16701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16702if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16703 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
db137867 16704else
7083c021 16705 cat
08c2568c
EM
16706fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16707 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7083c021 16708_ACEOF
db137867 16709
08c2568c
EM
16710# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16711# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7083c021
AC
16712# trailing colons and then remove the whole line if VPATH becomes empty
16713# (actually we leave an empty line to preserve line numbers).
16714if test "x$srcdir" = x.; then
08c2568c
EM
16715 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16716h
16717s///
16718s/^/:/
16719s/[ ]*$/:/
16720s/:\$(srcdir):/:/g
16721s/:\${srcdir}:/:/g
16722s/:@srcdir@:/:/g
16723s/^:*//
7083c021 16724s/:*$//
08c2568c
EM
16725x
16726s/\(=[ ]*\).*/\1/
16727G
16728s/\n//
7083c021
AC
16729s/^[^=]*=[ ]*$//
16730}'
16731fi
db137867 16732
7083c021
AC
16733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16734fi # test -n "$CONFIG_FILES"
db137867 16735
7083c021
AC
16736# Set up the scripts for CONFIG_HEADERS section.
16737# No need to generate them if there are no CONFIG_HEADERS.
16738# This happens for instance with `./config.status Makefile'.
16739if test -n "$CONFIG_HEADERS"; then
08c2568c 16740cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7083c021 16741BEGIN {
db137867
AC
16742_ACEOF
16743
7083c021
AC
16744# Transform confdefs.h into an awk script `defines.awk', embedded as
16745# here-document in config.status, that substitutes the proper values into
16746# config.h.in to produce config.h.
db137867 16747
7083c021
AC
16748# Create a delimiter string that does not exist in confdefs.h, to ease
16749# handling of long lines.
16750ac_delim='%!_!# '
16751for ac_last_try in false false :; do
08c2568c
EM
16752 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16753 if test -z "$ac_tt"; then
7083c021
AC
16754 break
16755 elif $ac_last_try; then
08c2568c 16756 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7083c021
AC
16757 else
16758 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16759 fi
16760done
db137867 16761
7083c021
AC
16762# For the awk script, D is an array of macro values keyed by name,
16763# likewise P contains macro parameters if any. Preserve backslash
16764# newline sequences.
db137867 16765
7083c021
AC
16766ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16767sed -n '
16768s/.\{148\}/&'"$ac_delim"'/g
16769t rset
16770:rset
16771s/^[ ]*#[ ]*define[ ][ ]*/ /
16772t def
16773d
16774:def
16775s/\\$//
16776t bsnl
16777s/["\\]/\\&/g
16778s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16779D["\1"]=" \3"/p
16780s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16781d
16782:bsnl
16783s/["\\]/\\&/g
16784s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16785D["\1"]=" \3\\\\\\n"\\/p
16786t cont
16787s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16788t cont
16789d
16790:cont
16791n
16792s/.\{148\}/&'"$ac_delim"'/g
16793t clear
16794:clear
16795s/\\$//
16796t bsnlc
16797s/["\\]/\\&/g; s/^/"/; s/$/"/p
16798d
16799:bsnlc
16800s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16801b cont
16802' <confdefs.h | sed '
16803s/'"$ac_delim"'/"\\\
16804"/g' >>$CONFIG_STATUS || ac_write_fail=1
db137867 16805
7083c021
AC
16806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16807 for (key in D) D_is_set[key] = 1
16808 FS = "\a"
16809}
16810/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16811 line = \$ 0
16812 split(line, arg, " ")
16813 if (arg[1] == "#") {
16814 defundef = arg[2]
16815 mac1 = arg[3]
16816 } else {
16817 defundef = substr(arg[1], 2)
16818 mac1 = arg[2]
16819 }
16820 split(mac1, mac2, "(") #)
16821 macro = mac2[1]
16822 prefix = substr(line, 1, index(line, defundef) - 1)
16823 if (D_is_set[macro]) {
16824 # Preserve the white space surrounding the "#".
16825 print prefix "define", macro P[macro] D[macro]
16826 next
16827 } else {
16828 # Replace #undef with comments. This is necessary, for example,
16829 # in the case of _POSIX_SOURCE, which is predefined and required
16830 # on some systems where configure will not decide to define it.
16831 if (defundef == "undef") {
16832 print "/*", prefix defundef, macro, "*/"
16833 next
16834 }
16835 }
16836}
16837{ print }
16838_ACAWK
db137867 16839_ACEOF
7083c021 16840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
08c2568c 16841 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7083c021 16842fi # test -n "$CONFIG_HEADERS"
db137867
AC
16843
16844
7083c021
AC
16845eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16846shift
16847for ac_tag
16848do
16849 case $ac_tag in
16850 :[FHLC]) ac_mode=$ac_tag; continue;;
16851 esac
16852 case $ac_mode$ac_tag in
16853 :[FHL]*:*);;
08c2568c 16854 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7083c021
AC
16855 :[FH]-) ac_tag=-:-;;
16856 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16857 esac
16858 ac_save_IFS=$IFS
16859 IFS=:
16860 set x $ac_tag
16861 IFS=$ac_save_IFS
16862 shift
16863 ac_file=$1
16864 shift
db137867 16865
7083c021
AC
16866 case $ac_mode in
16867 :L) ac_source=$1;;
16868 :[FH])
16869 ac_file_inputs=
16870 for ac_f
16871 do
16872 case $ac_f in
08c2568c 16873 -) ac_f="$ac_tmp/stdin";;
7083c021
AC
16874 *) # Look for the file first in the build tree, then in the source tree
16875 # (if the path is not absolute). The absolute path cannot be DOS-style,
16876 # because $ac_f cannot contain `:'.
16877 test -f "$ac_f" ||
16878 case $ac_f in
16879 [\\/$]*) false;;
16880 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16881 esac ||
08c2568c 16882 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7083c021
AC
16883 esac
16884 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16885 as_fn_append ac_file_inputs " '$ac_f'"
16886 done
db137867 16887
7083c021
AC
16888 # Let's still pretend it is `configure' which instantiates (i.e., don't
16889 # use $as_me), people would be surprised to read:
16890 # /* config.h. Generated by config.status. */
16891 configure_input='Generated from '`
16892 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16893 `' by configure.'
16894 if test x"$ac_file" != x-; then
16895 configure_input="$ac_file. $configure_input"
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16897$as_echo "$as_me: creating $ac_file" >&6;}
16898 fi
16899 # Neutralize special characters interpreted by sed in replacement strings.
16900 case $configure_input in #(
16901 *\&* | *\|* | *\\* )
16902 ac_sed_conf_input=`$as_echo "$configure_input" |
16903 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16904 *) ac_sed_conf_input=$configure_input;;
16905 esac
db137867 16906
7083c021 16907 case $ac_tag in
08c2568c
EM
16908 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16909 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7083c021
AC
16910 esac
16911 ;;
16912 esac
db137867 16913
7083c021
AC
16914 ac_dir=`$as_dirname -- "$ac_file" ||
16915$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16916 X"$ac_file" : 'X\(//\)[^/]' \| \
16917 X"$ac_file" : 'X\(//\)$' \| \
16918 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16919$as_echo X"$ac_file" |
16920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16921 s//\1/
16922 q
16923 }
16924 /^X\(\/\/\)[^/].*/{
16925 s//\1/
16926 q
16927 }
16928 /^X\(\/\/\)$/{
16929 s//\1/
16930 q
16931 }
16932 /^X\(\/\).*/{
16933 s//\1/
16934 q
16935 }
16936 s/.*/./; q'`
16937 as_dir="$ac_dir"; as_fn_mkdir_p
16938 ac_builddir=.
db137867 16939
7083c021
AC
16940case "$ac_dir" in
16941.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16942*)
16943 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16944 # A ".." for each directory in $ac_dir_suffix.
16945 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16946 case $ac_top_builddir_sub in
16947 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16948 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16949 esac ;;
16950esac
16951ac_abs_top_builddir=$ac_pwd
16952ac_abs_builddir=$ac_pwd$ac_dir_suffix
16953# for backward compatibility:
16954ac_top_builddir=$ac_top_build_prefix
db137867 16955
7083c021
AC
16956case $srcdir in
16957 .) # We are building in place.
16958 ac_srcdir=.
16959 ac_top_srcdir=$ac_top_builddir_sub
16960 ac_abs_top_srcdir=$ac_pwd ;;
16961 [\\/]* | ?:[\\/]* ) # Absolute name.
16962 ac_srcdir=$srcdir$ac_dir_suffix;
16963 ac_top_srcdir=$srcdir
16964 ac_abs_top_srcdir=$srcdir ;;
16965 *) # Relative name.
16966 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16967 ac_top_srcdir=$ac_top_build_prefix$srcdir
16968 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16969esac
16970ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
db137867 16971
c2ac22cc 16972
7083c021
AC
16973 case $ac_mode in
16974 :F)
16975 #
16976 # CONFIG_FILE
16977 #
db137867 16978
7083c021
AC
16979 case $INSTALL in
16980 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16981 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16982 esac
16983 ac_MKDIR_P=$MKDIR_P
16984 case $MKDIR_P in
16985 [\\/$]* | ?:[\\/]* ) ;;
16986 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16987 esac
db137867
AC
16988_ACEOF
16989
7083c021
AC
16990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16991# If the template does not know about datarootdir, expand it.
16992# FIXME: This hack should be removed a few years after 2.60.
16993ac_datarootdir_hack=; ac_datarootdir_seen=
16994ac_sed_dataroot='
16995/datarootdir/ {
16996 p
16997 q
16998}
16999/@datadir@/p
17000/@docdir@/p
17001/@infodir@/p
17002/@localedir@/p
17003/@mandir@/p'
17004case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17005*datarootdir*) ac_datarootdir_seen=yes;;
17006*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17008$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17009_ACEOF
17010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17011 ac_datarootdir_hack='
17012 s&@datadir@&$datadir&g
17013 s&@docdir@&$docdir&g
17014 s&@infodir@&$infodir&g
17015 s&@localedir@&$localedir&g
17016 s&@mandir@&$mandir&g
17017 s&\\\${datarootdir}&$datarootdir&g' ;;
17018esac
db137867
AC
17019_ACEOF
17020
7083c021
AC
17021# Neutralize VPATH when `$srcdir' = `.'.
17022# Shell code in configure.ac might set extrasub.
17023# FIXME: do we really want to maintain this feature?
17024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17025ac_sed_extra="$ac_vpsub
17026$extrasub
17027_ACEOF
17028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17029:t
17030/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17031s|@configure_input@|$ac_sed_conf_input|;t t
17032s&@top_builddir@&$ac_top_builddir_sub&;t t
17033s&@top_build_prefix@&$ac_top_build_prefix&;t t
17034s&@srcdir@&$ac_srcdir&;t t
17035s&@abs_srcdir@&$ac_abs_srcdir&;t t
17036s&@top_srcdir@&$ac_top_srcdir&;t t
17037s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17038s&@builddir@&$ac_builddir&;t t
17039s&@abs_builddir@&$ac_abs_builddir&;t t
17040s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17041s&@INSTALL@&$ac_INSTALL&;t t
17042s&@MKDIR_P@&$ac_MKDIR_P&;t t
17043$ac_datarootdir_hack
17044"
08c2568c
EM
17045eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17046 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
db137867 17047
7083c021 17048test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
08c2568c
EM
17049 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17050 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17051 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7083c021 17052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
08c2568c 17053which seems to be undefined. Please make sure it is defined" >&5
7083c021 17054$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
08c2568c 17055which seems to be undefined. Please make sure it is defined" >&2;}
db137867 17056
08c2568c 17057 rm -f "$ac_tmp/stdin"
7083c021 17058 case $ac_file in
08c2568c
EM
17059 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17060 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7083c021 17061 esac \
08c2568c 17062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7083c021
AC
17063 ;;
17064 :H)
17065 #
17066 # CONFIG_HEADER
17067 #
17068 if test x"$ac_file" != x-; then
17069 {
17070 $as_echo "/* $configure_input */" \
08c2568c
EM
17071 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17072 } >"$ac_tmp/config.h" \
17073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17074 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7083c021
AC
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17076$as_echo "$as_me: $ac_file is unchanged" >&6;}
17077 else
17078 rm -f "$ac_file"
08c2568c
EM
17079 mv "$ac_tmp/config.h" "$ac_file" \
17080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7083c021
AC
17081 fi
17082 else
17083 $as_echo "/* $configure_input */" \
08c2568c
EM
17084 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17085 || as_fn_error $? "could not create -" "$LINENO" 5
7083c021
AC
17086 fi
17087# Compute "$ac_file"'s index in $config_headers.
17088_am_arg="$ac_file"
17089_am_stamp_count=1
17090for _am_header in $config_headers :; do
17091 case $_am_header in
17092 $_am_arg | $_am_arg:* )
17093 break ;;
17094 * )
17095 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17096 esac
17097done
17098echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17099$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17100 X"$_am_arg" : 'X\(//\)[^/]' \| \
17101 X"$_am_arg" : 'X\(//\)$' \| \
17102 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17103$as_echo X"$_am_arg" |
17104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17105 s//\1/
17106 q
17107 }
17108 /^X\(\/\/\)[^/].*/{
17109 s//\1/
17110 q
17111 }
17112 /^X\(\/\/\)$/{
17113 s//\1/
17114 q
17115 }
17116 /^X\(\/\).*/{
17117 s//\1/
17118 q
17119 }
17120 s/.*/./; q'`/stamp-h$_am_stamp_count
17121 ;;
db137867 17122
7083c021
AC
17123 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17124$as_echo "$as_me: executing $ac_file commands" >&6;}
17125 ;;
17126 esac
db137867 17127
db137867 17128
7083c021
AC
17129 case $ac_file$ac_mode in
17130 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
bf4e01a4 17131 # Older Autoconf quotes --file arguments for eval, but not when files
7083c021
AC
17132 # are listed without --file. Let's play safe and only enable the eval
17133 # if we detect the quoting.
17134 case $CONFIG_FILES in
17135 *\'*) eval set x "$CONFIG_FILES" ;;
17136 *) set x $CONFIG_FILES ;;
17137 esac
17138 shift
17139 for mf
17140 do
17141 # Strip MF so we end up with the name of the file.
17142 mf=`echo "$mf" | sed -e 's/:.*$//'`
17143 # Check whether this is an Automake generated Makefile or not.
bf4e01a4 17144 # We used to match only the files named 'Makefile.in', but
7083c021
AC
17145 # some people rename them; so instead we look at the file content.
17146 # Grep'ing the first line is not enough: some people post-process
17147 # each Makefile.in and add a new line on top of each file to say so.
17148 # Grep'ing the whole file is not good either: AIX grep has a line
17149 # limit of 2048, but all sed's we know have understand at least 4000.
17150 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17151 dirpart=`$as_dirname -- "$mf" ||
17152$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17153 X"$mf" : 'X\(//\)[^/]' \| \
17154 X"$mf" : 'X\(//\)$' \| \
17155 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17156$as_echo X"$mf" |
17157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17158 s//\1/
17159 q
17160 }
17161 /^X\(\/\/\)[^/].*/{
17162 s//\1/
17163 q
17164 }
17165 /^X\(\/\/\)$/{
17166 s//\1/
17167 q
17168 }
17169 /^X\(\/\).*/{
17170 s//\1/
17171 q
17172 }
17173 s/.*/./; q'`
17174 else
17175 continue
17176 fi
17177 # Extract the definition of DEPDIR, am__include, and am__quote
bf4e01a4 17178 # from the Makefile without running 'make'.
7083c021
AC
17179 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17180 test -z "$DEPDIR" && continue
17181 am__include=`sed -n 's/^am__include = //p' < "$mf"`
bf4e01a4 17182 test -z "$am__include" && continue
7083c021 17183 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7083c021
AC
17184 # Find all dependency output files, they are included files with
17185 # $(DEPDIR) in their names. We invoke sed twice because it is the
17186 # simplest approach to changing $(DEPDIR) to its actual value in the
17187 # expansion.
17188 for file in `sed -n "
17189 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
bf4e01a4 17190 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7083c021
AC
17191 # Make sure the directory exists.
17192 test -f "$dirpart/$file" && continue
17193 fdir=`$as_dirname -- "$file" ||
17194$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17195 X"$file" : 'X\(//\)[^/]' \| \
17196 X"$file" : 'X\(//\)$' \| \
17197 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17198$as_echo X"$file" |
17199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17200 s//\1/
17201 q
17202 }
17203 /^X\(\/\/\)[^/].*/{
17204 s//\1/
17205 q
17206 }
17207 /^X\(\/\/\)$/{
17208 s//\1/
17209 q
17210 }
17211 /^X\(\/\).*/{
17212 s//\1/
17213 q
17214 }
17215 s/.*/./; q'`
17216 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17217 # echo "creating $dirpart/$file"
17218 echo '# dummy' > "$dirpart/$file"
17219 done
17220 done
17221}
17222 ;;
17223 "libtool":C)
db137867 17224
6f57a957 17225 # See if we are running on zsh, and set the options that allow our
7083c021 17226 # commands through without removal of \ escapes.
6f57a957 17227 if test -n "${ZSH_VERSION+set}"; then
7083c021
AC
17228 setopt NO_GLOB_SUBST
17229 fi
c2ac22cc 17230
6f57a957 17231 cfgfile=${ofile}T
7083c021
AC
17232 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17233 $RM "$cfgfile"
db137867 17234
7083c021
AC
17235 cat <<_LT_EOF >> "$cfgfile"
17236#! $SHELL
6f57a957 17237# Generated automatically by $as_me ($PACKAGE) $VERSION
7083c021
AC
17238# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17239# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6f57a957
AC
17240
17241# Provide generalized library-building support services.
17242# Written by Gordon Matzigkeit, 1996
17243
17244# Copyright (C) 2014 Free Software Foundation, Inc.
17245# This is free software; see the source for copying conditions. There is NO
17246# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17247
17248# GNU Libtool is free software; you can redistribute it and/or modify
17249# it under the terms of the GNU General Public License as published by
17250# the Free Software Foundation; either version 2 of of the License, or
17251# (at your option) any later version.
db137867 17252#
6f57a957
AC
17253# As a special exception to the GNU General Public License, if you
17254# distribute this file as part of a program or library that is built
17255# using GNU Libtool, you may include this file under the same
17256# distribution terms that you use for the rest of that program.
7083c021 17257#
6f57a957
AC
17258# GNU Libtool is distributed in the hope that it will be useful, but
17259# WITHOUT ANY WARRANTY; without even the implied warranty of
7083c021
AC
17260# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17261# GNU General Public License for more details.
17262#
17263# You should have received a copy of the GNU General Public License
6f57a957 17264# along with this program. If not, see <http://www.gnu.org/licenses/>.
db137867 17265
db137867 17266
7083c021 17267# The names of the tagged configurations supported by this script.
6f57a957
AC
17268available_tags=''
17269
17270# Configured defaults for sys_lib_dlsearch_path munging.
17271: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
db137867 17272
7083c021 17273# ### BEGIN LIBTOOL CONFIG
db137867 17274
7083c021
AC
17275# Whether or not to build static libraries.
17276build_old_libs=$enable_static
db137867 17277
7083c021
AC
17278# Whether or not to build shared libraries.
17279build_libtool_libs=$enable_shared
db137867 17280
7083c021
AC
17281# Which release of libtool.m4 was used?
17282macro_version=$macro_version
17283macro_revision=$macro_revision
db137867 17284
7083c021
AC
17285# What type of objects to build.
17286pic_mode=$pic_mode
db137867 17287
7083c021
AC
17288# Whether or not to optimize for fast installation.
17289fast_install=$enable_fast_install
db137867 17290
6f57a957
AC
17291# Shared archive member basename,for filename based shared library versioning on AIX.
17292shared_archive_member_spec=$shared_archive_member_spec
17293
b6d0720c
AC
17294# Shell to use when invoking shell scripts.
17295SHELL=$lt_SHELL
17296
17297# An echo program that protects backslashes.
17298ECHO=$lt_ECHO
17299
a949ab1a
AC
17300# The PATH separator for the build system.
17301PATH_SEPARATOR=$lt_PATH_SEPARATOR
17302
7083c021
AC
17303# The host system.
17304host_alias=$host_alias
17305host=$host
17306host_os=$host_os
db137867 17307
7083c021
AC
17308# The build system.
17309build_alias=$build_alias
17310build=$build
17311build_os=$build_os
db137867 17312
7083c021
AC
17313# A sed program that does not truncate output.
17314SED=$lt_SED
db137867 17315
7083c021
AC
17316# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17317Xsed="\$SED -e 1s/^X//"
db137867 17318
7083c021
AC
17319# A grep program that handles long lines.
17320GREP=$lt_GREP
db137867 17321
7083c021
AC
17322# An ERE matcher.
17323EGREP=$lt_EGREP
db137867 17324
7083c021
AC
17325# A literal string matcher.
17326FGREP=$lt_FGREP
db137867 17327
7083c021
AC
17328# A BSD- or MS-compatible name lister.
17329NM=$lt_NM
030272f3 17330
7083c021
AC
17331# Whether we need soft or hard links.
17332LN_S=$lt_LN_S
db137867 17333
7083c021
AC
17334# What is the maximum length of a command?
17335max_cmd_len=$max_cmd_len
db137867 17336
7083c021
AC
17337# Object file suffix (normally "o").
17338objext=$ac_objext
db137867 17339
7083c021
AC
17340# Executable file suffix (normally "").
17341exeext=$exeext
db137867 17342
7083c021
AC
17343# whether the shell understands "unset".
17344lt_unset=$lt_unset
db137867 17345
7083c021
AC
17346# turn spaces into newlines.
17347SP2NL=$lt_lt_SP2NL
db137867 17348
7083c021
AC
17349# turn newlines into spaces.
17350NL2SP=$lt_lt_NL2SP
db137867 17351
b6d0720c
AC
17352# convert \$build file names to \$host format.
17353to_host_file_cmd=$lt_cv_to_host_file_cmd
17354
17355# convert \$build files to toolchain format.
17356to_tool_file_cmd=$lt_cv_to_tool_file_cmd
db137867 17357
7083c021
AC
17358# An object symbol dumper.
17359OBJDUMP=$lt_OBJDUMP
db137867 17360
7083c021
AC
17361# Method to check whether dependent libraries are shared objects.
17362deplibs_check_method=$lt_deplibs_check_method
db137867 17363
b6d0720c 17364# Command to use when deplibs_check_method = "file_magic".
7083c021 17365file_magic_cmd=$lt_file_magic_cmd
db137867 17366
b6d0720c
AC
17367# How to find potential files when deplibs_check_method = "file_magic".
17368file_magic_glob=$lt_file_magic_glob
17369
17370# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17371want_nocaseglob=$lt_want_nocaseglob
17372
17373# DLL creation program.
17374DLLTOOL=$lt_DLLTOOL
17375
17376# Command to associate shared and link libraries.
17377sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17378
7083c021
AC
17379# The archiver.
17380AR=$lt_AR
b6d0720c
AC
17381
17382# Flags to create an archive.
7083c021 17383AR_FLAGS=$lt_AR_FLAGS
db137867 17384
b6d0720c
AC
17385# How to feed a file listing to the archiver.
17386archiver_list_spec=$lt_archiver_list_spec
17387
7083c021
AC
17388# A symbol stripping program.
17389STRIP=$lt_STRIP
db137867 17390
7083c021
AC
17391# Commands used to install an old-style archive.
17392RANLIB=$lt_RANLIB
17393old_postinstall_cmds=$lt_old_postinstall_cmds
17394old_postuninstall_cmds=$lt_old_postuninstall_cmds
db137867 17395
b6d0720c
AC
17396# Whether to use a lock for old archive extraction.
17397lock_old_archive_extraction=$lock_old_archive_extraction
17398
7083c021
AC
17399# A C compiler.
17400LTCC=$lt_CC
db137867 17401
7083c021
AC
17402# LTCC compiler flags.
17403LTCFLAGS=$lt_CFLAGS
db137867 17404
7083c021
AC
17405# Take the output of nm and produce a listing of raw symbols and C names.
17406global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
db137867 17407
7083c021
AC
17408# Transform the output of nm in a proper C declaration.
17409global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
db137867 17410
6f57a957
AC
17411# Transform the output of nm into a list of symbols to manually relocate.
17412global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17413
7083c021
AC
17414# Transform the output of nm in a C name address pair.
17415global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
db137867 17416
7083c021
AC
17417# Transform the output of nm in a C name address pair when lib prefix is needed.
17418global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
db137867 17419
6f57a957
AC
17420# The name lister interface.
17421nm_interface=$lt_lt_cv_nm_interface
17422
b6d0720c
AC
17423# Specify filename containing input files for \$NM.
17424nm_file_list_spec=$lt_nm_file_list_spec
db137867 17425
6f57a957 17426# The root where to search for dependent libraries,and where our libraries should be installed.
b6d0720c 17427lt_sysroot=$lt_sysroot
db137867 17428
6f57a957
AC
17429# Command to truncate a binary pipe.
17430lt_truncate_bin=$lt_lt_cv_truncate_bin
17431
b6d0720c
AC
17432# The name of the directory that contains temporary libtool files.
17433objdir=$objdir
db137867 17434
7083c021
AC
17435# Used to examine libraries when file_magic_cmd begins with "file".
17436MAGIC_CMD=$MAGIC_CMD
17437
17438# Must we lock files when doing compilation?
17439need_locks=$lt_need_locks
db137867 17440
b6d0720c
AC
17441# Manifest tool.
17442MANIFEST_TOOL=$lt_MANIFEST_TOOL
17443
7083c021
AC
17444# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17445DSYMUTIL=$lt_DSYMUTIL
db137867 17446
7083c021
AC
17447# Tool to change global to local symbols on Mac OS X.
17448NMEDIT=$lt_NMEDIT
db137867 17449
7083c021
AC
17450# Tool to manipulate fat objects and archives on Mac OS X.
17451LIPO=$lt_LIPO
db137867 17452
7083c021
AC
17453# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17454OTOOL=$lt_OTOOL
db137867 17455
7083c021
AC
17456# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17457OTOOL64=$lt_OTOOL64
db137867 17458
7083c021
AC
17459# Old archive suffix (normally "a").
17460libext=$libext
db137867 17461
7083c021
AC
17462# Shared library suffix (normally ".so").
17463shrext_cmds=$lt_shrext_cmds
db137867 17464
7083c021
AC
17465# The commands to extract the exported symbol list from a shared archive.
17466extract_expsyms_cmds=$lt_extract_expsyms_cmds
db137867 17467
7083c021
AC
17468# Variables whose values should be saved in libtool wrapper scripts and
17469# restored at link time.
17470variables_saved_for_relink=$lt_variables_saved_for_relink
030272f3 17471
7083c021
AC
17472# Do we need the "lib" prefix for modules?
17473need_lib_prefix=$need_lib_prefix
030272f3 17474
7083c021
AC
17475# Do we need a version for libraries?
17476need_version=$need_version
030272f3 17477
7083c021
AC
17478# Library versioning type.
17479version_type=$version_type
db137867 17480
7083c021
AC
17481# Shared library runtime path variable.
17482runpath_var=$runpath_var
db137867 17483
7083c021
AC
17484# Shared library path variable.
17485shlibpath_var=$shlibpath_var
db137867 17486
7083c021
AC
17487# Is shlibpath searched before the hard-coded library search path?
17488shlibpath_overrides_runpath=$shlibpath_overrides_runpath
db137867 17489
7083c021
AC
17490# Format of library name prefix.
17491libname_spec=$lt_libname_spec
db137867 17492
7083c021
AC
17493# List of archive names. First name is the real one, the rest are links.
17494# The last name is the one that the linker finds with -lNAME
17495library_names_spec=$lt_library_names_spec
db137867 17496
7083c021
AC
17497# The coded name of the library, if different from the real name.
17498soname_spec=$lt_soname_spec
db137867 17499
b6d0720c
AC
17500# Permission mode override for installation of shared libraries.
17501install_override_mode=$lt_install_override_mode
17502
7083c021
AC
17503# Command to use after installation of a shared archive.
17504postinstall_cmds=$lt_postinstall_cmds
db137867 17505
7083c021
AC
17506# Command to use after uninstallation of a shared archive.
17507postuninstall_cmds=$lt_postuninstall_cmds
db137867 17508
7083c021
AC
17509# Commands used to finish a libtool library installation in a directory.
17510finish_cmds=$lt_finish_cmds
db137867 17511
7083c021
AC
17512# As "finish_cmds", except a single script fragment to be evaled but
17513# not shown.
17514finish_eval=$lt_finish_eval
db137867 17515
7083c021
AC
17516# Whether we should hardcode library paths into libraries.
17517hardcode_into_libs=$hardcode_into_libs
db137867 17518
7083c021
AC
17519# Compile-time system search path for libraries.
17520sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
db137867 17521
6f57a957
AC
17522# Detected run-time system search path for libraries.
17523sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17524
17525# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17526configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
db137867 17527
7083c021
AC
17528# Whether dlopen is supported.
17529dlopen_support=$enable_dlopen
db137867 17530
7083c021
AC
17531# Whether dlopen of programs is supported.
17532dlopen_self=$enable_dlopen_self
db137867 17533
7083c021
AC
17534# Whether dlopen of statically linked programs is supported.
17535dlopen_self_static=$enable_dlopen_self_static
db137867 17536
7083c021
AC
17537# Commands to strip libraries.
17538old_striplib=$lt_old_striplib
17539striplib=$lt_striplib
db137867 17540
db137867 17541
7083c021
AC
17542# The linker used to build libraries.
17543LD=$lt_LD
db137867 17544
b6d0720c
AC
17545# How to create reloadable object files.
17546reload_flag=$lt_reload_flag
17547reload_cmds=$lt_reload_cmds
17548
7083c021
AC
17549# Commands used to build an old-style archive.
17550old_archive_cmds=$lt_old_archive_cmds
db137867 17551
7083c021
AC
17552# A language specific compiler.
17553CC=$lt_compiler
db137867 17554
7083c021
AC
17555# Is the compiler the GNU compiler?
17556with_gcc=$GCC
db137867 17557
7083c021
AC
17558# Compiler flag to turn off builtin functions.
17559no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
db137867 17560
7083c021
AC
17561# Additional compiler flags for building library objects.
17562pic_flag=$lt_lt_prog_compiler_pic
17563
b6d0720c
AC
17564# How to pass a linker flag through the compiler.
17565wl=$lt_lt_prog_compiler_wl
17566
7083c021
AC
17567# Compiler flag to prevent dynamic linking.
17568link_static_flag=$lt_lt_prog_compiler_static
17569
17570# Does compiler simultaneously support -c and -o options?
17571compiler_c_o=$lt_lt_cv_prog_compiler_c_o
a9fb3ed0 17572
7083c021
AC
17573# Whether or not to add -lc for building shared libraries.
17574build_libtool_need_lc=$archive_cmds_need_lc
a9fb3ed0 17575
7083c021
AC
17576# Whether or not to disallow shared libs when runtime libs are static.
17577allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
db137867 17578
7083c021
AC
17579# Compiler flag to allow reflexive dlopens.
17580export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
db137867 17581
7083c021
AC
17582# Compiler flag to generate shared objects directly from archives.
17583whole_archive_flag_spec=$lt_whole_archive_flag_spec
db137867 17584
7083c021
AC
17585# Whether the compiler copes with passing no objects directly.
17586compiler_needs_object=$lt_compiler_needs_object
db137867 17587
7083c021
AC
17588# Create an old-style archive from a shared archive.
17589old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
db137867 17590
7083c021
AC
17591# Create a temporary old-style archive to link instead of a shared archive.
17592old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
db137867 17593
7083c021
AC
17594# Commands used to build a shared archive.
17595archive_cmds=$lt_archive_cmds
17596archive_expsym_cmds=$lt_archive_expsym_cmds
db137867 17597
7083c021
AC
17598# Commands used to build a loadable module if different from building
17599# a shared archive.
17600module_cmds=$lt_module_cmds
17601module_expsym_cmds=$lt_module_expsym_cmds
db137867 17602
7083c021
AC
17603# Whether we are building with GNU ld or not.
17604with_gnu_ld=$lt_with_gnu_ld
db137867 17605
7083c021
AC
17606# Flag that allows shared libraries with undefined symbols to be built.
17607allow_undefined_flag=$lt_allow_undefined_flag
db137867 17608
7083c021
AC
17609# Flag that enforces no undefined symbols.
17610no_undefined_flag=$lt_no_undefined_flag
db137867 17611
7083c021
AC
17612# Flag to hardcode \$libdir into a binary during linking.
17613# This must work even if \$libdir does not exist
17614hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
db137867 17615
7083c021
AC
17616# Whether we need a single "-rpath" flag with a separated argument.
17617hardcode_libdir_separator=$lt_hardcode_libdir_separator
db137867 17618
6f57a957 17619# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
7083c021
AC
17620# DIR into the resulting binary.
17621hardcode_direct=$hardcode_direct
db137867 17622
6f57a957 17623# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
7083c021 17624# DIR into the resulting binary and the resulting library dependency is
6f57a957 17625# "absolute",i.e impossible to change by setting \$shlibpath_var if the
7083c021
AC
17626# library is relocated.
17627hardcode_direct_absolute=$hardcode_direct_absolute
db137867 17628
7083c021
AC
17629# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17630# into the resulting binary.
17631hardcode_minus_L=$hardcode_minus_L
db137867 17632
7083c021
AC
17633# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17634# into the resulting binary.
17635hardcode_shlibpath_var=$hardcode_shlibpath_var
db137867 17636
7083c021
AC
17637# Set to "yes" if building a shared library automatically hardcodes DIR
17638# into the library and all subsequent libraries and executables linked
17639# against it.
17640hardcode_automatic=$hardcode_automatic
db137867 17641
7083c021
AC
17642# Set to yes if linker adds runtime paths of dependent libraries
17643# to runtime path list.
17644inherit_rpath=$inherit_rpath
db137867 17645
7083c021
AC
17646# Whether libtool must link a program against all its dependency libraries.
17647link_all_deplibs=$link_all_deplibs
db137867 17648
7083c021
AC
17649# Set to "yes" if exported symbols are required.
17650always_export_symbols=$always_export_symbols
030272f3 17651
7083c021
AC
17652# The commands to list exported symbols.
17653export_symbols_cmds=$lt_export_symbols_cmds
db137867 17654
7083c021
AC
17655# Symbols that should not be listed in the preloaded symbols.
17656exclude_expsyms=$lt_exclude_expsyms
030272f3 17657
7083c021
AC
17658# Symbols that must always be exported.
17659include_expsyms=$lt_include_expsyms
db137867 17660
7083c021
AC
17661# Commands necessary for linking programs (against libraries) with templates.
17662prelink_cmds=$lt_prelink_cmds
db137867 17663
b6d0720c
AC
17664# Commands necessary for finishing linking programs.
17665postlink_cmds=$lt_postlink_cmds
17666
7083c021
AC
17667# Specify filename containing input files.
17668file_list_spec=$lt_file_list_spec
db137867 17669
7083c021
AC
17670# How to hardcode a shared library path into an executable.
17671hardcode_action=$hardcode_action
db137867 17672
7083c021 17673# ### END LIBTOOL CONFIG
030272f3 17674
6f57a957
AC
17675_LT_EOF
17676
17677 cat <<'_LT_EOF' >> "$cfgfile"
17678
17679# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17680
17681# func_munge_path_list VARIABLE PATH
17682# -----------------------------------
17683# VARIABLE is name of variable containing _space_ separated list of
17684# directories to be munged by the contents of PATH, which is string
17685# having a format:
17686# "DIR[:DIR]:"
17687# string "DIR[ DIR]" will be prepended to VARIABLE
17688# ":DIR[:DIR]"
17689# string "DIR[ DIR]" will be appended to VARIABLE
17690# "DIRP[:DIRP]::[DIRA:]DIRA"
17691# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17692# "DIRA[ DIRA]" will be appended to VARIABLE
17693# "DIR[:DIR]"
17694# VARIABLE will be replaced by "DIR[ DIR]"
17695func_munge_path_list ()
17696{
17697 case x$2 in
17698 x)
17699 ;;
17700 *:)
17701 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17702 ;;
17703 x:*)
17704 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17705 ;;
17706 *::*)
17707 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17708 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17709 ;;
17710 *)
17711 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17712 ;;
17713 esac
17714}
17715
17716
17717# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17718func_cc_basename ()
17719{
17720 for cc_temp in $*""; do
17721 case $cc_temp in
17722 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17723 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17724 \-*) ;;
17725 *) break;;
17726 esac
17727 done
17728 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17729}
17730
17731
17732# ### END FUNCTIONS SHARED WITH CONFIGURE
17733
7083c021
AC
17734_LT_EOF
17735
17736 case $host_os in
17737 aix3*)
17738 cat <<\_LT_EOF >> "$cfgfile"
17739# AIX sometimes has problems with the GCC collect2 program. For some
17740# reason, if we set the COLLECT_NAMES environment variable, the problems
17741# vanish in a puff of smoke.
6f57a957 17742if test set != "${COLLECT_NAMES+set}"; then
7083c021
AC
17743 COLLECT_NAMES=
17744 export COLLECT_NAMES
17745fi
17746_LT_EOF
17747 ;;
17748 esac
030272f3 17749
030272f3 17750
6f57a957 17751ltmain=$ac_aux_dir/ltmain.sh
030272f3 17752
030272f3 17753
7083c021
AC
17754 # We use sed instead of cat because bash on DJGPP gets confused if
17755 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17756 # text mode, it properly converts lines to CR/LF. This bash problem
17757 # is reportedly fixed, but why not run on old versions too?
b6d0720c
AC
17758 sed '$q' "$ltmain" >> "$cfgfile" \
17759 || (rm -f "$cfgfile"; exit 1)
17760
b6d0720c 17761 mv -f "$cfgfile" "$ofile" ||
7083c021
AC
17762 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17763 chmod +x "$ofile"
17764
db137867
AC
17765 ;;
17766 "include/librb-config.h":C)
17767 outfile=include/librb-config.h.tmp
17768 cat > $outfile <<\_______EOF
17769/*
17770 * librb-config.h: libratbox config file. Please modify configure.ac
17771 */
17772
17773#ifndef __LIBRB_CONFIG_H
17774#define __LIBRB_CONFIG_H
17775
17776_______EOF
17777
17778if test "x$rb_have_ipv6" = "xyes"; then
17779 echo "#define RB_IPV6 1" >> $outfile
17780fi
17781
17782if test "x$rb_windows_h" = "xyes"; then
17783 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
17784 echo '#include <windows.h>' >> $outfile
17785 echo '#include <winsock2.h>' >> $outfile
17786 echo '#include <iphlpapi.h>' >> $outfile
17787fi
17788
17789if test "x$rb_alloca_h" = "xyes"; then
17790 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
17791fi
17792
17793if test "x$rb_header_stdc" = "xyes"; then
17794 echo '#include <stdlib.h>' >> $outfile
17795 echo '#include <stddef.h>' >> $outfile
17796elif test "x$rb_header_stdlib" = "xyes"; then
17797 echo '#include <stdlib.h>' >> $outfile
17798fi
17799
17800if test "x$rb_header_string_h" = "xyes"; then
17801 echo '#include <string.h>' >> $outfile
17802fi
17803
17804if test "x$rb_stdint_h" = "xyes"; then
17805 echo '#include <stdint.h>' >> $outfile
17806fi
17807
17808if test "x$rb_inttypes_h" = "xyes"; then
17809 echo '#include <inttypes.h>' >> $outfile
17810fi
17811
17812if test "x$rb_sys_types_h" = "xyes"; then
17813 echo '#include <sys/types.h>' >> $outfile
17814fi
17815if test "x$rb_sys_time_h" = "xyes"; then
17816 echo '#include <sys/time.h>' >> $outfile
17817fi
17818if test "x$rb_sys_stat_h" = "xyes"; then
17819 echo '#include <sys/stat.h>' >> $outfile
17820fi
17821if test "x$rb_time_h" = "xyes"; then
17822 echo '#include <time.h>' >> $outfile
17823fi
17824
17825if test "x$rb_sys_socket_h" = "xyes"; then
17826 echo '#include <sys/socket.h>' >> $outfile
17827fi
17828
17829if test "x$rb_netinet_in_h" = "xyes"; then
17830 echo '#include <netinet/in.h>' >> $outfile
17831fi
17832
17833if test "x$rb_arpa_inet_h" = "xyes"; then
17834 echo '#include <arpa/inet.h>' >> $outfile
17835fi
17836
17837if test "x$rb_unistd_h" = "xyes"; then
17838 echo '#include <unistd.h>' >> $outfile
17839fi
17840
17841if test "x$rb_crypt_h" = "xyes"; then
17842 echo '#include <crypt.h>' >> $outfile
17843fi
17844
17845if test "x$rb_errno_h" = "xyes"; then
17846 echo '#include <errno.h>' >> $outfile
17847fi
17848
a9fb3ed0
VY
17849echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
17850
17851
db137867
AC
17852if test "x$rb_sockaddr_sa_len" = "xyes"; then
17853 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
17854fi
17855
db137867
AC
17856if test "x$rb_sockaddr_storage" = "xyes"; then
17857 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
17858else
3202e249 17859 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
db137867
AC
17860fi
17861
17862cat >> $outfile <<\_______EOF
17863#endif /* __LIBRB_CONFIG_H */
17864_______EOF
17865
17866if cmp -s $outfile include/librb-config.h; then
7083c021 17867 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
030272f3 17868$as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
db137867
AC
17869 ${rb_rm} -f $outfile
17870else
17871 ${rb_mv} $outfile include/librb-config.h
17872fi
17873
17874 ;;
17875
17876 esac
17877done # for ac_tag
17878
17879
7083c021 17880as_fn_exit 0
db137867 17881_ACEOF
db137867
AC
17882ac_clean_files=$ac_clean_files_save
17883
030272f3 17884test $ac_write_fail = 0 ||
08c2568c 17885 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
030272f3 17886
db137867
AC
17887
17888# configure is writing to config.log, and then calls config.status.
17889# config.status does its own redirection, appending to config.log.
17890# Unfortunately, on DOS this fails, as config.log is still kept open
17891# by configure, so config.status won't be able to write to it; its
17892# output is simply discarded. So we exec the FD to /dev/null,
17893# effectively closing config.log, so it can be properly (re)opened and
17894# appended to by config.status. When coming back to configure, we
17895# need to make the FD available again.
17896if test "$no_create" != yes; then
17897 ac_cs_success=:
17898 ac_config_status_args=
17899 test "$silent" = yes &&
17900 ac_config_status_args="$ac_config_status_args --quiet"
17901 exec 5>/dev/null
17902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17903 exec 5>>config.log
17904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17905 # would make configure fail if this is the last instruction.
08c2568c 17906 $ac_cs_success || as_fn_exit 1
db137867 17907fi
030272f3 17908if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7083c021 17909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
030272f3
VY
17910$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17911fi
db137867 17912
db137867
AC
17913
17914
17915echo
17916echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
17917echo
17918
17919echo "Installing into: $prefix"
17920
17921echo "IPv6 support ................... $have_v6"
17922echo "Assert debugging ............... $assert"
17923echo "Block allocator ................ $balloc"
c2ac22cc 17924echo "SSL Type........................ $SSL_TYPE"
db137867
AC
17925echo
17926