]> jfr.im git - solanum.git/blame - configure
buildsystem: convert to automake + libtool
[solanum.git] / configure
CommitLineData
212380e3
AC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
c52df125 3# Generated by GNU Autoconf 2.69 for charybdis 3.6.0-dev.
212380e3 4#
6fb6bd15 5#
2eff3833 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
6fb6bd15 7#
7083c021 8#
212380e3
AC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
7083c021
AC
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
212380e3 14
631ef239
AC
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
7083c021 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
18 emulate sh
19 NULLCMD=:
7083c021 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
631ef239
AC
23 setopt NO_GLOB_SUBST
24else
7083c021
AC
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
631ef239 30esac
631ef239
AC
31fi
32
33
7083c021
AC
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
631ef239 54 else
7083c021
AC
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 67 fi
7083c021
AC
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
212380e3 70fi
212380e3 71
7083c021
AC
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
212380e3
AC
79fi
80
81
631ef239
AC
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
631ef239
AC
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
b6d0720c 90as_myself=
7083c021 91case $0 in #((
631ef239
AC
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
7083c021
AC
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
631ef239
AC
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
7083c021
AC
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
631ef239
AC
112fi
113
7083c021
AC
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 121done
212380e3
AC
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
7083c021
AC
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
2eff3833
JT
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
7083c021
AC
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
2eff3833
JT
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
7083c021
AC
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
c52df125
AC
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
7083c021
AC
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212380e3 219do
7083c021
AC
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
2eff3833
JT
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
7083c021
AC
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
212380e3 274 else
7083c021
AC
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
212380e3 279 fi
7083c021
AC
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
b6d0720c 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
364
365
366} # as_fn_mkdir_p
2eff3833
JT
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
7083c021
AC
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
b6d0720c
AC
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
7083c021
AC
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b6d0720c 415# script with STATUS, using 1 if that was 0.
7083c021
AC
416as_fn_error ()
417{
b6d0720c
AC
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7083c021 422 fi
b6d0720c 423 $as_echo "$as_me: error: $2" >&2
7083c021
AC
424 as_fn_exit $as_status
425} # as_fn_error
212380e3 426
631ef239
AC
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
429 as_expr=expr
430else
431 as_expr=false
432fi
433
631ef239 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
435 as_basename=basename
436else
437 as_basename=false
438fi
439
7083c021
AC
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
212380e3 445
631ef239 446as_me=`$as_basename -- "$0" ||
212380e3
AC
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
631ef239 449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 450$as_echo X/"$0" |
631ef239
AC
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
212380e3 464
7083c021
AC
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
212380e3 471
212380e3 472
7083c021
AC
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
212380e3 495
2eff3833
JT
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
7083c021
AC
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
631ef239 506}
212380e3 507
7083c021
AC
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
631ef239 520
7083c021
AC
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2eff3833 534 # In both cases, we have to default to `cp -pR'.
7083c021 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2eff3833 536 as_ln_s='cp -pR'
7083c021
AC
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
2eff3833 540 as_ln_s='cp -pR'
7083c021 541 fi
631ef239 542else
2eff3833 543 as_ln_s='cp -pR'
631ef239 544fi
7083c021
AC
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
631ef239 547
7083c021
AC
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
631ef239
AC
553fi
554
2eff3833
JT
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
631ef239 557
7083c021
AC
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
631ef239 560
7083c021
AC
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
631ef239 563
c52df125
AC
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566lt_ltdl_dir='extra/libltdl'
567
568lt_dlopen_dir="$lt_ltdl_dir"
569
631ef239 570
6fb6bd15
AC
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
631ef239 573
7083c021 574# Name of the host.
b6d0720c 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
7083c021
AC
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
631ef239 578
7083c021
AC
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
212380e3 590
212380e3
AC
591# Identity of this package.
592PACKAGE_NAME='charybdis'
593PACKAGE_TARNAME='charybdis'
c52df125
AC
594PACKAGE_VERSION='3.6.0-dev'
595PACKAGE_STRING='charybdis 3.6.0-dev'
212380e3 596PACKAGE_BUGREPORT=''
7083c021 597PACKAGE_URL=''
212380e3
AC
598
599ac_default_prefix=$HOME/ircd
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
631ef239 603#ifdef HAVE_SYS_TYPES_H
212380e3
AC
604# include <sys/types.h>
605#endif
631ef239 606#ifdef HAVE_SYS_STAT_H
212380e3
AC
607# include <sys/stat.h>
608#endif
631ef239 609#ifdef STDC_HEADERS
212380e3
AC
610# include <stdlib.h>
611# include <stddef.h>
612#else
631ef239 613# ifdef HAVE_STDLIB_H
212380e3
AC
614# include <stdlib.h>
615# endif
616#endif
631ef239
AC
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
212380e3
AC
619# include <memory.h>
620# endif
621# include <string.h>
622#endif
631ef239 623#ifdef HAVE_STRINGS_H
212380e3
AC
624# include <strings.h>
625#endif
631ef239 626#ifdef HAVE_INTTYPES_H
212380e3 627# include <inttypes.h>
212380e3 628#endif
631ef239
AC
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
212380e3
AC
633# include <unistd.h>
634#endif"
635
1db8e007 636enable_option_checking=no
c52df125
AC
637ac_subst_vars='ltdl_LTLIBOBJS
638ltdl_LIBOBJS
639am__EXEEXT_FALSE
640am__EXEEXT_TRUE
641LTLIBOBJS
631ef239 642LIBOBJS
7083c021
AC
643SEDOBJ
644IRC_CFLAGS
645PICFLAGS
646SSL_LIBS
647SSL_INCLUDES
648SSL_SRCS_ENABLE
649MOD_TARGET
650MODULES_LIBS
651SELECT_TYPE
9f9b7042
NPB
652PROGRAM_PREFIX
653PKGRUNDIR
7083c021
AC
654moduledir
655MODULE_DIR
656helpdir
657HELP_DIR
658logdir
659LOG_DIR
7083c021 660ETC_DIR
c52df125 661SQLITE_OBJ
a5471f24 662SQLITE_INCLUDES
497e30a0 663SQLITE_LD
a5471f24
LS
664SQLITE_LIBS
665SQLITE_CFLAGS
666PKG_CONFIG_LIBDIR
667PKG_CONFIG_PATH
668PKG_CONFIG
7083c021
AC
669ZLIB_LD
670ENCSPEED
671ALLOCA
672VICONF
673CRYPT_LIB
9f9b7042
NPB
674PKGLIBEXECDIR
675pkglibexecdir
676PKGLOCALSTATEDIR
677pkglocalstatedir
678pkgrundir
679rundir
680pkglibdir
7083c021
AC
681LEXLIB
682LEX_OUTPUT_ROOT
683LEX
684YFLAGS
685YACC
686TOUCH
7083c021
AC
687LN
688MV
689CP
690RM
7083c021
AC
691STDOUT
692MAKEDEPEND
693MKDEP
c52df125
AC
694BUILD_LTDL_FALSE
695BUILD_LTDL_TRUE
696LTDLOPEN
697LT_CONFIG_H
1db8e007 698subdirs
c52df125
AC
699CONVENIENCE_LTDL_FALSE
700CONVENIENCE_LTDL_TRUE
701INSTALL_LTDL_FALSE
702INSTALL_LTDL_TRUE
703ARGZ_H
704sys_symbol_underscore
705LIBADD_DL
706LT_DLPREOPEN
707LIBADD_DLD_LINK
708LIBADD_SHL_LOAD
709LIBADD_DLOPEN
710LT_DLLOADERS
711INCLTDL
712LTDLINCL
713LTDLDEPS
714LIBLTDL
715CPP
716OTOOL64
717OTOOL
718LIPO
719NMEDIT
720DSYMUTIL
721MANIFEST_TOOL
722RANLIB
723DLLTOOL
724OBJDUMP
725LN_S
726NM
727ac_ct_DUMPBIN
728DUMPBIN
729LD
730FGREP
7083c021
AC
731EGREP
732GREP
c52df125
AC
733SED
734host_os
735host_vendor
736host_cpu
737host
738build_os
739build_vendor
740build_cpu
741build
742LIBTOOL
743am__fastdepCC_FALSE
744am__fastdepCC_TRUE
745CCDEPMODE
746am__nodep
747AMDEPBACKSLASH
748AMDEP_FALSE
749AMDEP_TRUE
750am__quote
751am__include
752DEPDIR
7083c021
AC
753OBJEXT
754EXEEXT
755ac_ct_CC
756CPPFLAGS
757LDFLAGS
758CFLAGS
759CC
c52df125
AC
760ac_ct_AR
761AR
762AM_BACKSLASH
763AM_DEFAULT_VERBOSITY
764AM_DEFAULT_V
765AM_V
766am__untar
767am__tar
768AMTAR
769am__leading_dot
770SET_MAKE
771AWK
772mkdir_p
773MKDIR_P
774INSTALL_STRIP_PROGRAM
775STRIP
776install_sh
777MAKEINFO
778AUTOHEADER
779AUTOMAKE
780AUTOCONF
781ACLOCAL
782VERSION
783PACKAGE
784CYGPATH_W
785am__isrc
786INSTALL_DATA
787INSTALL_SCRIPT
788INSTALL_PROGRAM
7083c021
AC
789target_alias
790host_alias
791build_alias
792LIBS
793ECHO_T
794ECHO_N
795ECHO_C
796DEFS
797mandir
798localedir
799libdir
800psdir
801pdfdir
802dvidir
803htmldir
804infodir
805docdir
806oldincludedir
807includedir
808localstatedir
809sharedstatedir
810sysconfdir
811datadir
812datarootdir
813libexecdir
814sbindir
815bindir
816program_transform_name
817prefix
818exec_prefix
819PACKAGE_URL
820PACKAGE_BUGREPORT
821PACKAGE_STRING
822PACKAGE_VERSION
823PACKAGE_TARNAME
824PACKAGE_NAME
825PATH_SEPARATOR
826SHELL'
212380e3 827ac_subst_files=''
7083c021
AC
828ac_user_opts='
829enable_option_checking
c52df125
AC
830enable_silent_rules
831enable_dependency_tracking
832enable_static
833enable_shared
834with_pic
835enable_fast_install
836with_gnu_ld
837with_sysroot
838enable_libtool_lock
839with_included_ltdl
840with_ltdl_include
841with_ltdl_lib
842enable_ltdl_install
9f9b7042 843enable_fhs_paths
7083c021
AC
844enable_ipv6
845enable_openssl
846with_zlib_path
847enable_zlib
a6ef3156 848with_shared_sqlite
7083c021
AC
849enable_ports
850enable_poll
851enable_select
852enable_kqueue
853enable_epoll
854with_confdir
855with_logdir
856with_helpdir
857with_moduledir
9f9b7042
NPB
858with_rundir
859with_program_prefix
b6d0720c
AC
860with_custom_branding
861with_custom_version
7083c021
AC
862enable_assert
863enable_iodebug
864enable_profile
865enable_balloc
866enable_small_net
867with_nicklen
868with_topiclen
869enable_warnings
870'
631ef239
AC
871 ac_precious_vars='build_alias
872host_alias
873target_alias
874CC
875CFLAGS
876LDFLAGS
877LIBS
878CPPFLAGS
879CPP
880YACC
a5471f24
LS
881YFLAGS
882PKG_CONFIG
883PKG_CONFIG_PATH
884PKG_CONFIG_LIBDIR
885SQLITE_CFLAGS
886SQLITE_LIBS'
c52df125
AC
887ac_subdirs_all='extra/libltdl
888libratbox'
212380e3
AC
889
890# Initialize some variables set by options.
891ac_init_help=
892ac_init_version=false
7083c021
AC
893ac_unrecognized_opts=
894ac_unrecognized_sep=
212380e3
AC
895# The variables have the same names as the options, with
896# dashes changed to underlines.
897cache_file=/dev/null
898exec_prefix=NONE
899no_create=
900no_recursion=
901prefix=NONE
902program_prefix=NONE
903program_suffix=NONE
904program_transform_name=s,x,x,
905silent=
906site=
907srcdir=
908verbose=
909x_includes=NONE
910x_libraries=NONE
911
912# Installation directory options.
913# These are left unexpanded so users can "make install exec_prefix=/foo"
914# and all the variables that are supposed to be based on exec_prefix
915# by default will actually change.
916# Use braces instead of parens because sh, perl, etc. also accept them.
631ef239 917# (The list follows the same order as the GNU Coding Standards.)
212380e3
AC
918bindir='${exec_prefix}/bin'
919sbindir='${exec_prefix}/sbin'
920libexecdir='${exec_prefix}/libexec'
631ef239
AC
921datarootdir='${prefix}/share'
922datadir='${datarootdir}'
212380e3
AC
923sysconfdir='${prefix}/etc'
924sharedstatedir='${prefix}/com'
925localstatedir='${prefix}/var'
212380e3
AC
926includedir='${prefix}/include'
927oldincludedir='/usr/include'
631ef239
AC
928docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
929infodir='${datarootdir}/info'
930htmldir='${docdir}'
931dvidir='${docdir}'
932pdfdir='${docdir}'
933psdir='${docdir}'
934libdir='${exec_prefix}/lib'
935localedir='${datarootdir}/locale'
936mandir='${datarootdir}/man'
212380e3
AC
937
938ac_prev=
631ef239 939ac_dashdash=
212380e3
AC
940for ac_option
941do
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
631ef239 944 eval $ac_prev=\$ac_option
212380e3
AC
945 ac_prev=
946 continue
947 fi
948
631ef239 949 case $ac_option in
b6d0720c
AC
950 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 *=) ac_optarg= ;;
952 *) ac_optarg=yes ;;
631ef239 953 esac
212380e3
AC
954
955 # Accept the important Cygnus configure options, so we can diagnose typos.
956
631ef239
AC
957 case $ac_dashdash$ac_option in
958 --)
959 ac_dashdash=yes ;;
212380e3
AC
960
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
962 ac_prev=bindir ;;
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964 bindir=$ac_optarg ;;
965
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
970
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
977
978 --config-cache | -C)
979 cache_file=config.cache ;;
980
631ef239 981 -datadir | --datadir | --datadi | --datad)
212380e3 982 ac_prev=datadir ;;
631ef239 983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
212380e3
AC
984 datadir=$ac_optarg ;;
985
631ef239
AC
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
992
212380e3 993 -disable-* | --disable-*)
7083c021 994 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
212380e3 995 # Reject names that are not valid shell variable names.
7083c021 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 997 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002"enable_$ac_useropt"
1003"*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=no ;;
631ef239
AC
1008
1009 -docdir | --docdir | --docdi | --doc | --do)
1010 ac_prev=docdir ;;
1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012 docdir=$ac_optarg ;;
1013
1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 ac_prev=dvidir ;;
1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017 dvidir=$ac_optarg ;;
212380e3
AC
1018
1019 -enable-* | --enable-*)
7083c021 1020 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
212380e3 1021 # Reject names that are not valid shell variable names.
7083c021 1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1023 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1027 *"
1028"enable_$ac_useropt"
1029"*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=\$ac_optarg ;;
212380e3
AC
1034
1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037 | --exec | --exe | --ex)
1038 ac_prev=exec_prefix ;;
1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041 | --exec=* | --exe=* | --ex=*)
1042 exec_prefix=$ac_optarg ;;
1043
1044 -gas | --gas | --ga | --g)
1045 # Obsolete; use --with-gas.
1046 with_gas=yes ;;
1047
1048 -help | --help | --hel | --he | -h)
1049 ac_init_help=long ;;
1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051 ac_init_help=recursive ;;
1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053 ac_init_help=short ;;
1054
1055 -host | --host | --hos | --ho)
1056 ac_prev=host_alias ;;
1057 -host=* | --host=* | --hos=* | --ho=*)
1058 host_alias=$ac_optarg ;;
1059
631ef239
AC
1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061 ac_prev=htmldir ;;
1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063 | --ht=*)
1064 htmldir=$ac_optarg ;;
1065
212380e3
AC
1066 -includedir | --includedir | --includedi | --included | --include \
1067 | --includ | --inclu | --incl | --inc)
1068 ac_prev=includedir ;;
1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070 | --includ=* | --inclu=* | --incl=* | --inc=*)
1071 includedir=$ac_optarg ;;
1072
1073 -infodir | --infodir | --infodi | --infod | --info | --inf)
1074 ac_prev=infodir ;;
1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076 infodir=$ac_optarg ;;
1077
1078 -libdir | --libdir | --libdi | --libd)
1079 ac_prev=libdir ;;
1080 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081 libdir=$ac_optarg ;;
1082
1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084 | --libexe | --libex | --libe)
1085 ac_prev=libexecdir ;;
1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087 | --libexe=* | --libex=* | --libe=*)
1088 libexecdir=$ac_optarg ;;
1089
631ef239
AC
1090 -localedir | --localedir | --localedi | --localed | --locale)
1091 ac_prev=localedir ;;
1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093 localedir=$ac_optarg ;;
1094
212380e3 1095 -localstatedir | --localstatedir | --localstatedi | --localstated \
631ef239 1096 | --localstate | --localstat | --localsta | --localst | --locals)
212380e3
AC
1097 ac_prev=localstatedir ;;
1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631ef239 1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
212380e3
AC
1100 localstatedir=$ac_optarg ;;
1101
1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103 ac_prev=mandir ;;
1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105 mandir=$ac_optarg ;;
1106
1107 -nfp | --nfp | --nf)
1108 # Obsolete; use --without-fp.
1109 with_fp=no ;;
1110
1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112 | --no-cr | --no-c | -n)
1113 no_create=yes ;;
1114
1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117 no_recursion=yes ;;
1118
1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121 | --oldin | --oldi | --old | --ol | --o)
1122 ac_prev=oldincludedir ;;
1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126 oldincludedir=$ac_optarg ;;
1127
1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129 ac_prev=prefix ;;
1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131 prefix=$ac_optarg ;;
1132
1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134 | --program-pre | --program-pr | --program-p)
1135 ac_prev=program_prefix ;;
1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138 program_prefix=$ac_optarg ;;
1139
1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141 | --program-suf | --program-su | --program-s)
1142 ac_prev=program_suffix ;;
1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145 program_suffix=$ac_optarg ;;
1146
1147 -program-transform-name | --program-transform-name \
1148 | --program-transform-nam | --program-transform-na \
1149 | --program-transform-n | --program-transform- \
1150 | --program-transform | --program-transfor \
1151 | --program-transfo | --program-transf \
1152 | --program-trans | --program-tran \
1153 | --progr-tra | --program-tr | --program-t)
1154 ac_prev=program_transform_name ;;
1155 -program-transform-name=* | --program-transform-name=* \
1156 | --program-transform-nam=* | --program-transform-na=* \
1157 | --program-transform-n=* | --program-transform-=* \
1158 | --program-transform=* | --program-transfor=* \
1159 | --program-transfo=* | --program-transf=* \
1160 | --program-trans=* | --program-tran=* \
1161 | --progr-tra=* | --program-tr=* | --program-t=*)
1162 program_transform_name=$ac_optarg ;;
1163
631ef239
AC
1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165 ac_prev=pdfdir ;;
1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167 pdfdir=$ac_optarg ;;
1168
1169 -psdir | --psdir | --psdi | --psd | --ps)
1170 ac_prev=psdir ;;
1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172 psdir=$ac_optarg ;;
1173
212380e3
AC
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1176 silent=yes ;;
1177
1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179 ac_prev=sbindir ;;
1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181 | --sbi=* | --sb=*)
1182 sbindir=$ac_optarg ;;
1183
1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186 | --sharedst | --shareds | --shared | --share | --shar \
1187 | --sha | --sh)
1188 ac_prev=sharedstatedir ;;
1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192 | --sha=* | --sh=*)
1193 sharedstatedir=$ac_optarg ;;
1194
1195 -site | --site | --sit)
1196 ac_prev=site ;;
1197 -site=* | --site=* | --sit=*)
1198 site=$ac_optarg ;;
1199
1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201 ac_prev=srcdir ;;
1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203 srcdir=$ac_optarg ;;
1204
1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206 | --syscon | --sysco | --sysc | --sys | --sy)
1207 ac_prev=sysconfdir ;;
1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210 sysconfdir=$ac_optarg ;;
1211
1212 -target | --target | --targe | --targ | --tar | --ta | --t)
1213 ac_prev=target_alias ;;
1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215 target_alias=$ac_optarg ;;
1216
1217 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218 verbose=yes ;;
1219
1220 -version | --version | --versio | --versi | --vers | -V)
1221 ac_init_version=: ;;
1222
1223 -with-* | --with-*)
7083c021 1224 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
212380e3 1225 # Reject names that are not valid shell variable names.
7083c021 1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1227 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232"with_$ac_useropt"
1233"*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=\$ac_optarg ;;
212380e3
AC
1238
1239 -without-* | --without-*)
7083c021 1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
212380e3 1241 # Reject names that are not valid shell variable names.
7083c021 1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1243 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248"with_$ac_useropt"
1249"*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=no ;;
212380e3
AC
1254
1255 --x)
1256 # Obsolete; use --with-x.
1257 with_x=yes ;;
1258
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264 x_includes=$ac_optarg ;;
1265
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271 x_libraries=$ac_optarg ;;
1272
b6d0720c
AC
1273 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1274Try \`$0 --help' for more information"
212380e3
AC
1275 ;;
1276
1277 *=*)
1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
7083c021
AC
1280 case $ac_envvar in #(
1281 '' | [0-9]* | *[!_$as_cr_alnum]* )
b6d0720c 1282 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
7083c021 1283 esac
631ef239 1284 eval $ac_envvar=\$ac_optarg
212380e3
AC
1285 export $ac_envvar ;;
1286
1287 *)
1288 # FIXME: should be removed in autoconf 3.0.
7083c021 1289 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
212380e3 1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
7083c021 1291 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b6d0720c 1292 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
212380e3
AC
1293 ;;
1294
1295 esac
1296done
1297
1298if test -n "$ac_prev"; then
1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b6d0720c 1300 as_fn_error $? "missing argument to $ac_option"
212380e3
AC
1301fi
1302
7083c021
AC
1303if test -n "$ac_unrecognized_opts"; then
1304 case $enable_option_checking in
1305 no) ;;
b6d0720c 1306 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
7083c021
AC
1307 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308 esac
1309fi
1310
1311# Check all directory arguments for consistency.
631ef239
AC
1312for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313 datadir sysconfdir sharedstatedir localstatedir includedir \
1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315 libdir localedir mandir
212380e3 1316do
631ef239 1317 eval ac_val=\$$ac_var
7083c021
AC
1318 # Remove trailing slashes.
1319 case $ac_val in
1320 */ )
1321 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322 eval $ac_var=\$ac_val;;
1323 esac
1324 # Be sure to have absolute directory names.
212380e3 1325 case $ac_val in
631ef239
AC
1326 [\\/$]* | ?:[\\/]* ) continue;;
1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
212380e3 1328 esac
b6d0720c 1329 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
212380e3
AC
1330done
1331
1332# There might be people who depend on the old broken behavior: `$host'
1333# used to hold the argument of --host etc.
1334# FIXME: To remove some day.
1335build=$build_alias
1336host=$host_alias
1337target=$target_alias
1338
1339# FIXME: To remove some day.
1340if test "x$host_alias" != x; then
1341 if test "x$build_alias" = x; then
1342 cross_compiling=maybe
212380e3
AC
1343 elif test "x$build_alias" != "x$host_alias"; then
1344 cross_compiling=yes
1345 fi
1346fi
1347
1348ac_tool_prefix=
1349test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351test "$silent" = yes && exec 6>/dev/null
1352
1353
631ef239
AC
1354ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355ac_ls_di=`ls -di .` &&
1356ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b6d0720c 1357 as_fn_error $? "working directory cannot be determined"
631ef239 1358test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b6d0720c 1359 as_fn_error $? "pwd does not report name of working directory"
631ef239
AC
1360
1361
1362# Find the source files, if location was not specified.
1363if test -z "$srcdir"; then
212380e3 1364 ac_srcdir_defaulted=yes
631ef239 1365 # Try the directory containing this script, then the parent directory.
7083c021
AC
1366 ac_confdir=`$as_dirname -- "$as_myself" ||
1367$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371$as_echo X"$as_myself" |
631ef239
AC
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)[^/].*/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\).*/{
1385 s//\1/
1386 q
1387 }
1388 s/.*/./; q'`
212380e3 1389 srcdir=$ac_confdir
631ef239 1390 if test ! -r "$srcdir/$ac_unique_file"; then
212380e3
AC
1391 srcdir=..
1392 fi
1393else
1394 ac_srcdir_defaulted=no
1395fi
631ef239
AC
1396if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b6d0720c 1398 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
212380e3 1399fi
631ef239
AC
1400ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401ac_abs_confdir=`(
b6d0720c 1402 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
631ef239
AC
1403 pwd)`
1404# When building in place, set srcdir=.
1405if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 srcdir=.
1407fi
1408# Remove unnecessary trailing slashes from srcdir.
1409# Double slashes in file names in object file debugging info
1410# mess up M-x gdb in Emacs.
1411case $srcdir in
1412*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413esac
1414for ac_var in $ac_precious_vars; do
1415 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_env_${ac_var}_value=\$${ac_var}
1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419done
212380e3
AC
1420
1421#
1422# Report the --help message.
1423#
1424if test "$ac_init_help" = "long"; then
1425 # Omit some internal or obsolete options to make the list less imposing.
1426 # This message is too long to be a string in the A/UX 3.1 sh.
1427 cat <<_ACEOF
c52df125 1428\`configure' configures charybdis 3.6.0-dev to adapt to many kinds of systems.
212380e3
AC
1429
1430Usage: $0 [OPTION]... [VAR=VALUE]...
1431
1432To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433VAR=VALUE. See below for descriptions of some of the useful variables.
1434
1435Defaults for the options are specified in brackets.
1436
1437Configuration:
1438 -h, --help display this help and exit
1439 --help=short display options specific to this package
1440 --help=recursive display the short help of all the included packages
1441 -V, --version display version information and exit
b6d0720c 1442 -q, --quiet, --silent do not print \`checking ...' messages
212380e3
AC
1443 --cache-file=FILE cache test results in FILE [disabled]
1444 -C, --config-cache alias for \`--cache-file=config.cache'
1445 -n, --no-create do not create output files
1446 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1447
212380e3
AC
1448Installation directories:
1449 --prefix=PREFIX install architecture-independent files in PREFIX
7083c021 1450 [$ac_default_prefix]
212380e3 1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
7083c021 1452 [PREFIX]
212380e3
AC
1453
1454By default, \`make install' will install all the files in
1455\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1456an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457for instance \`--prefix=\$HOME'.
1458
1459For better control, use the options below.
1460
1461Fine tuning of the installation directories:
7083c021
AC
1462 --bindir=DIR user executables [EPREFIX/bin]
1463 --sbindir=DIR system admin executables [EPREFIX/sbin]
1464 --libexecdir=DIR program executables [EPREFIX/libexec]
1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468 --libdir=DIR object code libraries [EPREFIX/lib]
1469 --includedir=DIR C header files [PREFIX/include]
1470 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473 --infodir=DIR info documentation [DATAROOTDIR/info]
1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475 --mandir=DIR man documentation [DATAROOTDIR/man]
1476 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1477 --htmldir=DIR html documentation [DOCDIR]
1478 --dvidir=DIR dvi documentation [DOCDIR]
1479 --pdfdir=DIR pdf documentation [DOCDIR]
1480 --psdir=DIR ps documentation [DOCDIR]
212380e3
AC
1481_ACEOF
1482
1483 cat <<\_ACEOF
c52df125
AC
1484
1485Program names:
1486 --program-prefix=PREFIX prepend PREFIX to installed program names
1487 --program-suffix=SUFFIX append SUFFIX to installed program names
1488 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1489
1490System types:
1491 --build=BUILD configure for building on BUILD [guessed]
1492 --host=HOST cross-compile to build programs to run on HOST [BUILD]
212380e3
AC
1493_ACEOF
1494fi
1495
1496if test -n "$ac_init_help"; then
1497 case $ac_init_help in
c52df125 1498 short | recursive ) echo "Configuration of charybdis 3.6.0-dev:";;
212380e3
AC
1499 esac
1500 cat <<\_ACEOF
1501
1502Optional Features:
7083c021 1503 --disable-option-checking ignore unrecognized --enable/--with options
212380e3
AC
1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c52df125
AC
1506 --enable-silent-rules less verbose build output (undo: "make V=1")
1507 --disable-silent-rules verbose build output (undo: "make V=0")
1508 --enable-dependency-tracking
1509 do not reject slow dependency extractors
1510 --disable-dependency-tracking
1511 speeds up one-time build
1512 --enable-static[=PKGS] build static libraries [default=no]
1513 --enable-shared[=PKGS] build shared libraries [default=yes]
1514 --enable-fast-install[=PKGS]
1515 optimize for fast installation [default=yes]
1516 --disable-libtool-lock avoid locking (might break parallel builds)
1517 --enable-ltdl-install install libltdl
6929cd01 1518 --enable-fhs-paths Use more FHS-like pathnames (for packagers).
212380e3 1519 --enable-ipv6 Enable IPv6 support
631ef239 1520 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
212380e3
AC
1521 --disable-openssl Disable OpenSSL support.
1522 --disable-zlib Disable ziplinks support
c1c5fdc4 1523 --enable-ports Force solaris I/O ports subsystem usage.
212380e3
AC
1524 --enable-poll Force poll() usage.
1525 --enable-select Force select() usage.
1526 --enable-kqueue Force kqueue() usage.
212380e3
AC
1527 --enable-epoll Force sys_epoll usage (Linux only).
1528 --enable-assert Enable assert(). Choose between soft(warnings) and
1529 hard(aborts the daemon)
1530 --enable-iodebug Enable IO Debugging hooks
1531 --enable-profile Enable profiling
1532 --disable-balloc Disable the block allocator.
212380e3 1533 --enable-small-net Enable small network support.
212380e3
AC
1534 --enable-warnings Enable all sorts of warnings for debugging.
1535
1536Optional Packages:
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
c52df125
AC
1539 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1540 both]
1541 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1542 --with-sysroot=DIR Search for dependent libraries within DIR
1543 (or the compiler's sysroot if not specified).
1544 --with-included-ltdl use the GNU ltdl sources included here
1545 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1546 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
212380e3 1547 --with-zlib-path=DIR Path to libz.so for ziplinks support.
a6ef3156 1548 --with-shared-sqlite Use shared sqlite
634d4aad
NPB
1549 --with-confdir=DIR Directory to install config files [deprecated, use
1550 --sysconfdir instead].
212380e3
AC
1551 --with-logdir=DIR Directory where to write logfiles.
1552 --with-helpdir=DIR Directory to install help files.
1553 --with-moduledir=DIR Directory to install modules.
9f9b7042
NPB
1554 --with-rundir=DIR Directory in which to store pidfile.
1555 --with-program-prefix= If set, programs installed into PATH will be
1556 installed with names prefixed by this prefix.
b6d0720c
AC
1557 --with-custom-branding=NAME
1558 Custom branding name.
1559 --with-custom-version=NAME
1560 Custom version branding.
b583faf9 1561 --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default
cf533739 1562 31, max 50)
212380e3
AC
1563 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
1564 390)
212380e3
AC
1565
1566Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
631ef239 1571 LIBS libraries to pass to the linker, e.g. -l<library>
6fb6bd15 1572 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
631ef239 1573 you have headers in a nonstandard directory <include dir>
212380e3 1574 CPP C preprocessor
b6d0720c
AC
1575 YACC The `Yet Another Compiler Compiler' implementation to use.
1576 Defaults to the first program found out of: `bison -y', `byacc',
1577 `yacc'.
631ef239
AC
1578 YFLAGS The list of arguments that will be passed by default to $YACC.
1579 This script will default YFLAGS to the empty string to avoid a
1580 default value of `-d' given by some make applications.
a5471f24
LS
1581 PKG_CONFIG path to pkg-config utility
1582 PKG_CONFIG_PATH
1583 directories to add to pkg-config's search path
1584 PKG_CONFIG_LIBDIR
1585 path overriding pkg-config's built-in search path
1586 SQLITE_CFLAGS
1587 C compiler flags for SQLITE, overriding pkg-config
1588 SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
212380e3
AC
1589
1590Use these variables to override the choices made by `configure' or to help
1591it to find libraries and programs with nonstandard names/locations.
1592
7083c021 1593Report bugs to the package provider.
212380e3 1594_ACEOF
631ef239 1595ac_status=$?
212380e3
AC
1596fi
1597
1598if test "$ac_init_help" = "recursive"; then
1599 # If there are subdirs, report their specific --help.
212380e3 1600 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7083c021
AC
1601 test -d "$ac_dir" ||
1602 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1603 continue
212380e3
AC
1604 ac_builddir=.
1605
631ef239
AC
1606case "$ac_dir" in
1607.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608*)
7083c021 1609 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 1610 # A ".." for each directory in $ac_dir_suffix.
7083c021 1611 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
1612 case $ac_top_builddir_sub in
1613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1615 esac ;;
1616esac
1617ac_abs_top_builddir=$ac_pwd
1618ac_abs_builddir=$ac_pwd$ac_dir_suffix
1619# for backward compatibility:
1620ac_top_builddir=$ac_top_build_prefix
212380e3
AC
1621
1622case $srcdir in
631ef239 1623 .) # We are building in place.
212380e3 1624 ac_srcdir=.
631ef239
AC
1625 ac_top_srcdir=$ac_top_builddir_sub
1626 ac_abs_top_srcdir=$ac_pwd ;;
1627 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 1628 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
1629 ac_top_srcdir=$srcdir
1630 ac_abs_top_srcdir=$srcdir ;;
1631 *) # Relative name.
1632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1633 ac_top_srcdir=$ac_top_build_prefix$srcdir
1634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 1635esac
631ef239
AC
1636ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637
1638 cd "$ac_dir" || { ac_status=$?; continue; }
1639 # Check for guested configure.
1640 if test -f "$ac_srcdir/configure.gnu"; then
1641 echo &&
1642 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1643 elif test -f "$ac_srcdir/configure"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure" --help=recursive
212380e3 1646 else
7083c021 1647 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
631ef239
AC
1648 fi || ac_status=$?
1649 cd "$ac_pwd" || { ac_status=$?; break; }
212380e3
AC
1650 done
1651fi
1652
631ef239 1653test -n "$ac_init_help" && exit $ac_status
212380e3
AC
1654if $ac_init_version; then
1655 cat <<\_ACEOF
c52df125 1656charybdis configure 3.6.0-dev
2eff3833 1657generated by GNU Autoconf 2.69
212380e3 1658
2eff3833 1659Copyright (C) 2012 Free Software Foundation, Inc.
212380e3
AC
1660This configure script is free software; the Free Software Foundation
1661gives unlimited permission to copy, distribute and modify it.
212380e3 1662_ACEOF
631ef239 1663 exit
212380e3 1664fi
212380e3 1665
7083c021
AC
1666## ------------------------ ##
1667## Autoconf initialization. ##
1668## ------------------------ ##
212380e3 1669
7083c021
AC
1670# ac_fn_c_try_compile LINENO
1671# --------------------------
1672# Try to compile conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_c_try_compile ()
1674{
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext
1677 if { { ac_try="$ac_compile"
1678case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_compile") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest.$ac_objext; then :
1696 ac_retval=0
1697else
1698 $as_echo "$as_me: failed program was:" >&5
1699sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1700
7083c021
AC
1701 ac_retval=1
1702fi
b6d0720c 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1704 as_fn_set_status $ac_retval
7083c021
AC
1705
1706} # ac_fn_c_try_compile
1707
c52df125
AC
1708# ac_fn_c_try_link LINENO
1709# -----------------------
1710# Try to link conftest.$ac_ext, and return whether this succeeded.
1711ac_fn_c_try_link ()
212380e3 1712{
7083c021 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c52df125
AC
1714 rm -f conftest.$ac_objext conftest$ac_exeext
1715 if { { ac_try="$ac_link"
7083c021
AC
1716case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719esac
1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721$as_echo "$ac_try_echo"; } >&5
c52df125 1722 (eval "$ac_link") 2>conftest.err
7083c021
AC
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c52df125
AC
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
7083c021 1732 test ! -s conftest.err
c52df125
AC
1733 } && test -s conftest$ac_exeext && {
1734 test "$cross_compiling" = yes ||
1735 test -x conftest$ac_exeext
7083c021
AC
1736 }; then :
1737 ac_retval=0
1738else
1739 $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1741
c52df125 1742 ac_retval=1
7083c021 1743fi
c52df125
AC
1744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1746 # interfere with the next link command; also delete a directory that is
1747 # left behind by Apple's compiler. We do this before executing the actions.
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b6d0720c 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1750 as_fn_set_status $ac_retval
212380e3 1751
c52df125 1752} # ac_fn_c_try_link
212380e3 1753
c52df125 1754# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
7083c021 1755# -------------------------------------------------------
c52df125
AC
1756# Tests whether HEADER exists and can be compiled using the include files in
1757# INCLUDES, setting the cache variable VAR accordingly.
1758ac_fn_c_check_header_compile ()
7083c021
AC
1759{
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7083c021
AC
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
b6d0720c 1763if eval \${$3+:} false; then :
7083c021 1764 $as_echo_n "(cached) " >&6
7083c021 1765else
c52df125 1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083c021
AC
1767/* end confdefs.h. */
1768$4
1769#include <$2>
1770_ACEOF
1771if ac_fn_c_try_compile "$LINENO"; then :
c52df125 1772 eval "$3=yes"
7083c021 1773else
c52df125 1774 eval "$3=no"
7083c021
AC
1775fi
1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
1777fi
1778eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
c52df125
AC
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783} # ac_fn_c_check_header_compile
1784
1785# ac_fn_c_try_cpp LINENO
1786# ----------------------
1787# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1788ac_fn_c_try_cpp ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_cpp conftest.$ac_ext"
1792case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1799 ac_status=$?
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1804 fi
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } > conftest.i && {
1807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1809 }; then :
1810 ac_retval=0
1811else
1812 $as_echo "$as_me: failed program was:" >&5
1813sed 's/^/| /' conftest.$ac_ext >&5
1814
1815 ac_retval=1
7083c021 1816fi
b6d0720c 1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c52df125 1818 as_fn_set_status $ac_retval
212380e3 1819
c52df125 1820} # ac_fn_c_try_cpp
212380e3 1821
7083c021
AC
1822# ac_fn_c_try_run LINENO
1823# ----------------------
1824# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825# that executables *can* be run.
1826ac_fn_c_try_run ()
1827{
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_link"
1830case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833esac
1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835$as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>&5
1837 ac_status=$?
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840 { { case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_try") 2>&5
1847 ac_status=$?
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; }; }; then :
1850 ac_retval=0
1851else
1852 $as_echo "$as_me: program exited with status $ac_status" >&5
1853 $as_echo "$as_me: failed program was:" >&5
1854sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1855
7083c021
AC
1856 ac_retval=$ac_status
1857fi
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b6d0720c 1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1860 as_fn_set_status $ac_retval
212380e3 1861
7083c021 1862} # ac_fn_c_try_run
212380e3 1863
c52df125
AC
1864# ac_fn_c_check_func LINENO FUNC VAR
1865# ----------------------------------
1866# Tests whether FUNC exists, setting the cache variable VAR accordingly
1867ac_fn_c_check_func ()
7083c021
AC
1868{
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871$as_echo_n "checking for $2... " >&6; }
b6d0720c 1872if eval \${$3+:} false; then :
7083c021
AC
1873 $as_echo_n "(cached) " >&6
1874else
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h. */
c52df125
AC
1877/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1879#define $2 innocuous_$2
1880
1881/* System header to define __stub macros and hopefully few prototypes,
1882 which can conflict with char $2 (); below.
1883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1884 <limits.h> exists even on freestanding compilers. */
1885
1886#ifdef __STDC__
1887# include <limits.h>
1888#else
1889# include <assert.h>
1890#endif
1891
1892#undef $2
1893
1894/* Override any GCC internal prototype to avoid an error.
1895 Use char because int might match the return type of a GCC
1896 builtin and then its argument prototype would still apply. */
1897#ifdef __cplusplus
1898extern "C"
1899#endif
1900char $2 ();
1901/* The GNU C library defines this for functions which it implements
1902 to always fail with ENOSYS. Some functions are actually named
1903 something starting with __ and the normal name is an alias. */
1904#if defined __stub_$2 || defined __stub___$2
1905choke me
1906#endif
1907
1908int
1909main ()
1910{
1911return $2 ();
1912 ;
1913 return 0;
1914}
1915_ACEOF
1916if ac_fn_c_try_link "$LINENO"; then :
1917 eval "$3=yes"
1918else
1919 eval "$3=no"
1920fi
1921rm -f core conftest.err conftest.$ac_objext \
1922 conftest$ac_exeext conftest.$ac_ext
1923fi
1924eval ac_res=\$$3
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926$as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928
1929} # ac_fn_c_check_func
1930
1931# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1932# ---------------------------------------------
1933# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1934# accordingly.
1935ac_fn_c_check_decl ()
1936{
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 as_decl_name=`echo $2|sed 's/ *(.*//'`
1939 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1941$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1942if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1944else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h. */
7083c021 1947$4
c52df125
AC
1948int
1949main ()
1950{
1951#ifndef $as_decl_name
1952#ifdef __cplusplus
1953 (void) $as_decl_use;
1954#else
1955 (void) $as_decl_name;
1956#endif
1957#endif
1958
1959 ;
1960 return 0;
1961}
212380e3 1962_ACEOF
7083c021
AC
1963if ac_fn_c_try_compile "$LINENO"; then :
1964 eval "$3=yes"
1965else
1966 eval "$3=no"
1967fi
1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969fi
1970eval ac_res=\$$3
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
b6d0720c 1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1974
c52df125 1975} # ac_fn_c_check_decl
212380e3 1976
c52df125
AC
1977# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1978# -------------------------------------------
1979# Tests whether TYPE exists after having included INCLUDES, setting cache
1980# variable VAR accordingly.
1981ac_fn_c_check_type ()
7083c021
AC
1982{
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985$as_echo_n "checking for $2... " >&6; }
b6d0720c 1986if eval \${$3+:} false; then :
7083c021 1987 $as_echo_n "(cached) " >&6
212380e3 1988else
7083c021
AC
1989 eval "$3=no"
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991/* end confdefs.h. */
1992$4
1993int
1994main ()
1995{
1996if (sizeof ($2))
1997 return 0;
1998 ;
1999 return 0;
2000}
212380e3 2001_ACEOF
7083c021
AC
2002if ac_fn_c_try_compile "$LINENO"; then :
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 2004/* end confdefs.h. */
7083c021 2005$4
212380e3
AC
2006int
2007main ()
2008{
7083c021
AC
2009if (sizeof (($2)))
2010 return 0;
212380e3
AC
2011 ;
2012 return 0;
2013}
2014_ACEOF
7083c021 2015if ac_fn_c_try_compile "$LINENO"; then :
212380e3 2016
631ef239 2017else
7083c021 2018 eval "$3=yes"
212380e3 2019fi
7083c021 2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 2021fi
7083c021 2022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 2023fi
7083c021
AC
2024eval ac_res=\$$3
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026$as_echo "$ac_res" >&6; }
b6d0720c 2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 2028
7083c021
AC
2029} # ac_fn_c_check_type
2030
c52df125
AC
2031# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2032# -------------------------------------------------------
2033# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2034# the include files in INCLUDES and setting the cache variable VAR
2035# accordingly.
2036ac_fn_c_check_header_mongrel ()
2037{
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 if eval \${$3+:} false; then :
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041$as_echo_n "checking for $2... " >&6; }
2042if eval \${$3+:} false; then :
2043 $as_echo_n "(cached) " >&6
2044fi
2045eval ac_res=\$$3
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047$as_echo "$ac_res" >&6; }
2048else
2049 # Is the header compilable?
2050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2051$as_echo_n "checking $2 usability... " >&6; }
2052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053/* end confdefs.h. */
2054$4
2055#include <$2>
2056_ACEOF
2057if ac_fn_c_try_compile "$LINENO"; then :
2058 ac_header_compiler=yes
2059else
2060 ac_header_compiler=no
2061fi
2062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2064$as_echo "$ac_header_compiler" >&6; }
2065
2066# Is the header present?
2067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2068$as_echo_n "checking $2 presence... " >&6; }
2069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070/* end confdefs.h. */
2071#include <$2>
2072_ACEOF
2073if ac_fn_c_try_cpp "$LINENO"; then :
2074 ac_header_preproc=yes
2075else
2076 ac_header_preproc=no
2077fi
2078rm -f conftest.err conftest.i conftest.$ac_ext
2079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2080$as_echo "$ac_header_preproc" >&6; }
2081
2082# So? What about this header?
2083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2084 yes:no: )
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2086$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2088$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2089 ;;
2090 no:yes:* )
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2092$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2094$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2096$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2098$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2100$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2101 ;;
2102esac
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104$as_echo_n "checking for $2... " >&6; }
2105if eval \${$3+:} false; then :
2106 $as_echo_n "(cached) " >&6
2107else
2108 eval "$3=\$ac_header_compiler"
2109fi
2110eval ac_res=\$$3
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112$as_echo "$ac_res" >&6; }
2113fi
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115
2116} # ac_fn_c_check_header_mongrel
2117
7083c021
AC
2118# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2119# --------------------------------------------
2120# Tries to find the compile-time value of EXPR in a program that includes
2121# INCLUDES, setting VAR accordingly. Returns whether the value could be
2122# computed
2123ac_fn_c_compute_int ()
2124{
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 if test "$cross_compiling" = yes; then
2127 # Depending upon the size, compute the lo and hi bounds.
2128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h. */
2130$4
2131int
2132main ()
2133{
2134static int test_array [1 - 2 * !(($2) >= 0)];
2eff3833
JT
2135test_array [0] = 0;
2136return test_array [0];
7083c021
AC
2137
2138 ;
2139 return 0;
2140}
212380e3 2141_ACEOF
7083c021
AC
2142if ac_fn_c_try_compile "$LINENO"; then :
2143 ac_lo=0 ac_mid=0
2144 while :; do
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 2146/* end confdefs.h. */
7083c021
AC
2147$4
2148int
2149main ()
2150{
2151static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2eff3833
JT
2152test_array [0] = 0;
2153return test_array [0];
212380e3 2154
7083c021
AC
2155 ;
2156 return 0;
2157}
212380e3 2158_ACEOF
7083c021
AC
2159if ac_fn_c_try_compile "$LINENO"; then :
2160 ac_hi=$ac_mid; break
212380e3 2161else
7083c021
AC
2162 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2163 if test $ac_lo -le $ac_mid; then
2164 ac_lo= ac_hi=
2165 break
2166 fi
2167 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
212380e3 2168fi
631ef239 2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
2170 done
2171else
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h. */
2174$4
2175int
2176main ()
2177{
2178static int test_array [1 - 2 * !(($2) < 0)];
2eff3833
JT
2179test_array [0] = 0;
2180return test_array [0];
212380e3 2181
7083c021
AC
2182 ;
2183 return 0;
2184}
212380e3 2185_ACEOF
7083c021
AC
2186if ac_fn_c_try_compile "$LINENO"; then :
2187 ac_hi=-1 ac_mid=-1
2188 while :; do
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190/* end confdefs.h. */
2191$4
2192int
2193main ()
2194{
2195static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2eff3833
JT
2196test_array [0] = 0;
2197return test_array [0];
212380e3 2198
7083c021
AC
2199 ;
2200 return 0;
2201}
2202_ACEOF
2203if ac_fn_c_try_compile "$LINENO"; then :
2204 ac_lo=$ac_mid; break
2205else
2206 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2207 if test $ac_mid -le $ac_hi; then
2208 ac_lo= ac_hi=
2209 break
2210 fi
2211 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
212380e3 2212fi
7083c021
AC
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 done
212380e3 2215else
7083c021
AC
2216 ac_lo= ac_hi=
2217fi
2218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219fi
2220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221# Binary search between lo and hi bounds.
2222while test "x$ac_lo" != "x$ac_hi"; do
2223 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 2225/* end confdefs.h. */
7083c021
AC
2226$4
2227int
2228main ()
2229{
2230static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2eff3833
JT
2231test_array [0] = 0;
2232return test_array [0];
7083c021
AC
2233
2234 ;
2235 return 0;
2236}
212380e3 2237_ACEOF
7083c021
AC
2238if ac_fn_c_try_compile "$LINENO"; then :
2239 ac_hi=$ac_mid
212380e3 2240else
7083c021 2241 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
212380e3 2242fi
7083c021
AC
2243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244done
2245case $ac_lo in #((
2246?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2247'') ac_retval=1 ;;
2248esac
2249 else
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251/* end confdefs.h. */
2252$4
2253static long int longval () { return $2; }
2254static unsigned long int ulongval () { return $2; }
2255#include <stdio.h>
2256#include <stdlib.h>
2257int
2258main ()
2259{
631ef239 2260
7083c021
AC
2261 FILE *f = fopen ("conftest.val", "w");
2262 if (! f)
2263 return 1;
2264 if (($2) < 0)
2265 {
2266 long int i = longval ();
2267 if (i != ($2))
2268 return 1;
2269 fprintf (f, "%ld", i);
2270 }
2271 else
2272 {
2273 unsigned long int i = ulongval ();
2274 if (i != ($2))
2275 return 1;
2276 fprintf (f, "%lu", i);
2277 }
2278 /* Do not output a trailing newline, as this causes \r\n confusion
2279 on some platforms. */
2280 return ferror (f) || fclose (f) != 0;
212380e3 2281
7083c021
AC
2282 ;
2283 return 0;
2284}
212380e3 2285_ACEOF
7083c021
AC
2286if ac_fn_c_try_run "$LINENO"; then :
2287 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
212380e3 2288else
7083c021 2289 ac_retval=1
212380e3 2290fi
7083c021
AC
2291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2292 conftest.$ac_objext conftest.beam conftest.$ac_ext
2293rm -f conftest.val
631ef239 2294
7083c021 2295 fi
b6d0720c 2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 2297 as_fn_set_status $ac_retval
212380e3 2298
7083c021 2299} # ac_fn_c_compute_int
7083c021
AC
2300cat >config.log <<_ACEOF
2301This file contains any messages produced by compilers while
2302running configure, to aid debugging if configure makes a mistake.
212380e3 2303
c52df125 2304It was created by charybdis $as_me 3.6.0-dev, which was
2eff3833 2305generated by GNU Autoconf 2.69. Invocation command line was
212380e3 2306
7083c021 2307 $ $0 $@
212380e3 2308
7083c021
AC
2309_ACEOF
2310exec 5>>config.log
2311{
2312cat <<_ASUNAME
2313## --------- ##
2314## Platform. ##
2315## --------- ##
2316
2317hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2318uname -m = `(uname -m) 2>/dev/null || echo unknown`
2319uname -r = `(uname -r) 2>/dev/null || echo unknown`
2320uname -s = `(uname -s) 2>/dev/null || echo unknown`
2321uname -v = `(uname -v) 2>/dev/null || echo unknown`
2322
2323/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2324/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2325
2326/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2327/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2328/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2329/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2330/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2331/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2332/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2333
2334_ASUNAME
212380e3 2335
631ef239 2336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083c021 2337for as_dir in $PATH
631ef239
AC
2338do
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
7083c021 2341 $as_echo "PATH: $as_dir"
631ef239 2342 done
631ef239
AC
2343IFS=$as_save_IFS
2344
7083c021 2345} >&5
631ef239 2346
7083c021 2347cat >&5 <<_ACEOF
631ef239 2348
631ef239 2349
7083c021
AC
2350## ----------- ##
2351## Core tests. ##
2352## ----------- ##
631ef239 2353
7083c021 2354_ACEOF
631ef239
AC
2355
2356
7083c021
AC
2357# Keep a trace of the command line.
2358# Strip out --no-create and --no-recursion so they do not pile up.
2359# Strip out --silent because we don't want to record it for future runs.
2360# Also quote any args containing shell meta-characters.
2361# Make two passes to allow for proper duplicate-argument suppression.
2362ac_configure_args=
2363ac_configure_args0=
2364ac_configure_args1=
2365ac_must_keep_next=false
2366for ac_pass in 1 2
631ef239 2367do
7083c021 2368 for ac_arg
631ef239 2369 do
7083c021
AC
2370 case $ac_arg in
2371 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2373 | -silent | --silent | --silen | --sile | --sil)
2374 continue ;;
2375 *\'*)
2376 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2377 esac
2378 case $ac_pass in
2379 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2380 2)
2381 as_fn_append ac_configure_args1 " '$ac_arg'"
2382 if test $ac_must_keep_next = true; then
2383 ac_must_keep_next=false # Got value, back to normal.
2384 else
2385 case $ac_arg in
2386 *=* | --config-cache | -C | -disable-* | --disable-* \
2387 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2388 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2389 | -with-* | --with-* | -without-* | --without-* | --x)
2390 case "$ac_configure_args0 " in
2391 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2392 esac
2393 ;;
2394 -* ) ac_must_keep_next=true ;;
2395 esac
2396 fi
2397 as_fn_append ac_configure_args " '$ac_arg'"
2398 ;;
2399 esac
631ef239
AC
2400 done
2401done
7083c021
AC
2402{ ac_configure_args0=; unset ac_configure_args0;}
2403{ ac_configure_args1=; unset ac_configure_args1;}
631ef239 2404
7083c021
AC
2405# When interrupted or exit'd, cleanup temporary files, and complete
2406# config.log. We remove comments because anyway the quotes in there
2407# would cause problems or look ugly.
2408# WARNING: Use '\'' to represent an apostrophe within the trap.
2409# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2410trap 'exit_status=$?
2411 # Save into config.log some information that might help in debugging.
2412 {
2413 echo
631ef239 2414
b6d0720c 2415 $as_echo "## ---------------- ##
7083c021 2416## Cache variables. ##
b6d0720c 2417## ---------------- ##"
7083c021
AC
2418 echo
2419 # The following way of writing the cache mishandles newlines in values,
2420(
2421 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2422 eval ac_val=\$$ac_var
2423 case $ac_val in #(
2424 *${as_nl}*)
2425 case $ac_var in #(
2426 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2427$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2428 esac
2429 case $ac_var in #(
2430 _ | IFS | as_nl) ;; #(
2431 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2432 *) { eval $ac_var=; unset $ac_var;} ;;
2433 esac ;;
2434 esac
2435 done
2436 (set) 2>&1 |
2437 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2438 *${as_nl}ac_space=\ *)
2439 sed -n \
2440 "s/'\''/'\''\\\\'\'''\''/g;
2441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2442 ;; #(
2443 *)
2444 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2445 ;;
2446 esac |
2447 sort
2448)
2449 echo
631ef239 2450
b6d0720c 2451 $as_echo "## ----------------- ##
7083c021 2452## Output variables. ##
b6d0720c 2453## ----------------- ##"
7083c021
AC
2454 echo
2455 for ac_var in $ac_subst_vars
2456 do
2457 eval ac_val=\$$ac_var
2458 case $ac_val in
2459 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2460 esac
2461 $as_echo "$ac_var='\''$ac_val'\''"
2462 done | sort
2463 echo
631ef239 2464
7083c021 2465 if test -n "$ac_subst_files"; then
b6d0720c 2466 $as_echo "## ------------------- ##
7083c021 2467## File substitutions. ##
b6d0720c 2468## ------------------- ##"
7083c021
AC
2469 echo
2470 for ac_var in $ac_subst_files
2471 do
2472 eval ac_val=\$$ac_var
2473 case $ac_val in
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 esac
2476 $as_echo "$ac_var='\''$ac_val'\''"
2477 done | sort
2478 echo
2479 fi
631ef239 2480
7083c021 2481 if test -s confdefs.h; then
b6d0720c 2482 $as_echo "## ----------- ##
7083c021 2483## confdefs.h. ##
b6d0720c 2484## ----------- ##"
7083c021
AC
2485 echo
2486 cat confdefs.h
2487 echo
2488 fi
2489 test "$ac_signal" != 0 &&
2490 $as_echo "$as_me: caught signal $ac_signal"
2491 $as_echo "$as_me: exit $exit_status"
2492 } >&5
2493 rm -f core *.core core.conftest.* &&
2494 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2495 exit $exit_status
2496' 0
2497for ac_signal in 1 2 13 15; do
2498 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2499done
2500ac_signal=0
631ef239 2501
7083c021
AC
2502# confdefs.h avoids OS command line length limits that DEFS can exceed.
2503rm -f -r conftest* confdefs.h
631ef239 2504
7083c021 2505$as_echo "/* confdefs.h */" > confdefs.h
212380e3 2506
7083c021 2507# Predefined preprocessor variables.
212380e3 2508
7083c021
AC
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_NAME "$PACKAGE_NAME"
212380e3 2511_ACEOF
212380e3 2512
7083c021
AC
2513cat >>confdefs.h <<_ACEOF
2514#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
212380e3 2515_ACEOF
212380e3 2516
7083c021
AC
2517cat >>confdefs.h <<_ACEOF
2518#define PACKAGE_VERSION "$PACKAGE_VERSION"
212380e3 2519_ACEOF
212380e3 2520
7083c021
AC
2521cat >>confdefs.h <<_ACEOF
2522#define PACKAGE_STRING "$PACKAGE_STRING"
2523_ACEOF
212380e3 2524
7083c021
AC
2525cat >>confdefs.h <<_ACEOF
2526#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2527_ACEOF
212380e3 2528
7083c021
AC
2529cat >>confdefs.h <<_ACEOF
2530#define PACKAGE_URL "$PACKAGE_URL"
2531_ACEOF
212380e3 2532
631ef239 2533
7083c021
AC
2534# Let the site file select an alternate cache file if it wants to.
2535# Prefer an explicitly selected file to automatically selected ones.
2536ac_site_file1=NONE
2537ac_site_file2=NONE
2538if test -n "$CONFIG_SITE"; then
b6d0720c
AC
2539 # We do not want a PATH search for config.site.
2540 case $CONFIG_SITE in #((
2541 -*) ac_site_file1=./$CONFIG_SITE;;
2542 */*) ac_site_file1=$CONFIG_SITE;;
2543 *) ac_site_file1=./$CONFIG_SITE;;
2544 esac
7083c021
AC
2545elif test "x$prefix" != xNONE; then
2546 ac_site_file1=$prefix/share/config.site
2547 ac_site_file2=$prefix/etc/config.site
212380e3 2548else
7083c021
AC
2549 ac_site_file1=$ac_default_prefix/share/config.site
2550 ac_site_file2=$ac_default_prefix/etc/config.site
2551fi
2552for ac_site_file in "$ac_site_file1" "$ac_site_file2"
212380e3 2553do
7083c021 2554 test "x$ac_site_file" = xNONE && continue
6fb6bd15 2555 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
7083c021
AC
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2557$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2558 sed 's/^/| /' "$ac_site_file" >&5
b6d0720c
AC
2559 . "$ac_site_file" \
2560 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562as_fn_error $? "failed to load site script $ac_site_file
2563See \`config.log' for more details" "$LINENO" 5; }
212380e3
AC
2564 fi
2565done
212380e3 2566
7083c021 2567if test -r "$cache_file"; then
6fb6bd15
AC
2568 # Some versions of bash will fail to source /dev/null (special files
2569 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2570 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
7083c021
AC
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2572$as_echo "$as_me: loading cache $cache_file" >&6;}
2573 case $cache_file in
2574 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2575 *) . "./$cache_file";;
2576 esac
2577 fi
212380e3 2578else
7083c021
AC
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2580$as_echo "$as_me: creating cache $cache_file" >&6;}
2581 >$cache_file
212380e3
AC
2582fi
2583
7083c021
AC
2584# Check that the precious variables saved in the cache have kept the same
2585# value.
2586ac_cache_corrupted=false
2587for ac_var in $ac_precious_vars; do
2588 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2589 eval ac_new_set=\$ac_env_${ac_var}_set
2590 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2591 eval ac_new_val=\$ac_env_${ac_var}_value
2592 case $ac_old_set,$ac_new_set in
2593 set,)
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2595$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2596 ac_cache_corrupted=: ;;
2597 ,set)
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2599$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2600 ac_cache_corrupted=: ;;
2601 ,);;
2602 *)
2603 if test "x$ac_old_val" != "x$ac_new_val"; then
2604 # differences in whitespace do not lead to failure.
2605 ac_old_val_w=`echo x $ac_old_val`
2606 ac_new_val_w=`echo x $ac_new_val`
2607 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2609$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2610 ac_cache_corrupted=:
2611 else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2613$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2614 eval $ac_var=\$ac_old_val
2615 fi
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2617$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2619$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2620 fi;;
2621 esac
2622 # Pass precious variables to config.status.
2623 if test "$ac_new_set" = set; then
2624 case $ac_new_val in
2625 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2626 *) ac_arg=$ac_var=$ac_new_val ;;
2627 esac
2628 case " $ac_configure_args " in
2629 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2630 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2631 esac
212380e3
AC
2632 fi
2633done
7083c021
AC
2634if $ac_cache_corrupted; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2638$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b6d0720c 2639 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
212380e3 2640fi
7083c021
AC
2641## -------------------- ##
2642## Main body of script. ##
2643## -------------------- ##
212380e3 2644
7083c021
AC
2645ac_ext=c
2646ac_cpp='$CPP $CPPFLAGS'
2647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649ac_compiler_gnu=$ac_cv_c_compiler_gnu
631ef239 2650
212380e3 2651
212380e3 2652
a5471f24 2653
212380e3 2654
c52df125 2655ac_config_headers="$ac_config_headers include/setup.h"
212380e3 2656
631ef239 2657
c52df125
AC
2658ac_aux_dir=
2659for ac_dir in libltdl/config "$srcdir"/libltdl/config; do
2660 if test -f "$ac_dir/install-sh"; then
2661 ac_aux_dir=$ac_dir
2662 ac_install_sh="$ac_aux_dir/install-sh -c"
2663 break
2664 elif test -f "$ac_dir/install.sh"; then
2665 ac_aux_dir=$ac_dir
2666 ac_install_sh="$ac_aux_dir/install.sh -c"
2667 break
2668 elif test -f "$ac_dir/shtool"; then
2669 ac_aux_dir=$ac_dir
2670 ac_install_sh="$ac_aux_dir/shtool install -c"
2671 break
212380e3
AC
2672 fi
2673done
c52df125
AC
2674if test -z "$ac_aux_dir"; then
2675 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5
212380e3
AC
2676fi
2677
c52df125
AC
2678# These three variables are undocumented and unsupported,
2679# and are intended to be withdrawn in a future Autoconf release.
2680# They can cause serious problems if a builder's source tree is in a directory
2681# whose full name contains unusual characters.
2682ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2683ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2684ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
631ef239 2685
c52df125
AC
2686
2687
2688am__api_version='1.15'
2689
2690# Find a good install program. We prefer a C program (faster),
2691# so one script is as good as another. But avoid the broken or
2692# incompatible versions:
2693# SysV /etc/install, /usr/sbin/install
2694# SunOS /usr/etc/install
2695# IRIX /sbin/install
2696# AIX /bin/install
2697# AmigaOS /C/install, which installs bootblocks on floppy discs
2698# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2699# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2700# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2701# OS/2's system install, which has a completely different semantic
2702# ./install, which can be erroneously created by make from ./install.sh.
2703# Reject install programs that cannot install multiple files.
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2705$as_echo_n "checking for a BSD-compatible install... " >&6; }
2706if test -z "$INSTALL"; then
2707if ${ac_cv_path_install+:} false; then :
7083c021 2708 $as_echo_n "(cached) " >&6
212380e3 2709else
c52df125 2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
c52df125
AC
2715 # Account for people who put trailing slashes in PATH elements.
2716case $as_dir/ in #((
2717 ./ | .// | /[cC]/* | \
2718 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2719 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2720 /usr/ucb/* ) ;;
2721 *)
2722 # OSF1 and SCO ODT 3.0 have their own names for install.
2723 # Don't use installbsd from OSF since it installs stuff as root
2724 # by default.
2725 for ac_prog in ginstall scoinst install; do
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2728 if test $ac_prog = install &&
2729 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2730 # AIX install. It has an incompatible calling convention.
2731 :
2732 elif test $ac_prog = install &&
2733 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734 # program-specific install script used by HP pwplus--don't use.
2735 :
2736 else
2737 rm -rf conftest.one conftest.two conftest.dir
2738 echo one > conftest.one
2739 echo two > conftest.two
2740 mkdir conftest.dir
2741 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2742 test -s conftest.one && test -s conftest.two &&
2743 test -s conftest.dir/conftest.one &&
2744 test -s conftest.dir/conftest.two
2745 then
2746 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2747 break 3
2748 fi
2749 fi
2750 fi
2751 done
2752 done
2753 ;;
2754esac
2755
7083c021 2756 done
631ef239 2757IFS=$as_save_IFS
212380e3 2758
c52df125
AC
2759rm -rf conftest.one conftest.two conftest.dir
2760
212380e3 2761fi
c52df125
AC
2762 if test "${ac_cv_path_install+set}" = set; then
2763 INSTALL=$ac_cv_path_install
2764 else
2765 # As a last resort, use the slow shell script. Don't cache a
2766 # value for INSTALL within a source directory, because that will
2767 # break other packages using the cache if that directory is
2768 # removed, or if the value is a relative name.
2769 INSTALL=$ac_install_sh
2770 fi
7083c021 2771fi
c52df125
AC
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2773$as_echo "$INSTALL" >&6; }
212380e3 2774
c52df125
AC
2775# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2776# It thinks the first close brace ends the variable substitution.
2777test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2778
2779test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2780
2781test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2782
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2784$as_echo_n "checking whether build environment is sane... " >&6; }
2785# Reject unsafe characters in $srcdir or the absolute working directory
2786# name. Accept space and tab only in the latter.
2787am_lf='
2788'
2789case `pwd` in
2790 *[\\\"\#\$\&\'\`$am_lf]*)
2791 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
7083c021 2792esac
c52df125
AC
2793case $srcdir in
2794 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2795 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2796esac
2797
2798# Do 'set' in a subshell so we don't clobber the current shell's
2799# arguments. Must try -L first in case configure is actually a
2800# symlink; some systems play weird games with the mod time of symlinks
2801# (eg FreeBSD returns the mod time of the symlink's containing
2802# directory).
2803if (
2804 am_has_slept=no
2805 for am_try in 1 2; do
2806 echo "timestamp, slept: $am_has_slept" > conftest.file
2807 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2808 if test "$*" = "X"; then
2809 # -L didn't work.
2810 set X `ls -t "$srcdir/configure" conftest.file`
2811 fi
2812 if test "$*" != "X $srcdir/configure conftest.file" \
2813 && test "$*" != "X conftest.file $srcdir/configure"; then
2814
2815 # If neither matched, then we have a broken ls. This can happen
2816 # if, for instance, CONFIG_SHELL is bash and it inherits a
2817 # broken ls alias from the environment. This has actually
2818 # happened. Such a system could not be considered "sane".
2819 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2820 alias in your environment" "$LINENO" 5
2821 fi
2822 if test "$2" = conftest.file || test $am_try -eq 2; then
2823 break
2824 fi
2825 # Just in case.
2826 sleep 1
2827 am_has_slept=yes
2828 done
2829 test "$2" = conftest.file
2830 )
2831then
2832 # Ok.
2833 :
7083c021 2834else
c52df125
AC
2835 as_fn_error $? "newly created file is older than distributed files!
2836Check your system clock" "$LINENO" 5
2837fi
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2839$as_echo "yes" >&6; }
2840# If we didn't sleep, we still need to ensure time stamps of config.status and
2841# generated files are strictly newer.
2842am_sleep_pid=
2843if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2844 ( sleep 1 ) &
2845 am_sleep_pid=$!
2846fi
2847
2848rm -f conftest.file
2849
2850test "$program_prefix" != NONE &&
2851 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2852# Use a double $ so make ignores it.
2853test "$program_suffix" != NONE &&
2854 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2855# Double any \ or $.
2856# By default was `s,x,x', remove it if useless.
2857ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2858program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2859
2860# Expand $ac_aux_dir to an absolute path.
2861am_aux_dir=`cd "$ac_aux_dir" && pwd`
2862
2863if test x"${MISSING+set}" != xset; then
2864 case $am_aux_dir in
2865 *\ * | *\ *)
2866 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2867 *)
2868 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2869 esac
2870fi
2871# Use eval to expand $SHELL
2872if eval "$MISSING --is-lightweight"; then
2873 am_missing_run="$MISSING "
2874else
2875 am_missing_run=
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2877$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
7083c021 2878fi
631ef239 2879
c52df125
AC
2880if test x"${install_sh+set}" != xset; then
2881 case $am_aux_dir in
2882 *\ * | *\ *)
2883 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2884 *)
2885 install_sh="\${SHELL} $am_aux_dir/install-sh"
2886 esac
2887fi
2888
2889# Installed binaries are usually stripped using 'strip' when the user
2890# run "make install-strip". However 'strip' might not be the right
2891# tool to use in cross-compilation environments, therefore Automake
2892# will honor the 'STRIP' environment variable to overrule this program.
2893if test "$cross_compiling" != no; then
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2896set dummy ${ac_tool_prefix}strip; ac_word=$2
7083c021
AC
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898$as_echo_n "checking for $ac_word... " >&6; }
c52df125 2899if ${ac_cv_prog_STRIP+:} false; then :
7083c021 2900 $as_echo_n "(cached) " >&6
212380e3 2901else
c52df125
AC
2902 if test -n "$STRIP"; then
2903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7083c021
AC
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2906for as_dir in $PATH
2907do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
7083c021 2910 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c52df125 2912 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7083c021 2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2914 break 2
2915 fi
2916done
7083c021 2917 done
631ef239 2918IFS=$as_save_IFS
7083c021 2919
212380e3 2920fi
7083c021 2921fi
c52df125
AC
2922STRIP=$ac_cv_prog_STRIP
2923if test -n "$STRIP"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2925$as_echo "$STRIP" >&6; }
212380e3 2926else
7083c021
AC
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928$as_echo "no" >&6; }
212380e3
AC
2929fi
2930
631ef239 2931
7083c021 2932fi
c52df125
AC
2933if test -z "$ac_cv_prog_STRIP"; then
2934 ac_ct_STRIP=$STRIP
2935 # Extract the first word of "strip", so it can be a program name with args.
2936set dummy strip; ac_word=$2
7083c021
AC
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938$as_echo_n "checking for $ac_word... " >&6; }
c52df125 2939if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7083c021 2940 $as_echo_n "(cached) " >&6
212380e3 2941else
c52df125
AC
2942 if test -n "$ac_ct_STRIP"; then
2943 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7083c021 2944else
7083c021 2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2946for as_dir in $PATH
2947do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
7083c021 2950 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c52df125 2952 ac_cv_prog_ac_ct_STRIP="strip"
7083c021 2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2954 break 2
2955 fi
2956done
7083c021 2957 done
631ef239 2958IFS=$as_save_IFS
212380e3 2959
212380e3 2960fi
7083c021 2961fi
c52df125
AC
2962ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2963if test -n "$ac_ct_STRIP"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2965$as_echo "$ac_ct_STRIP" >&6; }
212380e3 2966else
7083c021
AC
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968$as_echo "no" >&6; }
212380e3
AC
2969fi
2970
c52df125
AC
2971 if test "x$ac_ct_STRIP" = x; then
2972 STRIP=":"
2973 else
2974 case $cross_compiling:$ac_tool_warned in
2975yes:)
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2978ac_tool_warned=yes ;;
2979esac
2980 STRIP=$ac_ct_STRIP
2981 fi
2982else
2983 STRIP="$ac_cv_prog_STRIP"
2984fi
212380e3 2985
7083c021 2986fi
c52df125
AC
2987INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2988
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2990$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2991if test -z "$MKDIR_P"; then
2992 if ${ac_cv_path_mkdir+:} false; then :
7083c021 2993 $as_echo_n "(cached) " >&6
212380e3 2994else
c52df125
AC
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
212380e3
AC
2997do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
c52df125
AC
3000 for ac_prog in mkdir gmkdir; do
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3003 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3004 'mkdir (GNU coreutils) '* | \
3005 'mkdir (coreutils) '* | \
3006 'mkdir (fileutils) '4.1*)
3007 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3008 break 3;;
3009 esac
3010 done
3011 done
7083c021 3012 done
631ef239 3013IFS=$as_save_IFS
212380e3
AC
3014
3015fi
631ef239 3016
c52df125
AC
3017 test -d ./--version && rmdir ./--version
3018 if test "${ac_cv_path_mkdir+set}" = set; then
3019 MKDIR_P="$ac_cv_path_mkdir -p"
3020 else
3021 # As a last resort, use the slow shell script. Don't cache a
3022 # value for MKDIR_P within a source directory, because that will
3023 # break other packages using the cache if that directory is
3024 # removed, or if the value is a relative name.
3025 MKDIR_P="$ac_install_sh -d"
3026 fi
212380e3 3027fi
c52df125
AC
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3029$as_echo "$MKDIR_P" >&6; }
3030
3031for ac_prog in gawk mawk nawk awk
212380e3
AC
3032do
3033 # Extract the first word of "$ac_prog", so it can be a program name with args.
3034set dummy $ac_prog; ac_word=$2
7083c021
AC
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036$as_echo_n "checking for $ac_word... " >&6; }
c52df125 3037if ${ac_cv_prog_AWK+:} false; then :
7083c021 3038 $as_echo_n "(cached) " >&6
212380e3 3039else
c52df125
AC
3040 if test -n "$AWK"; then
3041 ac_cv_prog_AWK="$AWK" # Let the user override the test.
212380e3
AC
3042else
3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044for as_dir in $PATH
3045do
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
7083c021 3048 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c52df125 3050 ac_cv_prog_AWK="$ac_prog"
7083c021 3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
3052 break 2
3053 fi
3054done
7083c021 3055 done
631ef239 3056IFS=$as_save_IFS
212380e3
AC
3057
3058fi
3059fi
c52df125
AC
3060AWK=$ac_cv_prog_AWK
3061if test -n "$AWK"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3063$as_echo "$AWK" >&6; }
212380e3 3064else
7083c021
AC
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066$as_echo "no" >&6; }
212380e3
AC
3067fi
3068
631ef239 3069
c52df125 3070 test -n "$AWK" && break
212380e3 3071done
212380e3 3072
c52df125
AC
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3074$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3075set x ${MAKE-make}
3076ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3077if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3078 $as_echo_n "(cached) " >&6
3079else
3080 cat >conftest.make <<\_ACEOF
3081SHELL = /bin/sh
3082all:
3083 @echo '@@@%%%=$(MAKE)=@@@%%%'
3084_ACEOF
3085# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3086case `${MAKE-make} -f conftest.make 2>/dev/null` in
3087 *@@@%%%=?*=@@@%%%*)
3088 eval ac_cv_prog_make_${ac_make}_set=yes;;
3089 *)
3090 eval ac_cv_prog_make_${ac_make}_set=no;;
3091esac
3092rm -f conftest.make
3093fi
3094if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096$as_echo "yes" >&6; }
3097 SET_MAKE=
3098else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100$as_echo "no" >&6; }
3101 SET_MAKE="MAKE=${MAKE-make}"
3102fi
3103
3104rm -rf .tst 2>/dev/null
3105mkdir .tst 2>/dev/null
3106if test -d .tst; then
3107 am__leading_dot=.
3108else
3109 am__leading_dot=_
3110fi
3111rmdir .tst 2>/dev/null
3112
3113# Check whether --enable-silent-rules was given.
3114if test "${enable_silent_rules+set}" = set; then :
3115 enableval=$enable_silent_rules;
3116fi
3117
3118case $enable_silent_rules in # (((
3119 yes) AM_DEFAULT_VERBOSITY=0;;
3120 no) AM_DEFAULT_VERBOSITY=1;;
3121 *) AM_DEFAULT_VERBOSITY=1;;
3122esac
3123am_make=${MAKE-make}
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3125$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3126if ${am_cv_make_support_nested_variables+:} false; then :
3127 $as_echo_n "(cached) " >&6
3128else
3129 if $as_echo 'TRUE=$(BAR$(V))
3130BAR0=false
3131BAR1=true
3132V=1
3133am__doit:
3134 @$(TRUE)
3135.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3136 am_cv_make_support_nested_variables=yes
3137else
3138 am_cv_make_support_nested_variables=no
3139fi
3140fi
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3142$as_echo "$am_cv_make_support_nested_variables" >&6; }
3143if test $am_cv_make_support_nested_variables = yes; then
3144 AM_V='$(V)'
3145 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3146else
3147 AM_V=$AM_DEFAULT_VERBOSITY
3148 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3149fi
3150AM_BACKSLASH='\'
3151
3152if test "`cd $srcdir && pwd`" != "`pwd`"; then
3153 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3154 # is not polluted with repeated "-I."
3155 am__isrc=' -I$(srcdir)'
3156 # test to see if srcdir already configured
3157 if test -f $srcdir/config.status; then
3158 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3159 fi
3160fi
3161
3162# test whether we have cygpath
3163if test -z "$CYGPATH_W"; then
3164 if (cygpath --version) >/dev/null 2>/dev/null; then
3165 CYGPATH_W='cygpath -w'
3166 else
3167 CYGPATH_W=echo
3168 fi
3169fi
3170
3171
3172# Define the identity of the package.
3173 PACKAGE='charybdis'
3174 VERSION='3.6.0-dev'
3175
3176
3177cat >>confdefs.h <<_ACEOF
3178#define PACKAGE "$PACKAGE"
3179_ACEOF
3180
3181
3182cat >>confdefs.h <<_ACEOF
3183#define VERSION "$VERSION"
3184_ACEOF
3185
3186# Some tools Automake needs.
3187
3188ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3189
3190
3191AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3192
3193
3194AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3195
3196
3197AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3198
3199
3200MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3201
3202# For better backward compatibility. To be removed once Automake 1.9.x
3203# dies out for good. For more background, see:
3204# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3205# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3206mkdir_p='$(MKDIR_P)'
3207
3208# We need awk for the "check" target (and possibly the TAP driver). The
3209# system "awk" is bad on some platforms.
3210# Always define AMTAR for backward compatibility. Yes, it's still used
3211# in the wild :-( We should find a proper way to deprecate it ...
3212AMTAR='$${TAR-tar}'
3213
3214
3215# We'll loop over all known methods to create a tar archive until one works.
3216_am_tools='gnutar pax cpio none'
3217
3218am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3219
3220
3221
3222
3223
3224
3225# POSIX will say in a future version that running "rm -f" with no argument
3226# is OK; and we want to be able to make that assumption in our Makefile
3227# recipes. So use an aggressive probe to check that the usage we want is
3228# actually supported "in the wild" to an acceptable degree.
3229# See automake bug#10828.
3230# To make any issue more visible, cause the running configure to be aborted
3231# by default if the 'rm' program in use doesn't match our expectations; the
3232# user can still override this though.
3233if rm -f && rm -fr && rm -rf; then : OK; else
3234 cat >&2 <<'END'
3235Oops!
3236
3237Your 'rm' program seems unable to run without file operands specified
3238on the command line, even when the '-f' option is present. This is contrary
3239to the behaviour of most rm programs out there, and not conforming with
3240the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3241
3242Please tell bug-automake@gnu.org about your system, including the value
3243of your $PATH and any error possibly output before this message. This
3244can help us improve future automake versions.
3245
3246END
3247 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3248 echo 'Configuration will proceed anyway, since you have set the' >&2
3249 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3250 echo >&2
3251 else
3252 cat >&2 <<'END'
3253Aborting the configuration process, to ensure you take notice of the issue.
3254
3255You can download and install GNU coreutils to get an 'rm' implementation
3256that behaves properly: <http://www.gnu.org/software/coreutils/>.
3257
3258If you want to complete the configuration process using your problematic
3259'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3260to "yes", and re-run configure.
3261
3262END
3263 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3264 fi
3265fi
3266
3267# Check whether --enable-silent-rules was given.
3268if test "${enable_silent_rules+set}" = set; then :
3269 enableval=$enable_silent_rules;
3270fi
3271
3272case $enable_silent_rules in # (((
3273 yes) AM_DEFAULT_VERBOSITY=0;;
3274 no) AM_DEFAULT_VERBOSITY=1;;
3275 *) AM_DEFAULT_VERBOSITY=0;;
3276esac
3277am_make=${MAKE-make}
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3279$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3280if ${am_cv_make_support_nested_variables+:} false; then :
3281 $as_echo_n "(cached) " >&6
3282else
3283 if $as_echo 'TRUE=$(BAR$(V))
3284BAR0=false
3285BAR1=true
3286V=1
3287am__doit:
3288 @$(TRUE)
3289.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3290 am_cv_make_support_nested_variables=yes
3291else
3292 am_cv_make_support_nested_variables=no
3293fi
3294fi
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3296$as_echo "$am_cv_make_support_nested_variables" >&6; }
3297if test $am_cv_make_support_nested_variables = yes; then
3298 AM_V='$(V)'
3299 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3300else
3301 AM_V=$AM_DEFAULT_VERBOSITY
3302 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3303fi
3304AM_BACKSLASH='\'
3305
3306DEPDIR="${am__leading_dot}deps"
3307
3308ac_config_commands="$ac_config_commands depfiles"
3309
3310
3311am_make=${MAKE-make}
3312cat > confinc << 'END'
3313am__doit:
3314 @echo this is the am__doit target
3315.PHONY: am__doit
3316END
3317# If we don't find an include directive, just comment out the code.
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3319$as_echo_n "checking for style of include used by $am_make... " >&6; }
3320am__include="#"
3321am__quote=
3322_am_result=none
3323# First try GNU make style include.
3324echo "include confinc" > confmf
3325# Ignore all kinds of additional output from 'make'.
3326case `$am_make -s -f confmf 2> /dev/null` in #(
3327*the\ am__doit\ target*)
3328 am__include=include
3329 am__quote=
3330 _am_result=GNU
3331 ;;
3332esac
3333# Now try BSD make style include.
3334if test "$am__include" = "#"; then
3335 echo '.include "confinc"' > confmf
3336 case `$am_make -s -f confmf 2> /dev/null` in #(
3337 *the\ am__doit\ target*)
3338 am__include=.include
3339 am__quote="\""
3340 _am_result=BSD
3341 ;;
3342 esac
3343fi
3344
3345
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3347$as_echo "$_am_result" >&6; }
3348rm -f confinc confmf
3349
3350# Check whether --enable-dependency-tracking was given.
3351if test "${enable_dependency_tracking+set}" = set; then :
3352 enableval=$enable_dependency_tracking;
3353fi
3354
3355if test "x$enable_dependency_tracking" != xno; then
3356 am_depcomp="$ac_aux_dir/depcomp"
3357 AMDEPBACKSLASH='\'
3358 am__nodep='_no'
3359fi
3360 if test "x$enable_dependency_tracking" != xno; then
3361 AMDEP_TRUE=
3362 AMDEP_FALSE='#'
3363else
3364 AMDEP_TRUE='#'
3365 AMDEP_FALSE=
3366fi
3367
3368
3369ac_ext=c
3370ac_cpp='$CPP $CPPFLAGS'
3371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374if test -n "$ac_tool_prefix"; then
3375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3376set dummy ${ac_tool_prefix}gcc; ac_word=$2
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378$as_echo_n "checking for $ac_word... " >&6; }
3379if ${ac_cv_prog_CC+:} false; then :
3380 $as_echo_n "(cached) " >&6
3381else
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3384else
3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386for as_dir in $PATH
3387do
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396done
3397 done
3398IFS=$as_save_IFS
3399
3400fi
3401fi
3402CC=$ac_cv_prog_CC
3403if test -n "$CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405$as_echo "$CC" >&6; }
3406else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408$as_echo "no" >&6; }
3409fi
3410
3411
3412fi
3413if test -z "$ac_cv_prog_CC"; then
3414 ac_ct_CC=$CC
3415 # Extract the first word of "gcc", so it can be a program name with args.
3416set dummy gcc; ac_word=$2
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418$as_echo_n "checking for $ac_word... " >&6; }
3419if ${ac_cv_prog_ac_ct_CC+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421else
3422 if test -n "$ac_ct_CC"; then
3423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3424else
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 ac_cv_prog_ac_ct_CC="gcc"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3435 fi
3436done
3437 done
3438IFS=$as_save_IFS
3439
3440fi
3441fi
3442ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443if test -n "$ac_ct_CC"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3445$as_echo "$ac_ct_CC" >&6; }
3446else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448$as_echo "no" >&6; }
3449fi
3450
3451 if test "x$ac_ct_CC" = x; then
3452 CC=""
7083c021
AC
3453 else
3454 case $cross_compiling:$ac_tool_warned in
3455yes:)
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3458ac_tool_warned=yes ;;
3459esac
3460 CC=$ac_ct_CC
3461 fi
c52df125
AC
3462else
3463 CC="$ac_cv_prog_CC"
3464fi
3465
3466if test -z "$CC"; then
3467 if test -n "$ac_tool_prefix"; then
3468 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3469set dummy ${ac_tool_prefix}cc; ac_word=$2
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471$as_echo_n "checking for $ac_word... " >&6; }
3472if ${ac_cv_prog_CC+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474else
3475 if test -n "$CC"; then
3476 ac_cv_prog_CC="$CC" # Let the user override the test.
3477else
3478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479for as_dir in $PATH
3480do
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485 ac_cv_prog_CC="${ac_tool_prefix}cc"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 break 2
3488 fi
3489done
3490 done
3491IFS=$as_save_IFS
3492
3493fi
3494fi
3495CC=$ac_cv_prog_CC
3496if test -n "$CC"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498$as_echo "$CC" >&6; }
3499else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501$as_echo "no" >&6; }
3502fi
3503
3504
3505 fi
3506fi
3507if test -z "$CC"; then
3508 # Extract the first word of "cc", so it can be a program name with args.
3509set dummy cc; ac_word=$2
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511$as_echo_n "checking for $ac_word... " >&6; }
3512if ${ac_cv_prog_CC+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514else
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC="$CC" # Let the user override the test.
3517else
3518 ac_prog_rejected=no
3519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520for as_dir in $PATH
3521do
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3527 ac_prog_rejected=yes
3528 continue
3529 fi
3530 ac_cv_prog_CC="cc"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534done
3535 done
3536IFS=$as_save_IFS
3537
3538if test $ac_prog_rejected = yes; then
3539 # We found a bogon in the path, so make sure we never use it.
3540 set dummy $ac_cv_prog_CC
3541 shift
3542 if test $# != 0; then
3543 # We chose a different compiler from the bogus one.
3544 # However, it has the same basename, so the bogon will be chosen
3545 # first if we set CC to just the basename; use the full file name.
3546 shift
3547 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3548 fi
3549fi
3550fi
3551fi
3552CC=$ac_cv_prog_CC
3553if test -n "$CC"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555$as_echo "$CC" >&6; }
3556else
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558$as_echo "no" >&6; }
3559fi
3560
3561
3562fi
3563if test -z "$CC"; then
3564 if test -n "$ac_tool_prefix"; then
3565 for ac_prog in cl.exe
3566 do
3567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3568set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570$as_echo_n "checking for $ac_word... " >&6; }
3571if ${ac_cv_prog_CC+:} false; then :
3572 $as_echo_n "(cached) " >&6
3573else
3574 if test -n "$CC"; then
3575 ac_cv_prog_CC="$CC" # Let the user override the test.
3576else
3577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578for as_dir in $PATH
3579do
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3584 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3587 fi
3588done
3589 done
3590IFS=$as_save_IFS
3591
3592fi
3593fi
3594CC=$ac_cv_prog_CC
3595if test -n "$CC"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597$as_echo "$CC" >&6; }
3598else
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600$as_echo "no" >&6; }
3601fi
3602
3603
3604 test -n "$CC" && break
3605 done
3606fi
3607if test -z "$CC"; then
3608 ac_ct_CC=$CC
3609 for ac_prog in cl.exe
3610do
3611 # Extract the first word of "$ac_prog", so it can be a program name with args.
3612set dummy $ac_prog; ac_word=$2
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614$as_echo_n "checking for $ac_word... " >&6; }
3615if ${ac_cv_prog_ac_ct_CC+:} false; then :
3616 $as_echo_n "(cached) " >&6
3617else
3618 if test -n "$ac_ct_CC"; then
3619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3620else
3621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622for as_dir in $PATH
3623do
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628 ac_cv_prog_ac_ct_CC="$ac_prog"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3631 fi
3632done
3633 done
3634IFS=$as_save_IFS
3635
3636fi
3637fi
3638ac_ct_CC=$ac_cv_prog_ac_ct_CC
3639if test -n "$ac_ct_CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3641$as_echo "$ac_ct_CC" >&6; }
3642else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644$as_echo "no" >&6; }
3645fi
3646
3647
3648 test -n "$ac_ct_CC" && break
3649done
3650
3651 if test "x$ac_ct_CC" = x; then
3652 CC=""
3653 else
3654 case $cross_compiling:$ac_tool_warned in
3655yes:)
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658ac_tool_warned=yes ;;
3659esac
3660 CC=$ac_ct_CC
3661 fi
3662fi
3663
3664fi
3665
3666
3667test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669as_fn_error $? "no acceptable C compiler found in \$PATH
3670See \`config.log' for more details" "$LINENO" 5; }
3671
3672# Provide some information about the compiler.
3673$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3674set X $ac_compile
3675ac_compiler=$2
3676for ac_option in --version -v -V -qversion; do
3677 { { ac_try="$ac_compiler $ac_option >&5"
3678case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681esac
3682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683$as_echo "$ac_try_echo"; } >&5
3684 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3685 ac_status=$?
3686 if test -s conftest.err; then
3687 sed '10a\
3688... rest of stderr output deleted ...
3689 10q' conftest.err >conftest.er1
3690 cat conftest.er1 >&5
3691 fi
3692 rm -f conftest.er1 conftest.err
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }
3695done
3696
3697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h. */
3699
3700int
3701main ()
3702{
3703
3704 ;
3705 return 0;
3706}
3707_ACEOF
3708ac_clean_files_save=$ac_clean_files
3709ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3710# Try to create an executable without -o first, disregard a.out.
3711# It will help us diagnose broken compilers, and finding out an intuition
3712# of exeext.
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3714$as_echo_n "checking whether the C compiler works... " >&6; }
3715ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3716
3717# The possible output files:
3718ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3719
3720ac_rmfiles=
3721for ac_file in $ac_files
3722do
3723 case $ac_file in
3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3725 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3726 esac
3727done
3728rm -f $ac_rmfiles
3729
3730if { { ac_try="$ac_link_default"
3731case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734esac
3735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736$as_echo "$ac_try_echo"; } >&5
3737 (eval "$ac_link_default") 2>&5
3738 ac_status=$?
3739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740 test $ac_status = 0; }; then :
3741 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3742# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3743# in a Makefile. We should not override ac_cv_exeext if it was cached,
3744# so that the user can short-circuit this test for compilers unknown to
3745# Autoconf.
3746for ac_file in $ac_files ''
3747do
3748 test -f "$ac_file" || continue
3749 case $ac_file in
3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3751 ;;
3752 [ab].out )
3753 # We found the default executable, but exeext='' is most
3754 # certainly right.
3755 break;;
3756 *.* )
3757 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3758 then :; else
3759 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3760 fi
3761 # We set ac_cv_exeext here because the later test for it is not
3762 # safe: cross compilers may not add the suffix if given an `-o'
3763 # argument, so we may need to know it at that point already.
3764 # Even if this section looks crufty: it has the advantage of
3765 # actually working.
3766 break;;
3767 * )
3768 break;;
3769 esac
3770done
3771test "$ac_cv_exeext" = no && ac_cv_exeext=
3772
3773else
3774 ac_file=''
3775fi
3776if test -z "$ac_file"; then :
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778$as_echo "no" >&6; }
3779$as_echo "$as_me: failed program was:" >&5
3780sed 's/^/| /' conftest.$ac_ext >&5
3781
3782{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3784as_fn_error 77 "C compiler cannot create executables
3785See \`config.log' for more details" "$LINENO" 5; }
3786else
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3788$as_echo "yes" >&6; }
3789fi
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3791$as_echo_n "checking for C compiler default output file name... " >&6; }
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3793$as_echo "$ac_file" >&6; }
3794ac_exeext=$ac_cv_exeext
3795
3796rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3797ac_clean_files=$ac_clean_files_save
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3799$as_echo_n "checking for suffix of executables... " >&6; }
3800if { { ac_try="$ac_link"
3801case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804esac
3805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806$as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_link") 2>&5
3808 ac_status=$?
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }; then :
3811 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3812# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3813# work properly (i.e., refer to `conftest.exe'), while it won't with
3814# `rm'.
3815for ac_file in conftest.exe conftest conftest.*; do
3816 test -f "$ac_file" || continue
3817 case $ac_file in
3818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3819 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3820 break;;
3821 * ) break;;
3822 esac
3823done
3824else
3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3828See \`config.log' for more details" "$LINENO" 5; }
3829fi
3830rm -f conftest conftest$ac_cv_exeext
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3832$as_echo "$ac_cv_exeext" >&6; }
3833
3834rm -f conftest.$ac_ext
3835EXEEXT=$ac_cv_exeext
3836ac_exeext=$EXEEXT
3837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838/* end confdefs.h. */
3839#include <stdio.h>
3840int
3841main ()
3842{
3843FILE *f = fopen ("conftest.out", "w");
3844 return ferror (f) || fclose (f) != 0;
3845
3846 ;
3847 return 0;
3848}
3849_ACEOF
3850ac_clean_files="$ac_clean_files conftest.out"
3851# Check that the compiler produces executables we can run. If not, either
3852# the compiler is broken, or we cross compile.
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3854$as_echo_n "checking whether we are cross compiling... " >&6; }
3855if test "$cross_compiling" != yes; then
3856 { { ac_try="$ac_link"
3857case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860esac
3861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862$as_echo "$ac_try_echo"; } >&5
3863 (eval "$ac_link") 2>&5
3864 ac_status=$?
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }
3867 if { ac_try='./conftest$ac_cv_exeext'
3868 { { case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871esac
3872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873$as_echo "$ac_try_echo"; } >&5
3874 (eval "$ac_try") 2>&5
3875 ac_status=$?
3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }; }; then
3878 cross_compiling=no
3879 else
3880 if test "$cross_compiling" = maybe; then
3881 cross_compiling=yes
3882 else
3883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3885as_fn_error $? "cannot run C compiled programs.
3886If you meant to cross compile, use \`--host'.
3887See \`config.log' for more details" "$LINENO" 5; }
3888 fi
3889 fi
3890fi
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3892$as_echo "$cross_compiling" >&6; }
3893
3894rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3895ac_clean_files=$ac_clean_files_save
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3897$as_echo_n "checking for suffix of object files... " >&6; }
3898if ${ac_cv_objext+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900else
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902/* end confdefs.h. */
3903
3904int
3905main ()
3906{
3907
3908 ;
3909 return 0;
3910}
3911_ACEOF
3912rm -f conftest.o conftest.obj
3913if { { ac_try="$ac_compile"
3914case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917esac
3918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919$as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_compile") 2>&5
3921 ac_status=$?
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; then :
3924 for ac_file in conftest.o conftest.obj conftest.*; do
3925 test -f "$ac_file" || continue;
3926 case $ac_file in
3927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3928 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3929 break;;
3930 esac
3931done
3932else
3933 $as_echo "$as_me: failed program was:" >&5
3934sed 's/^/| /' conftest.$ac_ext >&5
3935
3936{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938as_fn_error $? "cannot compute suffix of object files: cannot compile
3939See \`config.log' for more details" "$LINENO" 5; }
3940fi
3941rm -f conftest.$ac_cv_objext conftest.$ac_ext
3942fi
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3944$as_echo "$ac_cv_objext" >&6; }
3945OBJEXT=$ac_cv_objext
3946ac_objext=$OBJEXT
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3948$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3949if ${ac_cv_c_compiler_gnu+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951else
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953/* end confdefs.h. */
3954
3955int
3956main ()
3957{
3958#ifndef __GNUC__
3959 choke me
3960#endif
3961
3962 ;
3963 return 0;
3964}
3965_ACEOF
3966if ac_fn_c_try_compile "$LINENO"; then :
3967 ac_compiler_gnu=yes
3968else
3969 ac_compiler_gnu=no
3970fi
3971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972ac_cv_c_compiler_gnu=$ac_compiler_gnu
3973
3974fi
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3976$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3977if test $ac_compiler_gnu = yes; then
3978 GCC=yes
3979else
3980 GCC=
3981fi
3982ac_test_CFLAGS=${CFLAGS+set}
3983ac_save_CFLAGS=$CFLAGS
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3985$as_echo_n "checking whether $CC accepts -g... " >&6; }
3986if ${ac_cv_prog_cc_g+:} false; then :
3987 $as_echo_n "(cached) " >&6
3988else
3989 ac_save_c_werror_flag=$ac_c_werror_flag
3990 ac_c_werror_flag=yes
3991 ac_cv_prog_cc_g=no
3992 CFLAGS="-g"
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994/* end confdefs.h. */
3995
3996int
3997main ()
3998{
3999
4000 ;
4001 return 0;
4002}
4003_ACEOF
4004if ac_fn_c_try_compile "$LINENO"; then :
4005 ac_cv_prog_cc_g=yes
4006else
4007 CFLAGS=""
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h. */
4010
4011int
4012main ()
4013{
4014
4015 ;
4016 return 0;
4017}
4018_ACEOF
4019if ac_fn_c_try_compile "$LINENO"; then :
4020
4021else
4022 ac_c_werror_flag=$ac_save_c_werror_flag
4023 CFLAGS="-g"
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025/* end confdefs.h. */
4026
4027int
4028main ()
4029{
4030
4031 ;
4032 return 0;
4033}
4034_ACEOF
4035if ac_fn_c_try_compile "$LINENO"; then :
4036 ac_cv_prog_cc_g=yes
4037fi
4038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039fi
4040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041fi
4042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 ac_c_werror_flag=$ac_save_c_werror_flag
4044fi
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4046$as_echo "$ac_cv_prog_cc_g" >&6; }
4047if test "$ac_test_CFLAGS" = set; then
4048 CFLAGS=$ac_save_CFLAGS
4049elif test $ac_cv_prog_cc_g = yes; then
4050 if test "$GCC" = yes; then
4051 CFLAGS="-g -O2"
4052 else
4053 CFLAGS="-g"
4054 fi
4055else
4056 if test "$GCC" = yes; then
4057 CFLAGS="-O2"
4058 else
4059 CFLAGS=
4060 fi
4061fi
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4063$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4064if ${ac_cv_prog_cc_c89+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066else
4067 ac_cv_prog_cc_c89=no
4068ac_save_CC=$CC
4069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070/* end confdefs.h. */
4071#include <stdarg.h>
4072#include <stdio.h>
4073struct stat;
4074/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4075struct buf { int x; };
4076FILE * (*rcsopen) (struct buf *, struct stat *, int);
4077static char *e (p, i)
4078 char **p;
4079 int i;
4080{
4081 return p[i];
4082}
4083static char *f (char * (*g) (char **, int), char **p, ...)
4084{
4085 char *s;
4086 va_list v;
4087 va_start (v,p);
4088 s = g (p, va_arg (v,int));
4089 va_end (v);
4090 return s;
4091}
4092
4093/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4094 function prototypes and stuff, but not '\xHH' hex character constants.
4095 These don't provoke an error unfortunately, instead are silently treated
4096 as 'x'. The following induces an error, until -std is added to get
4097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4098 array size at least. It's necessary to write '\x00'==0 to get something
4099 that's true only with -std. */
4100int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4101
4102/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4103 inside strings and character constants. */
4104#define FOO(x) 'x'
4105int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4106
4107int test (int i, double x);
4108struct s1 {int (*f) (int a);};
4109struct s2 {int (*f) (double a);};
4110int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4111int argc;
4112char **argv;
4113int
4114main ()
4115{
4116return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4117 ;
4118 return 0;
4119}
4120_ACEOF
4121for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4122 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4123do
4124 CC="$ac_save_CC $ac_arg"
4125 if ac_fn_c_try_compile "$LINENO"; then :
4126 ac_cv_prog_cc_c89=$ac_arg
4127fi
4128rm -f core conftest.err conftest.$ac_objext
4129 test "x$ac_cv_prog_cc_c89" != "xno" && break
4130done
4131rm -f conftest.$ac_ext
4132CC=$ac_save_CC
4133
4134fi
4135# AC_CACHE_VAL
4136case "x$ac_cv_prog_cc_c89" in
4137 x)
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4139$as_echo "none needed" >&6; } ;;
4140 xno)
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4142$as_echo "unsupported" >&6; } ;;
4143 *)
4144 CC="$CC $ac_cv_prog_cc_c89"
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4146$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4147esac
4148if test "x$ac_cv_prog_cc_c89" != xno; then :
4149
4150fi
4151
4152ac_ext=c
4153ac_cpp='$CPP $CPPFLAGS'
4154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157
4158ac_ext=c
4159ac_cpp='$CPP $CPPFLAGS'
4160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4164$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4165if ${am_cv_prog_cc_c_o+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167else
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h. */
4170
4171int
4172main ()
4173{
4174
4175 ;
4176 return 0;
4177}
4178_ACEOF
4179 # Make sure it works both with $CC and with simple cc.
4180 # Following AC_PROG_CC_C_O, we do the test twice because some
4181 # compilers refuse to overwrite an existing .o file with -o,
4182 # though they will create one.
4183 am_cv_prog_cc_c_o=yes
4184 for am_i in 1 2; do
4185 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4186 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } \
4190 && test -f conftest2.$ac_objext; then
4191 : OK
4192 else
4193 am_cv_prog_cc_c_o=no
4194 break
4195 fi
4196 done
4197 rm -f core conftest*
4198 unset am_i
4199fi
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4201$as_echo "$am_cv_prog_cc_c_o" >&6; }
4202if test "$am_cv_prog_cc_c_o" != yes; then
4203 # Losing compiler, so override with the script.
4204 # FIXME: It is wrong to rewrite CC.
4205 # But if we don't then we get into trouble of one sort or another.
4206 # A longer-term fix would be to have automake use am__CC in this case,
4207 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4208 CC="$am_aux_dir/compile $CC"
4209fi
4210ac_ext=c
4211ac_cpp='$CPP $CPPFLAGS'
4212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215
4216
4217depcc="$CC" am_compiler_list=
4218
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4220$as_echo_n "checking dependency style of $depcc... " >&6; }
4221if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4222 $as_echo_n "(cached) " >&6
4223else
4224 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4225 # We make a subdir and do the tests there. Otherwise we can end up
4226 # making bogus files that we don't know about and never remove. For
4227 # instance it was reported that on HP-UX the gcc test will end up
4228 # making a dummy file named 'D' -- because '-MD' means "put the output
4229 # in D".
4230 rm -rf conftest.dir
4231 mkdir conftest.dir
4232 # Copy depcomp to subdir because otherwise we won't find it if we're
4233 # using a relative directory.
4234 cp "$am_depcomp" conftest.dir
4235 cd conftest.dir
4236 # We will build objects and dependencies in a subdirectory because
4237 # it helps to detect inapplicable dependency modes. For instance
4238 # both Tru64's cc and ICC support -MD to output dependencies as a
4239 # side effect of compilation, but ICC will put the dependencies in
4240 # the current directory while Tru64 will put them in the object
4241 # directory.
4242 mkdir sub
4243
4244 am_cv_CC_dependencies_compiler_type=none
4245 if test "$am_compiler_list" = ""; then
4246 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4247 fi
4248 am__universal=false
4249 case " $depcc " in #(
4250 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4251 esac
4252
4253 for depmode in $am_compiler_list; do
4254 # Setup a source with many dependencies, because some compilers
4255 # like to wrap large dependency lists on column 80 (with \), and
4256 # we should not choose a depcomp mode which is confused by this.
4257 #
4258 # We need to recreate these files for each test, as the compiler may
4259 # overwrite some of them when testing with obscure command lines.
4260 # This happens at least with the AIX C compiler.
4261 : > sub/conftest.c
4262 for i in 1 2 3 4 5 6; do
4263 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4264 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4265 # Solaris 10 /bin/sh.
4266 echo '/* dummy */' > sub/conftst$i.h
4267 done
4268 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4269
4270 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4271 # mode. It turns out that the SunPro C++ compiler does not properly
4272 # handle '-M -o', and we need to detect this. Also, some Intel
4273 # versions had trouble with output in subdirs.
4274 am__obj=sub/conftest.${OBJEXT-o}
4275 am__minus_obj="-o $am__obj"
4276 case $depmode in
4277 gcc)
4278 # This depmode causes a compiler race in universal mode.
4279 test "$am__universal" = false || continue
4280 ;;
4281 nosideeffect)
4282 # After this tag, mechanisms are not by side-effect, so they'll
4283 # only be used when explicitly requested.
4284 if test "x$enable_dependency_tracking" = xyes; then
4285 continue
4286 else
4287 break
4288 fi
4289 ;;
4290 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4291 # This compiler won't grok '-c -o', but also, the minuso test has
4292 # not run yet. These depmodes are late enough in the game, and
4293 # so weak that their functioning should not be impacted.
4294 am__obj=conftest.${OBJEXT-o}
4295 am__minus_obj=
4296 ;;
4297 none) break ;;
4298 esac
4299 if depmode=$depmode \
4300 source=sub/conftest.c object=$am__obj \
4301 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4302 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4303 >/dev/null 2>conftest.err &&
4304 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4305 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4306 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4307 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4308 # icc doesn't choke on unknown options, it will just issue warnings
4309 # or remarks (even with -Werror). So we grep stderr for any message
4310 # that says an option was ignored or not supported.
4311 # When given -MP, icc 7.0 and 7.1 complain thusly:
4312 # icc: Command line warning: ignoring option '-M'; no argument required
4313 # The diagnosis changed in icc 8.0:
4314 # icc: Command line remark: option '-MP' not supported
4315 if (grep 'ignoring option' conftest.err ||
4316 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4317 am_cv_CC_dependencies_compiler_type=$depmode
4318 break
4319 fi
4320 fi
4321 done
4322
4323 cd ..
4324 rm -rf conftest.dir
4325else
4326 am_cv_CC_dependencies_compiler_type=none
4327fi
4328
4329fi
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4331$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4332CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4333
4334 if
4335 test "x$enable_dependency_tracking" != xno \
4336 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4337 am__fastdepCC_TRUE=
4338 am__fastdepCC_FALSE='#'
4339else
4340 am__fastdepCC_TRUE='#'
4341 am__fastdepCC_FALSE=
4342fi
4343
4344
4345
4346if test -n "$ac_tool_prefix"; then
4347 for ac_prog in ar lib "link -lib"
4348 do
4349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4350set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352$as_echo_n "checking for $ac_word... " >&6; }
4353if ${ac_cv_prog_AR+:} false; then :
4354 $as_echo_n "(cached) " >&6
4355else
4356 if test -n "$AR"; then
4357 ac_cv_prog_AR="$AR" # Let the user override the test.
4358else
4359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360for as_dir in $PATH
4361do
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4369 fi
4370done
4371 done
4372IFS=$as_save_IFS
4373
4374fi
4375fi
4376AR=$ac_cv_prog_AR
4377if test -n "$AR"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4379$as_echo "$AR" >&6; }
4380else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382$as_echo "no" >&6; }
4383fi
4384
4385
4386 test -n "$AR" && break
4387 done
4388fi
4389if test -z "$AR"; then
4390 ac_ct_AR=$AR
4391 for ac_prog in ar lib "link -lib"
4392do
4393 # Extract the first word of "$ac_prog", so it can be a program name with args.
4394set dummy $ac_prog; ac_word=$2
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396$as_echo_n "checking for $ac_word... " >&6; }
4397if ${ac_cv_prog_ac_ct_AR+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399else
4400 if test -n "$ac_ct_AR"; then
4401 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4402else
4403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH
4405do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_ac_ct_AR="$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414done
4415 done
4416IFS=$as_save_IFS
4417
4418fi
4419fi
4420ac_ct_AR=$ac_cv_prog_ac_ct_AR
4421if test -n "$ac_ct_AR"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4423$as_echo "$ac_ct_AR" >&6; }
4424else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426$as_echo "no" >&6; }
4427fi
4428
4429
4430 test -n "$ac_ct_AR" && break
4431done
4432
4433 if test "x$ac_ct_AR" = x; then
4434 AR="false"
4435 else
4436 case $cross_compiling:$ac_tool_warned in
4437yes:)
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4440ac_tool_warned=yes ;;
4441esac
4442 AR=$ac_ct_AR
4443 fi
4444fi
4445
4446: ${AR=ar}
4447
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4449$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4450if ${am_cv_ar_interface+:} false; then :
4451 $as_echo_n "(cached) " >&6
4452else
4453 ac_ext=c
4454ac_cpp='$CPP $CPPFLAGS'
4455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457ac_compiler_gnu=$ac_cv_c_compiler_gnu
4458
4459 am_cv_ar_interface=ar
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461/* end confdefs.h. */
4462int some_variable = 0;
4463_ACEOF
4464if ac_fn_c_try_compile "$LINENO"; then :
4465 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4467 (eval $am_ar_try) 2>&5
4468 ac_status=$?
4469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4470 test $ac_status = 0; }
4471 if test "$ac_status" -eq 0; then
4472 am_cv_ar_interface=ar
4473 else
4474 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4476 (eval $am_ar_try) 2>&5
4477 ac_status=$?
4478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479 test $ac_status = 0; }
4480 if test "$ac_status" -eq 0; then
4481 am_cv_ar_interface=lib
4482 else
4483 am_cv_ar_interface=unknown
4484 fi
4485 fi
4486 rm -f conftest.lib libconftest.a
4487
4488fi
4489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 ac_ext=c
4491ac_cpp='$CPP $CPPFLAGS'
4492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4494ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495
4496fi
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4498$as_echo "$am_cv_ar_interface" >&6; }
4499
4500case $am_cv_ar_interface in
4501ar)
4502 ;;
4503lib)
4504 # Microsoft lib, so override with the ar-lib wrapper script.
4505 # FIXME: It is wrong to rewrite AR.
4506 # But if we don't then we get into trouble of one sort or another.
4507 # A longer-term fix would be to have automake use am__AR in this case,
4508 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4509 # similar.
4510 AR="$am_aux_dir/ar-lib $AR"
4511 ;;
4512unknown)
4513 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4514 ;;
4515esac
4516
4517
4518case `pwd` in
4519 *\ * | *\ *)
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4521$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4522esac
4523
4524
4525
4526macro_version='2.4.2'
4527macro_revision='1.3337'
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541ltmain="$ac_aux_dir/ltmain.sh"
4542
4543# Make sure we can run config.sub.
4544$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4545 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4546
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4548$as_echo_n "checking build system type... " >&6; }
4549if ${ac_cv_build+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551else
4552 ac_build_alias=$build_alias
4553test "x$ac_build_alias" = x &&
4554 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4555test "x$ac_build_alias" = x &&
4556 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4557ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4558 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4559
4560fi
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4562$as_echo "$ac_cv_build" >&6; }
4563case $ac_cv_build in
4564*-*-*) ;;
4565*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4566esac
4567build=$ac_cv_build
4568ac_save_IFS=$IFS; IFS='-'
4569set x $ac_cv_build
4570shift
4571build_cpu=$1
4572build_vendor=$2
4573shift; shift
4574# Remember, the first character of IFS is used to create $*,
4575# except with old shells:
4576build_os=$*
4577IFS=$ac_save_IFS
4578case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4579
4580
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4582$as_echo_n "checking host system type... " >&6; }
4583if ${ac_cv_host+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585else
4586 if test "x$host_alias" = x; then
4587 ac_cv_host=$ac_cv_build
4588else
4589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4590 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4591fi
4592
4593fi
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4595$as_echo "$ac_cv_host" >&6; }
4596case $ac_cv_host in
4597*-*-*) ;;
4598*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4599esac
4600host=$ac_cv_host
4601ac_save_IFS=$IFS; IFS='-'
4602set x $ac_cv_host
4603shift
4604host_cpu=$1
4605host_vendor=$2
4606shift; shift
4607# Remember, the first character of IFS is used to create $*,
4608# except with old shells:
4609host_os=$*
4610IFS=$ac_save_IFS
4611case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4612
4613
4614# Backslashify metacharacters that are still active within
4615# double-quoted strings.
4616sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4617
4618# Same as above, but do not quote variable references.
4619double_quote_subst='s/\(["`\\]\)/\\\1/g'
4620
4621# Sed substitution to delay expansion of an escaped shell variable in a
4622# double_quote_subst'ed string.
4623delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4624
4625# Sed substitution to delay expansion of an escaped single quote.
4626delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4627
4628# Sed substitution to avoid accidental globbing in evaled expressions
4629no_glob_subst='s/\*/\\\*/g'
4630
4631ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4632ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4633ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4634
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4636$as_echo_n "checking how to print strings... " >&6; }
4637# Test print first, because it will be a builtin if present.
4638if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4639 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4640 ECHO='print -r --'
4641elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4642 ECHO='printf %s\n'
4643else
4644 # Use this function as a fallback that always works.
4645 func_fallback_echo ()
4646 {
4647 eval 'cat <<_LTECHO_EOF
4648$1
4649_LTECHO_EOF'
4650 }
4651 ECHO='func_fallback_echo'
4652fi
4653
4654# func_echo_all arg...
4655# Invoke $ECHO with all args, space-separated.
4656func_echo_all ()
4657{
4658 $ECHO ""
4659}
4660
4661case "$ECHO" in
4662 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4663$as_echo "printf" >&6; } ;;
4664 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4665$as_echo "print -r" >&6; } ;;
4666 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4667$as_echo "cat" >&6; } ;;
4668esac
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4684$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4685if ${ac_cv_path_SED+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687else
4688 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4689 for ac_i in 1 2 3 4 5 6 7; do
4690 ac_script="$ac_script$as_nl$ac_script"
4691 done
4692 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4693 { ac_script=; unset ac_script;}
4694 if test -z "$SED"; then
4695 ac_path_SED_found=false
4696 # Loop through the user's path and test for each of PROGNAME-LIST
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_prog in sed gsed; do
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4705 as_fn_executable_p "$ac_path_SED" || continue
4706# Check for GNU ac_path_SED and select it if it is found.
4707 # Check for GNU $ac_path_SED
4708case `"$ac_path_SED" --version 2>&1` in
4709*GNU*)
4710 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4711*)
4712 ac_count=0
4713 $as_echo_n 0123456789 >"conftest.in"
4714 while :
4715 do
4716 cat "conftest.in" "conftest.in" >"conftest.tmp"
4717 mv "conftest.tmp" "conftest.in"
4718 cp "conftest.in" "conftest.nl"
4719 $as_echo '' >> "conftest.nl"
4720 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4722 as_fn_arith $ac_count + 1 && ac_count=$as_val
4723 if test $ac_count -gt ${ac_path_SED_max-0}; then
4724 # Best one so far, save it but keep looking for a better one
4725 ac_cv_path_SED="$ac_path_SED"
4726 ac_path_SED_max=$ac_count
4727 fi
4728 # 10*(2^10) chars as input seems more than enough
4729 test $ac_count -gt 10 && break
4730 done
4731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4732esac
4733
4734 $ac_path_SED_found && break 3
4735 done
4736 done
4737 done
4738IFS=$as_save_IFS
4739 if test -z "$ac_cv_path_SED"; then
4740 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4741 fi
4742else
4743 ac_cv_path_SED=$SED
4744fi
4745
4746fi
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4748$as_echo "$ac_cv_path_SED" >&6; }
4749 SED="$ac_cv_path_SED"
4750 rm -f conftest.sed
4751
4752test -z "$SED" && SED=sed
4753Xsed="$SED -e 1s/^X//"
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4766$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4767if ${ac_cv_path_GREP+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769else
4770 if test -z "$GREP"; then
4771 ac_path_GREP_found=false
4772 # Loop through the user's path and test for each of PROGNAME-LIST
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4775do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_prog in grep ggrep; do
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4781 as_fn_executable_p "$ac_path_GREP" || continue
4782# Check for GNU ac_path_GREP and select it if it is found.
4783 # Check for GNU $ac_path_GREP
4784case `"$ac_path_GREP" --version 2>&1` in
4785*GNU*)
4786 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4787*)
4788 ac_count=0
4789 $as_echo_n 0123456789 >"conftest.in"
4790 while :
4791 do
4792 cat "conftest.in" "conftest.in" >"conftest.tmp"
4793 mv "conftest.tmp" "conftest.in"
4794 cp "conftest.in" "conftest.nl"
4795 $as_echo 'GREP' >> "conftest.nl"
4796 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4798 as_fn_arith $ac_count + 1 && ac_count=$as_val
4799 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4800 # Best one so far, save it but keep looking for a better one
4801 ac_cv_path_GREP="$ac_path_GREP"
4802 ac_path_GREP_max=$ac_count
4803 fi
4804 # 10*(2^10) chars as input seems more than enough
4805 test $ac_count -gt 10 && break
4806 done
4807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4808esac
4809
4810 $ac_path_GREP_found && break 3
4811 done
4812 done
4813 done
4814IFS=$as_save_IFS
4815 if test -z "$ac_cv_path_GREP"; then
4816 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4817 fi
4818else
4819 ac_cv_path_GREP=$GREP
4820fi
4821
4822fi
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4824$as_echo "$ac_cv_path_GREP" >&6; }
4825 GREP="$ac_cv_path_GREP"
4826
4827
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4829$as_echo_n "checking for egrep... " >&6; }
4830if ${ac_cv_path_EGREP+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832else
4833 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4834 then ac_cv_path_EGREP="$GREP -E"
4835 else
4836 if test -z "$EGREP"; then
4837 ac_path_EGREP_found=false
4838 # Loop through the user's path and test for each of PROGNAME-LIST
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4841do
4842 IFS=$as_save_IFS
4843 test -z "$as_dir" && as_dir=.
4844 for ac_prog in egrep; do
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4847 as_fn_executable_p "$ac_path_EGREP" || continue
4848# Check for GNU ac_path_EGREP and select it if it is found.
4849 # Check for GNU $ac_path_EGREP
4850case `"$ac_path_EGREP" --version 2>&1` in
4851*GNU*)
4852 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4853*)
4854 ac_count=0
4855 $as_echo_n 0123456789 >"conftest.in"
4856 while :
4857 do
4858 cat "conftest.in" "conftest.in" >"conftest.tmp"
4859 mv "conftest.tmp" "conftest.in"
4860 cp "conftest.in" "conftest.nl"
4861 $as_echo 'EGREP' >> "conftest.nl"
4862 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4864 as_fn_arith $ac_count + 1 && ac_count=$as_val
4865 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4866 # Best one so far, save it but keep looking for a better one
4867 ac_cv_path_EGREP="$ac_path_EGREP"
4868 ac_path_EGREP_max=$ac_count
4869 fi
4870 # 10*(2^10) chars as input seems more than enough
4871 test $ac_count -gt 10 && break
4872 done
4873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4874esac
4875
4876 $ac_path_EGREP_found && break 3
4877 done
4878 done
4879 done
4880IFS=$as_save_IFS
4881 if test -z "$ac_cv_path_EGREP"; then
4882 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4883 fi
4884else
4885 ac_cv_path_EGREP=$EGREP
4886fi
4887
4888 fi
4889fi
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4891$as_echo "$ac_cv_path_EGREP" >&6; }
4892 EGREP="$ac_cv_path_EGREP"
4893
4894
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4896$as_echo_n "checking for fgrep... " >&6; }
4897if ${ac_cv_path_FGREP+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899else
4900 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4901 then ac_cv_path_FGREP="$GREP -F"
4902 else
4903 if test -z "$FGREP"; then
4904 ac_path_FGREP_found=false
4905 # Loop through the user's path and test for each of PROGNAME-LIST
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4908do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_prog in fgrep; do
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4914 as_fn_executable_p "$ac_path_FGREP" || continue
4915# Check for GNU ac_path_FGREP and select it if it is found.
4916 # Check for GNU $ac_path_FGREP
4917case `"$ac_path_FGREP" --version 2>&1` in
4918*GNU*)
4919 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4920*)
4921 ac_count=0
4922 $as_echo_n 0123456789 >"conftest.in"
4923 while :
4924 do
4925 cat "conftest.in" "conftest.in" >"conftest.tmp"
4926 mv "conftest.tmp" "conftest.in"
4927 cp "conftest.in" "conftest.nl"
4928 $as_echo 'FGREP' >> "conftest.nl"
4929 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4931 as_fn_arith $ac_count + 1 && ac_count=$as_val
4932 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4933 # Best one so far, save it but keep looking for a better one
4934 ac_cv_path_FGREP="$ac_path_FGREP"
4935 ac_path_FGREP_max=$ac_count
4936 fi
4937 # 10*(2^10) chars as input seems more than enough
4938 test $ac_count -gt 10 && break
4939 done
4940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4941esac
4942
4943 $ac_path_FGREP_found && break 3
4944 done
4945 done
4946 done
4947IFS=$as_save_IFS
4948 if test -z "$ac_cv_path_FGREP"; then
4949 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4950 fi
4951else
4952 ac_cv_path_FGREP=$FGREP
4953fi
4954
4955 fi
4956fi
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4958$as_echo "$ac_cv_path_FGREP" >&6; }
4959 FGREP="$ac_cv_path_FGREP"
4960
4961
4962test -z "$GREP" && GREP=grep
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982# Check whether --with-gnu-ld was given.
4983if test "${with_gnu_ld+set}" = set; then :
4984 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4985else
4986 with_gnu_ld=no
4987fi
4988
4989ac_prog=ld
4990if test "$GCC" = yes; then
4991 # Check if gcc -print-prog-name=ld gives a path.
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4993$as_echo_n "checking for ld used by $CC... " >&6; }
4994 case $host in
4995 *-*-mingw*)
4996 # gcc leaves a trailing carriage return which upsets mingw
4997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4998 *)
4999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5000 esac
5001 case $ac_prog in
5002 # Accept absolute paths.
5003 [\\/]* | ?:[\\/]*)
5004 re_direlt='/[^/][^/]*/\.\./'
5005 # Canonicalize the pathname of ld
5006 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5007 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5008 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5009 done
5010 test -z "$LD" && LD="$ac_prog"
5011 ;;
5012 "")
5013 # If it fails, then pretend we aren't using GCC.
5014 ac_prog=ld
5015 ;;
5016 *)
5017 # If it is relative, then search for the first ld in PATH.
5018 with_gnu_ld=unknown
5019 ;;
5020 esac
5021elif test "$with_gnu_ld" = yes; then
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5023$as_echo_n "checking for GNU ld... " >&6; }
5024else
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5026$as_echo_n "checking for non-GNU ld... " >&6; }
5027fi
5028if ${lt_cv_path_LD+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030else
5031 if test -z "$LD"; then
5032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5033 for ac_dir in $PATH; do
5034 IFS="$lt_save_ifs"
5035 test -z "$ac_dir" && ac_dir=.
5036 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5037 lt_cv_path_LD="$ac_dir/$ac_prog"
5038 # Check to see if the program is GNU ld. I'd rather use --version,
5039 # but apparently some variants of GNU ld only accept -v.
5040 # Break only if it was the GNU/non-GNU ld that we prefer.
5041 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5042 *GNU* | *'with BFD'*)
5043 test "$with_gnu_ld" != no && break
5044 ;;
5045 *)
5046 test "$with_gnu_ld" != yes && break
5047 ;;
5048 esac
5049 fi
5050 done
5051 IFS="$lt_save_ifs"
5052else
5053 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5054fi
5055fi
5056
5057LD="$lt_cv_path_LD"
5058if test -n "$LD"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5060$as_echo "$LD" >&6; }
5061else
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063$as_echo "no" >&6; }
5064fi
5065test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5067$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5068if ${lt_cv_prog_gnu_ld+:} false; then :
5069 $as_echo_n "(cached) " >&6
5070else
5071 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5072case `$LD -v 2>&1 </dev/null` in
5073*GNU* | *'with BFD'*)
5074 lt_cv_prog_gnu_ld=yes
5075 ;;
5076*)
5077 lt_cv_prog_gnu_ld=no
5078 ;;
5079esac
5080fi
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5082$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5083with_gnu_ld=$lt_cv_prog_gnu_ld
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5094$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5095if ${lt_cv_path_NM+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097else
5098 if test -n "$NM"; then
5099 # Let the user override the test.
5100 lt_cv_path_NM="$NM"
5101else
5102 lt_nm_to_check="${ac_tool_prefix}nm"
5103 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5104 lt_nm_to_check="$lt_nm_to_check nm"
5105 fi
5106 for lt_tmp_nm in $lt_nm_to_check; do
5107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5108 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5109 IFS="$lt_save_ifs"
5110 test -z "$ac_dir" && ac_dir=.
5111 tmp_nm="$ac_dir/$lt_tmp_nm"
5112 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5113 # Check to see if the nm accepts a BSD-compat flag.
5114 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5115 # nm: unknown option "B" ignored
5116 # Tru64's nm complains that /dev/null is an invalid object file
5117 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5118 */dev/null* | *'Invalid file or object type'*)
5119 lt_cv_path_NM="$tmp_nm -B"
5120 break
5121 ;;
5122 *)
5123 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5124 */dev/null*)
5125 lt_cv_path_NM="$tmp_nm -p"
5126 break
5127 ;;
5128 *)
5129 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5130 continue # so that we can try to find one that supports BSD flags
5131 ;;
5132 esac
5133 ;;
5134 esac
5135 fi
5136 done
5137 IFS="$lt_save_ifs"
5138 done
5139 : ${lt_cv_path_NM=no}
5140fi
5141fi
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5143$as_echo "$lt_cv_path_NM" >&6; }
5144if test "$lt_cv_path_NM" != "no"; then
5145 NM="$lt_cv_path_NM"
5146else
5147 # Didn't find any BSD compatible name lister, look for dumpbin.
5148 if test -n "$DUMPBIN"; then :
5149 # Let the user override the test.
5150 else
5151 if test -n "$ac_tool_prefix"; then
5152 for ac_prog in dumpbin "link -dump"
5153 do
5154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5155set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157$as_echo_n "checking for $ac_word... " >&6; }
5158if ${ac_cv_prog_DUMPBIN+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160else
5161 if test -n "$DUMPBIN"; then
5162 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5163else
5164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH
5166do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5174 fi
5175done
5176 done
5177IFS=$as_save_IFS
5178
5179fi
5180fi
5181DUMPBIN=$ac_cv_prog_DUMPBIN
5182if test -n "$DUMPBIN"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5184$as_echo "$DUMPBIN" >&6; }
5185else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187$as_echo "no" >&6; }
5188fi
5189
5190
5191 test -n "$DUMPBIN" && break
5192 done
5193fi
5194if test -z "$DUMPBIN"; then
5195 ac_ct_DUMPBIN=$DUMPBIN
5196 for ac_prog in dumpbin "link -dump"
5197do
5198 # Extract the first word of "$ac_prog", so it can be a program name with args.
5199set dummy $ac_prog; ac_word=$2
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201$as_echo_n "checking for $ac_word... " >&6; }
5202if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204else
5205 if test -n "$ac_ct_DUMPBIN"; then
5206 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5207else
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5218 fi
5219done
5220 done
5221IFS=$as_save_IFS
5222
5223fi
5224fi
5225ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5226if test -n "$ac_ct_DUMPBIN"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5228$as_echo "$ac_ct_DUMPBIN" >&6; }
5229else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231$as_echo "no" >&6; }
5232fi
5233
5234
5235 test -n "$ac_ct_DUMPBIN" && break
5236done
5237
5238 if test "x$ac_ct_DUMPBIN" = x; then
5239 DUMPBIN=":"
5240 else
5241 case $cross_compiling:$ac_tool_warned in
5242yes:)
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5245ac_tool_warned=yes ;;
5246esac
5247 DUMPBIN=$ac_ct_DUMPBIN
5248 fi
5249fi
5250
5251 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5252 *COFF*)
5253 DUMPBIN="$DUMPBIN -symbols"
5254 ;;
5255 *)
5256 DUMPBIN=:
5257 ;;
5258 esac
5259 fi
5260
5261 if test "$DUMPBIN" != ":"; then
5262 NM="$DUMPBIN"
5263 fi
5264fi
5265test -z "$NM" && NM=nm
5266
5267
5268
5269
5270
5271
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5273$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5274if ${lt_cv_nm_interface+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276else
5277 lt_cv_nm_interface="BSD nm"
5278 echo "int some_variable = 0;" > conftest.$ac_ext
5279 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5280 (eval "$ac_compile" 2>conftest.err)
5281 cat conftest.err >&5
5282 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5283 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5284 cat conftest.err >&5
5285 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5286 cat conftest.out >&5
5287 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5288 lt_cv_nm_interface="MS dumpbin"
5289 fi
5290 rm -f conftest*
5291fi
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5293$as_echo "$lt_cv_nm_interface" >&6; }
5294
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5296$as_echo_n "checking whether ln -s works... " >&6; }
5297LN_S=$as_ln_s
5298if test "$LN_S" = "ln -s"; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5300$as_echo "yes" >&6; }
5301else
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5303$as_echo "no, using $LN_S" >&6; }
5304fi
5305
5306# find the maximum length of command line arguments
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5308$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5309if ${lt_cv_sys_max_cmd_len+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311else
5312 i=0
5313 teststring="ABCD"
5314
5315 case $build_os in
5316 msdosdjgpp*)
5317 # On DJGPP, this test can blow up pretty badly due to problems in libc
5318 # (any single argument exceeding 2000 bytes causes a buffer overrun
5319 # during glob expansion). Even if it were fixed, the result of this
5320 # check would be larger than it should be.
5321 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5322 ;;
5323
5324 gnu*)
5325 # Under GNU Hurd, this test is not required because there is
5326 # no limit to the length of command line arguments.
5327 # Libtool will interpret -1 as no limit whatsoever
5328 lt_cv_sys_max_cmd_len=-1;
5329 ;;
5330
5331 cygwin* | mingw* | cegcc*)
5332 # On Win9x/ME, this test blows up -- it succeeds, but takes
5333 # about 5 minutes as the teststring grows exponentially.
5334 # Worse, since 9x/ME are not pre-emptively multitasking,
5335 # you end up with a "frozen" computer, even though with patience
5336 # the test eventually succeeds (with a max line length of 256k).
5337 # Instead, let's just punt: use the minimum linelength reported by
5338 # all of the supported platforms: 8192 (on NT/2K/XP).
5339 lt_cv_sys_max_cmd_len=8192;
5340 ;;
5341
5342 mint*)
5343 # On MiNT this can take a long time and run out of memory.
5344 lt_cv_sys_max_cmd_len=8192;
5345 ;;
5346
5347 amigaos*)
5348 # On AmigaOS with pdksh, this test takes hours, literally.
5349 # So we just punt and use a minimum line length of 8192.
5350 lt_cv_sys_max_cmd_len=8192;
5351 ;;
5352
5353 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5354 # This has been around since 386BSD, at least. Likely further.
5355 if test -x /sbin/sysctl; then
5356 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5357 elif test -x /usr/sbin/sysctl; then
5358 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5359 else
5360 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5361 fi
5362 # And add a safety zone
5363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5365 ;;
5366
5367 interix*)
5368 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5369 lt_cv_sys_max_cmd_len=196608
5370 ;;
5371
5372 os2*)
5373 # The test takes a long time on OS/2.
5374 lt_cv_sys_max_cmd_len=8192
5375 ;;
5376
5377 osf*)
5378 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5379 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5380 # nice to cause kernel panics so lets avoid the loop below.
5381 # First set a reasonable default.
5382 lt_cv_sys_max_cmd_len=16384
5383 #
5384 if test -x /sbin/sysconfig; then
5385 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5386 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5387 esac
5388 fi
5389 ;;
5390 sco3.2v5*)
5391 lt_cv_sys_max_cmd_len=102400
5392 ;;
5393 sysv5* | sco5v6* | sysv4.2uw2*)
5394 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5395 if test -n "$kargmax"; then
5396 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5397 else
5398 lt_cv_sys_max_cmd_len=32768
5399 fi
5400 ;;
5401 *)
5402 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5403 if test -n "$lt_cv_sys_max_cmd_len" && \
5404 test undefined != "$lt_cv_sys_max_cmd_len"; then
5405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5407 else
5408 # Make teststring a little bigger before we do anything with it.
5409 # a 1K string should be a reasonable start.
5410 for i in 1 2 3 4 5 6 7 8 ; do
5411 teststring=$teststring$teststring
5412 done
5413 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5414 # If test is not a shell built-in, we'll probably end up computing a
5415 # maximum length that is only half of the actual maximum length, but
5416 # we can't tell.
5417 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5418 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5419 test $i != 17 # 1/2 MB should be enough
5420 do
5421 i=`expr $i + 1`
5422 teststring=$teststring$teststring
5423 done
5424 # Only check the string length outside the loop.
5425 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5426 teststring=
5427 # Add a significant safety factor because C++ compilers can tack on
5428 # massive amounts of additional arguments before passing them to the
5429 # linker. It appears as though 1/2 is a usable value.
5430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5431 fi
5432 ;;
5433 esac
5434
5435fi
5436
5437if test -n $lt_cv_sys_max_cmd_len ; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5439$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5440else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5442$as_echo "none" >&6; }
5443fi
5444max_cmd_len=$lt_cv_sys_max_cmd_len
5445
5446
5447
5448
5449
5450
5451: ${CP="cp -f"}
5452: ${MV="mv -f"}
5453: ${RM="rm -f"}
5454
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5456$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5457# Try some XSI features
5458xsi_shell=no
5459( _lt_dummy="a/b/c"
5460 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5461 = c,a/b,b/c, \
5462 && eval 'test $(( 1 + 1 )) -eq 2 \
5463 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5464 && xsi_shell=yes
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5466$as_echo "$xsi_shell" >&6; }
5467
5468
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5470$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5471lt_shell_append=no
5472( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5473 >/dev/null 2>&1 \
5474 && lt_shell_append=yes
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5476$as_echo "$lt_shell_append" >&6; }
5477
5478
5479if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5480 lt_unset=unset
5481else
5482 lt_unset=false
5483fi
5484
5485
5486
5487
5488
5489# test EBCDIC or ASCII
5490case `echo X|tr X '\101'` in
5491 A) # ASCII based system
5492 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5493 lt_SP2NL='tr \040 \012'
5494 lt_NL2SP='tr \015\012 \040\040'
5495 ;;
5496 *) # EBCDIC based system
5497 lt_SP2NL='tr \100 \n'
5498 lt_NL2SP='tr \r\n \100\100'
5499 ;;
5500esac
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5511$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5512if ${lt_cv_to_host_file_cmd+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514else
5515 case $host in
5516 *-*-mingw* )
5517 case $build in
5518 *-*-mingw* ) # actually msys
5519 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5520 ;;
5521 *-*-cygwin* )
5522 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5523 ;;
5524 * ) # otherwise, assume *nix
5525 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5526 ;;
5527 esac
5528 ;;
5529 *-*-cygwin* )
5530 case $build in
5531 *-*-mingw* ) # actually msys
5532 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5533 ;;
5534 *-*-cygwin* )
5535 lt_cv_to_host_file_cmd=func_convert_file_noop
5536 ;;
5537 * ) # otherwise, assume *nix
5538 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5539 ;;
5540 esac
5541 ;;
5542 * ) # unhandled hosts (and "normal" native builds)
5543 lt_cv_to_host_file_cmd=func_convert_file_noop
5544 ;;
5545esac
5546
5547fi
5548
5549to_host_file_cmd=$lt_cv_to_host_file_cmd
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5551$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5552
5553
5554
5555
5556
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5558$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5559if ${lt_cv_to_tool_file_cmd+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561else
5562 #assume ordinary cross tools, or native build.
5563lt_cv_to_tool_file_cmd=func_convert_file_noop
5564case $host in
5565 *-*-mingw* )
5566 case $build in
5567 *-*-mingw* ) # actually msys
5568 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5569 ;;
5570 esac
5571 ;;
5572esac
5573
5574fi
5575
5576to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5578$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5579
5580
5581
5582
5583
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5585$as_echo_n "checking for $LD option to reload object files... " >&6; }
5586if ${lt_cv_ld_reload_flag+:} false; then :
5587 $as_echo_n "(cached) " >&6
5588else
5589 lt_cv_ld_reload_flag='-r'
5590fi
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5592$as_echo "$lt_cv_ld_reload_flag" >&6; }
5593reload_flag=$lt_cv_ld_reload_flag
5594case $reload_flag in
5595"" | " "*) ;;
5596*) reload_flag=" $reload_flag" ;;
5597esac
5598reload_cmds='$LD$reload_flag -o $output$reload_objs'
5599case $host_os in
5600 cygwin* | mingw* | pw32* | cegcc*)
5601 if test "$GCC" != yes; then
5602 reload_cmds=false
5603 fi
5604 ;;
5605 darwin*)
5606 if test "$GCC" = yes; then
5607 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5608 else
5609 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5610 fi
5611 ;;
5612esac
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622if test -n "$ac_tool_prefix"; then
5623 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5624set dummy ${ac_tool_prefix}objdump; ac_word=$2
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626$as_echo_n "checking for $ac_word... " >&6; }
5627if ${ac_cv_prog_OBJDUMP+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629else
5630 if test -n "$OBJDUMP"; then
5631 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5632else
5633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634for as_dir in $PATH
5635do
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5643 fi
5644done
5645 done
5646IFS=$as_save_IFS
5647
5648fi
5649fi
5650OBJDUMP=$ac_cv_prog_OBJDUMP
5651if test -n "$OBJDUMP"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5653$as_echo "$OBJDUMP" >&6; }
5654else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656$as_echo "no" >&6; }
5657fi
5658
5659
5660fi
5661if test -z "$ac_cv_prog_OBJDUMP"; then
5662 ac_ct_OBJDUMP=$OBJDUMP
5663 # Extract the first word of "objdump", so it can be a program name with args.
5664set dummy objdump; ac_word=$2
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666$as_echo_n "checking for $ac_word... " >&6; }
5667if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669else
5670 if test -n "$ac_ct_OBJDUMP"; then
5671 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5672else
5673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674for as_dir in $PATH
5675do
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5683 fi
5684done
5685 done
5686IFS=$as_save_IFS
5687
5688fi
5689fi
5690ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5691if test -n "$ac_ct_OBJDUMP"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5693$as_echo "$ac_ct_OBJDUMP" >&6; }
5694else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696$as_echo "no" >&6; }
5697fi
5698
5699 if test "x$ac_ct_OBJDUMP" = x; then
5700 OBJDUMP="false"
5701 else
5702 case $cross_compiling:$ac_tool_warned in
5703yes:)
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5706ac_tool_warned=yes ;;
5707esac
5708 OBJDUMP=$ac_ct_OBJDUMP
5709 fi
5710else
5711 OBJDUMP="$ac_cv_prog_OBJDUMP"
5712fi
5713
5714test -z "$OBJDUMP" && OBJDUMP=objdump
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5725$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5726if ${lt_cv_deplibs_check_method+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728else
5729 lt_cv_file_magic_cmd='$MAGIC_CMD'
5730lt_cv_file_magic_test_file=
5731lt_cv_deplibs_check_method='unknown'
5732# Need to set the preceding variable on all platforms that support
5733# interlibrary dependencies.
5734# 'none' -- dependencies not supported.
5735# `unknown' -- same as none, but documents that we really don't know.
5736# 'pass_all' -- all dependencies passed with no checks.
5737# 'test_compile' -- check by making test program.
5738# 'file_magic [[regex]]' -- check by looking for files in library path
5739# which responds to the $file_magic_cmd with a given extended regex.
5740# If you have `file' or equivalent on your system and you're not sure
5741# whether `pass_all' will *always* work, you probably want this one.
5742
5743case $host_os in
5744aix[4-9]*)
5745 lt_cv_deplibs_check_method=pass_all
5746 ;;
5747
5748beos*)
5749 lt_cv_deplibs_check_method=pass_all
5750 ;;
5751
5752bsdi[45]*)
5753 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5754 lt_cv_file_magic_cmd='/usr/bin/file -L'
5755 lt_cv_file_magic_test_file=/shlib/libc.so
5756 ;;
5757
5758cygwin*)
5759 # func_win32_libid is a shell function defined in ltmain.sh
5760 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5761 lt_cv_file_magic_cmd='func_win32_libid'
5762 ;;
5763
5764mingw* | pw32*)
5765 # Base MSYS/MinGW do not provide the 'file' command needed by
5766 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5767 # unless we find 'file', for example because we are cross-compiling.
5768 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5769 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5770 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5771 lt_cv_file_magic_cmd='func_win32_libid'
5772 else
5773 # Keep this pattern in sync with the one in func_win32_libid.
5774 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5775 lt_cv_file_magic_cmd='$OBJDUMP -f'
5776 fi
5777 ;;
5778
5779cegcc*)
5780 # use the weaker test based on 'objdump'. See mingw*.
5781 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5782 lt_cv_file_magic_cmd='$OBJDUMP -f'
5783 ;;
5784
5785darwin* | rhapsody*)
5786 lt_cv_deplibs_check_method=pass_all
5787 ;;
5788
5789freebsd* | dragonfly*)
5790 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5791 case $host_cpu in
5792 i*86 )
5793 # Not sure whether the presence of OpenBSD here was a mistake.
5794 # Let's accept both of them until this is cleared up.
5795 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5796 lt_cv_file_magic_cmd=/usr/bin/file
5797 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5798 ;;
5799 esac
5800 else
5801 lt_cv_deplibs_check_method=pass_all
5802 fi
5803 ;;
5804
5805haiku*)
5806 lt_cv_deplibs_check_method=pass_all
5807 ;;
5808
5809hpux10.20* | hpux11*)
5810 lt_cv_file_magic_cmd=/usr/bin/file
5811 case $host_cpu in
5812 ia64*)
5813 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5814 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5815 ;;
5816 hppa*64*)
5817 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]'
5818 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5819 ;;
5820 *)
5821 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5822 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5823 ;;
5824 esac
5825 ;;
5826
5827interix[3-9]*)
5828 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5830 ;;
5831
5832irix5* | irix6* | nonstopux*)
5833 case $LD in
5834 *-32|*"-32 ") libmagic=32-bit;;
5835 *-n32|*"-n32 ") libmagic=N32;;
5836 *-64|*"-64 ") libmagic=64-bit;;
5837 *) libmagic=never-match;;
5838 esac
5839 lt_cv_deplibs_check_method=pass_all
5840 ;;
5841
5842# This must be glibc/ELF.
5843linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5844 lt_cv_deplibs_check_method=pass_all
5845 ;;
5846
5847netbsd* | netbsdelf*-gnu)
5848 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5849 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5850 else
5851 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5852 fi
5853 ;;
5854
5855newos6*)
5856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5857 lt_cv_file_magic_cmd=/usr/bin/file
5858 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5859 ;;
5860
5861*nto* | *qnx*)
5862 lt_cv_deplibs_check_method=pass_all
5863 ;;
5864
5865openbsd*)
5866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5868 else
5869 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5870 fi
5871 ;;
5872
5873osf3* | osf4* | osf5*)
5874 lt_cv_deplibs_check_method=pass_all
5875 ;;
5876
5877rdos*)
5878 lt_cv_deplibs_check_method=pass_all
5879 ;;
5880
5881solaris*)
5882 lt_cv_deplibs_check_method=pass_all
5883 ;;
5884
5885sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5886 lt_cv_deplibs_check_method=pass_all
5887 ;;
5888
5889sysv4 | sysv4.3*)
5890 case $host_vendor in
5891 motorola)
5892 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]'
5893 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5894 ;;
5895 ncr)
5896 lt_cv_deplibs_check_method=pass_all
5897 ;;
5898 sequent)
5899 lt_cv_file_magic_cmd='/bin/file'
5900 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5901 ;;
5902 sni)
5903 lt_cv_file_magic_cmd='/bin/file'
5904 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5905 lt_cv_file_magic_test_file=/lib/libc.so
5906 ;;
5907 siemens)
5908 lt_cv_deplibs_check_method=pass_all
5909 ;;
5910 pc)
5911 lt_cv_deplibs_check_method=pass_all
5912 ;;
5913 esac
5914 ;;
5915
5916tpf*)
5917 lt_cv_deplibs_check_method=pass_all
5918 ;;
5919esac
5920
5921fi
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5923$as_echo "$lt_cv_deplibs_check_method" >&6; }
5924
5925file_magic_glob=
5926want_nocaseglob=no
5927if test "$build" = "$host"; then
5928 case $host_os in
5929 mingw* | pw32*)
5930 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5931 want_nocaseglob=yes
5932 else
5933 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5934 fi
5935 ;;
5936 esac
5937fi
5938
5939file_magic_cmd=$lt_cv_file_magic_cmd
5940deplibs_check_method=$lt_cv_deplibs_check_method
5941test -z "$deplibs_check_method" && deplibs_check_method=unknown
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964if test -n "$ac_tool_prefix"; then
5965 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5966set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968$as_echo_n "checking for $ac_word... " >&6; }
5969if ${ac_cv_prog_DLLTOOL+:} false; then :
5970 $as_echo_n "(cached) " >&6
5971else
5972 if test -n "$DLLTOOL"; then
5973 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5974else
5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 break 2
5985 fi
5986done
5987 done
5988IFS=$as_save_IFS
5989
5990fi
5991fi
5992DLLTOOL=$ac_cv_prog_DLLTOOL
5993if test -n "$DLLTOOL"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5995$as_echo "$DLLTOOL" >&6; }
5996else
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998$as_echo "no" >&6; }
5999fi
6000
6001
6002fi
6003if test -z "$ac_cv_prog_DLLTOOL"; then
6004 ac_ct_DLLTOOL=$DLLTOOL
6005 # Extract the first word of "dlltool", so it can be a program name with args.
6006set dummy dlltool; ac_word=$2
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008$as_echo_n "checking for $ac_word... " >&6; }
6009if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011else
6012 if test -n "$ac_ct_DLLTOOL"; then
6013 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6014else
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
6025 fi
6026done
6027 done
6028IFS=$as_save_IFS
6029
6030fi
6031fi
6032ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6033if test -n "$ac_ct_DLLTOOL"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6035$as_echo "$ac_ct_DLLTOOL" >&6; }
6036else
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038$as_echo "no" >&6; }
6039fi
6040
6041 if test "x$ac_ct_DLLTOOL" = x; then
6042 DLLTOOL="false"
6043 else
6044 case $cross_compiling:$ac_tool_warned in
6045yes:)
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6048ac_tool_warned=yes ;;
6049esac
6050 DLLTOOL=$ac_ct_DLLTOOL
6051 fi
6052else
6053 DLLTOOL="$ac_cv_prog_DLLTOOL"
6054fi
6055
6056test -z "$DLLTOOL" && DLLTOOL=dlltool
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6068$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6069if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071else
6072 lt_cv_sharedlib_from_linklib_cmd='unknown'
6073
6074case $host_os in
6075cygwin* | mingw* | pw32* | cegcc*)
6076 # two different shell functions defined in ltmain.sh
6077 # decide which to use based on capabilities of $DLLTOOL
6078 case `$DLLTOOL --help 2>&1` in
6079 *--identify-strict*)
6080 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6081 ;;
6082 *)
6083 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6084 ;;
6085 esac
6086 ;;
6087*)
6088 # fallback: assume linklib IS sharedlib
6089 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6090 ;;
6091esac
6092
6093fi
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6095$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6096sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6097test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6098
6099
6100
6101
6102
6103
6104
6105if test -n "$ac_tool_prefix"; then
6106 for ac_prog in ar
6107 do
6108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6109set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111$as_echo_n "checking for $ac_word... " >&6; }
6112if ${ac_cv_prog_AR+:} false; then :
6113 $as_echo_n "(cached) " >&6
6114else
6115 if test -n "$AR"; then
6116 ac_cv_prog_AR="$AR" # Let the user override the test.
6117else
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 break 2
6128 fi
6129done
6130 done
6131IFS=$as_save_IFS
6132
6133fi
6134fi
6135AR=$ac_cv_prog_AR
6136if test -n "$AR"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6138$as_echo "$AR" >&6; }
6139else
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141$as_echo "no" >&6; }
6142fi
6143
6144
6145 test -n "$AR" && break
6146 done
6147fi
6148if test -z "$AR"; then
6149 ac_ct_AR=$AR
6150 for ac_prog in ar
6151do
6152 # Extract the first word of "$ac_prog", so it can be a program name with args.
6153set dummy $ac_prog; ac_word=$2
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155$as_echo_n "checking for $ac_word... " >&6; }
6156if ${ac_cv_prog_ac_ct_AR+:} false; then :
6157 $as_echo_n "(cached) " >&6
6158else
6159 if test -n "$ac_ct_AR"; then
6160 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6161else
6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH
6164do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169 ac_cv_prog_ac_ct_AR="$ac_prog"
6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6172 fi
6173done
6174 done
6175IFS=$as_save_IFS
6176
6177fi
6178fi
6179ac_ct_AR=$ac_cv_prog_ac_ct_AR
6180if test -n "$ac_ct_AR"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6182$as_echo "$ac_ct_AR" >&6; }
6183else
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185$as_echo "no" >&6; }
6186fi
6187
6188
6189 test -n "$ac_ct_AR" && break
6190done
6191
6192 if test "x$ac_ct_AR" = x; then
6193 AR="false"
6194 else
6195 case $cross_compiling:$ac_tool_warned in
6196yes:)
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6199ac_tool_warned=yes ;;
6200esac
6201 AR=$ac_ct_AR
6202 fi
6203fi
6204
6205: ${AR=ar}
6206: ${AR_FLAGS=cru}
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6219$as_echo_n "checking for archiver @FILE support... " >&6; }
6220if ${lt_cv_ar_at_file+:} false; then :
6221 $as_echo_n "(cached) " >&6
6222else
6223 lt_cv_ar_at_file=no
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225/* end confdefs.h. */
6226
6227int
6228main ()
6229{
6230
6231 ;
6232 return 0;
6233}
6234_ACEOF
6235if ac_fn_c_try_compile "$LINENO"; then :
6236 echo conftest.$ac_objext > conftest.lst
6237 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6239 (eval $lt_ar_try) 2>&5
6240 ac_status=$?
6241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6242 test $ac_status = 0; }
6243 if test "$ac_status" -eq 0; then
6244 # Ensure the archiver fails upon bogus file names.
6245 rm -f conftest.$ac_objext libconftest.a
6246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6247 (eval $lt_ar_try) 2>&5
6248 ac_status=$?
6249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6250 test $ac_status = 0; }
6251 if test "$ac_status" -ne 0; then
6252 lt_cv_ar_at_file=@
6253 fi
6254 fi
6255 rm -f conftest.* libconftest.a
6256
6257fi
6258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259
6260fi
6261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6262$as_echo "$lt_cv_ar_at_file" >&6; }
6263
6264if test "x$lt_cv_ar_at_file" = xno; then
6265 archiver_list_spec=
6266else
6267 archiver_list_spec=$lt_cv_ar_at_file
6268fi
6269
6270
6271
6272
6273
6274
6275
6276if test -n "$ac_tool_prefix"; then
6277 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6278set dummy ${ac_tool_prefix}strip; ac_word=$2
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280$as_echo_n "checking for $ac_word... " >&6; }
6281if ${ac_cv_prog_STRIP+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283else
6284 if test -n "$STRIP"; then
6285 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6286else
6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288for as_dir in $PATH
6289do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6297 fi
6298done
6299 done
6300IFS=$as_save_IFS
6301
6302fi
6303fi
6304STRIP=$ac_cv_prog_STRIP
6305if test -n "$STRIP"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6307$as_echo "$STRIP" >&6; }
6308else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310$as_echo "no" >&6; }
6311fi
6312
6313
6314fi
6315if test -z "$ac_cv_prog_STRIP"; then
6316 ac_ct_STRIP=$STRIP
6317 # Extract the first word of "strip", so it can be a program name with args.
6318set dummy strip; ac_word=$2
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320$as_echo_n "checking for $ac_word... " >&6; }
6321if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6322 $as_echo_n "(cached) " >&6
6323else
6324 if test -n "$ac_ct_STRIP"; then
6325 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6326else
6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328for as_dir in $PATH
6329do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334 ac_cv_prog_ac_ct_STRIP="strip"
6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 break 2
6337 fi
6338done
6339 done
6340IFS=$as_save_IFS
6341
6342fi
6343fi
6344ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6345if test -n "$ac_ct_STRIP"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6347$as_echo "$ac_ct_STRIP" >&6; }
6348else
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350$as_echo "no" >&6; }
6351fi
6352
6353 if test "x$ac_ct_STRIP" = x; then
6354 STRIP=":"
6355 else
6356 case $cross_compiling:$ac_tool_warned in
6357yes:)
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6360ac_tool_warned=yes ;;
6361esac
6362 STRIP=$ac_ct_STRIP
6363 fi
6364else
6365 STRIP="$ac_cv_prog_STRIP"
6366fi
6367
6368test -z "$STRIP" && STRIP=:
6369
6370
6371
6372
6373
6374
6375if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6377set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379$as_echo_n "checking for $ac_word... " >&6; }
6380if ${ac_cv_prog_RANLIB+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382else
6383 if test -n "$RANLIB"; then
6384 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6385else
6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6396 fi
6397done
6398 done
6399IFS=$as_save_IFS
6400
6401fi
6402fi
6403RANLIB=$ac_cv_prog_RANLIB
6404if test -n "$RANLIB"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6406$as_echo "$RANLIB" >&6; }
6407else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409$as_echo "no" >&6; }
6410fi
6411
6412
6413fi
6414if test -z "$ac_cv_prog_RANLIB"; then
6415 ac_ct_RANLIB=$RANLIB
6416 # Extract the first word of "ranlib", so it can be a program name with args.
6417set dummy ranlib; ac_word=$2
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419$as_echo_n "checking for $ac_word... " >&6; }
6420if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6421 $as_echo_n "(cached) " >&6
6422else
6423 if test -n "$ac_ct_RANLIB"; then
6424 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6425else
6426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427for as_dir in $PATH
6428do
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_ac_ct_RANLIB="ranlib"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6436 fi
6437done
6438 done
6439IFS=$as_save_IFS
6440
6441fi
6442fi
6443ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6444if test -n "$ac_ct_RANLIB"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6446$as_echo "$ac_ct_RANLIB" >&6; }
6447else
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449$as_echo "no" >&6; }
6450fi
6451
6452 if test "x$ac_ct_RANLIB" = x; then
6453 RANLIB=":"
6454 else
6455 case $cross_compiling:$ac_tool_warned in
6456yes:)
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459ac_tool_warned=yes ;;
6460esac
6461 RANLIB=$ac_ct_RANLIB
6462 fi
6463else
6464 RANLIB="$ac_cv_prog_RANLIB"
6465fi
6466
6467test -z "$RANLIB" && RANLIB=:
6468
6469
6470
6471
6472
6473
6474# Determine commands to create old-style static archives.
6475old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6476old_postinstall_cmds='chmod 644 $oldlib'
6477old_postuninstall_cmds=
6478
6479if test -n "$RANLIB"; then
6480 case $host_os in
6481 openbsd*)
6482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6483 ;;
6484 *)
6485 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6486 ;;
6487 esac
6488 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6489fi
6490
6491case $host_os in
6492 darwin*)
6493 lock_old_archive_extraction=yes ;;
6494 *)
6495 lock_old_archive_extraction=no ;;
6496esac
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536# If no C compiler was specified, use CC.
6537LTCC=${LTCC-"$CC"}
6538
6539# If no C compiler flags were specified, use CFLAGS.
6540LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6541
6542# Allow CC to be a program name with arguments.
6543compiler=$CC
6544
6545
6546# Check for command to grab the raw symbol name followed by C symbol from nm.
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6548$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6549if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551else
6552
6553# These are sane defaults that work on at least a few old systems.
6554# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6555
6556# Character class describing NM global symbol codes.
6557symcode='[BCDEGRST]'
6558
6559# Regexp to match symbols that can be accessed directly from C.
6560sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6561
6562# Define system-specific variables.
6563case $host_os in
6564aix*)
6565 symcode='[BCDT]'
6566 ;;
6567cygwin* | mingw* | pw32* | cegcc*)
6568 symcode='[ABCDGISTW]'
6569 ;;
6570hpux*)
6571 if test "$host_cpu" = ia64; then
6572 symcode='[ABCDEGRST]'
6573 fi
6574 ;;
6575irix* | nonstopux*)
6576 symcode='[BCDEGRST]'
6577 ;;
6578osf*)
6579 symcode='[BCDEGQRST]'
6580 ;;
6581solaris*)
6582 symcode='[BDRT]'
6583 ;;
6584sco3.2v5*)
6585 symcode='[DT]'
6586 ;;
6587sysv4.2uw2*)
6588 symcode='[DT]'
6589 ;;
6590sysv5* | sco5v6* | unixware* | OpenUNIX*)
6591 symcode='[ABDT]'
6592 ;;
6593sysv4)
6594 symcode='[DFNSTU]'
6595 ;;
6596esac
6597
6598# If we're using GNU nm, then use its standard symbol codes.
6599case `$NM -V 2>&1` in
6600*GNU* | *'with BFD'*)
6601 symcode='[ABCDGIRSTW]' ;;
6602esac
6603
6604# Transform an extracted symbol line into a proper C declaration.
6605# Some systems (esp. on ia64) link data and code symbols differently,
6606# so use this general approach.
6607lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6608
6609# Transform an extracted symbol line into symbol name and symbol address
6610lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6611lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6612
6613# Handle CRLF in mingw tool chain
6614opt_cr=
6615case $build_os in
6616mingw*)
6617 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6618 ;;
6619esac
6620
6621# Try without a prefix underscore, then with it.
6622for ac_symprfx in "" "_"; do
6623
6624 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6625 symxfrm="\\1 $ac_symprfx\\2 \\2"
6626
6627 # Write the raw and C identifiers.
6628 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6629 # Fake it for dumpbin and say T for any non-static function
6630 # and D for any global variable.
6631 # Also find C++ and __fastcall symbols from MSVC++,
6632 # which start with @ or ?.
6633 lt_cv_sys_global_symbol_pipe="$AWK '"\
6634" {last_section=section; section=\$ 3};"\
6635" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6636" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6637" \$ 0!~/External *\|/{next};"\
6638" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6639" {if(hide[section]) next};"\
6640" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6641" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6642" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6643" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6644" ' prfx=^$ac_symprfx"
6645 else
6646 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6647 fi
6648 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6649
6650 # Check to see that the pipe works correctly.
6651 pipe_works=no
6652
6653 rm -f conftest*
6654 cat > conftest.$ac_ext <<_LT_EOF
6655#ifdef __cplusplus
6656extern "C" {
6657#endif
6658char nm_test_var;
6659void nm_test_func(void);
6660void nm_test_func(void){}
6661#ifdef __cplusplus
6662}
6663#endif
6664int main(){nm_test_var='a';nm_test_func();return(0);}
6665_LT_EOF
6666
6667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6668 (eval $ac_compile) 2>&5
6669 ac_status=$?
6670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6671 test $ac_status = 0; }; then
6672 # Now try to grab the symbols.
6673 nlist=conftest.nm
6674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6675 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6676 ac_status=$?
6677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6678 test $ac_status = 0; } && test -s "$nlist"; then
6679 # Try sorting and uniquifying the output.
6680 if sort "$nlist" | uniq > "$nlist"T; then
6681 mv -f "$nlist"T "$nlist"
6682 else
6683 rm -f "$nlist"T
6684 fi
6685
6686 # Make sure that we snagged all the symbols we need.
6687 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6688 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6689 cat <<_LT_EOF > conftest.$ac_ext
6690/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6691#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6692/* DATA imports from DLLs on WIN32 con't be const, because runtime
6693 relocations are performed -- see ld's documentation on pseudo-relocs. */
6694# define LT_DLSYM_CONST
6695#elif defined(__osf__)
6696/* This system does not cope well with relocations in const data. */
6697# define LT_DLSYM_CONST
6698#else
6699# define LT_DLSYM_CONST const
6700#endif
6701
6702#ifdef __cplusplus
6703extern "C" {
6704#endif
6705
6706_LT_EOF
6707 # Now generate the symbol file.
6708 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6709
6710 cat <<_LT_EOF >> conftest.$ac_ext
6711
6712/* The mapping between symbol names and symbols. */
6713LT_DLSYM_CONST struct {
6714 const char *name;
6715 void *address;
6716}
6717lt__PROGRAM__LTX_preloaded_symbols[] =
6718{
6719 { "@PROGRAM@", (void *) 0 },
6720_LT_EOF
6721 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6722 cat <<\_LT_EOF >> conftest.$ac_ext
6723 {0, (void *) 0}
6724};
6725
6726/* This works around a problem in FreeBSD linker */
6727#ifdef FREEBSD_WORKAROUND
6728static const void *lt_preloaded_setup() {
6729 return lt__PROGRAM__LTX_preloaded_symbols;
6730}
6731#endif
6732
6733#ifdef __cplusplus
6734}
6735#endif
6736_LT_EOF
6737 # Now try linking the two files.
6738 mv conftest.$ac_objext conftstm.$ac_objext
6739 lt_globsym_save_LIBS=$LIBS
6740 lt_globsym_save_CFLAGS=$CFLAGS
6741 LIBS="conftstm.$ac_objext"
6742 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6744 (eval $ac_link) 2>&5
6745 ac_status=$?
6746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6748 pipe_works=yes
6749 fi
6750 LIBS=$lt_globsym_save_LIBS
6751 CFLAGS=$lt_globsym_save_CFLAGS
6752 else
6753 echo "cannot find nm_test_func in $nlist" >&5
6754 fi
6755 else
6756 echo "cannot find nm_test_var in $nlist" >&5
6757 fi
6758 else
6759 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6760 fi
6761 else
6762 echo "$progname: failed program was:" >&5
6763 cat conftest.$ac_ext >&5
6764 fi
6765 rm -rf conftest* conftst*
6766
6767 # Do not use the global_symbol_pipe unless it works.
6768 if test "$pipe_works" = yes; then
6769 break
6770 else
6771 lt_cv_sys_global_symbol_pipe=
6772 fi
6773done
6774
6775fi
6776
6777if test -z "$lt_cv_sys_global_symbol_pipe"; then
6778 lt_cv_sys_global_symbol_to_cdecl=
6779fi
6780if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6782$as_echo "failed" >&6; }
6783else
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6785$as_echo "ok" >&6; }
6786fi
6787
6788# Response file support.
6789if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6790 nm_file_list_spec='@'
6791elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6792 nm_file_list_spec='@'
6793fi
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6822$as_echo_n "checking for sysroot... " >&6; }
6823
6824# Check whether --with-sysroot was given.
6825if test "${with_sysroot+set}" = set; then :
6826 withval=$with_sysroot;
6827else
6828 with_sysroot=no
6829fi
6830
6831
6832lt_sysroot=
6833case ${with_sysroot} in #(
6834 yes)
6835 if test "$GCC" = yes; then
6836 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6837 fi
6838 ;; #(
6839 /*)
6840 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6841 ;; #(
6842 no|'')
6843 ;; #(
6844 *)
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6846$as_echo "${with_sysroot}" >&6; }
6847 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6848 ;;
6849esac
6850
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6852$as_echo "${lt_sysroot:-no}" >&6; }
6853
6854
6855
6856
6857
6858# Check whether --enable-libtool-lock was given.
6859if test "${enable_libtool_lock+set}" = set; then :
6860 enableval=$enable_libtool_lock;
6861fi
6862
6863test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6864
6865# Some flags need to be propagated to the compiler or linker for good
6866# libtool support.
6867case $host in
6868ia64-*-hpux*)
6869 # Find out which ABI we are using.
6870 echo 'int i;' > conftest.$ac_ext
6871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872 (eval $ac_compile) 2>&5
6873 ac_status=$?
6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875 test $ac_status = 0; }; then
6876 case `/usr/bin/file conftest.$ac_objext` in
6877 *ELF-32*)
6878 HPUX_IA64_MODE="32"
6879 ;;
6880 *ELF-64*)
6881 HPUX_IA64_MODE="64"
6882 ;;
6883 esac
6884 fi
6885 rm -rf conftest*
6886 ;;
6887*-*-irix6*)
6888 # Find out which ABI we are using.
6889 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6891 (eval $ac_compile) 2>&5
6892 ac_status=$?
6893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6894 test $ac_status = 0; }; then
6895 if test "$lt_cv_prog_gnu_ld" = yes; then
6896 case `/usr/bin/file conftest.$ac_objext` in
6897 *32-bit*)
6898 LD="${LD-ld} -melf32bsmip"
6899 ;;
6900 *N32*)
6901 LD="${LD-ld} -melf32bmipn32"
6902 ;;
6903 *64-bit*)
6904 LD="${LD-ld} -melf64bmip"
6905 ;;
6906 esac
6907 else
6908 case `/usr/bin/file conftest.$ac_objext` in
6909 *32-bit*)
6910 LD="${LD-ld} -32"
6911 ;;
6912 *N32*)
6913 LD="${LD-ld} -n32"
6914 ;;
6915 *64-bit*)
6916 LD="${LD-ld} -64"
6917 ;;
6918 esac
6919 fi
6920 fi
6921 rm -rf conftest*
6922 ;;
6923
6924x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6925s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6926 # Find out which ABI we are using.
6927 echo 'int i;' > conftest.$ac_ext
6928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6929 (eval $ac_compile) 2>&5
6930 ac_status=$?
6931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932 test $ac_status = 0; }; then
6933 case `/usr/bin/file conftest.o` in
6934 *32-bit*)
6935 case $host in
6936 x86_64-*kfreebsd*-gnu)
6937 LD="${LD-ld} -m elf_i386_fbsd"
6938 ;;
6939 x86_64-*linux*)
6940 case `/usr/bin/file conftest.o` in
6941 *x86-64*)
6942 LD="${LD-ld} -m elf32_x86_64"
6943 ;;
6944 *)
6945 LD="${LD-ld} -m elf_i386"
6946 ;;
6947 esac
6948 ;;
6949 powerpc64le-*)
6950 LD="${LD-ld} -m elf32lppclinux"
6951 ;;
6952 powerpc64-*)
6953 LD="${LD-ld} -m elf32ppclinux"
6954 ;;
6955 s390x-*linux*)
6956 LD="${LD-ld} -m elf_s390"
6957 ;;
6958 sparc64-*linux*)
6959 LD="${LD-ld} -m elf32_sparc"
6960 ;;
6961 esac
6962 ;;
6963 *64-bit*)
6964 case $host in
6965 x86_64-*kfreebsd*-gnu)
6966 LD="${LD-ld} -m elf_x86_64_fbsd"
6967 ;;
6968 x86_64-*linux*)
6969 LD="${LD-ld} -m elf_x86_64"
6970 ;;
6971 powerpcle-*)
6972 LD="${LD-ld} -m elf64lppc"
6973 ;;
6974 powerpc-*)
6975 LD="${LD-ld} -m elf64ppc"
6976 ;;
6977 s390*-*linux*|s390*-*tpf*)
6978 LD="${LD-ld} -m elf64_s390"
6979 ;;
6980 sparc*-*linux*)
6981 LD="${LD-ld} -m elf64_sparc"
6982 ;;
6983 esac
6984 ;;
6985 esac
6986 fi
6987 rm -rf conftest*
6988 ;;
6989
6990*-*-sco3.2v5*)
6991 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6992 SAVE_CFLAGS="$CFLAGS"
6993 CFLAGS="$CFLAGS -belf"
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6995$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6996if ${lt_cv_cc_needs_belf+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998else
6999 ac_ext=c
7000ac_cpp='$CPP $CPPFLAGS'
7001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7003ac_compiler_gnu=$ac_cv_c_compiler_gnu
7004
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006/* end confdefs.h. */
7007
7008int
7009main ()
7010{
7011
7012 ;
7013 return 0;
7014}
7015_ACEOF
7016if ac_fn_c_try_link "$LINENO"; then :
7017 lt_cv_cc_needs_belf=yes
7018else
7019 lt_cv_cc_needs_belf=no
7020fi
7021rm -f core conftest.err conftest.$ac_objext \
7022 conftest$ac_exeext conftest.$ac_ext
7023 ac_ext=c
7024ac_cpp='$CPP $CPPFLAGS'
7025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7027ac_compiler_gnu=$ac_cv_c_compiler_gnu
7028
7029fi
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7031$as_echo "$lt_cv_cc_needs_belf" >&6; }
7032 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7033 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7034 CFLAGS="$SAVE_CFLAGS"
7035 fi
7036 ;;
7037*-*solaris*)
7038 # Find out which ABI we are using.
7039 echo 'int i;' > conftest.$ac_ext
7040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7041 (eval $ac_compile) 2>&5
7042 ac_status=$?
7043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7044 test $ac_status = 0; }; then
7045 case `/usr/bin/file conftest.o` in
7046 *64-bit*)
7047 case $lt_cv_prog_gnu_ld in
7048 yes*)
7049 case $host in
7050 i?86-*-solaris*)
7051 LD="${LD-ld} -m elf_x86_64"
7052 ;;
7053 sparc*-*-solaris*)
7054 LD="${LD-ld} -m elf64_sparc"
7055 ;;
7056 esac
7057 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7058 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7059 LD="${LD-ld}_sol2"
7060 fi
7061 ;;
7062 *)
7063 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7064 LD="${LD-ld} -64"
7065 fi
7066 ;;
7067 esac
7068 ;;
7069 esac
7070 fi
7071 rm -rf conftest*
7072 ;;
7073esac
7074
7075need_locks="$enable_libtool_lock"
7076
7077if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7079set dummy ${ac_tool_prefix}mt; ac_word=$2
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081$as_echo_n "checking for $ac_word... " >&6; }
7082if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084else
7085 if test -n "$MANIFEST_TOOL"; then
7086 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7087else
7088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089for as_dir in $PATH
7090do
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7098 fi
7099done
7100 done
7101IFS=$as_save_IFS
7102
7103fi
7104fi
7105MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7106if test -n "$MANIFEST_TOOL"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7108$as_echo "$MANIFEST_TOOL" >&6; }
7109else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111$as_echo "no" >&6; }
7112fi
7113
7114
7115fi
7116if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7117 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7118 # Extract the first word of "mt", so it can be a program name with args.
7119set dummy mt; ac_word=$2
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121$as_echo_n "checking for $ac_word... " >&6; }
7122if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124else
7125 if test -n "$ac_ct_MANIFEST_TOOL"; then
7126 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7127else
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139done
7140 done
7141IFS=$as_save_IFS
7142
7143fi
7144fi
7145ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7146if test -n "$ac_ct_MANIFEST_TOOL"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7148$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7149else
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151$as_echo "no" >&6; }
7152fi
7153
7154 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7155 MANIFEST_TOOL=":"
7156 else
7157 case $cross_compiling:$ac_tool_warned in
7158yes:)
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7161ac_tool_warned=yes ;;
7162esac
7163 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7164 fi
7165else
7166 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7167fi
7168
7169test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7171$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7172if ${lt_cv_path_mainfest_tool+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174else
7175 lt_cv_path_mainfest_tool=no
7176 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7177 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7178 cat conftest.err >&5
7179 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7180 lt_cv_path_mainfest_tool=yes
7181 fi
7182 rm -f conftest*
7183fi
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7185$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7186if test "x$lt_cv_path_mainfest_tool" != xyes; then
7187 MANIFEST_TOOL=:
7188fi
7189
7190
7191
7192
7193
7194
7195 case $host_os in
7196 rhapsody* | darwin*)
7197 if test -n "$ac_tool_prefix"; then
7198 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7199set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201$as_echo_n "checking for $ac_word... " >&6; }
7202if ${ac_cv_prog_DSYMUTIL+:} false; then :
7203 $as_echo_n "(cached) " >&6
7204else
7205 if test -n "$DSYMUTIL"; then
7206 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7207else
7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209for as_dir in $PATH
7210do
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7218 fi
7219done
7220 done
7221IFS=$as_save_IFS
7222
7223fi
7224fi
7225DSYMUTIL=$ac_cv_prog_DSYMUTIL
7226if test -n "$DSYMUTIL"; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7228$as_echo "$DSYMUTIL" >&6; }
7229else
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231$as_echo "no" >&6; }
7232fi
7233
7234
7235fi
7236if test -z "$ac_cv_prog_DSYMUTIL"; then
7237 ac_ct_DSYMUTIL=$DSYMUTIL
7238 # Extract the first word of "dsymutil", so it can be a program name with args.
7239set dummy dsymutil; ac_word=$2
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241$as_echo_n "checking for $ac_word... " >&6; }
7242if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7243 $as_echo_n "(cached) " >&6
7244else
7245 if test -n "$ac_ct_DSYMUTIL"; then
7246 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7247else
7248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249for as_dir in $PATH
7250do
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7258 fi
7259done
7260 done
7261IFS=$as_save_IFS
7262
7263fi
7264fi
7265ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7266if test -n "$ac_ct_DSYMUTIL"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7268$as_echo "$ac_ct_DSYMUTIL" >&6; }
7269else
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271$as_echo "no" >&6; }
7272fi
7273
7274 if test "x$ac_ct_DSYMUTIL" = x; then
7275 DSYMUTIL=":"
7276 else
7277 case $cross_compiling:$ac_tool_warned in
7278yes:)
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7281ac_tool_warned=yes ;;
7282esac
7283 DSYMUTIL=$ac_ct_DSYMUTIL
7284 fi
7285else
7286 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7287fi
7288
7289 if test -n "$ac_tool_prefix"; then
7290 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7291set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293$as_echo_n "checking for $ac_word... " >&6; }
7294if ${ac_cv_prog_NMEDIT+:} false; then :
7295 $as_echo_n "(cached) " >&6
7296else
7297 if test -n "$NMEDIT"; then
7298 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7299else
7300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301for as_dir in $PATH
7302do
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 break 2
7310 fi
7311done
7312 done
7313IFS=$as_save_IFS
7314
7315fi
7316fi
7317NMEDIT=$ac_cv_prog_NMEDIT
7318if test -n "$NMEDIT"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7320$as_echo "$NMEDIT" >&6; }
7321else
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323$as_echo "no" >&6; }
7324fi
7325
7326
7327fi
7328if test -z "$ac_cv_prog_NMEDIT"; then
7329 ac_ct_NMEDIT=$NMEDIT
7330 # Extract the first word of "nmedit", so it can be a program name with args.
7331set dummy nmedit; ac_word=$2
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333$as_echo_n "checking for $ac_word... " >&6; }
7334if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7335 $as_echo_n "(cached) " >&6
7336else
7337 if test -n "$ac_ct_NMEDIT"; then
7338 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7339else
7340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341for as_dir in $PATH
7342do
7343 IFS=$as_save_IFS
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 break 2
7350 fi
7351done
7352 done
7353IFS=$as_save_IFS
7354
7355fi
7356fi
7357ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7358if test -n "$ac_ct_NMEDIT"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7360$as_echo "$ac_ct_NMEDIT" >&6; }
7361else
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363$as_echo "no" >&6; }
7364fi
7365
7366 if test "x$ac_ct_NMEDIT" = x; then
7367 NMEDIT=":"
7368 else
7369 case $cross_compiling:$ac_tool_warned in
7370yes:)
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373ac_tool_warned=yes ;;
7374esac
7375 NMEDIT=$ac_ct_NMEDIT
7376 fi
7377else
7378 NMEDIT="$ac_cv_prog_NMEDIT"
7379fi
7380
7381 if test -n "$ac_tool_prefix"; then
7382 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7383set dummy ${ac_tool_prefix}lipo; ac_word=$2
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385$as_echo_n "checking for $ac_word... " >&6; }
7386if ${ac_cv_prog_LIPO+:} false; then :
7387 $as_echo_n "(cached) " >&6
7388else
7389 if test -n "$LIPO"; then
7390 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7391else
7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 break 2
7402 fi
7403done
7404 done
7405IFS=$as_save_IFS
7406
7407fi
7408fi
7409LIPO=$ac_cv_prog_LIPO
7410if test -n "$LIPO"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7412$as_echo "$LIPO" >&6; }
7413else
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415$as_echo "no" >&6; }
7416fi
7417
7418
7419fi
7420if test -z "$ac_cv_prog_LIPO"; then
7421 ac_ct_LIPO=$LIPO
7422 # Extract the first word of "lipo", so it can be a program name with args.
7423set dummy lipo; ac_word=$2
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425$as_echo_n "checking for $ac_word... " >&6; }
7426if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7427 $as_echo_n "(cached) " >&6
7428else
7429 if test -n "$ac_ct_LIPO"; then
7430 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7431else
7432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433for as_dir in $PATH
7434do
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439 ac_cv_prog_ac_ct_LIPO="lipo"
7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 break 2
7442 fi
7443done
7444 done
7445IFS=$as_save_IFS
7446
7447fi
7448fi
7449ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7450if test -n "$ac_ct_LIPO"; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7452$as_echo "$ac_ct_LIPO" >&6; }
7453else
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455$as_echo "no" >&6; }
7456fi
7457
7458 if test "x$ac_ct_LIPO" = x; then
7459 LIPO=":"
7460 else
7461 case $cross_compiling:$ac_tool_warned in
7462yes:)
7463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7465ac_tool_warned=yes ;;
7466esac
7467 LIPO=$ac_ct_LIPO
7468 fi
7469else
7470 LIPO="$ac_cv_prog_LIPO"
7471fi
7472
7473 if test -n "$ac_tool_prefix"; then
7474 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7475set dummy ${ac_tool_prefix}otool; ac_word=$2
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477$as_echo_n "checking for $ac_word... " >&6; }
7478if ${ac_cv_prog_OTOOL+:} false; then :
7479 $as_echo_n "(cached) " >&6
7480else
7481 if test -n "$OTOOL"; then
7482 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7483else
7484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485for as_dir in $PATH
7486do
7487 IFS=$as_save_IFS
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 break 2
7494 fi
7495done
7496 done
7497IFS=$as_save_IFS
7498
7499fi
7500fi
7501OTOOL=$ac_cv_prog_OTOOL
7502if test -n "$OTOOL"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7504$as_echo "$OTOOL" >&6; }
7505else
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507$as_echo "no" >&6; }
7508fi
7509
7510
7511fi
7512if test -z "$ac_cv_prog_OTOOL"; then
7513 ac_ct_OTOOL=$OTOOL
7514 # Extract the first word of "otool", so it can be a program name with args.
7515set dummy otool; ac_word=$2
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517$as_echo_n "checking for $ac_word... " >&6; }
7518if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520else
7521 if test -n "$ac_ct_OTOOL"; then
7522 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7523else
7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_ac_ct_OTOOL="otool"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7534 fi
7535done
7536 done
7537IFS=$as_save_IFS
7538
7539fi
7540fi
7541ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7542if test -n "$ac_ct_OTOOL"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7544$as_echo "$ac_ct_OTOOL" >&6; }
7545else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547$as_echo "no" >&6; }
7548fi
7549
7550 if test "x$ac_ct_OTOOL" = x; then
7551 OTOOL=":"
7552 else
7553 case $cross_compiling:$ac_tool_warned in
7554yes:)
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557ac_tool_warned=yes ;;
7558esac
7559 OTOOL=$ac_ct_OTOOL
7560 fi
7561else
7562 OTOOL="$ac_cv_prog_OTOOL"
7563fi
7564
7565 if test -n "$ac_tool_prefix"; then
7566 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7567set dummy ${ac_tool_prefix}otool64; ac_word=$2
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569$as_echo_n "checking for $ac_word... " >&6; }
7570if ${ac_cv_prog_OTOOL64+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572else
7573 if test -n "$OTOOL64"; then
7574 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7575else
7576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7583 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 break 2
7586 fi
7587done
7588 done
7589IFS=$as_save_IFS
7590
7591fi
7592fi
7593OTOOL64=$ac_cv_prog_OTOOL64
7594if test -n "$OTOOL64"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7596$as_echo "$OTOOL64" >&6; }
7597else
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599$as_echo "no" >&6; }
7600fi
7601
7602
7603fi
7604if test -z "$ac_cv_prog_OTOOL64"; then
7605 ac_ct_OTOOL64=$OTOOL64
7606 # Extract the first word of "otool64", so it can be a program name with args.
7607set dummy otool64; ac_word=$2
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609$as_echo_n "checking for $ac_word... " >&6; }
7610if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612else
7613 if test -n "$ac_ct_OTOOL64"; then
7614 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7615else
7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH
7618do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7623 ac_cv_prog_ac_ct_OTOOL64="otool64"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7626 fi
7627done
7628 done
7629IFS=$as_save_IFS
7630
7631fi
7632fi
7633ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7634if test -n "$ac_ct_OTOOL64"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7636$as_echo "$ac_ct_OTOOL64" >&6; }
7637else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639$as_echo "no" >&6; }
7640fi
7641
7642 if test "x$ac_ct_OTOOL64" = x; then
7643 OTOOL64=":"
7644 else
7645 case $cross_compiling:$ac_tool_warned in
7646yes:)
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7649ac_tool_warned=yes ;;
7650esac
7651 OTOOL64=$ac_ct_OTOOL64
7652 fi
7653else
7654 OTOOL64="$ac_cv_prog_OTOOL64"
7655fi
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7684$as_echo_n "checking for -single_module linker flag... " >&6; }
7685if ${lt_cv_apple_cc_single_mod+:} false; then :
7686 $as_echo_n "(cached) " >&6
7687else
7688 lt_cv_apple_cc_single_mod=no
7689 if test -z "${LT_MULTI_MODULE}"; then
7690 # By default we will add the -single_module flag. You can override
7691 # by either setting the environment variable LT_MULTI_MODULE
7692 # non-empty at configure time, or by adding -multi_module to the
7693 # link flags.
7694 rm -rf libconftest.dylib*
7695 echo "int foo(void){return 1;}" > conftest.c
7696 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7697-dynamiclib -Wl,-single_module conftest.c" >&5
7698 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7699 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7700 _lt_result=$?
7701 # If there is a non-empty error log, and "single_module"
7702 # appears in it, assume the flag caused a linker warning
7703 if test -s conftest.err && $GREP single_module conftest.err; then
7704 cat conftest.err >&5
7705 # Otherwise, if the output was created with a 0 exit code from
7706 # the compiler, it worked.
7707 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7708 lt_cv_apple_cc_single_mod=yes
7709 else
7710 cat conftest.err >&5
7711 fi
7712 rm -rf libconftest.dylib*
7713 rm -f conftest.*
7714 fi
7715fi
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7717$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7718
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7720$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7721if ${lt_cv_ld_exported_symbols_list+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723else
7724 lt_cv_ld_exported_symbols_list=no
7725 save_LDFLAGS=$LDFLAGS
7726 echo "_main" > conftest.sym
7727 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729/* end confdefs.h. */
7730
7731int
7732main ()
7733{
7734
7735 ;
7736 return 0;
7737}
7738_ACEOF
7739if ac_fn_c_try_link "$LINENO"; then :
7740 lt_cv_ld_exported_symbols_list=yes
7741else
7742 lt_cv_ld_exported_symbols_list=no
7743fi
7744rm -f core conftest.err conftest.$ac_objext \
7745 conftest$ac_exeext conftest.$ac_ext
7746 LDFLAGS="$save_LDFLAGS"
7747
7748fi
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7750$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7751
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7753$as_echo_n "checking for -force_load linker flag... " >&6; }
7754if ${lt_cv_ld_force_load+:} false; then :
7755 $as_echo_n "(cached) " >&6
7756else
7757 lt_cv_ld_force_load=no
7758 cat > conftest.c << _LT_EOF
7759int forced_loaded() { return 2;}
7760_LT_EOF
7761 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7762 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7763 echo "$AR cru libconftest.a conftest.o" >&5
7764 $AR cru libconftest.a conftest.o 2>&5
7765 echo "$RANLIB libconftest.a" >&5
7766 $RANLIB libconftest.a 2>&5
7767 cat > conftest.c << _LT_EOF
7768int main() { return 0;}
7769_LT_EOF
7770 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7771 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7772 _lt_result=$?
7773 if test -s conftest.err && $GREP force_load conftest.err; then
7774 cat conftest.err >&5
7775 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7776 lt_cv_ld_force_load=yes
7777 else
7778 cat conftest.err >&5
7779 fi
7780 rm -f conftest.err libconftest.a conftest conftest.c
7781 rm -rf conftest.dSYM
7782
7783fi
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7785$as_echo "$lt_cv_ld_force_load" >&6; }
7786 case $host_os in
7787 rhapsody* | darwin1.[012])
7788 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7789 darwin1.*)
7790 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7791 darwin*) # darwin 5.x on
7792 # if running on 10.5 or later, the deployment target defaults
7793 # to the OS version, if on x86, and 10.4, the deployment
7794 # target defaults to 10.4. Don't you love it?
7795 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7796 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7797 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7798 10.[012]*)
7799 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7800 10.*)
7801 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7802 esac
7803 ;;
7804 esac
7805 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7806 _lt_dar_single_mod='$single_module'
7807 fi
7808 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7809 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7810 else
7811 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7812 fi
7813 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7814 _lt_dsymutil='~$DSYMUTIL $lib || :'
7815 else
7816 _lt_dsymutil=
7817 fi
7818 ;;
7819 esac
7820
7821ac_ext=c
7822ac_cpp='$CPP $CPPFLAGS'
7823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7825ac_compiler_gnu=$ac_cv_c_compiler_gnu
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7827$as_echo_n "checking how to run the C preprocessor... " >&6; }
7828# On Suns, sometimes $CPP names a directory.
7829if test -n "$CPP" && test -d "$CPP"; then
7830 CPP=
7831fi
7832if test -z "$CPP"; then
7833 if ${ac_cv_prog_CPP+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835else
7836 # Double quotes because CPP needs to be expanded
7837 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7838 do
7839 ac_preproc_ok=false
7840for ac_c_preproc_warn_flag in '' yes
7841do
7842 # Use a header file that comes with gcc, so configuring glibc
7843 # with a fresh cross-compiler works.
7844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7845 # <limits.h> exists even on freestanding compilers.
7846 # On the NeXT, cc -E runs the code through the compiler's parser,
7847 # not just through cpp. "Syntax error" is here to catch this case.
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849/* end confdefs.h. */
7850#ifdef __STDC__
7851# include <limits.h>
7852#else
7853# include <assert.h>
7854#endif
7855 Syntax error
7856_ACEOF
7857if ac_fn_c_try_cpp "$LINENO"; then :
7858
7859else
7860 # Broken: fails on valid input.
7861continue
7862fi
7863rm -f conftest.err conftest.i conftest.$ac_ext
7864
7865 # OK, works on sane cases. Now check whether nonexistent headers
7866 # can be detected and how.
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868/* end confdefs.h. */
7869#include <ac_nonexistent.h>
7870_ACEOF
7871if ac_fn_c_try_cpp "$LINENO"; then :
7872 # Broken: success on invalid input.
7873continue
7874else
7875 # Passes both tests.
7876ac_preproc_ok=:
7877break
7878fi
7879rm -f conftest.err conftest.i conftest.$ac_ext
7880
7881done
7882# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7883rm -f conftest.i conftest.err conftest.$ac_ext
7884if $ac_preproc_ok; then :
7885 break
7886fi
7887
7888 done
7889 ac_cv_prog_CPP=$CPP
7890
7891fi
7892 CPP=$ac_cv_prog_CPP
7893else
7894 ac_cv_prog_CPP=$CPP
7895fi
7896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7897$as_echo "$CPP" >&6; }
7898ac_preproc_ok=false
7899for ac_c_preproc_warn_flag in '' yes
7900do
7901 # Use a header file that comes with gcc, so configuring glibc
7902 # with a fresh cross-compiler works.
7903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7904 # <limits.h> exists even on freestanding compilers.
7905 # On the NeXT, cc -E runs the code through the compiler's parser,
7906 # not just through cpp. "Syntax error" is here to catch this case.
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908/* end confdefs.h. */
7909#ifdef __STDC__
7910# include <limits.h>
7911#else
7912# include <assert.h>
7913#endif
7914 Syntax error
7915_ACEOF
7916if ac_fn_c_try_cpp "$LINENO"; then :
7917
7918else
7919 # Broken: fails on valid input.
7920continue
7921fi
7922rm -f conftest.err conftest.i conftest.$ac_ext
7923
7924 # OK, works on sane cases. Now check whether nonexistent headers
7925 # can be detected and how.
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927/* end confdefs.h. */
7928#include <ac_nonexistent.h>
7929_ACEOF
7930if ac_fn_c_try_cpp "$LINENO"; then :
7931 # Broken: success on invalid input.
7932continue
7933else
7934 # Passes both tests.
7935ac_preproc_ok=:
7936break
7937fi
7938rm -f conftest.err conftest.i conftest.$ac_ext
7939
7940done
7941# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7942rm -f conftest.i conftest.err conftest.$ac_ext
7943if $ac_preproc_ok; then :
7944
7945else
7946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7948as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7949See \`config.log' for more details" "$LINENO" 5; }
7950fi
7951
7952ac_ext=c
7953ac_cpp='$CPP $CPPFLAGS'
7954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956ac_compiler_gnu=$ac_cv_c_compiler_gnu
7957
7958
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7960$as_echo_n "checking for ANSI C header files... " >&6; }
7961if ${ac_cv_header_stdc+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963else
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965/* end confdefs.h. */
7966#include <stdlib.h>
7967#include <stdarg.h>
7968#include <string.h>
7969#include <float.h>
7970
7971int
7972main ()
7973{
7974
7975 ;
7976 return 0;
7977}
7978_ACEOF
7979if ac_fn_c_try_compile "$LINENO"; then :
7980 ac_cv_header_stdc=yes
7981else
7982 ac_cv_header_stdc=no
7983fi
7984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7985
7986if test $ac_cv_header_stdc = yes; then
7987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989/* end confdefs.h. */
7990#include <string.h>
7991
7992_ACEOF
7993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7994 $EGREP "memchr" >/dev/null 2>&1; then :
7995
7996else
7997 ac_cv_header_stdc=no
7998fi
7999rm -f conftest*
8000
8001fi
8002
8003if test $ac_cv_header_stdc = yes; then
8004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006/* end confdefs.h. */
8007#include <stdlib.h>
8008
8009_ACEOF
8010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8011 $EGREP "free" >/dev/null 2>&1; then :
8012
8013else
8014 ac_cv_header_stdc=no
8015fi
8016rm -f conftest*
8017
8018fi
8019
8020if test $ac_cv_header_stdc = yes; then
8021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8022 if test "$cross_compiling" = yes; then :
8023 :
8024else
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026/* end confdefs.h. */
8027#include <ctype.h>
8028#include <stdlib.h>
8029#if ((' ' & 0x0FF) == 0x020)
8030# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8031# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8032#else
8033# define ISLOWER(c) \
8034 (('a' <= (c) && (c) <= 'i') \
8035 || ('j' <= (c) && (c) <= 'r') \
8036 || ('s' <= (c) && (c) <= 'z'))
8037# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8038#endif
8039
8040#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8041int
8042main ()
8043{
8044 int i;
8045 for (i = 0; i < 256; i++)
8046 if (XOR (islower (i), ISLOWER (i))
8047 || toupper (i) != TOUPPER (i))
8048 return 2;
8049 return 0;
8050}
8051_ACEOF
8052if ac_fn_c_try_run "$LINENO"; then :
8053
8054else
8055 ac_cv_header_stdc=no
8056fi
8057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8058 conftest.$ac_objext conftest.beam conftest.$ac_ext
8059fi
8060
8061fi
8062fi
8063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8064$as_echo "$ac_cv_header_stdc" >&6; }
8065if test $ac_cv_header_stdc = yes; then
8066
8067$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8068
8069fi
8070
8071# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8072for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8073 inttypes.h stdint.h unistd.h
8074do :
8075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8076ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8077"
8078if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8079 cat >>confdefs.h <<_ACEOF
8080#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8081_ACEOF
8082
8083fi
8084
8085done
8086
8087
8088for ac_header in dlfcn.h
8089do :
8090 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8091"
8092if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8093 cat >>confdefs.h <<_ACEOF
8094#define HAVE_DLFCN_H 1
8095_ACEOF
8096
8097fi
8098
8099done
8100
8101
8102
8103
8104
8105# Set options
8106enable_dlopen=yes
8107# Check whether --enable-static was given.
8108if test "${enable_static+set}" = set; then :
8109 enableval=$enable_static; p=${PACKAGE-default}
8110 case $enableval in
8111 yes) enable_static=yes ;;
8112 no) enable_static=no ;;
8113 *)
8114 enable_static=no
8115 # Look at the argument we got. We use all the common list separators.
8116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8117 for pkg in $enableval; do
8118 IFS="$lt_save_ifs"
8119 if test "X$pkg" = "X$p"; then
8120 enable_static=yes
8121 fi
8122 done
8123 IFS="$lt_save_ifs"
8124 ;;
8125 esac
8126else
8127 enable_static=no
8128fi
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140 enable_win32_dll=no
8141
8142
8143 # Check whether --enable-shared was given.
8144if test "${enable_shared+set}" = set; then :
8145 enableval=$enable_shared; p=${PACKAGE-default}
8146 case $enableval in
8147 yes) enable_shared=yes ;;
8148 no) enable_shared=no ;;
8149 *)
8150 enable_shared=no
8151 # Look at the argument we got. We use all the common list separators.
8152 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8153 for pkg in $enableval; do
8154 IFS="$lt_save_ifs"
8155 if test "X$pkg" = "X$p"; then
8156 enable_shared=yes
8157 fi
8158 done
8159 IFS="$lt_save_ifs"
8160 ;;
8161 esac
8162else
8163 enable_shared=yes
8164fi
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176# Check whether --with-pic was given.
8177if test "${with_pic+set}" = set; then :
8178 withval=$with_pic; lt_p=${PACKAGE-default}
8179 case $withval in
8180 yes|no) pic_mode=$withval ;;
8181 *)
8182 pic_mode=default
8183 # Look at the argument we got. We use all the common list separators.
8184 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8185 for lt_pkg in $withval; do
8186 IFS="$lt_save_ifs"
8187 if test "X$lt_pkg" = "X$lt_p"; then
8188 pic_mode=yes
8189 fi
8190 done
8191 IFS="$lt_save_ifs"
8192 ;;
8193 esac
8194else
8195 pic_mode=default
8196fi
8197
8198
8199test -z "$pic_mode" && pic_mode=default
8200
8201
8202
8203
8204
8205
8206
8207 # Check whether --enable-fast-install was given.
8208if test "${enable_fast_install+set}" = set; then :
8209 enableval=$enable_fast_install; p=${PACKAGE-default}
8210 case $enableval in
8211 yes) enable_fast_install=yes ;;
8212 no) enable_fast_install=no ;;
8213 *)
8214 enable_fast_install=no
8215 # Look at the argument we got. We use all the common list separators.
8216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8217 for pkg in $enableval; do
8218 IFS="$lt_save_ifs"
8219 if test "X$pkg" = "X$p"; then
8220 enable_fast_install=yes
8221 fi
8222 done
8223 IFS="$lt_save_ifs"
8224 ;;
8225 esac
8226else
8227 enable_fast_install=yes
8228fi
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240# This can be used to rebuild libtool when needed
8241LIBTOOL_DEPS="$ltmain"
8242
8243# Always use our own libtool.
8244LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275test -z "$LN_S" && LN_S="ln -s"
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290if test -n "${ZSH_VERSION+set}" ; then
8291 setopt NO_GLOB_SUBST
8292fi
8293
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8295$as_echo_n "checking for objdir... " >&6; }
8296if ${lt_cv_objdir+:} false; then :
8297 $as_echo_n "(cached) " >&6
8298else
8299 rm -f .libs 2>/dev/null
8300mkdir .libs 2>/dev/null
8301if test -d .libs; then
8302 lt_cv_objdir=.libs
8303else
8304 # MS-DOS does not allow filenames that begin with a dot.
8305 lt_cv_objdir=_libs
8306fi
8307rmdir .libs 2>/dev/null
8308fi
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8310$as_echo "$lt_cv_objdir" >&6; }
8311objdir=$lt_cv_objdir
8312
8313
8314
8315
8316
8317cat >>confdefs.h <<_ACEOF
8318#define LT_OBJDIR "$lt_cv_objdir/"
8319_ACEOF
8320
8321
8322
8323
8324case $host_os in
8325aix3*)
8326 # AIX sometimes has problems with the GCC collect2 program. For some
8327 # reason, if we set the COLLECT_NAMES environment variable, the problems
8328 # vanish in a puff of smoke.
8329 if test "X${COLLECT_NAMES+set}" != Xset; then
8330 COLLECT_NAMES=
8331 export COLLECT_NAMES
8332 fi
8333 ;;
8334esac
8335
8336# Global variables:
8337ofile=libtool
8338can_build_shared=yes
8339
8340# All known linkers require a `.a' archive for static linking (except MSVC,
8341# which needs '.lib').
8342libext=a
8343
8344with_gnu_ld="$lt_cv_prog_gnu_ld"
8345
8346old_CC="$CC"
8347old_CFLAGS="$CFLAGS"
8348
8349# Set sane defaults for various variables
8350test -z "$CC" && CC=cc
8351test -z "$LTCC" && LTCC=$CC
8352test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8353test -z "$LD" && LD=ld
8354test -z "$ac_objext" && ac_objext=o
8355
8356for cc_temp in $compiler""; do
8357 case $cc_temp in
8358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8360 \-*) ;;
8361 *) break;;
8362 esac
8363done
8364cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8365
8366
8367# Only perform the check for file, if the check method requires it
8368test -z "$MAGIC_CMD" && MAGIC_CMD=file
8369case $deplibs_check_method in
8370file_magic*)
8371 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8373$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8374if ${lt_cv_path_MAGIC_CMD+:} false; then :
8375 $as_echo_n "(cached) " >&6
8376else
8377 case $MAGIC_CMD in
8378[\\/*] | ?:[\\/]*)
8379 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8380 ;;
8381*)
8382 lt_save_MAGIC_CMD="$MAGIC_CMD"
8383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8384 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8385 for ac_dir in $ac_dummy; do
8386 IFS="$lt_save_ifs"
8387 test -z "$ac_dir" && ac_dir=.
8388 if test -f $ac_dir/${ac_tool_prefix}file; then
8389 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8390 if test -n "$file_magic_test_file"; then
8391 case $deplibs_check_method in
8392 "file_magic "*)
8393 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8395 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8396 $EGREP "$file_magic_regex" > /dev/null; then
8397 :
8398 else
8399 cat <<_LT_EOF 1>&2
8400
8401*** Warning: the command libtool uses to detect shared libraries,
8402*** $file_magic_cmd, produces output that libtool cannot recognize.
8403*** The result is that libtool may fail to recognize shared libraries
8404*** as such. This will affect the creation of libtool libraries that
8405*** depend on shared libraries, but programs linked with such libtool
8406*** libraries will work regardless of this problem. Nevertheless, you
8407*** may want to report the problem to your system manager and/or to
8408*** bug-libtool@gnu.org
8409
8410_LT_EOF
8411 fi ;;
8412 esac
8413 fi
8414 break
8415 fi
8416 done
8417 IFS="$lt_save_ifs"
8418 MAGIC_CMD="$lt_save_MAGIC_CMD"
8419 ;;
8420esac
8421fi
8422
8423MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8424if test -n "$MAGIC_CMD"; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8426$as_echo "$MAGIC_CMD" >&6; }
8427else
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429$as_echo "no" >&6; }
8430fi
8431
8432
8433
8434
8435
8436if test -z "$lt_cv_path_MAGIC_CMD"; then
8437 if test -n "$ac_tool_prefix"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8439$as_echo_n "checking for file... " >&6; }
8440if ${lt_cv_path_MAGIC_CMD+:} false; then :
8441 $as_echo_n "(cached) " >&6
8442else
8443 case $MAGIC_CMD in
8444[\\/*] | ?:[\\/]*)
8445 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8446 ;;
8447*)
8448 lt_save_MAGIC_CMD="$MAGIC_CMD"
8449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8450 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8451 for ac_dir in $ac_dummy; do
8452 IFS="$lt_save_ifs"
8453 test -z "$ac_dir" && ac_dir=.
8454 if test -f $ac_dir/file; then
8455 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8456 if test -n "$file_magic_test_file"; then
8457 case $deplibs_check_method in
8458 "file_magic "*)
8459 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8461 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8462 $EGREP "$file_magic_regex" > /dev/null; then
8463 :
8464 else
8465 cat <<_LT_EOF 1>&2
8466
8467*** Warning: the command libtool uses to detect shared libraries,
8468*** $file_magic_cmd, produces output that libtool cannot recognize.
8469*** The result is that libtool may fail to recognize shared libraries
8470*** as such. This will affect the creation of libtool libraries that
8471*** depend on shared libraries, but programs linked with such libtool
8472*** libraries will work regardless of this problem. Nevertheless, you
8473*** may want to report the problem to your system manager and/or to
8474*** bug-libtool@gnu.org
8475
8476_LT_EOF
8477 fi ;;
8478 esac
8479 fi
8480 break
8481 fi
8482 done
8483 IFS="$lt_save_ifs"
8484 MAGIC_CMD="$lt_save_MAGIC_CMD"
8485 ;;
8486esac
8487fi
8488
8489MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8490if test -n "$MAGIC_CMD"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8492$as_echo "$MAGIC_CMD" >&6; }
8493else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495$as_echo "no" >&6; }
8496fi
8497
8498
8499 else
8500 MAGIC_CMD=:
8501 fi
8502fi
8503
8504 fi
8505 ;;
8506esac
8507
8508# Use C for the default configuration in the libtool script
8509
8510lt_save_CC="$CC"
8511ac_ext=c
8512ac_cpp='$CPP $CPPFLAGS'
8513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8515ac_compiler_gnu=$ac_cv_c_compiler_gnu
8516
8517
8518# Source file extension for C test sources.
8519ac_ext=c
8520
8521# Object file extension for compiled C test sources.
8522objext=o
8523objext=$objext
8524
8525# Code to be used in simple compile tests
8526lt_simple_compile_test_code="int some_variable = 0;"
8527
8528# Code to be used in simple link tests
8529lt_simple_link_test_code='int main(){return(0);}'
8530
8531
8532
8533
8534
8535
8536
8537# If no C compiler was specified, use CC.
8538LTCC=${LTCC-"$CC"}
8539
8540# If no C compiler flags were specified, use CFLAGS.
8541LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8542
8543# Allow CC to be a program name with arguments.
8544compiler=$CC
8545
8546# Save the default compiler, since it gets overwritten when the other
8547# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8548compiler_DEFAULT=$CC
8549
8550# save warnings/boilerplate of simple test code
8551ac_outfile=conftest.$ac_objext
8552echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8553eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8554_lt_compiler_boilerplate=`cat conftest.err`
8555$RM conftest*
8556
8557ac_outfile=conftest.$ac_objext
8558echo "$lt_simple_link_test_code" >conftest.$ac_ext
8559eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8560_lt_linker_boilerplate=`cat conftest.err`
8561$RM -r conftest*
8562
8563
8564## CAVEAT EMPTOR:
8565## There is no encapsulation within the following macros, do not change
8566## the running order or otherwise move them around unless you know exactly
8567## what you are doing...
8568if test -n "$compiler"; then
8569
8570lt_prog_compiler_no_builtin_flag=
8571
8572if test "$GCC" = yes; then
8573 case $cc_basename in
8574 nvcc*)
8575 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8576 *)
8577 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8578 esac
8579
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8581$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8582if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8583 $as_echo_n "(cached) " >&6
8584else
8585 lt_cv_prog_compiler_rtti_exceptions=no
8586 ac_outfile=conftest.$ac_objext
8587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8588 lt_compiler_flag="-fno-rtti -fno-exceptions"
8589 # Insert the option either (1) after the last *FLAGS variable, or
8590 # (2) before a word containing "conftest.", or (3) at the end.
8591 # Note that $ac_compile itself does not contain backslashes and begins
8592 # with a dollar sign (not a hyphen), so the echo should work correctly.
8593 # The option is referenced via a variable to avoid confusing sed.
8594 lt_compile=`echo "$ac_compile" | $SED \
8595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8597 -e 's:$: $lt_compiler_flag:'`
8598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8599 (eval "$lt_compile" 2>conftest.err)
8600 ac_status=$?
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 if (exit $ac_status) && test -s "$ac_outfile"; then
8604 # The compiler can only warn and ignore the option if not recognized
8605 # So say no if there are warnings other than the usual output.
8606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8608 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8609 lt_cv_prog_compiler_rtti_exceptions=yes
8610 fi
8611 fi
8612 $RM conftest*
8613
8614fi
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8616$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8617
8618if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8619 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8620else
8621 :
8622fi
8623
8624fi
8625
8626
8627
8628
8629
8630
8631 lt_prog_compiler_wl=
8632lt_prog_compiler_pic=
8633lt_prog_compiler_static=
8634
8635
8636 if test "$GCC" = yes; then
8637 lt_prog_compiler_wl='-Wl,'
8638 lt_prog_compiler_static='-static'
8639
8640 case $host_os in
8641 aix*)
8642 # All AIX code is PIC.
8643 if test "$host_cpu" = ia64; then
8644 # AIX 5 now supports IA64 processor
8645 lt_prog_compiler_static='-Bstatic'
8646 fi
8647 ;;
8648
8649 amigaos*)
8650 case $host_cpu in
8651 powerpc)
8652 # see comment about AmigaOS4 .so support
8653 lt_prog_compiler_pic='-fPIC'
8654 ;;
8655 m68k)
8656 # FIXME: we need at least 68020 code to build shared libraries, but
8657 # adding the `-m68020' flag to GCC prevents building anything better,
8658 # like `-m68040'.
8659 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8660 ;;
8661 esac
8662 ;;
8663
8664 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8665 # PIC is the default for these OSes.
8666 ;;
8667
8668 mingw* | cygwin* | pw32* | os2* | cegcc*)
8669 # This hack is so that the source file can tell whether it is being
8670 # built for inclusion in a dll (and should export symbols for example).
8671 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8672 # (--disable-auto-import) libraries
8673 lt_prog_compiler_pic='-DDLL_EXPORT'
8674 ;;
8675
8676 darwin* | rhapsody*)
8677 # PIC is the default on this platform
8678 # Common symbols not allowed in MH_DYLIB files
8679 lt_prog_compiler_pic='-fno-common'
8680 ;;
8681
8682 haiku*)
8683 # PIC is the default for Haiku.
8684 # The "-static" flag exists, but is broken.
8685 lt_prog_compiler_static=
8686 ;;
8687
8688 hpux*)
8689 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8690 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8691 # sets the default TLS model and affects inlining.
8692 case $host_cpu in
8693 hppa*64*)
8694 # +Z the default
8695 ;;
8696 *)
8697 lt_prog_compiler_pic='-fPIC'
8698 ;;
8699 esac
8700 ;;
8701
8702 interix[3-9]*)
8703 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8704 # Instead, we relocate shared libraries at runtime.
8705 ;;
8706
8707 msdosdjgpp*)
8708 # Just because we use GCC doesn't mean we suddenly get shared libraries
8709 # on systems that don't support them.
8710 lt_prog_compiler_can_build_shared=no
8711 enable_shared=no
8712 ;;
8713
8714 *nto* | *qnx*)
8715 # QNX uses GNU C++, but need to define -shared option too, otherwise
8716 # it will coredump.
8717 lt_prog_compiler_pic='-fPIC -shared'
8718 ;;
8719
8720 sysv4*MP*)
8721 if test -d /usr/nec; then
8722 lt_prog_compiler_pic=-Kconform_pic
8723 fi
8724 ;;
8725
8726 *)
8727 lt_prog_compiler_pic='-fPIC'
8728 ;;
8729 esac
8730
8731 case $cc_basename in
8732 nvcc*) # Cuda Compiler Driver 2.2
8733 lt_prog_compiler_wl='-Xlinker '
8734 if test -n "$lt_prog_compiler_pic"; then
8735 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8736 fi
8737 ;;
8738 esac
8739 else
8740 # PORTME Check for flag to pass linker flags through the system compiler.
8741 case $host_os in
8742 aix*)
8743 lt_prog_compiler_wl='-Wl,'
8744 if test "$host_cpu" = ia64; then
8745 # AIX 5 now supports IA64 processor
8746 lt_prog_compiler_static='-Bstatic'
8747 else
8748 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8749 fi
8750 ;;
8751
8752 mingw* | cygwin* | pw32* | os2* | cegcc*)
8753 # This hack is so that the source file can tell whether it is being
8754 # built for inclusion in a dll (and should export symbols for example).
8755 lt_prog_compiler_pic='-DDLL_EXPORT'
8756 ;;
8757
8758 hpux9* | hpux10* | hpux11*)
8759 lt_prog_compiler_wl='-Wl,'
8760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8761 # not for PA HP-UX.
8762 case $host_cpu in
8763 hppa*64*|ia64*)
8764 # +Z the default
8765 ;;
8766 *)
8767 lt_prog_compiler_pic='+Z'
8768 ;;
8769 esac
8770 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8771 lt_prog_compiler_static='${wl}-a ${wl}archive'
8772 ;;
8773
8774 irix5* | irix6* | nonstopux*)
8775 lt_prog_compiler_wl='-Wl,'
8776 # PIC (with -KPIC) is the default.
8777 lt_prog_compiler_static='-non_shared'
8778 ;;
8779
8780 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8781 case $cc_basename in
8782 # old Intel for x86_64 which still supported -KPIC.
8783 ecc*)
8784 lt_prog_compiler_wl='-Wl,'
8785 lt_prog_compiler_pic='-KPIC'
8786 lt_prog_compiler_static='-static'
8787 ;;
8788 # icc used to be incompatible with GCC.
8789 # ICC 10 doesn't accept -KPIC any more.
8790 icc* | ifort*)
8791 lt_prog_compiler_wl='-Wl,'
8792 lt_prog_compiler_pic='-fPIC'
8793 lt_prog_compiler_static='-static'
8794 ;;
8795 # Lahey Fortran 8.1.
8796 lf95*)
8797 lt_prog_compiler_wl='-Wl,'
8798 lt_prog_compiler_pic='--shared'
8799 lt_prog_compiler_static='--static'
8800 ;;
8801 nagfor*)
8802 # NAG Fortran compiler
8803 lt_prog_compiler_wl='-Wl,-Wl,,'
8804 lt_prog_compiler_pic='-PIC'
8805 lt_prog_compiler_static='-Bstatic'
8806 ;;
8807 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8808 # Portland Group compilers (*not* the Pentium gcc compiler,
8809 # which looks to be a dead project)
8810 lt_prog_compiler_wl='-Wl,'
8811 lt_prog_compiler_pic='-fpic'
8812 lt_prog_compiler_static='-Bstatic'
8813 ;;
8814 ccc*)
8815 lt_prog_compiler_wl='-Wl,'
8816 # All Alpha code is PIC.
8817 lt_prog_compiler_static='-non_shared'
8818 ;;
8819 xl* | bgxl* | bgf* | mpixl*)
8820 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8821 lt_prog_compiler_wl='-Wl,'
8822 lt_prog_compiler_pic='-qpic'
8823 lt_prog_compiler_static='-qstaticlink'
8824 ;;
8825 *)
8826 case `$CC -V 2>&1 | sed 5q` in
8827 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8828 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8829 lt_prog_compiler_pic='-KPIC'
8830 lt_prog_compiler_static='-Bstatic'
8831 lt_prog_compiler_wl=''
8832 ;;
8833 *Sun\ F* | *Sun*Fortran*)
8834 lt_prog_compiler_pic='-KPIC'
8835 lt_prog_compiler_static='-Bstatic'
8836 lt_prog_compiler_wl='-Qoption ld '
8837 ;;
8838 *Sun\ C*)
8839 # Sun C 5.9
8840 lt_prog_compiler_pic='-KPIC'
8841 lt_prog_compiler_static='-Bstatic'
8842 lt_prog_compiler_wl='-Wl,'
8843 ;;
8844 *Intel*\ [CF]*Compiler*)
8845 lt_prog_compiler_wl='-Wl,'
8846 lt_prog_compiler_pic='-fPIC'
8847 lt_prog_compiler_static='-static'
8848 ;;
8849 *Portland\ Group*)
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_pic='-fpic'
8852 lt_prog_compiler_static='-Bstatic'
8853 ;;
8854 esac
8855 ;;
8856 esac
8857 ;;
8858
8859 newsos6)
8860 lt_prog_compiler_pic='-KPIC'
8861 lt_prog_compiler_static='-Bstatic'
8862 ;;
8863
8864 *nto* | *qnx*)
8865 # QNX uses GNU C++, but need to define -shared option too, otherwise
8866 # it will coredump.
8867 lt_prog_compiler_pic='-fPIC -shared'
8868 ;;
8869
8870 osf3* | osf4* | osf5*)
8871 lt_prog_compiler_wl='-Wl,'
8872 # All OSF/1 code is PIC.
8873 lt_prog_compiler_static='-non_shared'
8874 ;;
8875
8876 rdos*)
8877 lt_prog_compiler_static='-non_shared'
8878 ;;
8879
8880 solaris*)
8881 lt_prog_compiler_pic='-KPIC'
8882 lt_prog_compiler_static='-Bstatic'
8883 case $cc_basename in
8884 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8885 lt_prog_compiler_wl='-Qoption ld ';;
8886 *)
8887 lt_prog_compiler_wl='-Wl,';;
8888 esac
8889 ;;
8890
8891 sunos4*)
8892 lt_prog_compiler_wl='-Qoption ld '
8893 lt_prog_compiler_pic='-PIC'
8894 lt_prog_compiler_static='-Bstatic'
8895 ;;
8896
8897 sysv4 | sysv4.2uw2* | sysv4.3*)
8898 lt_prog_compiler_wl='-Wl,'
8899 lt_prog_compiler_pic='-KPIC'
8900 lt_prog_compiler_static='-Bstatic'
8901 ;;
8902
8903 sysv4*MP*)
8904 if test -d /usr/nec ;then
8905 lt_prog_compiler_pic='-Kconform_pic'
8906 lt_prog_compiler_static='-Bstatic'
8907 fi
8908 ;;
8909
8910 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8911 lt_prog_compiler_wl='-Wl,'
8912 lt_prog_compiler_pic='-KPIC'
8913 lt_prog_compiler_static='-Bstatic'
8914 ;;
8915
8916 unicos*)
8917 lt_prog_compiler_wl='-Wl,'
8918 lt_prog_compiler_can_build_shared=no
8919 ;;
8920
8921 uts4*)
8922 lt_prog_compiler_pic='-pic'
8923 lt_prog_compiler_static='-Bstatic'
8924 ;;
8925
8926 *)
8927 lt_prog_compiler_can_build_shared=no
8928 ;;
8929 esac
8930 fi
8931
8932case $host_os in
8933 # For platforms which do not support PIC, -DPIC is meaningless:
8934 *djgpp*)
8935 lt_prog_compiler_pic=
8936 ;;
8937 *)
8938 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8939 ;;
8940esac
8941
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8943$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8944if ${lt_cv_prog_compiler_pic+:} false; then :
8945 $as_echo_n "(cached) " >&6
8946else
8947 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8948fi
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8950$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8951lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8952
8953#
8954# Check to make sure the PIC flag actually works.
8955#
8956if test -n "$lt_prog_compiler_pic"; then
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8958$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8959if ${lt_cv_prog_compiler_pic_works+:} false; then :
8960 $as_echo_n "(cached) " >&6
8961else
8962 lt_cv_prog_compiler_pic_works=no
8963 ac_outfile=conftest.$ac_objext
8964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8965 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8966 # Insert the option either (1) after the last *FLAGS variable, or
8967 # (2) before a word containing "conftest.", or (3) at the end.
8968 # Note that $ac_compile itself does not contain backslashes and begins
8969 # with a dollar sign (not a hyphen), so the echo should work correctly.
8970 # The option is referenced via a variable to avoid confusing sed.
8971 lt_compile=`echo "$ac_compile" | $SED \
8972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8974 -e 's:$: $lt_compiler_flag:'`
8975 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8976 (eval "$lt_compile" 2>conftest.err)
8977 ac_status=$?
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 if (exit $ac_status) && test -s "$ac_outfile"; then
8981 # The compiler can only warn and ignore the option if not recognized
8982 # So say no if there are warnings other than the usual output.
8983 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8985 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8986 lt_cv_prog_compiler_pic_works=yes
8987 fi
8988 fi
8989 $RM conftest*
8990
8991fi
8992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8993$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8994
8995if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8996 case $lt_prog_compiler_pic in
8997 "" | " "*) ;;
8998 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8999 esac
9000else
9001 lt_prog_compiler_pic=
9002 lt_prog_compiler_can_build_shared=no
9003fi
9004
9005fi
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017#
9018# Check to make sure the static flag actually works.
9019#
9020wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9022$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9023if ${lt_cv_prog_compiler_static_works+:} false; then :
9024 $as_echo_n "(cached) " >&6
9025else
9026 lt_cv_prog_compiler_static_works=no
9027 save_LDFLAGS="$LDFLAGS"
9028 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9029 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9030 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9031 # The linker can only warn and ignore the option if not recognized
9032 # So say no if there are warnings
9033 if test -s conftest.err; then
9034 # Append any errors to the config.log.
9035 cat conftest.err 1>&5
9036 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9038 if diff conftest.exp conftest.er2 >/dev/null; then
9039 lt_cv_prog_compiler_static_works=yes
9040 fi
9041 else
9042 lt_cv_prog_compiler_static_works=yes
9043 fi
9044 fi
9045 $RM -r conftest*
9046 LDFLAGS="$save_LDFLAGS"
9047
9048fi
9049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9050$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9051
9052if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9053 :
9054else
9055 lt_prog_compiler_static=
9056fi
9057
9058
9059
9060
9061
9062
9063
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9065$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9066if ${lt_cv_prog_compiler_c_o+:} false; then :
9067 $as_echo_n "(cached) " >&6
9068else
9069 lt_cv_prog_compiler_c_o=no
9070 $RM -r conftest 2>/dev/null
9071 mkdir conftest
9072 cd conftest
9073 mkdir out
9074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9075
9076 lt_compiler_flag="-o out/conftest2.$ac_objext"
9077 # Insert the option either (1) after the last *FLAGS variable, or
9078 # (2) before a word containing "conftest.", or (3) at the end.
9079 # Note that $ac_compile itself does not contain backslashes and begins
9080 # with a dollar sign (not a hyphen), so the echo should work correctly.
9081 lt_compile=`echo "$ac_compile" | $SED \
9082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9084 -e 's:$: $lt_compiler_flag:'`
9085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9086 (eval "$lt_compile" 2>out/conftest.err)
9087 ac_status=$?
9088 cat out/conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9091 then
9092 # The compiler can only warn and ignore the option if not recognized
9093 # So say no if there are warnings
9094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9097 lt_cv_prog_compiler_c_o=yes
9098 fi
9099 fi
9100 chmod u+w . 2>&5
9101 $RM conftest*
9102 # SGI C++ compiler will create directory out/ii_files/ for
9103 # template instantiation
9104 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9105 $RM out/* && rmdir out
9106 cd ..
9107 $RM -r conftest
9108 $RM conftest*
9109
9110fi
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9112$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9113
9114
9115
9116
9117
9118
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9120$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9121if ${lt_cv_prog_compiler_c_o+:} false; then :
9122 $as_echo_n "(cached) " >&6
9123else
9124 lt_cv_prog_compiler_c_o=no
9125 $RM -r conftest 2>/dev/null
9126 mkdir conftest
9127 cd conftest
9128 mkdir out
9129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9130
9131 lt_compiler_flag="-o out/conftest2.$ac_objext"
9132 # Insert the option either (1) after the last *FLAGS variable, or
9133 # (2) before a word containing "conftest.", or (3) at the end.
9134 # Note that $ac_compile itself does not contain backslashes and begins
9135 # with a dollar sign (not a hyphen), so the echo should work correctly.
9136 lt_compile=`echo "$ac_compile" | $SED \
9137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9139 -e 's:$: $lt_compiler_flag:'`
9140 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9141 (eval "$lt_compile" 2>out/conftest.err)
9142 ac_status=$?
9143 cat out/conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9146 then
9147 # The compiler can only warn and ignore the option if not recognized
9148 # So say no if there are warnings
9149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9150 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9151 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9152 lt_cv_prog_compiler_c_o=yes
9153 fi
9154 fi
9155 chmod u+w . 2>&5
9156 $RM conftest*
9157 # SGI C++ compiler will create directory out/ii_files/ for
9158 # template instantiation
9159 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9160 $RM out/* && rmdir out
9161 cd ..
9162 $RM -r conftest
9163 $RM conftest*
9164
9165fi
9166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9167$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9168
9169
9170
9171
9172hard_links="nottested"
9173if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9174 # do not overwrite the value of need_locks provided by the user
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9176$as_echo_n "checking if we can lock with hard links... " >&6; }
9177 hard_links=yes
9178 $RM conftest*
9179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9180 touch conftest.a
9181 ln conftest.a conftest.b 2>&5 || hard_links=no
9182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9184$as_echo "$hard_links" >&6; }
9185 if test "$hard_links" = no; then
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9187$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9188 need_locks=warn
9189 fi
9190else
9191 need_locks=no
9192fi
9193
9194
9195
9196
9197
9198
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9200$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9201
9202 runpath_var=
9203 allow_undefined_flag=
9204 always_export_symbols=no
9205 archive_cmds=
9206 archive_expsym_cmds=
9207 compiler_needs_object=no
9208 enable_shared_with_static_runtimes=no
9209 export_dynamic_flag_spec=
9210 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9211 hardcode_automatic=no
9212 hardcode_direct=no
9213 hardcode_direct_absolute=no
9214 hardcode_libdir_flag_spec=
9215 hardcode_libdir_separator=
9216 hardcode_minus_L=no
9217 hardcode_shlibpath_var=unsupported
9218 inherit_rpath=no
9219 link_all_deplibs=unknown
9220 module_cmds=
9221 module_expsym_cmds=
9222 old_archive_from_new_cmds=
9223 old_archive_from_expsyms_cmds=
9224 thread_safe_flag_spec=
9225 whole_archive_flag_spec=
9226 # include_expsyms should be a list of space-separated symbols to be *always*
9227 # included in the symbol list
9228 include_expsyms=
9229 # exclude_expsyms can be an extended regexp of symbols to exclude
9230 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9231 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9232 # as well as any symbol that contains `d'.
9233 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9234 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9235 # platforms (ab)use it in PIC code, but their linkers get confused if
9236 # the symbol is explicitly referenced. Since portable code cannot
9237 # rely on this symbol name, it's probably fine to never include it in
9238 # preloaded symbol tables.
9239 # Exclude shared library initialization/finalization symbols.
9240 extract_expsyms_cmds=
9241
9242 case $host_os in
9243 cygwin* | mingw* | pw32* | cegcc*)
9244 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9245 # When not using gcc, we currently assume that we are using
9246 # Microsoft Visual C++.
9247 if test "$GCC" != yes; then
9248 with_gnu_ld=no
9249 fi
9250 ;;
9251 interix*)
9252 # we just hope/assume this is gcc and not c89 (= MSVC++)
9253 with_gnu_ld=yes
9254 ;;
9255 openbsd*)
9256 with_gnu_ld=no
9257 ;;
9258 linux* | k*bsd*-gnu | gnu*)
9259 link_all_deplibs=no
9260 ;;
9261 esac
9262
9263 ld_shlibs=yes
9264
9265 # On some targets, GNU ld is compatible enough with the native linker
9266 # that we're better off using the native interface for both.
9267 lt_use_gnu_ld_interface=no
9268 if test "$with_gnu_ld" = yes; then
9269 case $host_os in
9270 aix*)
9271 # The AIX port of GNU ld has always aspired to compatibility
9272 # with the native linker. However, as the warning in the GNU ld
9273 # block says, versions before 2.19.5* couldn't really create working
9274 # shared libraries, regardless of the interface used.
9275 case `$LD -v 2>&1` in
9276 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9277 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9278 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9279 *)
9280 lt_use_gnu_ld_interface=yes
9281 ;;
9282 esac
9283 ;;
9284 *)
9285 lt_use_gnu_ld_interface=yes
9286 ;;
9287 esac
9288 fi
9289
9290 if test "$lt_use_gnu_ld_interface" = yes; then
9291 # If archive_cmds runs LD, not CC, wlarc should be empty
9292 wlarc='${wl}'
9293
9294 # Set some defaults for GNU ld with shared library support. These
9295 # are reset later if shared libraries are not supported. Putting them
9296 # here allows them to be overridden if necessary.
9297 runpath_var=LD_RUN_PATH
9298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9299 export_dynamic_flag_spec='${wl}--export-dynamic'
9300 # ancient GNU ld didn't support --whole-archive et. al.
9301 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9302 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9303 else
9304 whole_archive_flag_spec=
9305 fi
9306 supports_anon_versioning=no
9307 case `$LD -v 2>&1` in
9308 *GNU\ gold*) supports_anon_versioning=yes ;;
9309 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9310 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9311 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9312 *\ 2.11.*) ;; # other 2.11 versions
9313 *) supports_anon_versioning=yes ;;
9314 esac
9315
9316 # See if GNU ld supports shared libraries.
9317 case $host_os in
9318 aix[3-9]*)
9319 # On AIX/PPC, the GNU linker is very broken
9320 if test "$host_cpu" != ia64; then
9321 ld_shlibs=no
9322 cat <<_LT_EOF 1>&2
9323
9324*** Warning: the GNU linker, at least up to release 2.19, is reported
9325*** to be unable to reliably create shared libraries on AIX.
9326*** Therefore, libtool is disabling shared libraries support. If you
9327*** really care for shared libraries, you may want to install binutils
9328*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9329*** You will then need to restart the configuration process.
9330
9331_LT_EOF
9332 fi
9333 ;;
9334
9335 amigaos*)
9336 case $host_cpu in
9337 powerpc)
9338 # see comment about AmigaOS4 .so support
9339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9340 archive_expsym_cmds=''
9341 ;;
9342 m68k)
9343 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)'
9344 hardcode_libdir_flag_spec='-L$libdir'
9345 hardcode_minus_L=yes
9346 ;;
9347 esac
9348 ;;
9349
9350 beos*)
9351 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9352 allow_undefined_flag=unsupported
9353 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9354 # support --undefined. This deserves some investigation. FIXME
9355 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356 else
9357 ld_shlibs=no
9358 fi
9359 ;;
9360
9361 cygwin* | mingw* | pw32* | cegcc*)
9362 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9363 # as there is no search path for DLLs.
9364 hardcode_libdir_flag_spec='-L$libdir'
9365 export_dynamic_flag_spec='${wl}--export-all-symbols'
9366 allow_undefined_flag=unsupported
9367 always_export_symbols=no
9368 enable_shared_with_static_runtimes=yes
9369 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'
9370 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9371
9372 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9374 # If the export-symbols file already is a .def file (1st line
9375 # is EXPORTS), use it as is; otherwise, prepend...
9376 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9377 cp $export_symbols $output_objdir/$soname.def;
9378 else
9379 echo EXPORTS > $output_objdir/$soname.def;
9380 cat $export_symbols >> $output_objdir/$soname.def;
9381 fi~
9382 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9383 else
9384 ld_shlibs=no
9385 fi
9386 ;;
9387
9388 haiku*)
9389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9390 link_all_deplibs=yes
9391 ;;
9392
9393 interix[3-9]*)
9394 hardcode_direct=no
9395 hardcode_shlibpath_var=no
9396 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9397 export_dynamic_flag_spec='${wl}-E'
9398 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9399 # Instead, shared libraries are loaded at an image base (0x10000000 by
9400 # default) and relocated if they conflict, which is a slow very memory
9401 # consuming and fragmenting process. To avoid this, we pick a random,
9402 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9403 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9404 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9405 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'
9406 ;;
9407
9408 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9409 tmp_diet=no
9410 if test "$host_os" = linux-dietlibc; then
9411 case $cc_basename in
9412 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9413 esac
9414 fi
9415 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9416 && test "$tmp_diet" = no
9417 then
9418 tmp_addflag=' $pic_flag'
9419 tmp_sharedflag='-shared'
9420 case $cc_basename,$host_cpu in
9421 pgcc*) # Portland Group C compiler
9422 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'
9423 tmp_addflag=' $pic_flag'
9424 ;;
9425 pgf77* | pgf90* | pgf95* | pgfortran*)
9426 # Portland Group f77 and f90 compilers
9427 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'
9428 tmp_addflag=' $pic_flag -Mnomain' ;;
9429 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9430 tmp_addflag=' -i_dynamic' ;;
9431 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9432 tmp_addflag=' -i_dynamic -nofor_main' ;;
9433 ifc* | ifort*) # Intel Fortran compiler
9434 tmp_addflag=' -nofor_main' ;;
9435 lf95*) # Lahey Fortran 8.1
9436 whole_archive_flag_spec=
9437 tmp_sharedflag='--shared' ;;
9438 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9439 tmp_sharedflag='-qmkshrobj'
9440 tmp_addflag= ;;
9441 nvcc*) # Cuda Compiler Driver 2.2
9442 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'
9443 compiler_needs_object=yes
9444 ;;
9445 esac
9446 case `$CC -V 2>&1 | sed 5q` in
9447 *Sun\ C*) # Sun C 5.9
9448 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'
9449 compiler_needs_object=yes
9450 tmp_sharedflag='-G' ;;
9451 *Sun\ F*) # Sun Fortran 8.3
9452 tmp_sharedflag='-G' ;;
9453 esac
9454 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9455
9456 if test "x$supports_anon_versioning" = xyes; then
9457 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9458 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9459 echo "local: *; };" >> $output_objdir/$libname.ver~
9460 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9461 fi
9462
9463 case $cc_basename in
9464 xlf* | bgf* | bgxlf* | mpixlf*)
9465 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9466 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9468 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9469 if test "x$supports_anon_versioning" = xyes; then
9470 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9472 echo "local: *; };" >> $output_objdir/$libname.ver~
9473 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9474 fi
9475 ;;
9476 esac
9477 else
9478 ld_shlibs=no
9479 fi
9480 ;;
9481
9482 netbsd* | netbsdelf*-gnu)
9483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9484 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9485 wlarc=
9486 else
9487 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9488 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9489 fi
9490 ;;
9491
9492 solaris*)
9493 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9494 ld_shlibs=no
9495 cat <<_LT_EOF 1>&2
9496
9497*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9498*** create shared libraries on Solaris systems. Therefore, libtool
9499*** is disabling shared libraries support. We urge you to upgrade GNU
9500*** binutils to release 2.9.1 or newer. Another option is to modify
9501*** your PATH or compiler configuration so that the native linker is
9502*** used, and then restart.
9503
9504_LT_EOF
9505 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9506 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9507 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9508 else
9509 ld_shlibs=no
9510 fi
9511 ;;
9512
9513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9514 case `$LD -v 2>&1` in
9515 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9516 ld_shlibs=no
9517 cat <<_LT_EOF 1>&2
9518
9519*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9520*** reliably create shared libraries on SCO systems. Therefore, libtool
9521*** is disabling shared libraries support. We urge you to upgrade GNU
9522*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9523*** your PATH or compiler configuration so that the native linker is
9524*** used, and then restart.
9525
9526_LT_EOF
9527 ;;
9528 *)
9529 # For security reasons, it is highly recommended that you always
9530 # use absolute paths for naming shared libraries, and exclude the
9531 # DT_RUNPATH tag from executables and libraries. But doing so
9532 # requires that you compile everything twice, which is a pain.
9533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9534 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9536 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9537 else
9538 ld_shlibs=no
9539 fi
9540 ;;
9541 esac
9542 ;;
9543
9544 sunos4*)
9545 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9546 wlarc=
9547 hardcode_direct=yes
9548 hardcode_shlibpath_var=no
9549 ;;
9550
9551 *)
9552 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9553 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9555 else
9556 ld_shlibs=no
9557 fi
9558 ;;
9559 esac
9560
9561 if test "$ld_shlibs" = no; then
9562 runpath_var=
9563 hardcode_libdir_flag_spec=
9564 export_dynamic_flag_spec=
9565 whole_archive_flag_spec=
9566 fi
9567 else
9568 # PORTME fill in a description of your system's linker (not GNU ld)
9569 case $host_os in
9570 aix3*)
9571 allow_undefined_flag=unsupported
9572 always_export_symbols=yes
9573 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'
9574 # Note: this linker hardcodes the directories in LIBPATH if there
9575 # are no directories specified by -L.
9576 hardcode_minus_L=yes
9577 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9578 # Neither direct hardcoding nor static linking is supported with a
9579 # broken collect2.
9580 hardcode_direct=unsupported
9581 fi
9582 ;;
9583
9584 aix[4-9]*)
9585 if test "$host_cpu" = ia64; then
9586 # On IA64, the linker does run time linking by default, so we don't
9587 # have to do anything special.
9588 aix_use_runtimelinking=no
9589 exp_sym_flag='-Bexport'
9590 no_entry_flag=""
9591 else
9592 # If we're using GNU nm, then we don't want the "-C" option.
9593 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9594 # Also, AIX nm treats weak defined symbols like other global
9595 # defined symbols, whereas GNU nm marks them as "W".
9596 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9597 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9598 else
9599 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9600 fi
9601 aix_use_runtimelinking=no
9602
9603 # Test if we are trying to use run time linking or normal
9604 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9605 # need to do runtime linking.
9606 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9607 for ld_flag in $LDFLAGS; do
9608 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9609 aix_use_runtimelinking=yes
9610 break
9611 fi
9612 done
9613 ;;
9614 esac
9615
9616 exp_sym_flag='-bexport'
9617 no_entry_flag='-bnoentry'
9618 fi
9619
9620 # When large executables or shared objects are built, AIX ld can
9621 # have problems creating the table of contents. If linking a library
9622 # or program results in "error TOC overflow" add -mminimal-toc to
9623 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9624 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9625
9626 archive_cmds=''
9627 hardcode_direct=yes
9628 hardcode_direct_absolute=yes
9629 hardcode_libdir_separator=':'
9630 link_all_deplibs=yes
9631 file_list_spec='${wl}-f,'
9632
9633 if test "$GCC" = yes; then
9634 case $host_os in aix4.[012]|aix4.[012].*)
9635 # We only want to do this on AIX 4.2 and lower, the check
9636 # below for broken collect2 doesn't work under 4.3+
9637 collect2name=`${CC} -print-prog-name=collect2`
9638 if test -f "$collect2name" &&
9639 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9640 then
9641 # We have reworked collect2
9642 :
9643 else
9644 # We have old collect2
9645 hardcode_direct=unsupported
9646 # It fails to find uninstalled libraries when the uninstalled
9647 # path is not listed in the libpath. Setting hardcode_minus_L
9648 # to unsupported forces relinking
9649 hardcode_minus_L=yes
9650 hardcode_libdir_flag_spec='-L$libdir'
9651 hardcode_libdir_separator=
9652 fi
9653 ;;
9654 esac
9655 shared_flag='-shared'
9656 if test "$aix_use_runtimelinking" = yes; then
9657 shared_flag="$shared_flag "'${wl}-G'
9658 fi
9659 link_all_deplibs=no
9660 else
9661 # not using gcc
9662 if test "$host_cpu" = ia64; then
9663 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9664 # chokes on -Wl,-G. The following line is correct:
9665 shared_flag='-G'
9666 else
9667 if test "$aix_use_runtimelinking" = yes; then
9668 shared_flag='${wl}-G'
9669 else
9670 shared_flag='${wl}-bM:SRE'
9671 fi
9672 fi
9673 fi
9674
9675 export_dynamic_flag_spec='${wl}-bexpall'
9676 # It seems that -bexpall does not export symbols beginning with
9677 # underscore (_), so it is better to generate a list of symbols to export.
9678 always_export_symbols=yes
9679 if test "$aix_use_runtimelinking" = yes; then
9680 # Warning - without using the other runtime loading flags (-brtl),
9681 # -berok will link without error, but may produce a broken library.
9682 allow_undefined_flag='-berok'
9683 # Determine the default libpath from the value encoded in an
9684 # empty executable.
9685 if test "${lt_cv_aix_libpath+set}" = set; then
9686 aix_libpath=$lt_cv_aix_libpath
9687else
9688 if ${lt_cv_aix_libpath_+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690else
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692/* end confdefs.h. */
9693
9694int
9695main ()
9696{
9697
9698 ;
9699 return 0;
9700}
9701_ACEOF
9702if ac_fn_c_try_link "$LINENO"; then :
9703
9704 lt_aix_libpath_sed='
9705 /Import File Strings/,/^$/ {
9706 /^0/ {
9707 s/^0 *\([^ ]*\) *$/\1/
9708 p
9709 }
9710 }'
9711 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9712 # Check for a 64-bit object if we didn't find anything.
9713 if test -z "$lt_cv_aix_libpath_"; then
9714 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9715 fi
9716fi
9717rm -f core conftest.err conftest.$ac_objext \
9718 conftest$ac_exeext conftest.$ac_ext
9719 if test -z "$lt_cv_aix_libpath_"; then
9720 lt_cv_aix_libpath_="/usr/lib:/lib"
9721 fi
9722
9723fi
9724
9725 aix_libpath=$lt_cv_aix_libpath_
9726fi
9727
9728 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9729 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9730 else
9731 if test "$host_cpu" = ia64; then
9732 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9733 allow_undefined_flag="-z nodefs"
9734 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"
9735 else
9736 # Determine the default libpath from the value encoded in an
9737 # empty executable.
9738 if test "${lt_cv_aix_libpath+set}" = set; then
9739 aix_libpath=$lt_cv_aix_libpath
9740else
9741 if ${lt_cv_aix_libpath_+:} false; then :
9742 $as_echo_n "(cached) " >&6
9743else
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745/* end confdefs.h. */
9746
9747int
9748main ()
9749{
9750
9751 ;
9752 return 0;
9753}
9754_ACEOF
9755if ac_fn_c_try_link "$LINENO"; then :
9756
9757 lt_aix_libpath_sed='
9758 /Import File Strings/,/^$/ {
9759 /^0/ {
9760 s/^0 *\([^ ]*\) *$/\1/
9761 p
9762 }
9763 }'
9764 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9765 # Check for a 64-bit object if we didn't find anything.
9766 if test -z "$lt_cv_aix_libpath_"; then
9767 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9768 fi
9769fi
9770rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772 if test -z "$lt_cv_aix_libpath_"; then
9773 lt_cv_aix_libpath_="/usr/lib:/lib"
9774 fi
9775
9776fi
9777
9778 aix_libpath=$lt_cv_aix_libpath_
9779fi
9780
9781 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9782 # Warning - without using the other run time loading flags,
9783 # -berok will link without error, but may produce a broken library.
9784 no_undefined_flag=' ${wl}-bernotok'
9785 allow_undefined_flag=' ${wl}-berok'
9786 if test "$with_gnu_ld" = yes; then
9787 # We only use this code for GNU lds that support --whole-archive.
9788 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9789 else
9790 # Exported symbols can be pulled into shared objects from archives
9791 whole_archive_flag_spec='$convenience'
9792 fi
9793 archive_cmds_need_lc=yes
9794 # This is similar to how AIX traditionally builds its shared libraries.
9795 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9796 fi
9797 fi
9798 ;;
9799
9800 amigaos*)
9801 case $host_cpu in
9802 powerpc)
9803 # see comment about AmigaOS4 .so support
9804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9805 archive_expsym_cmds=''
9806 ;;
9807 m68k)
9808 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)'
9809 hardcode_libdir_flag_spec='-L$libdir'
9810 hardcode_minus_L=yes
9811 ;;
9812 esac
9813 ;;
9814
9815 bsdi[45]*)
9816 export_dynamic_flag_spec=-rdynamic
9817 ;;
9818
9819 cygwin* | mingw* | pw32* | cegcc*)
9820 # When not using gcc, we currently assume that we are using
9821 # Microsoft Visual C++.
9822 # hardcode_libdir_flag_spec is actually meaningless, as there is
9823 # no search path for DLLs.
9824 case $cc_basename in
9825 cl*)
9826 # Native MSVC
9827 hardcode_libdir_flag_spec=' '
9828 allow_undefined_flag=unsupported
9829 always_export_symbols=yes
9830 file_list_spec='@'
9831 # Tell ltmain to make .lib files, not .a files.
9832 libext=lib
9833 # Tell ltmain to make .dll files, not .so files.
9834 shrext_cmds=".dll"
9835 # FIXME: Setting linknames here is a bad hack.
9836 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9837 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9838 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9839 else
9840 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9841 fi~
9842 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9843 linknames='
9844 # The linker will not automatically build a static lib if we build a DLL.
9845 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9846 enable_shared_with_static_runtimes=yes
9847 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9848 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9849 # Don't use ranlib
9850 old_postinstall_cmds='chmod 644 $oldlib'
9851 postlink_cmds='lt_outputfile="@OUTPUT@"~
9852 lt_tool_outputfile="@TOOL_OUTPUT@"~
9853 case $lt_outputfile in
9854 *.exe|*.EXE) ;;
9855 *)
9856 lt_outputfile="$lt_outputfile.exe"
9857 lt_tool_outputfile="$lt_tool_outputfile.exe"
9858 ;;
9859 esac~
9860 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9861 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9862 $RM "$lt_outputfile.manifest";
9863 fi'
9864 ;;
9865 *)
9866 # Assume MSVC wrapper
9867 hardcode_libdir_flag_spec=' '
9868 allow_undefined_flag=unsupported
9869 # Tell ltmain to make .lib files, not .a files.
9870 libext=lib
9871 # Tell ltmain to make .dll files, not .so files.
9872 shrext_cmds=".dll"
9873 # FIXME: Setting linknames here is a bad hack.
9874 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9875 # The linker will automatically build a .lib file if we build a DLL.
9876 old_archive_from_new_cmds='true'
9877 # FIXME: Should let the user specify the lib program.
9878 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9879 enable_shared_with_static_runtimes=yes
9880 ;;
9881 esac
9882 ;;
9883
9884 darwin* | rhapsody*)
9885
9886
9887 archive_cmds_need_lc=no
9888 hardcode_direct=no
9889 hardcode_automatic=yes
9890 hardcode_shlibpath_var=unsupported
9891 if test "$lt_cv_ld_force_load" = "yes"; then
9892 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\"`'
9893
9894 else
9895 whole_archive_flag_spec=''
9896 fi
9897 link_all_deplibs=yes
9898 allow_undefined_flag="$_lt_dar_allow_undefined"
9899 case $cc_basename in
9900 ifort*) _lt_dar_can_shared=yes ;;
9901 *) _lt_dar_can_shared=$GCC ;;
9902 esac
9903 if test "$_lt_dar_can_shared" = "yes"; then
9904 output_verbose_link_cmd=func_echo_all
9905 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9906 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9907 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}"
9908 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}"
9909
9910 else
9911 ld_shlibs=no
9912 fi
9913
9914 ;;
9915
9916 dgux*)
9917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9918 hardcode_libdir_flag_spec='-L$libdir'
9919 hardcode_shlibpath_var=no
9920 ;;
9921
9922 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9923 # support. Future versions do this automatically, but an explicit c++rt0.o
9924 # does not break anything, and helps significantly (at the cost of a little
9925 # extra space).
9926 freebsd2.2*)
9927 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9928 hardcode_libdir_flag_spec='-R$libdir'
9929 hardcode_direct=yes
9930 hardcode_shlibpath_var=no
9931 ;;
9932
9933 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9934 freebsd2.*)
9935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9936 hardcode_direct=yes
9937 hardcode_minus_L=yes
9938 hardcode_shlibpath_var=no
9939 ;;
9940
9941 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9942 freebsd* | dragonfly*)
9943 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9944 hardcode_libdir_flag_spec='-R$libdir'
9945 hardcode_direct=yes
9946 hardcode_shlibpath_var=no
9947 ;;
9948
9949 hpux9*)
9950 if test "$GCC" = yes; then
9951 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9952 else
9953 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9954 fi
9955 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9956 hardcode_libdir_separator=:
9957 hardcode_direct=yes
9958
9959 # hardcode_minus_L: Not really in the search PATH,
9960 # but as the default location of the library.
9961 hardcode_minus_L=yes
9962 export_dynamic_flag_spec='${wl}-E'
9963 ;;
9964
9965 hpux10*)
9966 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9967 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9968 else
9969 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9970 fi
9971 if test "$with_gnu_ld" = no; then
9972 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9973 hardcode_libdir_separator=:
9974 hardcode_direct=yes
9975 hardcode_direct_absolute=yes
9976 export_dynamic_flag_spec='${wl}-E'
9977 # hardcode_minus_L: Not really in the search PATH,
9978 # but as the default location of the library.
9979 hardcode_minus_L=yes
9980 fi
9981 ;;
9982
9983 hpux11*)
9984 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9985 case $host_cpu in
9986 hppa*64*)
9987 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 ;;
9989 ia64*)
9990 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9991 ;;
9992 *)
9993 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9994 ;;
9995 esac
9996 else
9997 case $host_cpu in
9998 hppa*64*)
9999 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10000 ;;
10001 ia64*)
10002 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10003 ;;
10004 *)
10005
10006 # Older versions of the 11.00 compiler do not understand -b yet
10007 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10009$as_echo_n "checking if $CC understands -b... " >&6; }
10010if ${lt_cv_prog_compiler__b+:} false; then :
10011 $as_echo_n "(cached) " >&6
10012else
10013 lt_cv_prog_compiler__b=no
10014 save_LDFLAGS="$LDFLAGS"
10015 LDFLAGS="$LDFLAGS -b"
10016 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10017 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10018 # The linker can only warn and ignore the option if not recognized
10019 # So say no if there are warnings
10020 if test -s conftest.err; then
10021 # Append any errors to the config.log.
10022 cat conftest.err 1>&5
10023 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10025 if diff conftest.exp conftest.er2 >/dev/null; then
10026 lt_cv_prog_compiler__b=yes
10027 fi
10028 else
10029 lt_cv_prog_compiler__b=yes
10030 fi
10031 fi
10032 $RM -r conftest*
10033 LDFLAGS="$save_LDFLAGS"
10034
10035fi
10036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10037$as_echo "$lt_cv_prog_compiler__b" >&6; }
10038
10039if test x"$lt_cv_prog_compiler__b" = xyes; then
10040 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10041else
10042 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10043fi
10044
10045 ;;
10046 esac
10047 fi
10048 if test "$with_gnu_ld" = no; then
10049 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10050 hardcode_libdir_separator=:
10051
10052 case $host_cpu in
10053 hppa*64*|ia64*)
10054 hardcode_direct=no
10055 hardcode_shlibpath_var=no
10056 ;;
10057 *)
10058 hardcode_direct=yes
10059 hardcode_direct_absolute=yes
10060 export_dynamic_flag_spec='${wl}-E'
10061
10062 # hardcode_minus_L: Not really in the search PATH,
10063 # but as the default location of the library.
10064 hardcode_minus_L=yes
10065 ;;
10066 esac
10067 fi
10068 ;;
10069
10070 irix5* | irix6* | nonstopux*)
10071 if test "$GCC" = yes; then
10072 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'
10073 # Try to use the -exported_symbol ld option, if it does not
10074 # work, assume that -exports_file does not work either and
10075 # implicitly export all symbols.
10076 # This should be the same for all languages, so no per-tag cache variable.
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10078$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10079if ${lt_cv_irix_exported_symbol+:} false; then :
10080 $as_echo_n "(cached) " >&6
10081else
10082 save_LDFLAGS="$LDFLAGS"
10083 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085/* end confdefs.h. */
10086int foo (void) { return 0; }
10087_ACEOF
10088if ac_fn_c_try_link "$LINENO"; then :
10089 lt_cv_irix_exported_symbol=yes
10090else
10091 lt_cv_irix_exported_symbol=no
10092fi
10093rm -f core conftest.err conftest.$ac_objext \
10094 conftest$ac_exeext conftest.$ac_ext
10095 LDFLAGS="$save_LDFLAGS"
10096fi
10097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10098$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10099 if test "$lt_cv_irix_exported_symbol" = yes; then
10100 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'
10101 fi
10102 else
10103 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'
10104 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'
10105 fi
10106 archive_cmds_need_lc='no'
10107 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10108 hardcode_libdir_separator=:
10109 inherit_rpath=yes
10110 link_all_deplibs=yes
10111 ;;
10112
10113 netbsd* | netbsdelf*-gnu)
10114 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10116 else
10117 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10118 fi
10119 hardcode_libdir_flag_spec='-R$libdir'
10120 hardcode_direct=yes
10121 hardcode_shlibpath_var=no
10122 ;;
10123
10124 newsos6)
10125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10126 hardcode_direct=yes
10127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10128 hardcode_libdir_separator=:
10129 hardcode_shlibpath_var=no
10130 ;;
10131
10132 *nto* | *qnx*)
10133 ;;
10134
10135 openbsd*)
10136 if test -f /usr/libexec/ld.so; then
10137 hardcode_direct=yes
10138 hardcode_shlibpath_var=no
10139 hardcode_direct_absolute=yes
10140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10141 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10142 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10143 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10144 export_dynamic_flag_spec='${wl}-E'
10145 else
10146 case $host_os in
10147 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10149 hardcode_libdir_flag_spec='-R$libdir'
10150 ;;
10151 *)
10152 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10153 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10154 ;;
10155 esac
10156 fi
10157 else
10158 ld_shlibs=no
10159 fi
10160 ;;
10161
10162 os2*)
10163 hardcode_libdir_flag_spec='-L$libdir'
10164 hardcode_minus_L=yes
10165 allow_undefined_flag=unsupported
10166 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10167 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10168 ;;
10169
10170 osf3*)
10171 if test "$GCC" = yes; then
10172 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10173 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'
10174 else
10175 allow_undefined_flag=' -expect_unresolved \*'
10176 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'
10177 fi
10178 archive_cmds_need_lc='no'
10179 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10180 hardcode_libdir_separator=:
10181 ;;
10182
10183 osf4* | osf5*) # as osf3* with the addition of -msym flag
10184 if test "$GCC" = yes; then
10185 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10186 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'
10187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10188 else
10189 allow_undefined_flag=' -expect_unresolved \*'
10190 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'
10191 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~
10192 $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'
10193
10194 # Both c and cxx compiler support -rpath directly
10195 hardcode_libdir_flag_spec='-rpath $libdir'
10196 fi
10197 archive_cmds_need_lc='no'
10198 hardcode_libdir_separator=:
10199 ;;
10200
10201 solaris*)
10202 no_undefined_flag=' -z defs'
10203 if test "$GCC" = yes; then
10204 wlarc='${wl}'
10205 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10206 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10207 $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'
10208 else
10209 case `$CC -V 2>&1` in
10210 *"Compilers 5.0"*)
10211 wlarc=''
10212 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10213 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10214 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10215 ;;
10216 *)
10217 wlarc='${wl}'
10218 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10219 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10220 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10221 ;;
10222 esac
10223 fi
10224 hardcode_libdir_flag_spec='-R$libdir'
10225 hardcode_shlibpath_var=no
10226 case $host_os in
10227 solaris2.[0-5] | solaris2.[0-5].*) ;;
10228 *)
10229 # The compiler driver will combine and reorder linker options,
10230 # but understands `-z linker_flag'. GCC discards it without `$wl',
10231 # but is careful enough not to reorder.
10232 # Supported since Solaris 2.6 (maybe 2.5.1?)
10233 if test "$GCC" = yes; then
10234 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10235 else
10236 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10237 fi
10238 ;;
10239 esac
10240 link_all_deplibs=yes
10241 ;;
10242
10243 sunos4*)
10244 if test "x$host_vendor" = xsequent; then
10245 # Use $CC to link under sequent, because it throws in some extra .o
10246 # files that make .init and .fini sections work.
10247 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10248 else
10249 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10250 fi
10251 hardcode_libdir_flag_spec='-L$libdir'
10252 hardcode_direct=yes
10253 hardcode_minus_L=yes
10254 hardcode_shlibpath_var=no
10255 ;;
10256
10257 sysv4)
10258 case $host_vendor in
10259 sni)
10260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10261 hardcode_direct=yes # is this really true???
10262 ;;
10263 siemens)
10264 ## LD is ld it makes a PLAMLIB
10265 ## CC just makes a GrossModule.
10266 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10267 reload_cmds='$CC -r -o $output$reload_objs'
10268 hardcode_direct=no
10269 ;;
10270 motorola)
10271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10272 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10273 ;;
10274 esac
10275 runpath_var='LD_RUN_PATH'
10276 hardcode_shlibpath_var=no
10277 ;;
10278
10279 sysv4.3*)
10280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281 hardcode_shlibpath_var=no
10282 export_dynamic_flag_spec='-Bexport'
10283 ;;
10284
10285 sysv4*MP*)
10286 if test -d /usr/nec; then
10287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10288 hardcode_shlibpath_var=no
10289 runpath_var=LD_RUN_PATH
10290 hardcode_runpath_var=yes
10291 ld_shlibs=yes
10292 fi
10293 ;;
10294
10295 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10296 no_undefined_flag='${wl}-z,text'
10297 archive_cmds_need_lc=no
10298 hardcode_shlibpath_var=no
10299 runpath_var='LD_RUN_PATH'
10300
10301 if test "$GCC" = yes; then
10302 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10303 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10304 else
10305 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10306 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10307 fi
10308 ;;
10309
10310 sysv5* | sco3.2v5* | sco5v6*)
10311 # Note: We can NOT use -z defs as we might desire, because we do not
10312 # link with -lc, and that would cause any symbols used from libc to
10313 # always be unresolved, which means just about no library would
10314 # ever link correctly. If we're not using GNU ld we use -z text
10315 # though, which does catch some bad symbols but isn't as heavy-handed
10316 # as -z defs.
10317 no_undefined_flag='${wl}-z,text'
10318 allow_undefined_flag='${wl}-z,nodefs'
10319 archive_cmds_need_lc=no
10320 hardcode_shlibpath_var=no
10321 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10322 hardcode_libdir_separator=':'
10323 link_all_deplibs=yes
10324 export_dynamic_flag_spec='${wl}-Bexport'
10325 runpath_var='LD_RUN_PATH'
10326
10327 if test "$GCC" = yes; then
10328 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10329 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10330 else
10331 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10332 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10333 fi
10334 ;;
10335
10336 uts4*)
10337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10338 hardcode_libdir_flag_spec='-L$libdir'
10339 hardcode_shlibpath_var=no
10340 ;;
10341
10342 *)
10343 ld_shlibs=no
10344 ;;
10345 esac
10346
10347 if test x$host_vendor = xsni; then
10348 case $host in
10349 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10350 export_dynamic_flag_spec='${wl}-Blargedynsym'
10351 ;;
10352 esac
10353 fi
10354 fi
10355
10356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10357$as_echo "$ld_shlibs" >&6; }
10358test "$ld_shlibs" = no && can_build_shared=no
10359
10360with_gnu_ld=$with_gnu_ld
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376#
10377# Do we need to explicitly link libc?
10378#
10379case "x$archive_cmds_need_lc" in
10380x|xyes)
10381 # Assume -lc should be added
10382 archive_cmds_need_lc=yes
10383
10384 if test "$enable_shared" = yes && test "$GCC" = yes; then
10385 case $archive_cmds in
10386 *'~'*)
10387 # FIXME: we may have to deal with multi-command sequences.
10388 ;;
10389 '$CC '*)
10390 # Test whether the compiler implicitly links with -lc since on some
10391 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10392 # to ld, don't add -lc before -lgcc.
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10394$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10395if ${lt_cv_archive_cmds_need_lc+:} false; then :
10396 $as_echo_n "(cached) " >&6
10397else
10398 $RM conftest*
10399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10400
10401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10402 (eval $ac_compile) 2>&5
10403 ac_status=$?
10404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10405 test $ac_status = 0; } 2>conftest.err; then
10406 soname=conftest
10407 lib=conftest
10408 libobjs=conftest.$ac_objext
10409 deplibs=
10410 wl=$lt_prog_compiler_wl
10411 pic_flag=$lt_prog_compiler_pic
10412 compiler_flags=-v
10413 linker_flags=-v
10414 verstring=
10415 output_objdir=.
10416 libname=conftest
10417 lt_save_allow_undefined_flag=$allow_undefined_flag
10418 allow_undefined_flag=
10419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10420 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10421 ac_status=$?
10422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10423 test $ac_status = 0; }
10424 then
10425 lt_cv_archive_cmds_need_lc=no
10426 else
10427 lt_cv_archive_cmds_need_lc=yes
10428 fi
10429 allow_undefined_flag=$lt_save_allow_undefined_flag
10430 else
10431 cat conftest.err 1>&5
10432 fi
10433 $RM conftest*
10434
10435fi
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10437$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10438 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10439 ;;
10440 esac
10441 fi
10442 ;;
10443esac
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10597$as_echo_n "checking dynamic linker characteristics... " >&6; }
10598
10599if test "$GCC" = yes; then
10600 case $host_os in
10601 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10602 *) lt_awk_arg="/^libraries:/" ;;
10603 esac
10604 case $host_os in
10605 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10606 *) lt_sed_strip_eq="s,=/,/,g" ;;
10607 esac
10608 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10609 case $lt_search_path_spec in
10610 *\;*)
10611 # if the path contains ";" then we assume it to be the separator
10612 # otherwise default to the standard path separator (i.e. ":") - it is
10613 # assumed that no part of a normal pathname contains ";" but that should
10614 # okay in the real world where ";" in dirpaths is itself problematic.
10615 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10616 ;;
10617 *)
10618 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10619 ;;
10620 esac
10621 # Ok, now we have the path, separated by spaces, we can step through it
10622 # and add multilib dir if necessary.
10623 lt_tmp_lt_search_path_spec=
10624 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10625 for lt_sys_path in $lt_search_path_spec; do
10626 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10627 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10628 else
10629 test -d "$lt_sys_path" && \
10630 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10631 fi
10632 done
10633 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10634BEGIN {RS=" "; FS="/|\n";} {
10635 lt_foo="";
10636 lt_count=0;
10637 for (lt_i = NF; lt_i > 0; lt_i--) {
10638 if ($lt_i != "" && $lt_i != ".") {
10639 if ($lt_i == "..") {
10640 lt_count++;
10641 } else {
10642 if (lt_count == 0) {
10643 lt_foo="/" $lt_i lt_foo;
10644 } else {
10645 lt_count--;
10646 }
10647 }
10648 }
10649 }
10650 if (lt_foo != "") { lt_freq[lt_foo]++; }
10651 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10652}'`
10653 # AWK program above erroneously prepends '/' to C:/dos/paths
10654 # for these hosts.
10655 case $host_os in
10656 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10657 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10658 esac
10659 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10660else
10661 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10662fi
10663library_names_spec=
10664libname_spec='lib$name'
10665soname_spec=
10666shrext_cmds=".so"
10667postinstall_cmds=
10668postuninstall_cmds=
10669finish_cmds=
10670finish_eval=
10671shlibpath_var=
10672shlibpath_overrides_runpath=unknown
10673version_type=none
10674dynamic_linker="$host_os ld.so"
10675sys_lib_dlsearch_path_spec="/lib /usr/lib"
10676need_lib_prefix=unknown
10677hardcode_into_libs=no
10678
10679# when you set need_version to no, make sure it does not cause -set_version
10680# flags to be left without arguments
10681need_version=unknown
10682
10683case $host_os in
10684aix3*)
10685 version_type=linux # correct to gnu/linux during the next big refactor
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10687 shlibpath_var=LIBPATH
10688
10689 # AIX 3 has no versioning support, so we append a major version to the name.
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 ;;
10692
10693aix[4-9]*)
10694 version_type=linux # correct to gnu/linux during the next big refactor
10695 need_lib_prefix=no
10696 need_version=no
10697 hardcode_into_libs=yes
10698 if test "$host_cpu" = ia64; then
10699 # AIX 5 supports IA64
10700 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10701 shlibpath_var=LD_LIBRARY_PATH
10702 else
10703 # With GCC up to 2.95.x, collect2 would create an import file
10704 # for dependence libraries. The import file would start with
10705 # the line `#! .'. This would cause the generated library to
10706 # depend on `.', always an invalid library. This was fixed in
10707 # development snapshots of GCC prior to 3.0.
10708 case $host_os in
10709 aix4 | aix4.[01] | aix4.[01].*)
10710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10711 echo ' yes '
10712 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10713 :
10714 else
10715 can_build_shared=no
10716 fi
10717 ;;
10718 esac
10719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10720 # soname into executable. Probably we can add versioning support to
10721 # collect2, so additional links can be useful in future.
10722 if test "$aix_use_runtimelinking" = yes; then
10723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10724 # instead of lib<name>.a to let people know that these are not
10725 # typical AIX shared libraries.
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10727 else
10728 # We preserve .a as extension for shared libraries through AIX4.2
10729 # and later when we are not doing run time linking.
10730 library_names_spec='${libname}${release}.a $libname.a'
10731 soname_spec='${libname}${release}${shared_ext}$major'
10732 fi
10733 shlibpath_var=LIBPATH
10734 fi
10735 ;;
10736
10737amigaos*)
10738 case $host_cpu in
10739 powerpc)
10740 # Since July 2007 AmigaOS4 officially supports .so libraries.
10741 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743 ;;
10744 m68k)
10745 library_names_spec='$libname.ixlibrary $libname.a'
10746 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10747 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10748 ;;
10749 esac
10750 ;;
10751
10752beos*)
10753 library_names_spec='${libname}${shared_ext}'
10754 dynamic_linker="$host_os ld.so"
10755 shlibpath_var=LIBRARY_PATH
10756 ;;
10757
10758bsdi[45]*)
10759 version_type=linux # correct to gnu/linux during the next big refactor
10760 need_version=no
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10762 soname_spec='${libname}${release}${shared_ext}$major'
10763 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10766 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10767 # the default ld.so.conf also contains /usr/contrib/lib and
10768 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10769 # libtool to hard-code these into programs
10770 ;;
10771
10772cygwin* | mingw* | pw32* | cegcc*)
10773 version_type=windows
10774 shrext_cmds=".dll"
10775 need_version=no
10776 need_lib_prefix=no
10777
10778 case $GCC,$cc_basename in
10779 yes,*)
10780 # gcc
10781 library_names_spec='$libname.dll.a'
10782 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10783 postinstall_cmds='base_file=`basename \${file}`~
10784 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10785 dldir=$destdir/`dirname \$dlpath`~
10786 test -d \$dldir || mkdir -p \$dldir~
10787 $install_prog $dir/$dlname \$dldir/$dlname~
10788 chmod a+x \$dldir/$dlname~
10789 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10790 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10791 fi'
10792 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10793 dlpath=$dir/\$dldll~
10794 $RM \$dlpath'
10795 shlibpath_overrides_runpath=yes
10796
10797 case $host_os in
10798 cygwin*)
10799 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10800 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10801
10802 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10803 ;;
10804 mingw* | cegcc*)
10805 # MinGW DLLs use traditional 'lib' prefix
10806 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10807 ;;
10808 pw32*)
10809 # pw32 DLLs use 'pw' prefix rather than 'lib'
10810 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10811 ;;
10812 esac
10813 dynamic_linker='Win32 ld.exe'
10814 ;;
10815
10816 *,cl*)
10817 # Native MSVC
10818 libname_spec='$name'
10819 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10820 library_names_spec='${libname}.dll.lib'
10821
10822 case $build_os in
10823 mingw*)
10824 sys_lib_search_path_spec=
10825 lt_save_ifs=$IFS
10826 IFS=';'
10827 for lt_path in $LIB
10828 do
10829 IFS=$lt_save_ifs
10830 # Let DOS variable expansion print the short 8.3 style file name.
10831 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10832 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10833 done
10834 IFS=$lt_save_ifs
10835 # Convert to MSYS style.
10836 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10837 ;;
10838 cygwin*)
10839 # Convert to unix form, then to dos form, then back to unix form
10840 # but this time dos style (no spaces!) so that the unix form looks
10841 # like /cygdrive/c/PROGRA~1:/cygdr...
10842 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10843 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10844 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10845 ;;
10846 *)
10847 sys_lib_search_path_spec="$LIB"
10848 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10849 # It is most probably a Windows format PATH.
10850 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10851 else
10852 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10853 fi
10854 # FIXME: find the short name or the path components, as spaces are
10855 # common. (e.g. "Program Files" -> "PROGRA~1")
10856 ;;
10857 esac
10858
10859 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10860 postinstall_cmds='base_file=`basename \${file}`~
10861 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10862 dldir=$destdir/`dirname \$dlpath`~
10863 test -d \$dldir || mkdir -p \$dldir~
10864 $install_prog $dir/$dlname \$dldir/$dlname'
10865 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10866 dlpath=$dir/\$dldll~
10867 $RM \$dlpath'
10868 shlibpath_overrides_runpath=yes
10869 dynamic_linker='Win32 link.exe'
10870 ;;
10871
10872 *)
10873 # Assume MSVC wrapper
10874 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10875 dynamic_linker='Win32 ld.exe'
10876 ;;
10877 esac
10878 # FIXME: first we should search . and the directory the executable is in
10879 shlibpath_var=PATH
10880 ;;
10881
10882darwin* | rhapsody*)
10883 dynamic_linker="$host_os dyld"
10884 version_type=darwin
10885 need_lib_prefix=no
10886 need_version=no
10887 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10888 soname_spec='${libname}${release}${major}$shared_ext'
10889 shlibpath_overrides_runpath=yes
10890 shlibpath_var=DYLD_LIBRARY_PATH
10891 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10892
10893 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10894 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10895 ;;
10896
10897dgux*)
10898 version_type=linux # correct to gnu/linux during the next big refactor
10899 need_lib_prefix=no
10900 need_version=no
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 shlibpath_var=LD_LIBRARY_PATH
10904 ;;
10905
10906freebsd* | dragonfly*)
10907 # DragonFly does not have aout. When/if they implement a new
10908 # versioning mechanism, adjust this.
10909 if test -x /usr/bin/objformat; then
10910 objformat=`/usr/bin/objformat`
10911 else
10912 case $host_os in
10913 freebsd[23].*) objformat=aout ;;
10914 *) objformat=elf ;;
10915 esac
10916 fi
10917 version_type=freebsd-$objformat
10918 case $version_type in
10919 freebsd-elf*)
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10921 need_version=no
10922 need_lib_prefix=no
10923 ;;
10924 freebsd-*)
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10926 need_version=yes
10927 ;;
10928 esac
10929 shlibpath_var=LD_LIBRARY_PATH
10930 case $host_os in
10931 freebsd2.*)
10932 shlibpath_overrides_runpath=yes
10933 ;;
10934 freebsd3.[01]* | freebsdelf3.[01]*)
10935 shlibpath_overrides_runpath=yes
10936 hardcode_into_libs=yes
10937 ;;
10938 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10939 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10940 shlibpath_overrides_runpath=no
10941 hardcode_into_libs=yes
10942 ;;
10943 *) # from 4.6 on, and DragonFly
10944 shlibpath_overrides_runpath=yes
10945 hardcode_into_libs=yes
10946 ;;
10947 esac
10948 ;;
10949
10950haiku*)
10951 version_type=linux # correct to gnu/linux during the next big refactor
10952 need_lib_prefix=no
10953 need_version=no
10954 dynamic_linker="$host_os runtime_loader"
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 shlibpath_var=LIBRARY_PATH
10958 shlibpath_overrides_runpath=yes
10959 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10960 hardcode_into_libs=yes
10961 ;;
10962
10963hpux9* | hpux10* | hpux11*)
10964 # Give a soname corresponding to the major version so that dld.sl refuses to
10965 # link against other versions.
10966 version_type=sunos
10967 need_lib_prefix=no
10968 need_version=no
10969 case $host_cpu in
10970 ia64*)
10971 shrext_cmds='.so'
10972 hardcode_into_libs=yes
10973 dynamic_linker="$host_os dld.so"
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977 soname_spec='${libname}${release}${shared_ext}$major'
10978 if test "X$HPUX_IA64_MODE" = X32; then
10979 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10980 else
10981 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10982 fi
10983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10984 ;;
10985 hppa*64*)
10986 shrext_cmds='.sl'
10987 hardcode_into_libs=yes
10988 dynamic_linker="$host_os dld.sl"
10989 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10995 ;;
10996 *)
10997 shrext_cmds='.sl'
10998 dynamic_linker="$host_os dld.sl"
10999 shlibpath_var=SHLIB_PATH
11000 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002 soname_spec='${libname}${release}${shared_ext}$major'
11003 ;;
11004 esac
11005 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11006 postinstall_cmds='chmod 555 $lib'
11007 # or fails outright, so override atomically:
11008 install_override_mode=555
11009 ;;
11010
11011interix[3-9]*)
11012 version_type=linux # correct to gnu/linux during the next big refactor
11013 need_lib_prefix=no
11014 need_version=no
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11016 soname_spec='${libname}${release}${shared_ext}$major'
11017 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=no
11020 hardcode_into_libs=yes
11021 ;;
11022
11023irix5* | irix6* | nonstopux*)
11024 case $host_os in
11025 nonstopux*) version_type=nonstopux ;;
11026 *)
11027 if test "$lt_cv_prog_gnu_ld" = yes; then
11028 version_type=linux # correct to gnu/linux during the next big refactor
11029 else
11030 version_type=irix
11031 fi ;;
11032 esac
11033 need_lib_prefix=no
11034 need_version=no
11035 soname_spec='${libname}${release}${shared_ext}$major'
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11037 case $host_os in
11038 irix5* | nonstopux*)
11039 libsuff= shlibsuff=
11040 ;;
11041 *)
11042 case $LD in # libtool.m4 will add one of these switches to LD
11043 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11044 libsuff= shlibsuff= libmagic=32-bit;;
11045 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11046 libsuff=32 shlibsuff=N32 libmagic=N32;;
11047 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11048 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11049 *) libsuff= shlibsuff= libmagic=never-match;;
11050 esac
11051 ;;
11052 esac
11053 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11054 shlibpath_overrides_runpath=no
11055 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11056 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11057 hardcode_into_libs=yes
11058 ;;
11059
11060# No shared lib support for Linux oldld, aout, or coff.
11061linux*oldld* | linux*aout* | linux*coff*)
11062 dynamic_linker=no
11063 ;;
11064
11065# This must be glibc/ELF.
11066linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11067 version_type=linux # correct to gnu/linux during the next big refactor
11068 need_lib_prefix=no
11069 need_version=no
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11071 soname_spec='${libname}${release}${shared_ext}$major'
11072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11073 shlibpath_var=LD_LIBRARY_PATH
11074 shlibpath_overrides_runpath=no
11075
11076 # Some binutils ld are patched to set DT_RUNPATH
11077 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11078 $as_echo_n "(cached) " >&6
11079else
11080 lt_cv_shlibpath_overrides_runpath=no
11081 save_LDFLAGS=$LDFLAGS
11082 save_libdir=$libdir
11083 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11084 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086/* end confdefs.h. */
11087
11088int
11089main ()
11090{
11091
11092 ;
11093 return 0;
11094}
11095_ACEOF
11096if ac_fn_c_try_link "$LINENO"; then :
11097 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11098 lt_cv_shlibpath_overrides_runpath=yes
11099fi
11100fi
11101rm -f core conftest.err conftest.$ac_objext \
11102 conftest$ac_exeext conftest.$ac_ext
11103 LDFLAGS=$save_LDFLAGS
11104 libdir=$save_libdir
11105
11106fi
11107
11108 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11109
11110 # This implies no fast_install, which is unacceptable.
11111 # Some rework will be needed to allow for fast_install
11112 # before this can be enabled.
11113 hardcode_into_libs=yes
11114
11115 # Append ld.so.conf contents to the search path
11116 if test -f /etc/ld.so.conf; then
11117 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' ' '`
11118 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11119 fi
11120
11121 # We used to test for /lib/ld.so.1 and disable shared libraries on
11122 # powerpc, because MkLinux only supported shared libraries with the
11123 # GNU dynamic linker. Since this was broken with cross compilers,
11124 # most powerpc-linux boxes support dynamic linking these days and
11125 # people can always --disable-shared, the test was removed, and we
11126 # assume the GNU/Linux dynamic linker is in use.
11127 dynamic_linker='GNU/Linux ld.so'
11128 ;;
11129
11130netbsdelf*-gnu)
11131 version_type=linux
11132 need_lib_prefix=no
11133 need_version=no
11134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11135 soname_spec='${libname}${release}${shared_ext}$major'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 shlibpath_overrides_runpath=no
11138 hardcode_into_libs=yes
11139 dynamic_linker='NetBSD ld.elf_so'
11140 ;;
11141
11142netbsd*)
11143 version_type=sunos
11144 need_lib_prefix=no
11145 need_version=no
11146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11149 dynamic_linker='NetBSD (a.out) ld.so'
11150 else
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11152 soname_spec='${libname}${release}${shared_ext}$major'
11153 dynamic_linker='NetBSD ld.elf_so'
11154 fi
11155 shlibpath_var=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath=yes
11157 hardcode_into_libs=yes
11158 ;;
11159
11160newsos6)
11161 version_type=linux # correct to gnu/linux during the next big refactor
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 shlibpath_overrides_runpath=yes
11165 ;;
11166
11167*nto* | *qnx*)
11168 version_type=qnx
11169 need_lib_prefix=no
11170 need_version=no
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 soname_spec='${libname}${release}${shared_ext}$major'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 shlibpath_overrides_runpath=no
11175 hardcode_into_libs=yes
11176 dynamic_linker='ldqnx.so'
11177 ;;
11178
11179openbsd*)
11180 version_type=sunos
11181 sys_lib_dlsearch_path_spec="/usr/lib"
11182 need_lib_prefix=no
11183 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11184 case $host_os in
11185 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11186 *) need_version=no ;;
11187 esac
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11192 case $host_os in
11193 openbsd2.[89] | openbsd2.[89].*)
11194 shlibpath_overrides_runpath=no
11195 ;;
11196 *)
11197 shlibpath_overrides_runpath=yes
11198 ;;
11199 esac
11200 else
11201 shlibpath_overrides_runpath=yes
11202 fi
11203 ;;
11204
11205os2*)
11206 libname_spec='$name'
11207 shrext_cmds=".dll"
11208 need_lib_prefix=no
11209 library_names_spec='$libname${shared_ext} $libname.a'
11210 dynamic_linker='OS/2 ld.exe'
11211 shlibpath_var=LIBPATH
11212 ;;
11213
11214osf3* | osf4* | osf5*)
11215 version_type=osf
11216 need_lib_prefix=no
11217 need_version=no
11218 soname_spec='${libname}${release}${shared_ext}$major'
11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11220 shlibpath_var=LD_LIBRARY_PATH
11221 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11222 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11223 ;;
11224
11225rdos*)
11226 dynamic_linker=no
11227 ;;
11228
11229solaris*)
11230 version_type=linux # correct to gnu/linux during the next big refactor
11231 need_lib_prefix=no
11232 need_version=no
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234 soname_spec='${libname}${release}${shared_ext}$major'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 shlibpath_overrides_runpath=yes
11237 hardcode_into_libs=yes
11238 # ldd complains unless libraries are executable
11239 postinstall_cmds='chmod +x $lib'
11240 ;;
11241
11242sunos4*)
11243 version_type=sunos
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11245 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11246 shlibpath_var=LD_LIBRARY_PATH
11247 shlibpath_overrides_runpath=yes
11248 if test "$with_gnu_ld" = yes; then
11249 need_lib_prefix=no
11250 fi
11251 need_version=yes
11252 ;;
11253
11254sysv4 | sysv4.3*)
11255 version_type=linux # correct to gnu/linux during the next big refactor
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 shlibpath_var=LD_LIBRARY_PATH
11259 case $host_vendor in
11260 sni)
11261 shlibpath_overrides_runpath=no
11262 need_lib_prefix=no
11263 runpath_var=LD_RUN_PATH
11264 ;;
11265 siemens)
11266 need_lib_prefix=no
11267 ;;
11268 motorola)
11269 need_lib_prefix=no
11270 need_version=no
11271 shlibpath_overrides_runpath=no
11272 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11273 ;;
11274 esac
11275 ;;
11276
11277sysv4*MP*)
11278 if test -d /usr/nec ;then
11279 version_type=linux # correct to gnu/linux during the next big refactor
11280 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11281 soname_spec='$libname${shared_ext}.$major'
11282 shlibpath_var=LD_LIBRARY_PATH
11283 fi
11284 ;;
11285
11286sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11287 version_type=freebsd-elf
11288 need_lib_prefix=no
11289 need_version=no
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 shlibpath_var=LD_LIBRARY_PATH
11293 shlibpath_overrides_runpath=yes
11294 hardcode_into_libs=yes
11295 if test "$with_gnu_ld" = yes; then
11296 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11297 else
11298 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11299 case $host_os in
11300 sco3.2v5*)
11301 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11302 ;;
11303 esac
11304 fi
11305 sys_lib_dlsearch_path_spec='/usr/lib'
11306 ;;
11307
11308tpf*)
11309 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11310 version_type=linux # correct to gnu/linux during the next big refactor
11311 need_lib_prefix=no
11312 need_version=no
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11314 shlibpath_var=LD_LIBRARY_PATH
11315 shlibpath_overrides_runpath=no
11316 hardcode_into_libs=yes
11317 ;;
11318
11319uts4*)
11320 version_type=linux # correct to gnu/linux during the next big refactor
11321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11322 soname_spec='${libname}${release}${shared_ext}$major'
11323 shlibpath_var=LD_LIBRARY_PATH
11324 ;;
11325
11326*)
11327 dynamic_linker=no
11328 ;;
11329esac
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11331$as_echo "$dynamic_linker" >&6; }
11332test "$dynamic_linker" = no && can_build_shared=no
11333
11334variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11335if test "$GCC" = yes; then
11336 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11337fi
11338
11339if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11340 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11341fi
11342if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11343 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11344fi
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11438$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11439hardcode_action=
11440if test -n "$hardcode_libdir_flag_spec" ||
11441 test -n "$runpath_var" ||
11442 test "X$hardcode_automatic" = "Xyes" ; then
11443
11444 # We can hardcode non-existent directories.
11445 if test "$hardcode_direct" != no &&
11446 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11447 # have to relink, otherwise we might link with an installed library
11448 # when we should be linking with a yet-to-be-installed one
11449 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11450 test "$hardcode_minus_L" != no; then
11451 # Linking always hardcodes the temporary library directory.
11452 hardcode_action=relink
11453 else
11454 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11455 hardcode_action=immediate
11456 fi
11457else
11458 # We cannot hardcode anything, or else we can only hardcode existing
11459 # directories.
11460 hardcode_action=unsupported
11461fi
11462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11463$as_echo "$hardcode_action" >&6; }
11464
11465if test "$hardcode_action" = relink ||
11466 test "$inherit_rpath" = yes; then
11467 # Fast installation is not supported
11468 enable_fast_install=no
11469elif test "$shlibpath_overrides_runpath" = yes ||
11470 test "$enable_shared" = no; then
11471 # Fast installation is not necessary
11472 enable_fast_install=needless
11473fi
11474
11475
11476
11477
11478
11479
11480 if test "x$enable_dlopen" != xyes; then
11481 enable_dlopen=unknown
11482 enable_dlopen_self=unknown
11483 enable_dlopen_self_static=unknown
11484else
11485 lt_cv_dlopen=no
11486 lt_cv_dlopen_libs=
11487
11488 case $host_os in
11489 beos*)
11490 lt_cv_dlopen="load_add_on"
11491 lt_cv_dlopen_libs=
11492 lt_cv_dlopen_self=yes
11493 ;;
11494
11495 mingw* | pw32* | cegcc*)
11496 lt_cv_dlopen="LoadLibrary"
11497 lt_cv_dlopen_libs=
11498 ;;
11499
11500 cygwin*)
11501 lt_cv_dlopen="dlopen"
11502 lt_cv_dlopen_libs=
11503 ;;
11504
11505 darwin*)
11506 # if libdl is installed we need to link against it
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11508$as_echo_n "checking for dlopen in -ldl... " >&6; }
11509if ${ac_cv_lib_dl_dlopen+:} false; then :
11510 $as_echo_n "(cached) " >&6
11511else
11512 ac_check_lib_save_LIBS=$LIBS
11513LIBS="-ldl $LIBS"
11514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515/* end confdefs.h. */
11516
11517/* Override any GCC internal prototype to avoid an error.
11518 Use char because int might match the return type of a GCC
11519 builtin and then its argument prototype would still apply. */
11520#ifdef __cplusplus
11521extern "C"
11522#endif
11523char dlopen ();
11524int
11525main ()
11526{
11527return dlopen ();
11528 ;
11529 return 0;
11530}
11531_ACEOF
11532if ac_fn_c_try_link "$LINENO"; then :
11533 ac_cv_lib_dl_dlopen=yes
11534else
11535 ac_cv_lib_dl_dlopen=no
11536fi
11537rm -f core conftest.err conftest.$ac_objext \
11538 conftest$ac_exeext conftest.$ac_ext
11539LIBS=$ac_check_lib_save_LIBS
11540fi
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11542$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11543if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11544 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11545else
11546
11547 lt_cv_dlopen="dyld"
11548 lt_cv_dlopen_libs=
11549 lt_cv_dlopen_self=yes
11550
11551fi
11552
11553 ;;
11554
11555 *)
11556 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11557if test "x$ac_cv_func_shl_load" = xyes; then :
11558 lt_cv_dlopen="shl_load"
11559else
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11561$as_echo_n "checking for shl_load in -ldld... " >&6; }
11562if ${ac_cv_lib_dld_shl_load+:} false; then :
11563 $as_echo_n "(cached) " >&6
11564else
11565 ac_check_lib_save_LIBS=$LIBS
11566LIBS="-ldld $LIBS"
11567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11568/* end confdefs.h. */
11569
11570/* Override any GCC internal prototype to avoid an error.
11571 Use char because int might match the return type of a GCC
11572 builtin and then its argument prototype would still apply. */
11573#ifdef __cplusplus
11574extern "C"
11575#endif
11576char shl_load ();
11577int
11578main ()
11579{
11580return shl_load ();
11581 ;
11582 return 0;
11583}
11584_ACEOF
11585if ac_fn_c_try_link "$LINENO"; then :
11586 ac_cv_lib_dld_shl_load=yes
11587else
11588 ac_cv_lib_dld_shl_load=no
11589fi
11590rm -f core conftest.err conftest.$ac_objext \
11591 conftest$ac_exeext conftest.$ac_ext
11592LIBS=$ac_check_lib_save_LIBS
11593fi
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11595$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11596if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11597 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11598else
11599 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11600if test "x$ac_cv_func_dlopen" = xyes; then :
11601 lt_cv_dlopen="dlopen"
11602else
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11604$as_echo_n "checking for dlopen in -ldl... " >&6; }
11605if ${ac_cv_lib_dl_dlopen+:} false; then :
11606 $as_echo_n "(cached) " >&6
11607else
11608 ac_check_lib_save_LIBS=$LIBS
11609LIBS="-ldl $LIBS"
11610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611/* end confdefs.h. */
11612
11613/* Override any GCC internal prototype to avoid an error.
11614 Use char because int might match the return type of a GCC
11615 builtin and then its argument prototype would still apply. */
11616#ifdef __cplusplus
11617extern "C"
11618#endif
11619char dlopen ();
11620int
11621main ()
11622{
11623return dlopen ();
11624 ;
11625 return 0;
11626}
11627_ACEOF
11628if ac_fn_c_try_link "$LINENO"; then :
11629 ac_cv_lib_dl_dlopen=yes
11630else
11631 ac_cv_lib_dl_dlopen=no
11632fi
11633rm -f core conftest.err conftest.$ac_objext \
11634 conftest$ac_exeext conftest.$ac_ext
11635LIBS=$ac_check_lib_save_LIBS
11636fi
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11638$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11639if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11640 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11641else
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11643$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11644if ${ac_cv_lib_svld_dlopen+:} false; then :
11645 $as_echo_n "(cached) " >&6
11646else
11647 ac_check_lib_save_LIBS=$LIBS
11648LIBS="-lsvld $LIBS"
11649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650/* end confdefs.h. */
11651
11652/* Override any GCC internal prototype to avoid an error.
11653 Use char because int might match the return type of a GCC
11654 builtin and then its argument prototype would still apply. */
11655#ifdef __cplusplus
11656extern "C"
11657#endif
11658char dlopen ();
11659int
11660main ()
11661{
11662return dlopen ();
11663 ;
11664 return 0;
11665}
11666_ACEOF
11667if ac_fn_c_try_link "$LINENO"; then :
11668 ac_cv_lib_svld_dlopen=yes
11669else
11670 ac_cv_lib_svld_dlopen=no
11671fi
11672rm -f core conftest.err conftest.$ac_objext \
11673 conftest$ac_exeext conftest.$ac_ext
11674LIBS=$ac_check_lib_save_LIBS
11675fi
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11677$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11678if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11679 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11680else
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11682$as_echo_n "checking for dld_link in -ldld... " >&6; }
11683if ${ac_cv_lib_dld_dld_link+:} false; then :
11684 $as_echo_n "(cached) " >&6
11685else
11686 ac_check_lib_save_LIBS=$LIBS
11687LIBS="-ldld $LIBS"
11688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689/* end confdefs.h. */
11690
11691/* Override any GCC internal prototype to avoid an error.
11692 Use char because int might match the return type of a GCC
11693 builtin and then its argument prototype would still apply. */
11694#ifdef __cplusplus
11695extern "C"
11696#endif
11697char dld_link ();
11698int
11699main ()
11700{
11701return dld_link ();
11702 ;
11703 return 0;
11704}
11705_ACEOF
11706if ac_fn_c_try_link "$LINENO"; then :
11707 ac_cv_lib_dld_dld_link=yes
11708else
11709 ac_cv_lib_dld_dld_link=no
11710fi
11711rm -f core conftest.err conftest.$ac_objext \
11712 conftest$ac_exeext conftest.$ac_ext
11713LIBS=$ac_check_lib_save_LIBS
11714fi
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11716$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11717if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11718 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11719fi
11720
11721
11722fi
11723
11724
11725fi
11726
11727
11728fi
11729
11730
11731fi
11732
11733
11734fi
11735
11736 ;;
11737 esac
11738
11739 if test "x$lt_cv_dlopen" != xno; then
11740 enable_dlopen=yes
11741 else
11742 enable_dlopen=no
11743 fi
11744
11745 case $lt_cv_dlopen in
11746 dlopen)
11747 save_CPPFLAGS="$CPPFLAGS"
11748 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11749
11750 save_LDFLAGS="$LDFLAGS"
11751 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11752
11753 save_LIBS="$LIBS"
11754 LIBS="$lt_cv_dlopen_libs $LIBS"
11755
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11757$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11758if ${lt_cv_dlopen_self+:} false; then :
11759 $as_echo_n "(cached) " >&6
11760else
11761 if test "$cross_compiling" = yes; then :
11762 lt_cv_dlopen_self=cross
11763else
11764 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11765 lt_status=$lt_dlunknown
11766 cat > conftest.$ac_ext <<_LT_EOF
11767#line $LINENO "configure"
11768#include "confdefs.h"
11769
11770#if HAVE_DLFCN_H
11771#include <dlfcn.h>
11772#endif
11773
11774#include <stdio.h>
11775
11776#ifdef RTLD_GLOBAL
11777# define LT_DLGLOBAL RTLD_GLOBAL
11778#else
11779# ifdef DL_GLOBAL
11780# define LT_DLGLOBAL DL_GLOBAL
11781# else
11782# define LT_DLGLOBAL 0
11783# endif
11784#endif
11785
11786/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11787 find out it does not work in some platform. */
11788#ifndef LT_DLLAZY_OR_NOW
11789# ifdef RTLD_LAZY
11790# define LT_DLLAZY_OR_NOW RTLD_LAZY
11791# else
11792# ifdef DL_LAZY
11793# define LT_DLLAZY_OR_NOW DL_LAZY
11794# else
11795# ifdef RTLD_NOW
11796# define LT_DLLAZY_OR_NOW RTLD_NOW
11797# else
11798# ifdef DL_NOW
11799# define LT_DLLAZY_OR_NOW DL_NOW
11800# else
11801# define LT_DLLAZY_OR_NOW 0
11802# endif
11803# endif
11804# endif
11805# endif
11806#endif
11807
11808/* When -fvisbility=hidden is used, assume the code has been annotated
11809 correspondingly for the symbols needed. */
11810#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11811int fnord () __attribute__((visibility("default")));
11812#endif
11813
11814int fnord () { return 42; }
11815int main ()
11816{
11817 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11818 int status = $lt_dlunknown;
11819
11820 if (self)
11821 {
11822 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11823 else
11824 {
11825 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11826 else puts (dlerror ());
11827 }
11828 /* dlclose (self); */
11829 }
11830 else
11831 puts (dlerror ());
11832
11833 return status;
11834}
11835_LT_EOF
11836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11837 (eval $ac_link) 2>&5
11838 ac_status=$?
11839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11840 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11841 (./conftest; exit; ) >&5 2>/dev/null
11842 lt_status=$?
11843 case x$lt_status in
11844 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11845 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11846 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11847 esac
11848 else :
11849 # compilation failed
11850 lt_cv_dlopen_self=no
11851 fi
11852fi
11853rm -fr conftest*
11854
11855
11856fi
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11858$as_echo "$lt_cv_dlopen_self" >&6; }
11859
11860 if test "x$lt_cv_dlopen_self" = xyes; then
11861 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11863$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11864if ${lt_cv_dlopen_self_static+:} false; then :
11865 $as_echo_n "(cached) " >&6
11866else
11867 if test "$cross_compiling" = yes; then :
11868 lt_cv_dlopen_self_static=cross
11869else
11870 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11871 lt_status=$lt_dlunknown
11872 cat > conftest.$ac_ext <<_LT_EOF
11873#line $LINENO "configure"
11874#include "confdefs.h"
11875
11876#if HAVE_DLFCN_H
11877#include <dlfcn.h>
11878#endif
11879
11880#include <stdio.h>
11881
11882#ifdef RTLD_GLOBAL
11883# define LT_DLGLOBAL RTLD_GLOBAL
11884#else
11885# ifdef DL_GLOBAL
11886# define LT_DLGLOBAL DL_GLOBAL
11887# else
11888# define LT_DLGLOBAL 0
11889# endif
11890#endif
11891
11892/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11893 find out it does not work in some platform. */
11894#ifndef LT_DLLAZY_OR_NOW
11895# ifdef RTLD_LAZY
11896# define LT_DLLAZY_OR_NOW RTLD_LAZY
11897# else
11898# ifdef DL_LAZY
11899# define LT_DLLAZY_OR_NOW DL_LAZY
11900# else
11901# ifdef RTLD_NOW
11902# define LT_DLLAZY_OR_NOW RTLD_NOW
11903# else
11904# ifdef DL_NOW
11905# define LT_DLLAZY_OR_NOW DL_NOW
11906# else
11907# define LT_DLLAZY_OR_NOW 0
11908# endif
11909# endif
11910# endif
11911# endif
11912#endif
11913
11914/* When -fvisbility=hidden is used, assume the code has been annotated
11915 correspondingly for the symbols needed. */
11916#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11917int fnord () __attribute__((visibility("default")));
11918#endif
11919
11920int fnord () { return 42; }
11921int main ()
11922{
11923 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11924 int status = $lt_dlunknown;
11925
11926 if (self)
11927 {
11928 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11929 else
11930 {
11931 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11932 else puts (dlerror ());
11933 }
11934 /* dlclose (self); */
11935 }
11936 else
11937 puts (dlerror ());
11938
11939 return status;
11940}
11941_LT_EOF
11942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11943 (eval $ac_link) 2>&5
11944 ac_status=$?
11945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11946 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11947 (./conftest; exit; ) >&5 2>/dev/null
11948 lt_status=$?
11949 case x$lt_status in
11950 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11951 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11952 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11953 esac
11954 else :
11955 # compilation failed
11956 lt_cv_dlopen_self_static=no
11957 fi
11958fi
11959rm -fr conftest*
11960
11961
11962fi
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11964$as_echo "$lt_cv_dlopen_self_static" >&6; }
11965 fi
11966
11967 CPPFLAGS="$save_CPPFLAGS"
11968 LDFLAGS="$save_LDFLAGS"
11969 LIBS="$save_LIBS"
11970 ;;
11971 esac
11972
11973 case $lt_cv_dlopen_self in
11974 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11975 *) enable_dlopen_self=unknown ;;
11976 esac
11977
11978 case $lt_cv_dlopen_self_static in
11979 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11980 *) enable_dlopen_self_static=unknown ;;
11981 esac
11982fi
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000striplib=
12001old_striplib=
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12003$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12004if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12005 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12006 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12008$as_echo "yes" >&6; }
12009else
12010# FIXME - insert some real tests, host_os isn't really good enough
12011 case $host_os in
12012 darwin*)
12013 if test -n "$STRIP" ; then
12014 striplib="$STRIP -x"
12015 old_striplib="$STRIP -S"
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12017$as_echo "yes" >&6; }
12018 else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020$as_echo "no" >&6; }
12021 fi
12022 ;;
12023 *)
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025$as_echo "no" >&6; }
12026 ;;
12027 esac
12028fi
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041 # Report which library types will actually be built
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12043$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12045$as_echo "$can_build_shared" >&6; }
12046
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12048$as_echo_n "checking whether to build shared libraries... " >&6; }
12049 test "$can_build_shared" = "no" && enable_shared=no
12050
12051 # On AIX, shared libraries and static libraries use the same namespace, and
12052 # are all built from PIC.
12053 case $host_os in
12054 aix3*)
12055 test "$enable_shared" = yes && enable_static=no
12056 if test -n "$RANLIB"; then
12057 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12058 postinstall_cmds='$RANLIB $lib'
12059 fi
12060 ;;
12061
12062 aix[4-9]*)
12063 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12064 test "$enable_shared" = yes && enable_static=no
12065 fi
12066 ;;
12067 esac
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12069$as_echo "$enable_shared" >&6; }
12070
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12072$as_echo_n "checking whether to build static libraries... " >&6; }
12073 # Make sure either enable_shared or enable_static is yes.
12074 test "$enable_shared" = yes || enable_static=yes
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12076$as_echo "$enable_static" >&6; }
12077
12078
12079
12080
12081fi
12082ac_ext=c
12083ac_cpp='$CPP $CPPFLAGS'
12084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12086ac_compiler_gnu=$ac_cv_c_compiler_gnu
12087
12088CC="$lt_save_CC"
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104 ac_config_commands="$ac_config_commands libtool"
12105
12106
12107
12108
12109# Only expand once:
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12121$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12122if ${libltdl_cv_shlibext+:} false; then :
12123 $as_echo_n "(cached) " >&6
12124else
12125
12126module=yes
12127eval libltdl_cv_shlibext=$shrext_cmds
12128module=no
12129eval libltdl_cv_shrext=$shrext_cmds
12130
12131fi
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12133$as_echo "$libltdl_cv_shlibext" >&6; }
12134if test -n "$libltdl_cv_shlibext"; then
12135
12136cat >>confdefs.h <<_ACEOF
12137#define LT_MODULE_EXT "$libltdl_cv_shlibext"
12138_ACEOF
12139
12140fi
12141if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12142
12143cat >>confdefs.h <<_ACEOF
12144#define LT_SHARED_EXT "$libltdl_cv_shrext"
12145_ACEOF
12146
12147fi
12148
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12150$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12151if ${lt_cv_module_path_var+:} false; then :
12152 $as_echo_n "(cached) " >&6
12153else
12154 lt_cv_module_path_var="$shlibpath_var"
12155fi
12156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12157$as_echo "$lt_cv_module_path_var" >&6; }
12158if test -n "$lt_cv_module_path_var"; then
12159
12160cat >>confdefs.h <<_ACEOF
12161#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12162_ACEOF
12163
12164fi
12165
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12167$as_echo_n "checking for the default library search path... " >&6; }
12168if ${lt_cv_sys_dlsearch_path+:} false; then :
12169 $as_echo_n "(cached) " >&6
12170else
12171 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12172fi
12173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12174$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12175if test -n "$lt_cv_sys_dlsearch_path"; then
12176 sys_dlsearch_path=
12177 for dir in $lt_cv_sys_dlsearch_path; do
12178 if test -z "$sys_dlsearch_path"; then
12179 sys_dlsearch_path="$dir"
12180 else
12181 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12182 fi
12183 done
12184
12185cat >>confdefs.h <<_ACEOF
12186#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12187_ACEOF
12188
12189fi
12190
12191
12192LT_DLLOADERS=
12193
12194
12195ac_ext=c
12196ac_cpp='$CPP $CPPFLAGS'
12197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12199ac_compiler_gnu=$ac_cv_c_compiler_gnu
12200
12201
12202LIBADD_DLOPEN=
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12204$as_echo_n "checking for library containing dlopen... " >&6; }
12205if ${ac_cv_search_dlopen+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207else
12208 ac_func_search_save_LIBS=$LIBS
12209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210/* end confdefs.h. */
12211
12212/* Override any GCC internal prototype to avoid an error.
12213 Use char because int might match the return type of a GCC
12214 builtin and then its argument prototype would still apply. */
12215#ifdef __cplusplus
12216extern "C"
12217#endif
12218char dlopen ();
12219int
12220main ()
12221{
12222return dlopen ();
12223 ;
12224 return 0;
12225}
12226_ACEOF
12227for ac_lib in '' dl; do
12228 if test -z "$ac_lib"; then
12229 ac_res="none required"
12230 else
12231 ac_res=-l$ac_lib
12232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12233 fi
12234 if ac_fn_c_try_link "$LINENO"; then :
12235 ac_cv_search_dlopen=$ac_res
12236fi
12237rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext
12239 if ${ac_cv_search_dlopen+:} false; then :
12240 break
12241fi
12242done
12243if ${ac_cv_search_dlopen+:} false; then :
12244
12245else
12246 ac_cv_search_dlopen=no
12247fi
12248rm conftest.$ac_ext
12249LIBS=$ac_func_search_save_LIBS
12250fi
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12252$as_echo "$ac_cv_search_dlopen" >&6; }
12253ac_res=$ac_cv_search_dlopen
12254if test "$ac_res" != no; then :
12255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12256
12257$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12258
12259 if test "$ac_cv_search_dlopen" != "none required" ; then
12260 LIBADD_DLOPEN="-ldl"
12261 fi
12262 libltdl_cv_lib_dl_dlopen="yes"
12263 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12264else
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266/* end confdefs.h. */
12267#if HAVE_DLFCN_H
12268# include <dlfcn.h>
12269#endif
12270
12271int
12272main ()
12273{
12274dlopen(0, 0);
12275 ;
12276 return 0;
12277}
12278_ACEOF
12279if ac_fn_c_try_link "$LINENO"; then :
12280
12281$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12282
12283 libltdl_cv_func_dlopen="yes"
12284 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12285else
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12287$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12288if ${ac_cv_lib_svld_dlopen+:} false; then :
12289 $as_echo_n "(cached) " >&6
12290else
12291 ac_check_lib_save_LIBS=$LIBS
12292LIBS="-lsvld $LIBS"
12293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294/* end confdefs.h. */
12295
12296/* Override any GCC internal prototype to avoid an error.
12297 Use char because int might match the return type of a GCC
12298 builtin and then its argument prototype would still apply. */
12299#ifdef __cplusplus
12300extern "C"
12301#endif
12302char dlopen ();
12303int
12304main ()
12305{
12306return dlopen ();
12307 ;
12308 return 0;
12309}
12310_ACEOF
12311if ac_fn_c_try_link "$LINENO"; then :
12312 ac_cv_lib_svld_dlopen=yes
12313else
12314 ac_cv_lib_svld_dlopen=no
7083c021 12315fi
c52df125
AC
12316rm -f core conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext conftest.$ac_ext
12318LIBS=$ac_check_lib_save_LIBS
12319fi
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12321$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12322if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
7083c021 12323
c52df125
AC
12324$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12325
12326 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12327 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
7083c021
AC
12328fi
12329
c52df125
AC
12330fi
12331rm -f core conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12333fi
7083c021 12334
c52df125
AC
12335if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12336then
12337 lt_save_LIBS="$LIBS"
12338 LIBS="$LIBS $LIBADD_DLOPEN"
12339 for ac_func in dlerror
12340do :
12341 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12342if test "x$ac_cv_func_dlerror" = xyes; then :
12343 cat >>confdefs.h <<_ACEOF
12344#define HAVE_DLERROR 1
12345_ACEOF
7083c021 12346
c52df125 12347fi
7083c021
AC
12348done
12349
c52df125
AC
12350 LIBS="$lt_save_LIBS"
12351fi
12352
12353
12354LIBADD_SHL_LOAD=
12355ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12356if test "x$ac_cv_func_shl_load" = xyes; then :
12357
12358$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12359
12360 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12361else
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12363$as_echo_n "checking for shl_load in -ldld... " >&6; }
12364if ${ac_cv_lib_dld_shl_load+:} false; then :
12365 $as_echo_n "(cached) " >&6
12366else
12367 ac_check_lib_save_LIBS=$LIBS
12368LIBS="-ldld $LIBS"
7083c021
AC
12369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370/* end confdefs.h. */
6fb6bd15 12371
c52df125
AC
12372/* Override any GCC internal prototype to avoid an error.
12373 Use char because int might match the return type of a GCC
12374 builtin and then its argument prototype would still apply. */
12375#ifdef __cplusplus
12376extern "C"
12377#endif
12378char shl_load ();
212380e3 12379int
7083c021 12380main ()
212380e3 12381{
c52df125 12382return shl_load ();
7083c021
AC
12383 ;
12384 return 0;
212380e3
AC
12385}
12386_ACEOF
c52df125
AC
12387if ac_fn_c_try_link "$LINENO"; then :
12388 ac_cv_lib_dld_shl_load=yes
12389else
12390 ac_cv_lib_dld_shl_load=no
12391fi
12392rm -f core conftest.err conftest.$ac_objext \
12393 conftest$ac_exeext conftest.$ac_ext
12394LIBS=$ac_check_lib_save_LIBS
12395fi
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12397$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12398if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
7083c021 12399
c52df125 12400$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
7083c021 12401
c52df125
AC
12402 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12403 LIBADD_SHL_LOAD="-ldld"
12404fi
7083c021 12405
c52df125 12406fi
212380e3 12407
c52df125
AC
12408
12409
12410case $host_os in
12411darwin[1567].*)
12412# We only want this for pre-Mac OS X 10.4.
12413 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12414if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12415
12416$as_echo "#define HAVE_DYLD 1" >>confdefs.h
12417
12418 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
631ef239 12419fi
7083c021 12420
c52df125
AC
12421 ;;
12422beos*)
12423 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12424 ;;
12425cygwin* | mingw* | os2* | pw32*)
12426 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12427"
12428if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12429 ac_have_decl=1
6fb6bd15 12430else
c52df125 12431 ac_have_decl=0
631ef239 12432fi
631ef239 12433
c52df125
AC
12434cat >>confdefs.h <<_ACEOF
12435#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12436_ACEOF
12437
12438 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12439 ;;
7083c021 12440esac
7083c021 12441
c52df125
AC
12442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12443$as_echo_n "checking for dld_link in -ldld... " >&6; }
12444if ${ac_cv_lib_dld_dld_link+:} false; then :
12445 $as_echo_n "(cached) " >&6
12446else
12447 ac_check_lib_save_LIBS=$LIBS
12448LIBS="-ldld $LIBS"
6fb6bd15
AC
12449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450/* end confdefs.h. */
c52df125
AC
12451
12452/* Override any GCC internal prototype to avoid an error.
12453 Use char because int might match the return type of a GCC
12454 builtin and then its argument prototype would still apply. */
12455#ifdef __cplusplus
12456extern "C"
12457#endif
12458char dld_link ();
6fb6bd15
AC
12459int
12460main ()
12461{
c52df125 12462return dld_link ();
6fb6bd15
AC
12463 ;
12464 return 0;
12465}
12466_ACEOF
c52df125
AC
12467if ac_fn_c_try_link "$LINENO"; then :
12468 ac_cv_lib_dld_dld_link=yes
12469else
12470 ac_cv_lib_dld_dld_link=no
12471fi
12472rm -f core conftest.err conftest.$ac_objext \
12473 conftest$ac_exeext conftest.$ac_ext
12474LIBS=$ac_check_lib_save_LIBS
12475fi
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12477$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12478if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12479
12480$as_echo "#define HAVE_DLD 1" >>confdefs.h
12481
12482 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12483fi
12484
12485
12486
12487
12488LT_DLPREOPEN=
12489if test -n "$LT_DLLOADERS"
12490then
12491 for lt_loader in $LT_DLLOADERS; do
12492 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12493 done
12494
12495$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12496
12497fi
12498
12499
12500LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12501
12502
12503ac_ext=c
12504ac_cpp='$CPP $CPPFLAGS'
12505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12507ac_compiler_gnu=$ac_cv_c_compiler_gnu
12508
12509
12510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12511$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12512if ${lt_cv_sys_symbol_underscore+:} false; then :
12513 $as_echo_n "(cached) " >&6
12514else
12515 lt_cv_sys_symbol_underscore=no
12516 cat > conftest.$ac_ext <<_LT_EOF
12517void nm_test_func(){}
12518int main(){nm_test_func;return 0;}
12519_LT_EOF
12520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12521 (eval $ac_compile) 2>&5
6fb6bd15
AC
12522 ac_status=$?
12523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c52df125
AC
12524 test $ac_status = 0; }; then
12525 # Now try to grab the symbols.
12526 ac_nlist=conftest.nm
12527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12528 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
6fb6bd15
AC
12529 ac_status=$?
12530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c52df125
AC
12531 test $ac_status = 0; } && test -s "$ac_nlist"; then
12532 # See whether the symbols have a leading underscore.
12533 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12534 lt_cv_sys_symbol_underscore=yes
12535 else
12536 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12537 :
12538 else
12539 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12540 fi
12541 fi
6fb6bd15 12542 else
c52df125 12543 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
6fb6bd15 12544 fi
c52df125
AC
12545 else
12546 echo "configure: failed program was:" >&5
12547 cat conftest.c >&5
6fb6bd15 12548 fi
c52df125
AC
12549 rm -rf conftest*
12550
6fb6bd15 12551fi
c52df125
AC
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12553$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12554 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
6fb6bd15 12555
c52df125
AC
12556
12557if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12558 if test x"$libltdl_cv_func_dlopen" = xyes ||
12559 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12561$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12562if ${libltdl_cv_need_uscore+:} false; then :
7083c021
AC
12563 $as_echo_n "(cached) " >&6
12564else
c52df125
AC
12565 libltdl_cv_need_uscore=unknown
12566 save_LIBS="$LIBS"
12567 LIBS="$LIBS $LIBADD_DLOPEN"
12568 if test "$cross_compiling" = yes; then :
12569 libltdl_cv_need_uscore=cross
12570else
12571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12572 lt_status=$lt_dlunknown
12573 cat > conftest.$ac_ext <<_LT_EOF
12574#line $LINENO "configure"
12575#include "confdefs.h"
212380e3 12576
c52df125
AC
12577#if HAVE_DLFCN_H
12578#include <dlfcn.h>
12579#endif
12580
12581#include <stdio.h>
12582
12583#ifdef RTLD_GLOBAL
12584# define LT_DLGLOBAL RTLD_GLOBAL
12585#else
12586# ifdef DL_GLOBAL
12587# define LT_DLGLOBAL DL_GLOBAL
12588# else
12589# define LT_DLGLOBAL 0
12590# endif
12591#endif
12592
12593/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12594 find out it does not work in some platform. */
12595#ifndef LT_DLLAZY_OR_NOW
12596# ifdef RTLD_LAZY
12597# define LT_DLLAZY_OR_NOW RTLD_LAZY
12598# else
12599# ifdef DL_LAZY
12600# define LT_DLLAZY_OR_NOW DL_LAZY
12601# else
12602# ifdef RTLD_NOW
12603# define LT_DLLAZY_OR_NOW RTLD_NOW
12604# else
12605# ifdef DL_NOW
12606# define LT_DLLAZY_OR_NOW DL_NOW
12607# else
12608# define LT_DLLAZY_OR_NOW 0
12609# endif
12610# endif
12611# endif
12612# endif
12613#endif
12614
12615/* When -fvisbility=hidden is used, assume the code has been annotated
12616 correspondingly for the symbols needed. */
12617#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12618int fnord () __attribute__((visibility("default")));
12619#endif
12620
12621int fnord () { return 42; }
12622int main ()
7083c021 12623{
c52df125
AC
12624 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12625 int status = $lt_dlunknown;
7083c021 12626
c52df125
AC
12627 if (self)
12628 {
12629 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12630 else
12631 {
12632 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12633 else puts (dlerror ());
12634 }
12635 /* dlclose (self); */
12636 }
12637 else
12638 puts (dlerror ());
12639
12640 return status;
7083c021 12641}
c52df125
AC
12642_LT_EOF
12643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12644 (eval $ac_link) 2>&5
212380e3 12645 ac_status=$?
7083c021 12646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c52df125
AC
12647 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12648 (./conftest; exit; ) >&5 2>/dev/null
12649 lt_status=$?
12650 case x$lt_status in
12651 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12652 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12653 x$lt_dlunknown|x*) ;;
12654 esac
12655 else :
12656 # compilation failed
212380e3 12657
c52df125 12658 fi
7083c021 12659fi
c52df125
AC
12660rm -fr conftest*
12661
12662 LIBS="$save_LIBS"
12663
212380e3 12664fi
c52df125
AC
12665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12666$as_echo "$libltdl_cv_need_uscore" >&6; }
12667 fi
12668fi
12669
12670if test x"$libltdl_cv_need_uscore" = xyes; then
12671
12672$as_echo "#define NEED_USCORE 1" >>confdefs.h
12673
12674fi
12675
12676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12677$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12678if ${lt_cv_sys_dlopen_deplibs+:} false; then :
7083c021
AC
12679 $as_echo_n "(cached) " >&6
12680else
c52df125
AC
12681 # PORTME does your system automatically load deplibs for dlopen?
12682 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12683 # For now, we just catch OSes we know something about -- in the
12684 # future, we'll try test this programmatically.
12685 lt_cv_sys_dlopen_deplibs=unknown
12686 case $host_os in
12687 aix3*|aix4.1.*|aix4.2.*)
12688 # Unknown whether this is true for these versions of AIX, but
12689 # we want this `case' here to explicitly catch those versions.
12690 lt_cv_sys_dlopen_deplibs=unknown
12691 ;;
12692 aix[4-9]*)
12693 lt_cv_sys_dlopen_deplibs=yes
12694 ;;
12695 amigaos*)
12696 case $host_cpu in
12697 powerpc)
12698 lt_cv_sys_dlopen_deplibs=no
12699 ;;
12700 esac
12701 ;;
12702 darwin*)
12703 # Assuming the user has installed a libdl from somewhere, this is true
12704 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12705 lt_cv_sys_dlopen_deplibs=yes
12706 ;;
12707 freebsd* | dragonfly*)
12708 lt_cv_sys_dlopen_deplibs=yes
12709 ;;
12710 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12711 # GNU and its variants, using gnu ld.so (Glibc)
12712 lt_cv_sys_dlopen_deplibs=yes
12713 ;;
12714 hpux10*|hpux11*)
12715 lt_cv_sys_dlopen_deplibs=yes
12716 ;;
12717 interix*)
12718 lt_cv_sys_dlopen_deplibs=yes
12719 ;;
12720 irix[12345]*|irix6.[01]*)
12721 # Catch all versions of IRIX before 6.2, and indicate that we don't
12722 # know how it worked for any of those versions.
12723 lt_cv_sys_dlopen_deplibs=unknown
12724 ;;
12725 irix*)
12726 # The case above catches anything before 6.2, and it's known that
12727 # at 6.2 and later dlopen does load deplibs.
12728 lt_cv_sys_dlopen_deplibs=yes
12729 ;;
12730 netbsd* | netbsdelf*-gnu)
12731 lt_cv_sys_dlopen_deplibs=yes
12732 ;;
12733 openbsd*)
12734 lt_cv_sys_dlopen_deplibs=yes
12735 ;;
12736 osf[1234]*)
12737 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12738 # it did *not* use an RPATH in a shared library to find objects the
12739 # library depends on, so we explicitly say `no'.
12740 lt_cv_sys_dlopen_deplibs=no
12741 ;;
12742 osf5.0|osf5.0a|osf5.1)
12743 # dlopen *does* load deplibs and with the right loader patch applied
12744 # it even uses RPATH in a shared library to search for shared objects
12745 # that the library depends on, but there's no easy way to know if that
12746 # patch is installed. Since this is the case, all we can really
12747 # say is unknown -- it depends on the patch being installed. If
12748 # it is, this changes to `yes'. Without it, it would be `no'.
12749 lt_cv_sys_dlopen_deplibs=unknown
12750 ;;
12751 osf*)
12752 # the two cases above should catch all versions of osf <= 5.1. Read
12753 # the comments above for what we know about them.
12754 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12755 # is used to find them so we can finally say `yes'.
12756 lt_cv_sys_dlopen_deplibs=yes
12757 ;;
12758 qnx*)
12759 lt_cv_sys_dlopen_deplibs=yes
12760 ;;
12761 solaris*)
12762 lt_cv_sys_dlopen_deplibs=yes
12763 ;;
12764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12765 libltdl_cv_sys_dlopen_deplibs=yes
12766 ;;
12767 esac
212380e3 12768
c52df125
AC
12769fi
12770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12771$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12772if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12773
12774$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12775
12776fi
12777
12778:
12779
12780for ac_header in argz.h
12781do :
12782 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12783"
12784if test "x$ac_cv_header_argz_h" = xyes; then :
12785 cat >>confdefs.h <<_ACEOF
12786#define HAVE_ARGZ_H 1
12787_ACEOF
12788
12789fi
12790
12791done
12792
12793
12794ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12795# include <argz.h>
7083c021 12796#endif
c52df125
AC
12797"
12798if test "x$ac_cv_type_error_t" = xyes; then :
212380e3 12799
c52df125
AC
12800cat >>confdefs.h <<_ACEOF
12801#define HAVE_ERROR_T 1
7083c021 12802_ACEOF
c52df125
AC
12803
12804
7083c021 12805else
c52df125
AC
12806
12807$as_echo "#define error_t int" >>confdefs.h
12808
12809
12810$as_echo "#define __error_t_defined 1" >>confdefs.h
7083c021
AC
12811
12812fi
c52df125
AC
12813
12814
12815ARGZ_H=
12816for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12817 argz_next argz_stringify
12818do :
12819 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12820ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12821if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12822 cat >>confdefs.h <<_ACEOF
12823#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12824_ACEOF
12825
7083c021 12826else
c52df125
AC
12827 ARGZ_H=argz.h;
12828
12829 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12830
212380e3 12831fi
c52df125
AC
12832done
12833
12834
12835if test -z "$ARGZ_H"; then :
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12837$as_echo_n "checking if argz actually works... " >&6; }
12838if ${lt_cv_sys_argz_works+:} false; then :
7083c021
AC
12839 $as_echo_n "(cached) " >&6
12840else
c52df125
AC
12841 case $host_os in #(
12842 *cygwin*)
12843 lt_cv_sys_argz_works=no
12844 if test "$cross_compiling" != no; then
12845 lt_cv_sys_argz_works="guessing no"
12846 else
12847 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12848 save_IFS=$IFS
12849 IFS=-.
12850 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12851 IFS=$save_IFS
12852 lt_os_major=${2-0}
12853 lt_os_minor=${3-0}
12854 lt_os_micro=${4-0}
12855 if test "$lt_os_major" -gt 1 \
12856 || { test "$lt_os_major" -eq 1 \
12857 && { test "$lt_os_minor" -gt 5 \
12858 || { test "$lt_os_minor" -eq 5 \
12859 && test "$lt_os_micro" -gt 24; }; }; }; then
12860 lt_cv_sys_argz_works=yes
12861 fi
12862 fi
12863 ;; #(
12864 *) lt_cv_sys_argz_works=yes ;;
12865 esac
12866fi
12867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12868$as_echo "$lt_cv_sys_argz_works" >&6; }
12869 if test "$lt_cv_sys_argz_works" = yes; then :
212380e3 12870
c52df125 12871$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
631ef239 12872
212380e3 12873else
c52df125
AC
12874 ARGZ_H=argz.h
12875
12876
12877 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12878
12879fi
12880fi
12881
12882
12883
12884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12885$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12886if ${libltdl_cv_preloaded_symbols+:} false; then :
12887 $as_echo_n "(cached) " >&6
12888else
12889 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12890 libltdl_cv_preloaded_symbols=yes
12891 else
12892 libltdl_cv_preloaded_symbols=no
12893 fi
12894
12895fi
12896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12897$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12898if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12899
12900$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12901
12902fi
12903
12904
12905
12906# Set options
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919# Check whether --with-included_ltdl was given.
12920if test "${with_included_ltdl+set}" = set; then :
12921 withval=$with_included_ltdl;
12922fi
212380e3 12923
631ef239 12924
c52df125
AC
12925if test "x$with_included_ltdl" != xyes; then
12926 # We are not being forced to use the included libltdl sources, so
12927 # decide whether there is a useful installed version we can use.
12928 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
631ef239 12929
c52df125
AC
12930"
12931if test "x$ac_cv_header_ltdl_h" = xyes; then :
12932 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12933 #include <ltdl.h>
12934"
12935if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12937$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12938if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12939 $as_echo_n "(cached) " >&6
7083c021 12940else
c52df125
AC
12941 ac_check_lib_save_LIBS=$LIBS
12942LIBS="-lltdl $LIBS"
12943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083c021 12944/* end confdefs.h. */
212380e3 12945
c52df125
AC
12946/* Override any GCC internal prototype to avoid an error.
12947 Use char because int might match the return type of a GCC
12948 builtin and then its argument prototype would still apply. */
12949#ifdef __cplusplus
12950extern "C"
12951#endif
12952char lt_dladvise_preload ();
7083c021
AC
12953int
12954main ()
12955{
c52df125 12956return lt_dladvise_preload ();
7083c021
AC
12957 ;
12958 return 0;
12959}
212380e3 12960_ACEOF
c52df125
AC
12961if ac_fn_c_try_link "$LINENO"; then :
12962 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12963else
12964 ac_cv_lib_ltdl_lt_dladvise_preload=no
212380e3 12965fi
c52df125
AC
12966rm -f core conftest.err conftest.$ac_objext \
12967 conftest$ac_exeext conftest.$ac_ext
12968LIBS=$ac_check_lib_save_LIBS
212380e3 12969fi
c52df125
AC
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12971$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12972if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12973 with_included_ltdl=no
12974else
12975 with_included_ltdl=yes
212380e3 12976fi
c52df125
AC
12977
12978else
12979 with_included_ltdl=yes
212380e3 12980fi
c52df125
AC
12981
12982else
12983 with_included_ltdl=yes
12984fi
12985
12986
12987fi
12988
12989
12990
12991
12992# Check whether --with-ltdl_include was given.
12993if test "${with_ltdl_include+set}" = set; then :
12994 withval=$with_ltdl_include;
12995fi
12996
12997
12998if test -n "$with_ltdl_include"; then
12999 if test -f "$with_ltdl_include/ltdl.h"; then :
7083c021 13000 else
c52df125 13001 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
7083c021 13002 fi
212380e3 13003else
c52df125
AC
13004 with_ltdl_include=no
13005fi
13006
13007
13008# Check whether --with-ltdl_lib was given.
13009if test "${with_ltdl_lib+set}" = set; then :
13010 withval=$with_ltdl_lib;
13011fi
13012
13013
13014if test -n "$with_ltdl_lib"; then
13015 if test -f "$with_ltdl_lib/libltdl.la"; then :
7083c021 13016 else
c52df125 13017 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
7083c021 13018 fi
7083c021 13019else
c52df125
AC
13020 with_ltdl_lib=no
13021fi
7083c021 13022
c52df125
AC
13023case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
13024 ,yes,no,no,)
13025 case $enable_ltdl_convenience in
13026 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
13027 "") enable_ltdl_convenience=yes
13028 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13029esac
13030LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13031LTDLDEPS=$LIBLTDL
13032LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
7083c021 13033
212380e3 13034
7083c021 13035
c52df125
AC
13036
13037
13038# For backwards non-gettext consistent compatibility...
13039INCLTDL="$LTDLINCL"
13040
13041
13042 ;;
13043 ,no,no,no,)
13044 # If the included ltdl is not to be used, then use the
13045 # preinstalled libltdl we found.
13046
13047$as_echo "#define HAVE_LTDL 1" >>confdefs.h
13048
13049 LIBLTDL=-lltdl
13050 LTDLDEPS=
13051 LTDLINCL=
13052 ;;
13053 ,no*,no,*)
13054 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13055 ;;
13056 *) with_included_ltdl=no
13057 LIBLTDL="-L$with_ltdl_lib -lltdl"
13058 LTDLDEPS=
13059 LTDLINCL="-I$with_ltdl_include"
13060 ;;
631ef239 13061esac
c52df125
AC
13062INCLTDL="$LTDLINCL"
13063
13064# Report our decision...
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
13066$as_echo_n "checking where to find libltdl headers... " >&6; }
13067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
13068$as_echo "$LTDLINCL" >&6; }
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
13070$as_echo_n "checking where to find libltdl library... " >&6; }
13071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
13072$as_echo "$LIBLTDL" >&6; }
13073
13074
212380e3 13075
c52df125
AC
13076# Check whether --enable-ltdl-install was given.
13077if test "${enable_ltdl_install+set}" = set; then :
13078 enableval=$enable_ltdl_install;
212380e3 13079fi
631ef239 13080
212380e3 13081
c52df125
AC
13082case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13083 *yes*) ;;
13084 *) enable_ltdl_convenience=yes ;;
13085esac
212380e3 13086
c52df125
AC
13087 if test x"${enable_ltdl_install-no}" != xno; then
13088 INSTALL_LTDL_TRUE=
13089 INSTALL_LTDL_FALSE='#'
13090else
13091 INSTALL_LTDL_TRUE='#'
13092 INSTALL_LTDL_FALSE=
7083c021 13093fi
c52df125
AC
13094
13095 if test x"${enable_ltdl_convenience-no}" != xno; then
13096 CONVENIENCE_LTDL_TRUE=
13097 CONVENIENCE_LTDL_FALSE='#'
7083c021 13098else
c52df125
AC
13099 CONVENIENCE_LTDL_TRUE='#'
13100 CONVENIENCE_LTDL_FALSE=
13101fi
13102
13103
13104
13105 subdirs="$subdirs extra/libltdl"
13106
13107
13108
13109
13110# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13111# the user used. This is so that ltdl.h can pick up the parent projects
13112# config.h file, The first file in AC_CONFIG_HEADERS must contain the
13113# definitions required by ltdl.c.
13114# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13115
13116
13117
13118for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13119do :
13120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13121ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13122"
13123if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13124 cat >>confdefs.h <<_ACEOF
13125#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13126_ACEOF
13127
13128fi
13129
13130done
13131
13132
13133for ac_func in closedir opendir readdir
13134do :
13135 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13136ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13137if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13138 cat >>confdefs.h <<_ACEOF
13139#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3 13140_ACEOF
212380e3 13141
7083c021 13142else
c52df125
AC
13143
13144
13145 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13146
212380e3 13147fi
c52df125 13148done
212380e3 13149
c52df125
AC
13150for ac_func in strlcat strlcpy
13151do :
13152 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13153ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13154if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13155 cat >>confdefs.h <<_ACEOF
13156#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3 13157_ACEOF
c52df125 13158
212380e3 13159else
212380e3 13160
212380e3 13161
c52df125 13162 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
7083c021
AC
13163
13164fi
c52df125
AC
13165done
13166
13167
13168
13169cat >>confdefs.h <<_ACEOF
13170#define LT_LIBEXT "$libext"
212380e3
AC
13171_ACEOF
13172
212380e3 13173
c52df125
AC
13174name=
13175eval "lt_libprefix=\"$libname_spec\""
13176
13177cat >>confdefs.h <<_ACEOF
13178#define LT_LIBPREFIX "$lt_libprefix"
212380e3 13179_ACEOF
212380e3 13180
212380e3 13181
c52df125
AC
13182name=ltdl
13183eval "LTDLOPEN=\"$libname_spec\""
212380e3
AC
13184
13185
13186
7083c021 13187
212380e3 13188
631ef239 13189
212380e3 13190
212380e3 13191
c52df125 13192# Only expand once:
212380e3 13193
c52df125
AC
13194
13195
13196build_ltdl=$with_included_ltdl
13197 if test x"$build_ltdl" = x"yes"; then
13198 BUILD_LTDL_TRUE=
13199 BUILD_LTDL_FALSE='#'
13200else
13201 BUILD_LTDL_TRUE='#'
13202 BUILD_LTDL_FALSE=
212380e3 13203fi
212380e3
AC
13204
13205
c52df125
AC
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
13207$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
13208if ${ac_cv_prog_cc_c99+:} false; then :
7083c021 13209 $as_echo_n "(cached) " >&6
212380e3 13210else
c52df125
AC
13211 ac_cv_prog_cc_c99=no
13212ac_save_CC=$CC
13213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 13214/* end confdefs.h. */
7083c021 13215#include <stdarg.h>
c52df125
AC
13216#include <stdbool.h>
13217#include <stdlib.h>
13218#include <wchar.h>
13219#include <stdio.h>
212380e3 13220
c52df125
AC
13221// Check varargs macros. These examples are taken from C99 6.10.3.5.
13222#define debug(...) fprintf (stderr, __VA_ARGS__)
13223#define showlist(...) puts (#__VA_ARGS__)
13224#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
13225static void
13226test_varargs_macros (void)
212380e3 13227{
c52df125
AC
13228 int x = 1234;
13229 int y = 5678;
13230 debug ("Flag");
13231 debug ("X = %d\n", x);
13232 showlist (The first, second, and third items.);
13233 report (x>y, "x is %d but y is %d", x, y);
13234}
212380e3 13235
c52df125
AC
13236// Check long long types.
13237#define BIG64 18446744073709551615ull
13238#define BIG32 4294967295ul
13239#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
13240#if !BIG_OK
13241 your preprocessor is broken;
13242#endif
13243#if BIG_OK
13244#else
13245 your preprocessor is broken;
13246#endif
13247static long long int bignum = -9223372036854775807LL;
13248static unsigned long long int ubignum = BIG64;
13249
13250struct incomplete_array
13251{
13252 int datasize;
13253 double data[];
13254};
13255
13256struct named_init {
13257 int number;
13258 const wchar_t *name;
13259 double average;
13260};
13261
13262typedef const char *ccp;
13263
13264static inline int
13265test_restrict (ccp restrict text)
13266{
13267 // See if C++-style comments work.
13268 // Iterate through items via the restricted pointer.
13269 // Also check for declarations in for loops.
13270 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
13271 continue;
212380e3
AC
13272 return 0;
13273}
212380e3 13274
c52df125
AC
13275// Check varargs and va_copy.
13276static void
13277test_varargs (const char *format, ...)
13278{
13279 va_list args;
13280 va_start (args, format);
13281 va_list args_copy;
13282 va_copy (args_copy, args);
212380e3 13283
c52df125
AC
13284 const char *str;
13285 int number;
13286 float fnumber;
13287
13288 while (*format)
13289 {
13290 switch (*format++)
13291 {
13292 case 's': // string
13293 str = va_arg (args_copy, const char *);
13294 break;
13295 case 'd': // int
13296 number = va_arg (args_copy, int);
13297 break;
13298 case 'f': // float
13299 fnumber = va_arg (args_copy, double);
13300 break;
13301 default:
13302 break;
13303 }
13304 }
13305 va_end (args_copy);
13306 va_end (args);
13307}
13308
13309int
13310main ()
13311{
13312
13313 // Check bool.
13314 _Bool success = false;
212380e3 13315
c52df125
AC
13316 // Check restrict.
13317 if (test_restrict ("String literal") == 0)
13318 success = true;
13319 char *restrict newvar = "Another string";
212380e3 13320
c52df125
AC
13321 // Check varargs.
13322 test_varargs ("s, d' f .", "string", 65, 34.234);
13323 test_varargs_macros ();
212380e3 13324
c52df125
AC
13325 // Check flexible array members.
13326 struct incomplete_array *ia =
13327 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13328 ia->datasize = 10;
13329 for (int i = 0; i < ia->datasize; ++i)
13330 ia->data[i] = i * 1.234;
212380e3 13331
c52df125
AC
13332 // Check named initializers.
13333 struct named_init ni = {
13334 .number = 34,
13335 .name = L"Test wide string",
13336 .average = 543.34343,
13337 };
7083c021 13338
c52df125 13339 ni.number = 58;
212380e3 13340
c52df125
AC
13341 int dynamic_array[ni.number];
13342 dynamic_array[ni.number - 1] = 543;
631ef239 13343
c52df125
AC
13344 // work around unused variable warnings
13345 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13346 || dynamic_array[ni.number - 1] != 543);
7083c021 13347
c52df125 13348 ;
212380e3
AC
13349 return 0;
13350}
13351_ACEOF
c52df125
AC
13352for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13353do
13354 CC="$ac_save_CC $ac_arg"
13355 if ac_fn_c_try_compile "$LINENO"; then :
13356 ac_cv_prog_cc_c99=$ac_arg
7083c021 13357fi
c52df125
AC
13358rm -f core conftest.err conftest.$ac_objext
13359 test "x$ac_cv_prog_cc_c99" != "xno" && break
13360done
13361rm -f conftest.$ac_ext
13362CC=$ac_save_CC
631ef239 13363
212380e3 13364fi
c52df125
AC
13365# AC_CACHE_VAL
13366case "x$ac_cv_prog_cc_c99" in
13367 x)
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13369$as_echo "none needed" >&6; } ;;
13370 xno)
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13372$as_echo "unsupported" >&6; } ;;
13373 *)
13374 CC="$CC $ac_cv_prog_cc_c99"
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13376$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13377esac
13378if test "x$ac_cv_prog_cc_c99" != xno; then :
631ef239 13379
7083c021 13380fi
631ef239 13381
7083c021
AC
13382
13383
13384
13385 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
b6d0720c 13386if test "x$ac_cv_header_minix_config_h" = xyes; then :
7083c021 13387 MINIX=yes
212380e3 13388else
7083c021
AC
13389 MINIX=
13390fi
13391
13392
13393 if test "$MINIX" = yes; then
13394
13395$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
13396
212380e3 13397
7083c021 13398$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
631ef239
AC
13399
13400
7083c021 13401$as_echo "#define _MINIX 1" >>confdefs.h
631ef239 13402
7083c021 13403 fi
212380e3 13404
212380e3 13405
7083c021
AC
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
13407$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
b6d0720c 13408if ${ac_cv_safe_to_define___extensions__+:} false; then :
7083c021 13409 $as_echo_n "(cached) " >&6
212380e3 13410else
7083c021 13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 13412/* end confdefs.h. */
7083c021 13413
2eff3833
JT
13414# define __EXTENSIONS__ 1
13415 $ac_includes_default
212380e3
AC
13416int
13417main ()
13418{
7083c021 13419
212380e3
AC
13420 ;
13421 return 0;
13422}
13423_ACEOF
7083c021
AC
13424if ac_fn_c_try_compile "$LINENO"; then :
13425 ac_cv_safe_to_define___extensions__=yes
212380e3 13426else
7083c021 13427 ac_cv_safe_to_define___extensions__=no
212380e3 13428fi
631ef239 13429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 13430fi
7083c021
AC
13431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
13432$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
13433 test $ac_cv_safe_to_define___extensions__ = yes &&
13434 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 13435
7083c021 13436 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
212380e3 13437
7083c021
AC
13438 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
13439
13440 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
13441
13442 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
212380e3 13443
7083c021
AC
13444
13445
13446
13447OLD_CFLAGS="$CFLAGS"
13448ac_ext=c
13449ac_cpp='$CPP $CPPFLAGS'
13450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13452ac_compiler_gnu=$ac_cv_c_compiler_gnu
13453if test -n "$ac_tool_prefix"; then
13454 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13455set dummy ${ac_tool_prefix}gcc; ac_word=$2
13456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13457$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13458if ${ac_cv_prog_CC+:} false; then :
7083c021 13459 $as_echo_n "(cached) " >&6
212380e3 13460else
7083c021
AC
13461 if test -n "$CC"; then
13462 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 13463else
7083c021
AC
13464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13465for as_dir in $PATH
13466do
13467 IFS=$as_save_IFS
13468 test -z "$as_dir" && as_dir=.
13469 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13471 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13473 break 2
13474 fi
13475done
13476 done
13477IFS=$as_save_IFS
212380e3 13478
212380e3 13479fi
212380e3 13480fi
7083c021
AC
13481CC=$ac_cv_prog_CC
13482if test -n "$CC"; then
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13484$as_echo "$CC" >&6; }
212380e3 13485else
7083c021
AC
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487$as_echo "no" >&6; }
13488fi
212380e3 13489
212380e3
AC
13490
13491fi
7083c021
AC
13492if test -z "$ac_cv_prog_CC"; then
13493 ac_ct_CC=$CC
13494 # Extract the first word of "gcc", so it can be a program name with args.
13495set dummy gcc; ac_word=$2
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13497$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13498if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 13499 $as_echo_n "(cached) " >&6
212380e3 13500else
7083c021
AC
13501 if test -n "$ac_ct_CC"; then
13502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3 13503else
7083c021
AC
13504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505for as_dir in $PATH
13506do
13507 IFS=$as_save_IFS
13508 test -z "$as_dir" && as_dir=.
13509 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13511 ac_cv_prog_ac_ct_CC="gcc"
13512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13513 break 2
13514 fi
13515done
13516 done
13517IFS=$as_save_IFS
212380e3 13518
212380e3 13519fi
212380e3 13520fi
7083c021
AC
13521ac_ct_CC=$ac_cv_prog_ac_ct_CC
13522if test -n "$ac_ct_CC"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13524$as_echo "$ac_ct_CC" >&6; }
212380e3 13525else
7083c021
AC
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527$as_echo "no" >&6; }
13528fi
212380e3 13529
7083c021
AC
13530 if test "x$ac_ct_CC" = x; then
13531 CC=""
13532 else
13533 case $cross_compiling:$ac_tool_warned in
13534yes:)
13535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13537ac_tool_warned=yes ;;
631ef239 13538esac
7083c021
AC
13539 CC=$ac_ct_CC
13540 fi
212380e3 13541else
7083c021 13542 CC="$ac_cv_prog_CC"
212380e3 13543fi
631ef239 13544
7083c021
AC
13545if test -z "$CC"; then
13546 if test -n "$ac_tool_prefix"; then
13547 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13548set dummy ${ac_tool_prefix}cc; ac_word=$2
13549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13550$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13551if ${ac_cv_prog_CC+:} false; then :
7083c021 13552 $as_echo_n "(cached) " >&6
212380e3 13553else
7083c021
AC
13554 if test -n "$CC"; then
13555 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 13556else
7083c021
AC
13557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13558for as_dir in $PATH
13559do
13560 IFS=$as_save_IFS
13561 test -z "$as_dir" && as_dir=.
13562 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13564 ac_cv_prog_CC="${ac_tool_prefix}cc"
13565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13566 break 2
13567 fi
13568done
13569 done
13570IFS=$as_save_IFS
212380e3 13571
212380e3 13572fi
7083c021
AC
13573fi
13574CC=$ac_cv_prog_CC
13575if test -n "$CC"; then
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13577$as_echo "$CC" >&6; }
212380e3 13578else
7083c021
AC
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580$as_echo "no" >&6; }
13581fi
13582
212380e3 13583
7083c021 13584 fi
212380e3 13585fi
7083c021
AC
13586if test -z "$CC"; then
13587 # Extract the first word of "cc", so it can be a program name with args.
13588set dummy cc; ac_word=$2
13589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13590$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13591if ${ac_cv_prog_CC+:} false; then :
7083c021
AC
13592 $as_echo_n "(cached) " >&6
13593else
13594 if test -n "$CC"; then
13595 ac_cv_prog_CC="$CC" # Let the user override the test.
13596else
13597 ac_prog_rejected=no
13598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13599for as_dir in $PATH
13600do
13601 IFS=$as_save_IFS
13602 test -z "$as_dir" && as_dir=.
13603 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13605 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13606 ac_prog_rejected=yes
13607 continue
13608 fi
13609 ac_cv_prog_CC="cc"
13610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13611 break 2
13612 fi
13613done
13614 done
13615IFS=$as_save_IFS
631ef239 13616
7083c021
AC
13617if test $ac_prog_rejected = yes; then
13618 # We found a bogon in the path, so make sure we never use it.
13619 set dummy $ac_cv_prog_CC
13620 shift
13621 if test $# != 0; then
13622 # We chose a different compiler from the bogus one.
13623 # However, it has the same basename, so the bogon will be chosen
13624 # first if we set CC to just the basename; use the full file name.
13625 shift
13626 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13627 fi
13628fi
13629fi
13630fi
13631CC=$ac_cv_prog_CC
13632if test -n "$CC"; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13634$as_echo "$CC" >&6; }
13635else
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637$as_echo "no" >&6; }
212380e3 13638fi
631ef239 13639
212380e3 13640
7083c021
AC
13641fi
13642if test -z "$CC"; then
13643 if test -n "$ac_tool_prefix"; then
13644 for ac_prog in cl.exe
13645 do
13646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13647set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13649$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13650if ${ac_cv_prog_CC+:} false; then :
7083c021 13651 $as_echo_n "(cached) " >&6
212380e3 13652else
7083c021
AC
13653 if test -n "$CC"; then
13654 ac_cv_prog_CC="$CC" # Let the user override the test.
13655else
13656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13657for as_dir in $PATH
13658do
13659 IFS=$as_save_IFS
13660 test -z "$as_dir" && as_dir=.
13661 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13663 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13665 break 2
13666 fi
13667done
13668 done
13669IFS=$as_save_IFS
212380e3 13670
212380e3 13671fi
7083c021
AC
13672fi
13673CC=$ac_cv_prog_CC
13674if test -n "$CC"; then
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13676$as_echo "$CC" >&6; }
212380e3 13677else
7083c021
AC
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679$as_echo "no" >&6; }
13680fi
212380e3 13681
212380e3 13682
7083c021
AC
13683 test -n "$CC" && break
13684 done
13685fi
13686if test -z "$CC"; then
13687 ac_ct_CC=$CC
13688 for ac_prog in cl.exe
13689do
13690 # Extract the first word of "$ac_prog", so it can be a program name with args.
13691set dummy $ac_prog; ac_word=$2
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13693$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13694if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 13695 $as_echo_n "(cached) " >&6
212380e3 13696else
7083c021
AC
13697 if test -n "$ac_ct_CC"; then
13698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13699else
13700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13701for as_dir in $PATH
13702do
13703 IFS=$as_save_IFS
13704 test -z "$as_dir" && as_dir=.
13705 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13707 ac_cv_prog_ac_ct_CC="$ac_prog"
13708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13709 break 2
13710 fi
13711done
13712 done
13713IFS=$as_save_IFS
212380e3 13714
212380e3
AC
13715fi
13716fi
7083c021
AC
13717ac_ct_CC=$ac_cv_prog_ac_ct_CC
13718if test -n "$ac_ct_CC"; then
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13720$as_echo "$ac_ct_CC" >&6; }
13721else
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13723$as_echo "no" >&6; }
212380e3 13724fi
631ef239
AC
13725
13726
7083c021
AC
13727 test -n "$ac_ct_CC" && break
13728done
631ef239 13729
7083c021
AC
13730 if test "x$ac_ct_CC" = x; then
13731 CC=""
13732 else
13733 case $cross_compiling:$ac_tool_warned in
13734yes:)
13735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13737ac_tool_warned=yes ;;
13738esac
13739 CC=$ac_ct_CC
13740 fi
13741fi
212380e3 13742
7083c021 13743fi
212380e3 13744
7083c021
AC
13745
13746test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
13748as_fn_error $? "no acceptable C compiler found in \$PATH
13749See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
13750
13751# Provide some information about the compiler.
13752$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13753set X $ac_compile
13754ac_compiler=$2
13755for ac_option in --version -v -V -qversion; do
13756 { { ac_try="$ac_compiler $ac_option >&5"
631ef239
AC
13757case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13760esac
7083c021
AC
13761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13762$as_echo "$ac_try_echo"; } >&5
13763 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
212380e3 13764 ac_status=$?
7083c021
AC
13765 if test -s conftest.err; then
13766 sed '10a\
13767... rest of stderr output deleted ...
13768 10q' conftest.err >conftest.er1
13769 cat conftest.er1 >&5
7083c021 13770 fi
6fb6bd15 13771 rm -f conftest.er1 conftest.err
7083c021
AC
13772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13773 test $ac_status = 0; }
13774done
212380e3 13775
7083c021
AC
13776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13777$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b6d0720c 13778if ${ac_cv_c_compiler_gnu+:} false; then :
7083c021 13779 $as_echo_n "(cached) " >&6
212380e3 13780else
7083c021 13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 13782/* end confdefs.h. */
7083c021 13783
212380e3
AC
13784int
13785main ()
13786{
7083c021
AC
13787#ifndef __GNUC__
13788 choke me
13789#endif
212380e3
AC
13790
13791 ;
13792 return 0;
13793}
13794_ACEOF
7083c021
AC
13795if ac_fn_c_try_compile "$LINENO"; then :
13796 ac_compiler_gnu=yes
13797else
13798 ac_compiler_gnu=no
13799fi
13800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13801ac_cv_c_compiler_gnu=$ac_compiler_gnu
13802
13803fi
13804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13805$as_echo "$ac_cv_c_compiler_gnu" >&6; }
13806if test $ac_compiler_gnu = yes; then
13807 GCC=yes
13808else
13809 GCC=
13810fi
13811ac_test_CFLAGS=${CFLAGS+set}
13812ac_save_CFLAGS=$CFLAGS
13813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13814$as_echo_n "checking whether $CC accepts -g... " >&6; }
b6d0720c 13815if ${ac_cv_prog_cc_g+:} false; then :
7083c021
AC
13816 $as_echo_n "(cached) " >&6
13817else
13818 ac_save_c_werror_flag=$ac_c_werror_flag
13819 ac_c_werror_flag=yes
13820 ac_cv_prog_cc_g=no
13821 CFLAGS="-g"
13822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 13823/* end confdefs.h. */
7083c021 13824
212380e3
AC
13825int
13826main ()
13827{
212380e3
AC
13828
13829 ;
13830 return 0;
13831}
13832_ACEOF
7083c021
AC
13833if ac_fn_c_try_compile "$LINENO"; then :
13834 ac_cv_prog_cc_g=yes
212380e3 13835else
7083c021
AC
13836 CFLAGS=""
13837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 13838/* end confdefs.h. */
7083c021 13839
212380e3
AC
13840int
13841main ()
13842{
212380e3
AC
13843
13844 ;
13845 return 0;
13846}
13847_ACEOF
7083c021
AC
13848if ac_fn_c_try_compile "$LINENO"; then :
13849
13850else
13851 ac_c_werror_flag=$ac_save_c_werror_flag
13852 CFLAGS="-g"
13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 13854/* end confdefs.h. */
7083c021 13855
212380e3
AC
13856int
13857main ()
13858{
212380e3
AC
13859
13860 ;
13861 return 0;
13862}
13863_ACEOF
7083c021
AC
13864if ac_fn_c_try_compile "$LINENO"; then :
13865 ac_cv_prog_cc_g=yes
212380e3 13866fi
631ef239 13867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 13868fi
631ef239 13869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 13870fi
631ef239 13871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
13872 ac_c_werror_flag=$ac_save_c_werror_flag
13873fi
13874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13875$as_echo "$ac_cv_prog_cc_g" >&6; }
13876if test "$ac_test_CFLAGS" = set; then
13877 CFLAGS=$ac_save_CFLAGS
13878elif test $ac_cv_prog_cc_g = yes; then
13879 if test "$GCC" = yes; then
13880 CFLAGS="-g -O2"
13881 else
13882 CFLAGS="-g"
13883 fi
13884else
13885 if test "$GCC" = yes; then
13886 CFLAGS="-O2"
13887 else
13888 CFLAGS=
13889 fi
13890fi
13891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13892$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b6d0720c 13893if ${ac_cv_prog_cc_c89+:} false; then :
7083c021
AC
13894 $as_echo_n "(cached) " >&6
13895else
13896 ac_cv_prog_cc_c89=no
13897ac_save_CC=$CC
13898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 13899/* end confdefs.h. */
7083c021
AC
13900#include <stdarg.h>
13901#include <stdio.h>
2eff3833 13902struct stat;
7083c021
AC
13903/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13904struct buf { int x; };
13905FILE * (*rcsopen) (struct buf *, struct stat *, int);
13906static char *e (p, i)
13907 char **p;
13908 int i;
13909{
13910 return p[i];
13911}
13912static char *f (char * (*g) (char **, int), char **p, ...)
13913{
13914 char *s;
13915 va_list v;
13916 va_start (v,p);
13917 s = g (p, va_arg (v,int));
13918 va_end (v);
13919 return s;
13920}
13921
13922/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13923 function prototypes and stuff, but not '\xHH' hex character constants.
13924 These don't provoke an error unfortunately, instead are silently treated
13925 as 'x'. The following induces an error, until -std is added to get
13926 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13927 array size at least. It's necessary to write '\x00'==0 to get something
13928 that's true only with -std. */
13929int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13930
13931/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13932 inside strings and character constants. */
13933#define FOO(x) 'x'
13934int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13935
13936int test (int i, double x);
13937struct s1 {int (*f) (int a);};
13938struct s2 {int (*f) (double a);};
13939int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13940int argc;
13941char **argv;
212380e3
AC
13942int
13943main ()
13944{
7083c021 13945return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3
AC
13946 ;
13947 return 0;
13948}
13949_ACEOF
7083c021
AC
13950for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13951 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13952do
13953 CC="$ac_save_CC $ac_arg"
13954 if ac_fn_c_try_compile "$LINENO"; then :
13955 ac_cv_prog_cc_c89=$ac_arg
13956fi
13957rm -f core conftest.err conftest.$ac_objext
13958 test "x$ac_cv_prog_cc_c89" != "xno" && break
13959done
13960rm -f conftest.$ac_ext
13961CC=$ac_save_CC
13962
13963fi
13964# AC_CACHE_VAL
13965case "x$ac_cv_prog_cc_c89" in
13966 x)
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13968$as_echo "none needed" >&6; } ;;
13969 xno)
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13971$as_echo "unsupported" >&6; } ;;
13972 *)
13973 CC="$CC $ac_cv_prog_cc_c89"
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13975$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 13976esac
7083c021 13977if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 13978
212380e3 13979fi
631ef239 13980
7083c021
AC
13981ac_ext=c
13982ac_cpp='$CPP $CPPFLAGS'
13983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13985ac_compiler_gnu=$ac_cv_c_compiler_gnu
13986
13987ac_ext=c
13988ac_cpp='$CPP $CPPFLAGS'
13989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13991ac_compiler_gnu=$ac_cv_c_compiler_gnu
c52df125
AC
13992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13993$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13994if ${am_cv_prog_cc_c_o+:} false; then :
13995 $as_echo_n "(cached) " >&6
13996else
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998/* end confdefs.h. */
13999
14000int
14001main ()
14002{
14003
14004 ;
14005 return 0;
14006}
14007_ACEOF
14008 # Make sure it works both with $CC and with simple cc.
14009 # Following AC_PROG_CC_C_O, we do the test twice because some
14010 # compilers refuse to overwrite an existing .o file with -o,
14011 # though they will create one.
14012 am_cv_prog_cc_c_o=yes
14013 for am_i in 1 2; do
14014 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14015 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } \
14019 && test -f conftest2.$ac_objext; then
14020 : OK
14021 else
14022 am_cv_prog_cc_c_o=no
14023 break
14024 fi
14025 done
14026 rm -f core conftest*
14027 unset am_i
14028fi
14029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14030$as_echo "$am_cv_prog_cc_c_o" >&6; }
14031if test "$am_cv_prog_cc_c_o" != yes; then
14032 # Losing compiler, so override with the script.
14033 # FIXME: It is wrong to rewrite CC.
14034 # But if we don't then we get into trouble of one sort or another.
14035 # A longer-term fix would be to have automake use am__CC in this case,
14036 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14037 CC="$am_aux_dir/compile $CC"
14038fi
14039ac_ext=c
14040ac_cpp='$CPP $CPPFLAGS'
14041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14043ac_compiler_gnu=$ac_cv_c_compiler_gnu
7083c021
AC
14044
14045
c52df125 14046depcc="$CC" am_compiler_list=
7083c021 14047
c52df125
AC
14048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14049$as_echo_n "checking dependency style of $depcc... " >&6; }
14050if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14051 $as_echo_n "(cached) " >&6
14052else
14053 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14054 # We make a subdir and do the tests there. Otherwise we can end up
14055 # making bogus files that we don't know about and never remove. For
14056 # instance it was reported that on HP-UX the gcc test will end up
14057 # making a dummy file named 'D' -- because '-MD' means "put the output
14058 # in D".
14059 rm -rf conftest.dir
14060 mkdir conftest.dir
14061 # Copy depcomp to subdir because otherwise we won't find it if we're
14062 # using a relative directory.
14063 cp "$am_depcomp" conftest.dir
14064 cd conftest.dir
14065 # We will build objects and dependencies in a subdirectory because
14066 # it helps to detect inapplicable dependency modes. For instance
14067 # both Tru64's cc and ICC support -MD to output dependencies as a
14068 # side effect of compilation, but ICC will put the dependencies in
14069 # the current directory while Tru64 will put them in the object
14070 # directory.
14071 mkdir sub
14072
14073 am_cv_CC_dependencies_compiler_type=none
14074 if test "$am_compiler_list" = ""; then
14075 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1db8e007 14076 fi
c52df125
AC
14077 am__universal=false
14078 case " $depcc " in #(
14079 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14080 esac
14081
14082 for depmode in $am_compiler_list; do
14083 # Setup a source with many dependencies, because some compilers
14084 # like to wrap large dependency lists on column 80 (with \), and
14085 # we should not choose a depcomp mode which is confused by this.
14086 #
14087 # We need to recreate these files for each test, as the compiler may
14088 # overwrite some of them when testing with obscure command lines.
14089 # This happens at least with the AIX C compiler.
14090 : > sub/conftest.c
14091 for i in 1 2 3 4 5 6; do
14092 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14093 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14094 # Solaris 10 /bin/sh.
14095 echo '/* dummy */' > sub/conftst$i.h
14096 done
14097 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14098
14099 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14100 # mode. It turns out that the SunPro C++ compiler does not properly
14101 # handle '-M -o', and we need to detect this. Also, some Intel
14102 # versions had trouble with output in subdirs.
14103 am__obj=sub/conftest.${OBJEXT-o}
14104 am__minus_obj="-o $am__obj"
14105 case $depmode in
14106 gcc)
14107 # This depmode causes a compiler race in universal mode.
14108 test "$am__universal" = false || continue
14109 ;;
14110 nosideeffect)
14111 # After this tag, mechanisms are not by side-effect, so they'll
14112 # only be used when explicitly requested.
14113 if test "x$enable_dependency_tracking" = xyes; then
14114 continue
14115 else
14116 break
14117 fi
14118 ;;
14119 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14120 # This compiler won't grok '-c -o', but also, the minuso test has
14121 # not run yet. These depmodes are late enough in the game, and
14122 # so weak that their functioning should not be impacted.
14123 am__obj=conftest.${OBJEXT-o}
14124 am__minus_obj=
14125 ;;
14126 none) break ;;
14127 esac
14128 if depmode=$depmode \
14129 source=sub/conftest.c object=$am__obj \
14130 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14131 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14132 >/dev/null 2>conftest.err &&
14133 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14134 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14135 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14136 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14137 # icc doesn't choke on unknown options, it will just issue warnings
14138 # or remarks (even with -Werror). So we grep stderr for any message
14139 # that says an option was ignored or not supported.
14140 # When given -MP, icc 7.0 and 7.1 complain thusly:
14141 # icc: Command line warning: ignoring option '-M'; no argument required
14142 # The diagnosis changed in icc 8.0:
14143 # icc: Command line remark: option '-MP' not supported
14144 if (grep 'ignoring option' conftest.err ||
14145 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14146 am_cv_CC_dependencies_compiler_type=$depmode
14147 break
14148 fi
14149 fi
14150 done
1db8e007 14151
c52df125
AC
14152 cd ..
14153 rm -rf conftest.dir
14154else
14155 am_cv_CC_dependencies_compiler_type=none
14156fi
1db8e007 14157
c52df125
AC
14158fi
14159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14160$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14161CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1db8e007 14162
c52df125
AC
14163 if
14164 test "x$enable_dependency_tracking" != xno \
14165 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14166 am__fastdepCC_TRUE=
14167 am__fastdepCC_FALSE='#'
14168else
14169 am__fastdepCC_TRUE='#'
14170 am__fastdepCC_FALSE=
14171fi
1db8e007
JT
14172
14173
c52df125
AC
14174ac_ext=c
14175ac_cpp='$CPP $CPPFLAGS'
14176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14178ac_compiler_gnu=$ac_cv_c_compiler_gnu
1db8e007 14179
7083c021 14180
c52df125 14181CFLAGS="$OLD_CFLAGS"
7083c021 14182
c52df125 14183subdirs="$subdirs libratbox"
7083c021 14184
212380e3 14185
631ef239 14186
cfa7b5fd
AC
14187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX, HPUX or Darwin" >&5
14188$as_echo_n "checking uname -s for Solaris, AIX, HPUX or Darwin... " >&6; }
7083c021
AC
14189OSNAME=`uname -s`
14190case "$OSNAME" in
14191 HP-UX*)
631ef239 14192
7083c021
AC
14193 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
14195$as_echo "assuming old HPUX with its own cc" >&6; }
14196 IRC_CFLAGS="$IRC_CFLAGS +e"
14197 HPUX=yes
14198 else
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
14200$as_echo "already using newer HPUX" >&6; }
14201 fi
14202 ;;
14203 SunOS*)
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
14205$as_echo "SunOS or Solaris" >&6; }
212380e3 14206
7083c021 14207$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 14208
7083c021
AC
14209 SUN=yes
14210 ;;
14211 AIX*)
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
14213$as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
14214 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
14215 ;;
cfa7b5fd
AC
14216 Darwin*)
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
14218$as_echo "Darwin" >&6; }
7083c021
AC
14219 AppleGCC=yes
14220 ;;
14221 *)
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223$as_echo "no" >&6; }
7083c021 14224 ;;
cfa7b5fd 14225esac
7083c021 14226
cfa7b5fd 14227if test "$ac_cv_c_compiler_gnu" = yes; then
7083c021 14228 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
212380e3 14229fi
631ef239 14230
7083c021
AC
14231if test "$ac_cv_prog_cc_g" = yes; then
14232 if test "$Tru" = yes; then
14233 IRC_CFLAGS="$IRC_CFLAGS -g3"
14234 else
14235 IRC_CFLAGS="$IRC_CFLAGS -g"
14236 fi
212380e3 14237fi
212380e3 14238
7083c021
AC
14239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
14240$as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
14241if test "$SGS" = "yes"; then
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14243$as_echo "yes" >&6; }
212380e3 14244else
7083c021
AC
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14246$as_echo "no" >&6; }
14247fi
212380e3 14248
7083c021
AC
14249# Extract the first word of "mkdep", so it can be a program name with args.
14250set dummy mkdep; ac_word=$2
14251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14252$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14253if ${ac_cv_path_MKDEP+:} false; then :
7083c021
AC
14254 $as_echo_n "(cached) " >&6
14255else
14256 case $MKDEP in
14257 [\\/]* | ?:[\\/]*)
14258 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
14259 ;;
14260 *)
14261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14262for as_dir in $PATH
14263do
14264 IFS=$as_save_IFS
14265 test -z "$as_dir" && as_dir=.
14266 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14268 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
14269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14270 break 2
14271 fi
14272done
14273 done
14274IFS=$as_save_IFS
212380e3 14275
7083c021 14276 ;;
631ef239 14277esac
7083c021
AC
14278fi
14279MKDEP=$ac_cv_path_MKDEP
14280if test -n "$MKDEP"; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
14282$as_echo "$MKDEP" >&6; }
212380e3 14283else
7083c021
AC
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14285$as_echo "no" >&6; }
212380e3 14286fi
631ef239 14287
7083c021
AC
14288
14289# Extract the first word of "makedepend", so it can be a program name with args.
14290set dummy makedepend; ac_word=$2
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14292$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14293if ${ac_cv_path_MAKEDEPEND+:} false; then :
7083c021
AC
14294 $as_echo_n "(cached) " >&6
14295else
14296 case $MAKEDEPEND in
14297 [\\/]* | ?:[\\/]*)
14298 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
14299 ;;
14300 *)
14301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14302for as_dir in $PATH
14303do
14304 IFS=$as_save_IFS
14305 test -z "$as_dir" && as_dir=.
14306 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14308 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
14309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14310 break 2
14311 fi
14312done
212380e3 14313 done
7083c021
AC
14314IFS=$as_save_IFS
14315
14316 ;;
14317esac
14318fi
14319MAKEDEPEND=$ac_cv_path_MAKEDEPEND
14320if test -n "$MAKEDEPEND"; then
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
14322$as_echo "$MAKEDEPEND" >&6; }
212380e3 14323else
7083c021
AC
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14325$as_echo "no" >&6; }
14326fi
212380e3 14327
212380e3 14328
212380e3 14329
7083c021
AC
14330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
14331$as_echo_n "checking how to generate dependency info... " >&6; }
14332
14333STDOUT="> .depend"
14334
14335if test "$ac_cv_c_compiler_gnu" = yes; then
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
14337$as_echo "gcc -MM" >&6; }
14338 MKDEP="$CC -MM"
14339elif test ! -z "$MKDEP"; then
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
14341$as_echo "mkdep" >&6; }
14342
14343 if test -z "$Tru"; then
14344 STDOUT=""
14345 else
14346 STDOUT=" 2> /dev/null"
14347 fi
14348elif test "$SunWorkShop" = yes; then
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
14350$as_echo "$CC -xM" >&6; }
14351 MKDEP="$CC -xM"
14352 STDOUT="> .depend 2> /dev/null"
14353elif test ! -z "$MAKEDEPEND"; then
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
14355$as_echo "makedepend" >&6; }
14356 MKDEP="$MAKEDEPEND -f-"
212380e3 14357else
7083c021
AC
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
14359$as_echo "nothing suitable.. forget it!" >&6; }
14360 MKDEP=":"
212380e3 14361fi
631ef239 14362
7083c021
AC
14363
14364
14365
14366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
14367$as_echo_n "checking for /dev/null... " >&6; }
14368if test -c /dev/null ; then
14369
14370$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
14371
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14373$as_echo "yes" >&6; }
212380e3 14374else
212380e3 14375
7083c021
AC
14376$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
14377
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
14379$as_echo "no - using devnull.log" >&6; }
212380e3 14380fi
631ef239 14381
7083c021
AC
14382if test ! -z "$CFLAGS"; then
14383 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
212380e3 14384fi
631ef239 14385
7083c021
AC
14386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
14387$as_echo_n "checking for library containing strerror... " >&6; }
b6d0720c 14388if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
14389 $as_echo_n "(cached) " >&6
14390else
14391 ac_func_search_save_LIBS=$LIBS
14392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 14393/* end confdefs.h. */
7083c021
AC
14394
14395/* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14398#ifdef __cplusplus
14399extern "C"
14400#endif
14401char strerror ();
212380e3
AC
14402int
14403main ()
14404{
7083c021 14405return strerror ();
212380e3
AC
14406 ;
14407 return 0;
14408}
14409_ACEOF
7083c021
AC
14410for ac_lib in '' cposix; do
14411 if test -z "$ac_lib"; then
14412 ac_res="none required"
14413 else
14414 ac_res=-l$ac_lib
14415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14416 fi
14417 if ac_fn_c_try_link "$LINENO"; then :
14418 ac_cv_search_strerror=$ac_res
14419fi
14420rm -f core conftest.err conftest.$ac_objext \
14421 conftest$ac_exeext
b6d0720c 14422 if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
14423 break
14424fi
14425done
b6d0720c 14426if ${ac_cv_search_strerror+:} false; then :
7083c021 14427
212380e3 14428else
7083c021
AC
14429 ac_cv_search_strerror=no
14430fi
14431rm conftest.$ac_ext
14432LIBS=$ac_func_search_save_LIBS
14433fi
14434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
14435$as_echo "$ac_cv_search_strerror" >&6; }
14436ac_res=$ac_cv_search_strerror
14437if test "$ac_res" != no; then :
14438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 14439
212380e3 14440fi
631ef239 14441
7083c021
AC
14442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14443$as_echo_n "checking for inline... " >&6; }
b6d0720c 14444if ${ac_cv_c_inline+:} false; then :
7083c021
AC
14445 $as_echo_n "(cached) " >&6
14446else
14447 ac_cv_c_inline=no
14448for ac_kw in inline __inline__ __inline; do
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450/* end confdefs.h. */
14451#ifndef __cplusplus
14452typedef int foo_t;
14453static $ac_kw foo_t static_foo () {return 0; }
14454$ac_kw foo_t foo () {return 0; }
14455#endif
14456
14457_ACEOF
14458if ac_fn_c_try_compile "$LINENO"; then :
14459 ac_cv_c_inline=$ac_kw
14460fi
631ef239 14461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021 14462 test "$ac_cv_c_inline" != no && break
212380e3 14463done
7083c021
AC
14464
14465fi
14466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14467$as_echo "$ac_cv_c_inline" >&6; }
14468
14469case $ac_cv_c_inline in
14470 inline | yes) ;;
14471 *)
14472 case $ac_cv_c_inline in
14473 no) ac_val=;;
14474 *) ac_val=$ac_cv_c_inline;;
14475 esac
14476 cat >>confdefs.h <<_ACEOF
14477#ifndef __cplusplus
14478#define inline $ac_val
14479#endif
14480_ACEOF
14481 ;;
212380e3 14482esac
7083c021
AC
14483
14484if test $ac_cv_c_compiler_gnu = yes; then
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14486$as_echo_n "checking whether $CC needs -traditional... " >&6; }
b6d0720c 14487if ${ac_cv_prog_gcc_traditional+:} false; then :
7083c021 14488 $as_echo_n "(cached) " >&6
212380e3 14489else
7083c021
AC
14490 ac_pattern="Autoconf.*'x'"
14491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492/* end confdefs.h. */
14493#include <sgtty.h>
14494Autoconf TIOCGETP
212380e3 14495_ACEOF
7083c021
AC
14496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14497 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14498 ac_cv_prog_gcc_traditional=yes
14499else
14500 ac_cv_prog_gcc_traditional=no
14501fi
14502rm -f conftest*
14503
14504
14505 if test $ac_cv_prog_gcc_traditional = no; then
14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 14507/* end confdefs.h. */
7083c021
AC
14508#include <termio.h>
14509Autoconf TCGETA
14510_ACEOF
14511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14512 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14513 ac_cv_prog_gcc_traditional=yes
14514fi
14515rm -f conftest*
212380e3 14516
7083c021
AC
14517 fi
14518fi
14519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14520$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14521 if test $ac_cv_prog_gcc_traditional = yes; then
14522 CC="$CC -traditional"
14523 fi
14524fi
212380e3 14525
7083c021
AC
14526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14527$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14528set x ${MAKE-make}
14529ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b6d0720c 14530if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7083c021
AC
14531 $as_echo_n "(cached) " >&6
14532else
14533 cat >conftest.make <<\_ACEOF
14534SHELL = /bin/sh
14535all:
14536 @echo '@@@%%%=$(MAKE)=@@@%%%'
212380e3 14537_ACEOF
b6d0720c 14538# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7083c021
AC
14539case `${MAKE-make} -f conftest.make 2>/dev/null` in
14540 *@@@%%%=?*=@@@%%%*)
14541 eval ac_cv_prog_make_${ac_make}_set=yes;;
14542 *)
14543 eval ac_cv_prog_make_${ac_make}_set=no;;
631ef239 14544esac
7083c021
AC
14545rm -f conftest.make
14546fi
14547if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14549$as_echo "yes" >&6; }
14550 SET_MAKE=
14551else
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14553$as_echo "no" >&6; }
c52df125 14554 SET_MAKE="MAKE=${MAKE-make}"
7083c021 14555fi
7083c021 14556
7083c021
AC
14557
14558# Extract the first word of "rm", so it can be a program name with args.
14559set dummy rm; ac_word=$2
14560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14561$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14562if ${ac_cv_path_RM+:} false; then :
7083c021 14563 $as_echo_n "(cached) " >&6
212380e3 14564else
7083c021
AC
14565 case $RM in
14566 [\\/]* | ?:[\\/]*)
14567 ac_cv_path_RM="$RM" # Let the user override the test with a path.
14568 ;;
14569 *)
14570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14571for as_dir in $PATH
14572do
14573 IFS=$as_save_IFS
14574 test -z "$as_dir" && as_dir=.
14575 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14577 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
14578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14579 break 2
14580 fi
14581done
14582 done
14583IFS=$as_save_IFS
212380e3 14584
7083c021
AC
14585 ;;
14586esac
212380e3 14587fi
7083c021
AC
14588RM=$ac_cv_path_RM
14589if test -n "$RM"; then
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
14591$as_echo "$RM" >&6; }
14592else
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14594$as_echo "no" >&6; }
212380e3 14595fi
631ef239
AC
14596
14597
7083c021
AC
14598# Extract the first word of "cp", so it can be a program name with args.
14599set dummy cp; ac_word=$2
14600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14601$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14602if ${ac_cv_path_CP+:} false; then :
7083c021
AC
14603 $as_echo_n "(cached) " >&6
14604else
14605 case $CP in
14606 [\\/]* | ?:[\\/]*)
14607 ac_cv_path_CP="$CP" # Let the user override the test with a path.
14608 ;;
14609 *)
14610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14611for as_dir in $PATH
14612do
14613 IFS=$as_save_IFS
14614 test -z "$as_dir" && as_dir=.
14615 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14617 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
14618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14619 break 2
14620 fi
14621done
14622 done
14623IFS=$as_save_IFS
631ef239 14624
7083c021
AC
14625 ;;
14626esac
14627fi
14628CP=$ac_cv_path_CP
14629if test -n "$CP"; then
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
14631$as_echo "$CP" >&6; }
14632else
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634$as_echo "no" >&6; }
14635fi
212380e3
AC
14636
14637
7083c021
AC
14638# Extract the first word of "mv", so it can be a program name with args.
14639set dummy mv; ac_word=$2
14640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14641$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14642if ${ac_cv_path_MV+:} false; then :
7083c021 14643 $as_echo_n "(cached) " >&6
212380e3 14644else
7083c021
AC
14645 case $MV in
14646 [\\/]* | ?:[\\/]*)
14647 ac_cv_path_MV="$MV" # Let the user override the test with a path.
14648 ;;
14649 *)
14650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651for as_dir in $PATH
14652do
14653 IFS=$as_save_IFS
14654 test -z "$as_dir" && as_dir=.
14655 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14657 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
14658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14659 break 2
14660 fi
14661done
14662 done
14663IFS=$as_save_IFS
14664
14665 ;;
631ef239 14666esac
7083c021
AC
14667fi
14668MV=$ac_cv_path_MV
14669if test -n "$MV"; then
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
14671$as_echo "$MV" >&6; }
212380e3 14672else
7083c021
AC
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14674$as_echo "no" >&6; }
212380e3 14675fi
631ef239 14676
212380e3 14677
7083c021
AC
14678# Extract the first word of "ln", so it can be a program name with args.
14679set dummy ln; ac_word=$2
14680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14681$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14682if ${ac_cv_path_LN+:} false; then :
7083c021 14683 $as_echo_n "(cached) " >&6
212380e3 14684else
7083c021
AC
14685 case $LN in
14686 [\\/]* | ?:[\\/]*)
14687 ac_cv_path_LN="$LN" # Let the user override the test with a path.
14688 ;;
14689 *)
14690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14691for as_dir in $PATH
14692do
14693 IFS=$as_save_IFS
14694 test -z "$as_dir" && as_dir=.
14695 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14697 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
14698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14699 break 2
14700 fi
14701done
14702 done
14703IFS=$as_save_IFS
212380e3 14704
7083c021 14705 ;;
631ef239 14706esac
7083c021
AC
14707fi
14708LN=$ac_cv_path_LN
14709if test -n "$LN"; then
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
14711$as_echo "$LN" >&6; }
212380e3 14712else
7083c021
AC
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14714$as_echo "no" >&6; }
212380e3 14715fi
631ef239 14716
7083c021
AC
14717
14718# Extract the first word of "sed", so it can be a program name with args.
14719set dummy sed; ac_word=$2
14720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14721$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14722if ${ac_cv_path_SED+:} false; then :
7083c021
AC
14723 $as_echo_n "(cached) " >&6
14724else
14725 case $SED in
14726 [\\/]* | ?:[\\/]*)
14727 ac_cv_path_SED="$SED" # Let the user override the test with a path.
14728 ;;
14729 *)
14730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14731for as_dir in $PATH
14732do
14733 IFS=$as_save_IFS
14734 test -z "$as_dir" && as_dir=.
14735 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14737 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14739 break 2
14740 fi
14741done
212380e3 14742 done
7083c021
AC
14743IFS=$as_save_IFS
14744
14745 ;;
14746esac
14747fi
14748SED=$ac_cv_path_SED
14749if test -n "$SED"; then
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14751$as_echo "$SED" >&6; }
212380e3 14752else
7083c021
AC
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14754$as_echo "no" >&6; }
14755fi
212380e3 14756
212380e3 14757
7083c021
AC
14758# Extract the first word of "ar", so it can be a program name with args.
14759set dummy ar; ac_word=$2
14760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14761$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14762if ${ac_cv_path_AR+:} false; then :
7083c021
AC
14763 $as_echo_n "(cached) " >&6
14764else
14765 case $AR in
14766 [\\/]* | ?:[\\/]*)
14767 ac_cv_path_AR="$AR" # Let the user override the test with a path.
14768 ;;
14769 *)
14770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14771for as_dir in $PATH
14772do
14773 IFS=$as_save_IFS
14774 test -z "$as_dir" && as_dir=.
14775 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14777 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
14778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14779 break 2
14780 fi
14781done
14782 done
14783IFS=$as_save_IFS
212380e3 14784
7083c021 14785 ;;
631ef239 14786esac
7083c021
AC
14787fi
14788AR=$ac_cv_path_AR
14789if test -n "$AR"; then
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14791$as_echo "$AR" >&6; }
212380e3 14792else
7083c021
AC
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14794$as_echo "no" >&6; }
212380e3 14795fi
631ef239 14796
7083c021
AC
14797
14798# Extract the first word of "ld", so it can be a program name with args.
14799set dummy ld; ac_word=$2
14800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14801$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14802if ${ac_cv_path_LD+:} false; then :
7083c021 14803 $as_echo_n "(cached) " >&6
212380e3 14804else
7083c021
AC
14805 case $LD in
14806 [\\/]* | ?:[\\/]*)
14807 ac_cv_path_LD="$LD" # Let the user override the test with a path.
14808 ;;
14809 *)
14810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14811for as_dir in $PATH
14812do
14813 IFS=$as_save_IFS
14814 test -z "$as_dir" && as_dir=.
14815 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14817 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
14818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14819 break 2
14820 fi
14821done
14822 done
14823IFS=$as_save_IFS
212380e3 14824
7083c021
AC
14825 ;;
14826esac
212380e3 14827fi
7083c021
AC
14828LD=$ac_cv_path_LD
14829if test -n "$LD"; then
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14831$as_echo "$LD" >&6; }
14832else
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14834$as_echo "no" >&6; }
212380e3 14835fi
631ef239 14836
212380e3 14837
7083c021
AC
14838# Extract the first word of "ranlib", so it can be a program name with args.
14839set dummy ranlib; ac_word=$2
14840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14841$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14842if ${ac_cv_path_RANLIB+:} false; then :
7083c021 14843 $as_echo_n "(cached) " >&6
212380e3 14844else
7083c021
AC
14845 case $RANLIB in
14846 [\\/]* | ?:[\\/]*)
14847 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
14848 ;;
14849 *)
14850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14851for as_dir in $PATH
14852do
14853 IFS=$as_save_IFS
14854 test -z "$as_dir" && as_dir=.
14855 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14857 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
14858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14859 break 2
14860 fi
14861done
14862 done
14863IFS=$as_save_IFS
212380e3 14864
7083c021
AC
14865 ;;
14866esac
14867fi
14868RANLIB=$ac_cv_path_RANLIB
14869if test -n "$RANLIB"; then
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14871$as_echo "$RANLIB" >&6; }
14872else
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14874$as_echo "no" >&6; }
212380e3 14875fi
631ef239 14876
7083c021
AC
14877
14878# Extract the first word of "touch", so it can be a program name with args.
14879set dummy touch; ac_word=$2
14880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14881$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14882if ${ac_cv_path_TOUCH+:} false; then :
7083c021
AC
14883 $as_echo_n "(cached) " >&6
14884else
14885 case $TOUCH in
14886 [\\/]* | ?:[\\/]*)
14887 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
14888 ;;
14889 *)
14890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14891for as_dir in $PATH
14892do
14893 IFS=$as_save_IFS
14894 test -z "$as_dir" && as_dir=.
14895 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14897 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
14898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14899 break 2
14900 fi
212380e3 14901done
7083c021
AC
14902 done
14903IFS=$as_save_IFS
14904
14905 ;;
212380e3 14906esac
7083c021
AC
14907fi
14908TOUCH=$ac_cv_path_TOUCH
14909if test -n "$TOUCH"; then
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
14911$as_echo "$TOUCH" >&6; }
212380e3 14912else
7083c021
AC
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14914$as_echo "no" >&6; }
14915fi
212380e3 14916
212380e3 14917
7083c021
AC
14918
14919for ac_prog in 'bison -y' byacc
14920do
14921 # Extract the first word of "$ac_prog", so it can be a program name with args.
14922set dummy $ac_prog; ac_word=$2
14923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14924$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14925if ${ac_cv_prog_YACC+:} false; then :
7083c021 14926 $as_echo_n "(cached) " >&6
212380e3 14927else
7083c021
AC
14928 if test -n "$YACC"; then
14929 ac_cv_prog_YACC="$YACC" # Let the user override the test.
14930else
14931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14932for as_dir in $PATH
14933do
14934 IFS=$as_save_IFS
14935 test -z "$as_dir" && as_dir=.
14936 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14938 ac_cv_prog_YACC="$ac_prog"
14939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14940 break 2
14941 fi
14942done
14943 done
14944IFS=$as_save_IFS
212380e3 14945
212380e3
AC
14946fi
14947fi
7083c021
AC
14948YACC=$ac_cv_prog_YACC
14949if test -n "$YACC"; then
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14951$as_echo "$YACC" >&6; }
14952else
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14954$as_echo "no" >&6; }
212380e3 14955fi
631ef239
AC
14956
14957
7083c021
AC
14958 test -n "$YACC" && break
14959done
14960test -n "$YACC" || YACC="yacc"
212380e3
AC
14961
14962
7083c021 14963if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
b6d0720c 14964 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
7083c021 14965fi
212380e3 14966
7083c021
AC
14967for ac_prog in flex lex
14968do
14969 # Extract the first word of "$ac_prog", so it can be a program name with args.
14970set dummy $ac_prog; ac_word=$2
14971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14972$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14973if ${ac_cv_prog_LEX+:} false; then :
7083c021 14974 $as_echo_n "(cached) " >&6
212380e3 14975else
7083c021
AC
14976 if test -n "$LEX"; then
14977 ac_cv_prog_LEX="$LEX" # Let the user override the test.
212380e3 14978else
7083c021
AC
14979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980for as_dir in $PATH
14981do
14982 IFS=$as_save_IFS
14983 test -z "$as_dir" && as_dir=.
14984 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14986 ac_cv_prog_LEX="$ac_prog"
14987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14988 break 2
14989 fi
631ef239 14990done
7083c021
AC
14991 done
14992IFS=$as_save_IFS
631ef239 14993
7083c021
AC
14994fi
14995fi
14996LEX=$ac_cv_prog_LEX
14997if test -n "$LEX"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
14999$as_echo "$LEX" >&6; }
631ef239 15000else
7083c021
AC
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15002$as_echo "no" >&6; }
631ef239
AC
15003fi
15004
15005
7083c021
AC
15006 test -n "$LEX" && break
15007done
15008test -n "$LEX" || LEX=":"
212380e3 15009
7083c021
AC
15010if test "x$LEX" != "x:"; then
15011 cat >conftest.l <<_ACEOF
15012%%
15013a { ECHO; }
15014b { REJECT; }
15015c { yymore (); }
15016d { yyless (1); }
2eff3833
JT
15017e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
15018 yyless ((input () != 0)); }
7083c021
AC
15019f { unput (yytext[0]); }
15020. { BEGIN INITIAL; }
15021%%
15022#ifdef YYTEXT_POINTER
15023extern char *yytext;
212380e3 15024#endif
212380e3 15025int
7083c021 15026main (void)
212380e3 15027{
7083c021 15028 return ! yylex () + ! yywrap ();
212380e3
AC
15029}
15030_ACEOF
7083c021 15031{ { ac_try="$LEX conftest.l"
631ef239
AC
15032case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15035esac
7083c021
AC
15036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15037$as_echo "$ac_try_echo"; } >&5
15038 (eval "$LEX conftest.l") 2>&5
212380e3 15039 ac_status=$?
7083c021
AC
15040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15041 test $ac_status = 0; }
15042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
15043$as_echo_n "checking lex output file root... " >&6; }
b6d0720c 15044if ${ac_cv_prog_lex_root+:} false; then :
7083c021 15045 $as_echo_n "(cached) " >&6
212380e3 15046else
212380e3 15047
7083c021
AC
15048if test -f lex.yy.c; then
15049 ac_cv_prog_lex_root=lex.yy
15050elif test -f lexyy.c; then
15051 ac_cv_prog_lex_root=lexyy
15052else
b6d0720c 15053 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7083c021
AC
15054fi
15055fi
15056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
15057$as_echo "$ac_cv_prog_lex_root" >&6; }
15058LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
15059
15060if test -z "${LEXLIB+set}"; then
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
15062$as_echo_n "checking lex library... " >&6; }
b6d0720c 15063if ${ac_cv_lib_lex+:} false; then :
7083c021
AC
15064 $as_echo_n "(cached) " >&6
15065else
631ef239 15066
7083c021
AC
15067 ac_save_LIBS=$LIBS
15068 ac_cv_lib_lex='none needed'
15069 for ac_lib in '' -lfl -ll; do
15070 LIBS="$ac_lib $ac_save_LIBS"
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072/* end confdefs.h. */
15073`cat $LEX_OUTPUT_ROOT.c`
15074_ACEOF
15075if ac_fn_c_try_link "$LINENO"; then :
15076 ac_cv_lib_lex=$ac_lib
212380e3 15077fi
7083c021
AC
15078rm -f core conftest.err conftest.$ac_objext \
15079 conftest$ac_exeext conftest.$ac_ext
15080 test "$ac_cv_lib_lex" != 'none needed' && break
15081 done
15082 LIBS=$ac_save_LIBS
631ef239 15083
631ef239 15084fi
7083c021
AC
15085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
15086$as_echo "$ac_cv_lib_lex" >&6; }
15087 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
15088fi
15089
15090
15091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
15092$as_echo_n "checking whether yytext is a pointer... " >&6; }
b6d0720c 15093if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7083c021 15094 $as_echo_n "(cached) " >&6
631ef239 15095else
7083c021
AC
15096 # POSIX says lex can declare yytext either as a pointer or an array; the
15097# default is implementation-dependent. Figure out which it is, since
15098# not all implementations provide the %pointer and %array declarations.
15099ac_cv_prog_lex_yytext_pointer=no
15100ac_save_LIBS=$LIBS
15101LIBS="$LEXLIB $ac_save_LIBS"
15102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103/* end confdefs.h. */
b6d0720c
AC
15104
15105 #define YYTEXT_POINTER 1
7083c021
AC
15106`cat $LEX_OUTPUT_ROOT.c`
15107_ACEOF
15108if ac_fn_c_try_link "$LINENO"; then :
15109 ac_cv_prog_lex_yytext_pointer=yes
212380e3 15110fi
7083c021
AC
15111rm -f core conftest.err conftest.$ac_objext \
15112 conftest$ac_exeext conftest.$ac_ext
15113LIBS=$ac_save_LIBS
15114
212380e3 15115fi
7083c021
AC
15116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
15117$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
15118if test $ac_cv_prog_lex_yytext_pointer = yes; then
212380e3 15119
7083c021
AC
15120$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
15121
15122fi
15123rm -f conftest.l $LEX_OUTPUT_ROOT.c
15124
15125fi
15126
15127if test "$LEX" = ":"; then
b6d0720c 15128 as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
212380e3
AC
15129fi
15130
9f9b7042
NPB
15131# Check whether --enable-fhs-paths was given.
15132if test "${enable_fhs_paths+set}" = set; then :
15133 enableval=$enable_fhs_paths;
15134else
15135 if test "$libexecdir" = '${exec_prefix}/libexec' && \
15136 test "$localstatedir" = '${prefix}/var' && \
15137 test "$libdir" = '${exec_prefix}/lib'; then :
15138 enable_fhs_paths=no
15139else
15140 enable_fhs_paths=yes
15141fi
15142
15143fi
15144
15145if test "x$enable_fhs_paths" = "xyes"; then :
15146 pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}'
15147 rundir=${rundir-'${prefix}/run'}
15148 pkgrundir='${rundir}/${PACKAGE_TARNAME}'
15149 pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}'
15150else
15151 libexecdir='${bindir}'
15152 pkglibexecdir='${libexecdir}'
15153 rundir='${sysconfdir}'
15154 pkgrundir='${rundir}'
7083c021 15155 localstatedir='${prefix}'
9f9b7042 15156 pkglocalstatedir='${sysconfdir}'
631ef239 15157fi
9f9b7042
NPB
15158pkglibdir='${libdir}/${PACKAGE_TARNAME}'
15159
15160
15161
15162
15163
15164 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15165 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15166 last_ac_define_dir=`eval echo $pkglocalstatedir`
15167 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 15168 ac_define_dir_counter=0
9f9b7042
NPB
15169 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
15170 last_ac_define_dir="$ac_define_dir"
15171 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
15172 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
15173 if test "x$ac_define_dir_counter" = x128; then :
15174 as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5
15175 break
15176fi
9f9b7042
NPB
15177 done
15178 PKGLOCALSTATEDIR="$ac_define_dir"
15179
15180
15181cat >>confdefs.h <<_ACEOF
15182#define PKGLOCALSTATEDIR "$ac_define_dir"
15183_ACEOF
15184
15185
15186
15187
15188 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15189 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15190 last_ac_define_dir=`eval echo $pkglibexecdir`
15191 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 15192 ac_define_dir_counter=0
9f9b7042
NPB
15193 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
15194 last_ac_define_dir="$ac_define_dir"
15195 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
15196 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
15197 if test "x$ac_define_dir_counter" = x128; then :
15198 as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5
15199 break
15200fi
9f9b7042
NPB
15201 done
15202 PKGLIBEXECDIR="$ac_define_dir"
15203
15204
15205cat >>confdefs.h <<_ACEOF
15206#define PKGLIBEXECDIR "$ac_define_dir"
15207_ACEOF
15208
15209
212380e3 15210
7083c021
AC
15211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15212$as_echo_n "checking for ANSI C header files... " >&6; }
b6d0720c 15213if ${ac_cv_header_stdc+:} false; then :
7083c021 15214 $as_echo_n "(cached) " >&6
212380e3 15215else
7083c021 15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15217/* end confdefs.h. */
7083c021
AC
15218#include <stdlib.h>
15219#include <stdarg.h>
15220#include <string.h>
15221#include <float.h>
212380e3
AC
15222
15223int
15224main ()
15225{
7083c021 15226
212380e3
AC
15227 ;
15228 return 0;
15229}
15230_ACEOF
7083c021
AC
15231if ac_fn_c_try_compile "$LINENO"; then :
15232 ac_cv_header_stdc=yes
212380e3 15233else
7083c021 15234 ac_cv_header_stdc=no
212380e3 15235fi
631ef239 15236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 15237
7083c021
AC
15238if test $ac_cv_header_stdc = yes; then
15239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241/* end confdefs.h. */
15242#include <string.h>
15243
212380e3 15244_ACEOF
7083c021
AC
15245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15246 $EGREP "memchr" >/dev/null 2>&1; then :
15247
15248else
15249 ac_cv_header_stdc=no
15250fi
15251rm -f conftest*
212380e3
AC
15252
15253fi
15254
7083c021
AC
15255if test $ac_cv_header_stdc = yes; then
15256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258/* end confdefs.h. */
15259#include <stdlib.h>
15260
15261_ACEOF
15262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15263 $EGREP "free" >/dev/null 2>&1; then :
212380e3 15264
212380e3 15265else
7083c021 15266 ac_cv_header_stdc=no
631ef239 15267fi
7083c021 15268rm -f conftest*
631ef239 15269
7083c021 15270fi
212380e3 15271
7083c021
AC
15272if test $ac_cv_header_stdc = yes; then
15273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15274 if test "$cross_compiling" = yes; then :
15275 :
212380e3 15276else
7083c021 15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15278/* end confdefs.h. */
7083c021
AC
15279#include <ctype.h>
15280#include <stdlib.h>
15281#if ((' ' & 0x0FF) == 0x020)
15282# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15283# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15284#else
15285# define ISLOWER(c) \
15286 (('a' <= (c) && (c) <= 'i') \
15287 || ('j' <= (c) && (c) <= 'r') \
15288 || ('s' <= (c) && (c) <= 'z'))
15289# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
212380e3 15290#endif
7083c021
AC
15291
15292#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3
AC
15293int
15294main ()
15295{
7083c021
AC
15296 int i;
15297 for (i = 0; i < 256; i++)
15298 if (XOR (islower (i), ISLOWER (i))
15299 || toupper (i) != TOUPPER (i))
15300 return 2;
212380e3
AC
15301 return 0;
15302}
15303_ACEOF
7083c021 15304if ac_fn_c_try_run "$LINENO"; then :
212380e3 15305
7083c021
AC
15306else
15307 ac_cv_header_stdc=no
631ef239 15308fi
7083c021
AC
15309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15310 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 15311fi
7083c021 15312
212380e3 15313fi
212380e3 15314fi
7083c021
AC
15315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15316$as_echo "$ac_cv_header_stdc" >&6; }
15317if test $ac_cv_header_stdc = yes; then
15318
15319$as_echo "#define STDC_HEADERS 1" >>confdefs.h
212380e3
AC
15320
15321fi
15322
15323
7083c021
AC
15324for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h
15325do :
15326 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15327ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
b6d0720c 15328if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
15329 cat >>confdefs.h <<_ACEOF
15330#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15331_ACEOF
212380e3 15332
212380e3
AC
15333fi
15334
7083c021 15335done
212380e3
AC
15336
15337
212380e3 15338
7083c021
AC
15339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15340$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b6d0720c 15341if ${ac_cv_c_const+:} false; then :
7083c021
AC
15342 $as_echo_n "(cached) " >&6
15343else
15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345/* end confdefs.h. */
212380e3 15346
7083c021
AC
15347int
15348main ()
15349{
2eff3833 15350
7083c021 15351#ifndef __cplusplus
2eff3833 15352 /* Ultrix mips cc rejects this sort of thing. */
7083c021 15353 typedef int charset[2];
2eff3833 15354 const charset cs = { 0, 0 };
7083c021
AC
15355 /* SunOS 4.1.1 cc rejects this. */
15356 char const *const *pcpcc;
15357 char **ppc;
15358 /* NEC SVR4.0.2 mips cc rejects this. */
15359 struct point {int x, y;};
15360 static struct point const zero = {0,0};
15361 /* AIX XL C 1.02.0.0 rejects this.
15362 It does not let you subtract one const X* pointer from another in
15363 an arm of an if-expression whose if-part is not a constant
15364 expression */
15365 const char *g = "string";
15366 pcpcc = &g + (g ? g-g : 0);
15367 /* HPUX 7.0 cc rejects these. */
15368 ++pcpcc;
15369 ppc = (char**) pcpcc;
15370 pcpcc = (char const *const *) ppc;
2eff3833
JT
15371 { /* SCO 3.2v4 cc rejects this sort of thing. */
15372 char tx;
15373 char *t = &tx;
7083c021 15374 char const *s = 0 ? (char *) 0 : (char const *) 0;
212380e3 15375
7083c021
AC
15376 *t++ = 0;
15377 if (s) return 0;
15378 }
15379 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15380 int x[] = {25, 17};
15381 const int *foo = &x[0];
15382 ++foo;
15383 }
15384 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15385 typedef const int *iptr;
15386 iptr p = 0;
15387 ++p;
15388 }
2eff3833 15389 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7083c021 15390 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2eff3833
JT
15391 struct s { int j; const int *ap[3]; } bx;
15392 struct s *b = &bx; b->j = 5;
7083c021
AC
15393 }
15394 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15395 const int foo = 10;
15396 if (!foo) return 0;
15397 }
15398 return !cs[0] && !zero.x;
15399#endif
212380e3 15400
7083c021
AC
15401 ;
15402 return 0;
15403}
212380e3 15404_ACEOF
7083c021
AC
15405if ac_fn_c_try_compile "$LINENO"; then :
15406 ac_cv_c_const=yes
212380e3 15407else
7083c021 15408 ac_cv_c_const=no
212380e3 15409fi
631ef239 15410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 15411fi
7083c021
AC
15412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15413$as_echo "$ac_cv_c_const" >&6; }
15414if test $ac_cv_c_const = no; then
212380e3 15415
7083c021 15416$as_echo "#define const /**/" >>confdefs.h
212380e3
AC
15417
15418fi
15419
7083c021
AC
15420if test "$ac_cv_header_machine_endian_h" = "no" ; then
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15422$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 15423if ${ac_cv_c_bigendian+:} false; then :
7083c021 15424 $as_echo_n "(cached) " >&6
212380e3 15425else
7083c021
AC
15426 ac_cv_c_bigendian=unknown
15427 # See if we're dealing with a universal compiler.
15428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429/* end confdefs.h. */
15430#ifndef __APPLE_CC__
15431 not a universal capable compiler
15432 #endif
15433 typedef int dummy;
15434
15435_ACEOF
15436if ac_fn_c_try_compile "$LINENO"; then :
15437
15438 # Check for potential -arch flags. It is not universal unless
15439 # there are at least two -arch flags with different values.
15440 ac_arch=
15441 ac_prev=
15442 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15443 if test -n "$ac_prev"; then
15444 case $ac_word in
15445 i?86 | x86_64 | ppc | ppc64)
15446 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15447 ac_arch=$ac_word
15448 else
15449 ac_cv_c_bigendian=universal
15450 break
15451 fi
15452 ;;
15453 esac
15454 ac_prev=
15455 elif test "x$ac_word" = "x-arch"; then
15456 ac_prev=arch
15457 fi
15458 done
15459fi
15460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461 if test $ac_cv_c_bigendian = unknown; then
15462 # See if sys/param.h defines the BYTE_ORDER macro.
15463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
15464/* end confdefs.h. */
15465#include <sys/types.h>
7083c021 15466 #include <sys/param.h>
212380e3
AC
15467
15468int
15469main ()
15470{
7083c021
AC
15471#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15472 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15473 && LITTLE_ENDIAN)
15474 bogus endian macros
15475 #endif
212380e3
AC
15476
15477 ;
15478 return 0;
15479}
15480_ACEOF
7083c021 15481if ac_fn_c_try_compile "$LINENO"; then :
212380e3 15482 # It does; now see whether it defined to BIG_ENDIAN or not.
7083c021 15483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
15484/* end confdefs.h. */
15485#include <sys/types.h>
7083c021 15486 #include <sys/param.h>
212380e3
AC
15487
15488int
15489main ()
15490{
15491#if BYTE_ORDER != BIG_ENDIAN
7083c021
AC
15492 not big endian
15493 #endif
212380e3
AC
15494
15495 ;
15496 return 0;
15497}
15498_ACEOF
7083c021 15499if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
15500 ac_cv_c_bigendian=yes
15501else
7083c021 15502 ac_cv_c_bigendian=no
212380e3 15503fi
631ef239 15504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
15505fi
15506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15507 fi
15508 if test $ac_cv_c_bigendian = unknown; then
15509 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511/* end confdefs.h. */
15512#include <limits.h>
212380e3 15513
7083c021
AC
15514int
15515main ()
15516{
15517#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15518 bogus endian macros
15519 #endif
15520
15521 ;
15522 return 0;
15523}
212380e3 15524_ACEOF
7083c021
AC
15525if ac_fn_c_try_compile "$LINENO"; then :
15526 # It does; now see whether it defined to _BIG_ENDIAN or not.
15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15528/* end confdefs.h. */
7083c021
AC
15529#include <limits.h>
15530
212380e3
AC
15531int
15532main ()
15533{
7083c021
AC
15534#ifndef _BIG_ENDIAN
15535 not big endian
15536 #endif
15537
212380e3
AC
15538 ;
15539 return 0;
15540}
15541_ACEOF
7083c021 15542if ac_fn_c_try_compile "$LINENO"; then :
212380e3 15543 ac_cv_c_bigendian=yes
7083c021
AC
15544else
15545 ac_cv_c_bigendian=no
212380e3 15546fi
7083c021 15547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 15548fi
7083c021
AC
15549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15550 fi
15551 if test $ac_cv_c_bigendian = unknown; then
15552 # Compile a test program.
15553 if test "$cross_compiling" = yes; then :
15554 # Try to guess by grepping values from an object file.
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556/* end confdefs.h. */
15557short int ascii_mm[] =
15558 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15559 short int ascii_ii[] =
15560 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15561 int use_ascii (int i) {
15562 return ascii_mm[i] + ascii_ii[i];
15563 }
15564 short int ebcdic_ii[] =
15565 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15566 short int ebcdic_mm[] =
15567 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15568 int use_ebcdic (int i) {
15569 return ebcdic_mm[i] + ebcdic_ii[i];
15570 }
15571 extern int foo;
631ef239 15572
7083c021
AC
15573int
15574main ()
15575{
15576return use_ascii (foo) == use_ebcdic (foo);
15577 ;
15578 return 0;
15579}
15580_ACEOF
15581if ac_fn_c_try_compile "$LINENO"; then :
15582 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15583 ac_cv_c_bigendian=yes
15584 fi
15585 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15586 if test "$ac_cv_c_bigendian" = unknown; then
15587 ac_cv_c_bigendian=no
15588 else
15589 # finding both strings is unlikely to happen, but who knows?
15590 ac_cv_c_bigendian=unknown
15591 fi
15592 fi
212380e3 15593fi
631ef239 15594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 15595else
7083c021 15596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15597/* end confdefs.h. */
631ef239 15598$ac_includes_default
212380e3
AC
15599int
15600main ()
15601{
631ef239 15602
7083c021
AC
15603 /* Are we little or big endian? From Harbison&Steele. */
15604 union
15605 {
15606 long int l;
15607 char c[sizeof (long int)];
15608 } u;
15609 u.l = 1;
15610 return u.c[sizeof (long int) - 1] == 1;
631ef239
AC
15611
15612 ;
15613 return 0;
212380e3
AC
15614}
15615_ACEOF
7083c021 15616if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
15617 ac_cv_c_bigendian=no
15618else
7083c021 15619 ac_cv_c_bigendian=yes
212380e3 15620fi
7083c021
AC
15621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15622 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 15623fi
631ef239 15624
7083c021 15625 fi
212380e3 15626fi
7083c021
AC
15627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15628$as_echo "$ac_cv_c_bigendian" >&6; }
15629 case $ac_cv_c_bigendian in #(
15630 yes)
15631 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15632;; #(
15633 no)
15634 ;; #(
15635 universal)
15636
15637$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15638
15639 ;; #(
15640 *)
b6d0720c 15641 as_fn_error $? "unknown endianness
7083c021
AC
15642 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15643 esac
631ef239 15644
212380e3 15645fi
7083c021 15646ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
b6d0720c 15647if test "x$ac_cv_type_pid_t" = xyes; then :
212380e3 15648
7083c021 15649else
212380e3 15650
7083c021
AC
15651cat >>confdefs.h <<_ACEOF
15652#define pid_t int
15653_ACEOF
212380e3 15654
212380e3 15655fi
7083c021
AC
15656
15657ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
b6d0720c 15658if test "x$ac_cv_type_size_t" = xyes; then :
7083c021 15659
212380e3 15660else
7083c021
AC
15661
15662cat >>confdefs.h <<_ACEOF
15663#define size_t unsigned int
212380e3 15664_ACEOF
7083c021
AC
15665
15666fi
15667
15668# The cast to long int works around a bug in the HP C Compiler
15669# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15670# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15671# This bug is HP SR number 8606223364.
15672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15673$as_echo_n "checking size of short... " >&6; }
b6d0720c 15674if ${ac_cv_sizeof_short+:} false; then :
7083c021 15675 $as_echo_n "(cached) " >&6
212380e3 15676else
7083c021
AC
15677 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15678
15679else
15680 if test "$ac_cv_type_short" = yes; then
15681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
15683as_fn_error 77 "cannot compute sizeof (short)
15684See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
15685 else
15686 ac_cv_sizeof_short=0
15687 fi
15688fi
212380e3 15689
212380e3 15690fi
7083c021
AC
15691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15692$as_echo "$ac_cv_sizeof_short" >&6; }
631ef239 15693
212380e3 15694
7083c021
AC
15695
15696cat >>confdefs.h <<_ACEOF
15697#define SIZEOF_SHORT $ac_cv_sizeof_short
212380e3 15698_ACEOF
7083c021
AC
15699
15700
15701# The cast to long int works around a bug in the HP C Compiler
15702# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15703# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15704# This bug is HP SR number 8606223364.
15705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15706$as_echo_n "checking size of int... " >&6; }
b6d0720c 15707if ${ac_cv_sizeof_int+:} false; then :
7083c021
AC
15708 $as_echo_n "(cached) " >&6
15709else
15710 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15711
15712else
15713 if test "$ac_cv_type_int" = yes; then
15714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
15716as_fn_error 77 "cannot compute sizeof (int)
15717See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
15718 else
15719 ac_cv_sizeof_int=0
15720 fi
15721fi
15722
15723fi
15724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15725$as_echo "$ac_cv_sizeof_int" >&6; }
15726
15727
15728
15729cat >>confdefs.h <<_ACEOF
15730#define SIZEOF_INT $ac_cv_sizeof_int
212380e3 15731_ACEOF
7083c021
AC
15732
15733
15734# The cast to long int works around a bug in the HP C Compiler
15735# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15736# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15737# This bug is HP SR number 8606223364.
15738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15739$as_echo_n "checking size of long... " >&6; }
b6d0720c 15740if ${ac_cv_sizeof_long+:} false; then :
7083c021 15741 $as_echo_n "(cached) " >&6
212380e3 15742else
7083c021 15743 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
212380e3 15744
7083c021
AC
15745else
15746 if test "$ac_cv_type_long" = yes; then
15747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
15749as_fn_error 77 "cannot compute sizeof (long)
15750See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
15751 else
15752 ac_cv_sizeof_long=0
15753 fi
212380e3 15754fi
631ef239 15755
7083c021
AC
15756fi
15757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15758$as_echo "$ac_cv_sizeof_long" >&6; }
212380e3 15759
631ef239 15760
7083c021
AC
15761
15762cat >>confdefs.h <<_ACEOF
15763#define SIZEOF_LONG $ac_cv_sizeof_long
15764_ACEOF
15765
15766
15767# The cast to long int works around a bug in the HP C Compiler
15768# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15769# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15770# This bug is HP SR number 8606223364.
15771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
15772$as_echo_n "checking size of long long... " >&6; }
b6d0720c 15773if ${ac_cv_sizeof_long_long+:} false; then :
7083c021
AC
15774 $as_echo_n "(cached) " >&6
15775else
15776 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
15777
212380e3 15778else
7083c021
AC
15779 if test "$ac_cv_type_long_long" = yes; then
15780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
15782as_fn_error 77 "cannot compute sizeof (long long)
15783See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
15784 else
15785 ac_cv_sizeof_long_long=0
15786 fi
212380e3 15787fi
212380e3
AC
15788
15789fi
7083c021
AC
15790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
15791$as_echo "$ac_cv_sizeof_long_long" >&6; }
212380e3
AC
15792
15793
15794
7083c021
AC
15795cat >>confdefs.h <<_ACEOF
15796#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15797_ACEOF
212380e3 15798
212380e3 15799
212380e3 15800
7083c021
AC
15801
15802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15803$as_echo_n "checking for library containing socket... " >&6; }
b6d0720c 15804if ${ac_cv_search_socket+:} false; then :
7083c021
AC
15805 $as_echo_n "(cached) " >&6
15806else
15807 ac_func_search_save_LIBS=$LIBS
15808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15809/* end confdefs.h. */
7083c021
AC
15810
15811/* Override any GCC internal prototype to avoid an error.
15812 Use char because int might match the return type of a GCC
15813 builtin and then its argument prototype would still apply. */
15814#ifdef __cplusplus
15815extern "C"
15816#endif
15817char socket ();
212380e3
AC
15818int
15819main ()
15820{
7083c021 15821return socket ();
212380e3
AC
15822 ;
15823 return 0;
15824}
15825_ACEOF
7083c021
AC
15826for ac_lib in '' socket; do
15827 if test -z "$ac_lib"; then
15828 ac_res="none required"
15829 else
15830 ac_res=-l$ac_lib
15831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15832 fi
15833 if ac_fn_c_try_link "$LINENO"; then :
15834 ac_cv_search_socket=$ac_res
15835fi
15836rm -f core conftest.err conftest.$ac_objext \
15837 conftest$ac_exeext
b6d0720c 15838 if ${ac_cv_search_socket+:} false; then :
7083c021
AC
15839 break
15840fi
15841done
b6d0720c 15842if ${ac_cv_search_socket+:} false; then :
212380e3
AC
15843
15844else
7083c021
AC
15845 ac_cv_search_socket=no
15846fi
15847rm conftest.$ac_ext
15848LIBS=$ac_func_search_save_LIBS
15849fi
15850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15851$as_echo "$ac_cv_search_socket" >&6; }
15852ac_res=$ac_cv_search_socket
15853if test "$ac_res" != no; then :
15854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 15855
7083c021 15856else
b6d0720c 15857 as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5
212380e3 15858fi
631ef239 15859
212380e3 15860
7083c021
AC
15861if test x"$SUN" = xyes; then
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
15863$as_echo_n "checking for library containing inet_ntoa... " >&6; }
b6d0720c 15864if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
15865 $as_echo_n "(cached) " >&6
15866else
15867 ac_func_search_save_LIBS=$LIBS
15868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15869/* end confdefs.h. */
7083c021
AC
15870
15871/* Override any GCC internal prototype to avoid an error.
15872 Use char because int might match the return type of a GCC
15873 builtin and then its argument prototype would still apply. */
15874#ifdef __cplusplus
15875extern "C"
15876#endif
15877char inet_ntoa ();
212380e3
AC
15878int
15879main ()
15880{
7083c021 15881return inet_ntoa ();
212380e3
AC
15882 ;
15883 return 0;
15884}
15885_ACEOF
7083c021
AC
15886for ac_lib in '' nsl; do
15887 if test -z "$ac_lib"; then
15888 ac_res="none required"
15889 else
15890 ac_res=-l$ac_lib
15891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15892 fi
15893 if ac_fn_c_try_link "$LINENO"; then :
15894 ac_cv_search_inet_ntoa=$ac_res
15895fi
15896rm -f core conftest.err conftest.$ac_objext \
15897 conftest$ac_exeext
b6d0720c 15898 if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
15899 break
15900fi
15901done
b6d0720c 15902if ${ac_cv_search_inet_ntoa+:} false; then :
212380e3
AC
15903
15904else
7083c021
AC
15905 ac_cv_search_inet_ntoa=no
15906fi
15907rm conftest.$ac_ext
15908LIBS=$ac_func_search_save_LIBS
15909fi
15910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
15911$as_echo "$ac_cv_search_inet_ntoa" >&6; }
15912ac_res=$ac_cv_search_inet_ntoa
15913if test "$ac_res" != no; then :
15914 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 15915
7083c021 15916else
b6d0720c 15917 as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5
212380e3 15918fi
631ef239 15919
7083c021 15920fi
212380e3 15921
7083c021
AC
15922ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
15923#include <sys/socket.h>
15924"
b6d0720c 15925if test "x$ac_cv_type_socklen_t" = xyes; then :
212380e3
AC
15926
15927else
15928
7083c021 15929$as_echo "#define socklen_t unsigned int" >>confdefs.h
212380e3 15930
7083c021 15931fi
212380e3
AC
15932
15933
7083c021
AC
15934# Check whether --enable-ipv6 was given.
15935if test "${enable_ipv6+set}" = set; then :
15936 enableval=$enable_ipv6; ipv6=$enableval
212380e3 15937else
7083c021
AC
15938 ipv6=no
15939fi
212380e3 15940
212380e3 15941
7083c021
AC
15942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
15943$as_echo_n "checking for library containing crypt... " >&6; }
b6d0720c 15944if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
15945 $as_echo_n "(cached) " >&6
15946else
15947 ac_func_search_save_LIBS=$LIBS
15948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15949/* end confdefs.h. */
212380e3 15950
631ef239
AC
15951/* Override any GCC internal prototype to avoid an error.
15952 Use char because int might match the return type of a GCC
15953 builtin and then its argument prototype would still apply. */
212380e3
AC
15954#ifdef __cplusplus
15955extern "C"
212380e3 15956#endif
7083c021 15957char crypt ();
212380e3
AC
15958int
15959main ()
15960{
7083c021 15961return crypt ();
212380e3
AC
15962 ;
15963 return 0;
15964}
15965_ACEOF
7083c021
AC
15966for ac_lib in '' crypt descrypt; do
15967 if test -z "$ac_lib"; then
15968 ac_res="none required"
15969 else
15970 ac_res=-l$ac_lib
15971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15972 fi
15973 if ac_fn_c_try_link "$LINENO"; then :
15974 ac_cv_search_crypt=$ac_res
15975fi
15976rm -f core conftest.err conftest.$ac_objext \
15977 conftest$ac_exeext
b6d0720c 15978 if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
15979 break
15980fi
15981done
b6d0720c 15982if ${ac_cv_search_crypt+:} false; then :
7083c021 15983
212380e3 15984else
7083c021
AC
15985 ac_cv_search_crypt=no
15986fi
15987rm conftest.$ac_ext
15988LIBS=$ac_func_search_save_LIBS
15989fi
15990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
15991$as_echo "$ac_cv_search_crypt" >&6; }
15992ac_res=$ac_cv_search_crypt
15993if test "$ac_res" != no; then :
15994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 15995
212380e3 15996fi
631ef239 15997
7083c021
AC
15998
15999CRYPT_LIB=$ac_cv_search_crypt
16000
16001if test "$CRYPT_LIB" = "none required"; then
16002 unset CRYPT_LIB
16003elif test "$CRYPT_LIB" = no; then
16004 unset CRYPT_LIB
212380e3 16005fi
7083c021
AC
16006
16007
16008
16009if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
16010 VICONF=viconf
16011 else
16012 VICONF=""
16013fi
16014
16015
16016
16017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16018$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
b6d0720c 16019if ${gcc_cv_header_string+:} false; then :
7083c021
AC
16020 $as_echo_n "(cached) " >&6
16021else
16022
16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024/* end confdefs.h. */
16025#include <string.h>
16026 #include <strings.h>
212380e3 16027_ACEOF
7083c021
AC
16028if ac_fn_c_try_compile "$LINENO"; then :
16029 gcc_cv_header_string=yes
16030else
16031 gcc_cv_header_string=no
16032fi
16033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
16034
16035fi
7083c021
AC
16036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16037$as_echo "$gcc_cv_header_string" >&6; }
212380e3 16038
7083c021
AC
16039if test "$gcc_cv_header_string" = "yes"; then
16040
16041$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16042
16043fi
212380e3 16044
7083c021
AC
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16046$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 16047if ${ac_cv_c_bigendian+:} false; then :
7083c021
AC
16048 $as_echo_n "(cached) " >&6
16049else
16050 ac_cv_c_bigendian=unknown
16051 # See if we're dealing with a universal compiler.
16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053/* end confdefs.h. */
16054#ifndef __APPLE_CC__
16055 not a universal capable compiler
16056 #endif
16057 typedef int dummy;
16058
16059_ACEOF
16060if ac_fn_c_try_compile "$LINENO"; then :
16061
16062 # Check for potential -arch flags. It is not universal unless
16063 # there are at least two -arch flags with different values.
16064 ac_arch=
16065 ac_prev=
16066 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16067 if test -n "$ac_prev"; then
16068 case $ac_word in
16069 i?86 | x86_64 | ppc | ppc64)
16070 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16071 ac_arch=$ac_word
16072 else
16073 ac_cv_c_bigendian=universal
16074 break
16075 fi
16076 ;;
16077 esac
16078 ac_prev=
16079 elif test "x$ac_word" = "x-arch"; then
16080 ac_prev=arch
16081 fi
16082 done
212380e3 16083fi
7083c021
AC
16084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16085 if test $ac_cv_c_bigendian = unknown; then
16086 # See if sys/param.h defines the BYTE_ORDER macro.
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088/* end confdefs.h. */
16089#include <sys/types.h>
16090 #include <sys/param.h>
16091
16092int
16093main ()
16094{
16095#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16096 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16097 && LITTLE_ENDIAN)
16098 bogus endian macros
16099 #endif
16100
16101 ;
16102 return 0;
16103}
16104_ACEOF
16105if ac_fn_c_try_compile "$LINENO"; then :
16106 # It does; now see whether it defined to BIG_ENDIAN or not.
16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108/* end confdefs.h. */
16109#include <sys/types.h>
16110 #include <sys/param.h>
16111
16112int
16113main ()
16114{
16115#if BYTE_ORDER != BIG_ENDIAN
16116 not big endian
16117 #endif
212380e3 16118
7083c021
AC
16119 ;
16120 return 0;
16121}
16122_ACEOF
16123if ac_fn_c_try_compile "$LINENO"; then :
16124 ac_cv_c_bigendian=yes
212380e3 16125else
7083c021
AC
16126 ac_cv_c_bigendian=no
16127fi
16128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129fi
16130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16131 fi
16132 if test $ac_cv_c_bigendian = unknown; then
16133 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135/* end confdefs.h. */
16136#include <limits.h>
16137
16138int
16139main ()
16140{
16141#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16142 bogus endian macros
16143 #endif
16144
16145 ;
16146 return 0;
16147}
212380e3 16148_ACEOF
7083c021
AC
16149if ac_fn_c_try_compile "$LINENO"; then :
16150 # It does; now see whether it defined to _BIG_ENDIAN or not.
16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 16152/* end confdefs.h. */
7083c021
AC
16153#include <limits.h>
16154
212380e3
AC
16155int
16156main ()
16157{
7083c021
AC
16158#ifndef _BIG_ENDIAN
16159 not big endian
16160 #endif
16161
212380e3
AC
16162 ;
16163 return 0;
16164}
16165_ACEOF
7083c021
AC
16166if ac_fn_c_try_compile "$LINENO"; then :
16167 ac_cv_c_bigendian=yes
212380e3 16168else
7083c021 16169 ac_cv_c_bigendian=no
212380e3 16170fi
631ef239 16171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 16172fi
7083c021
AC
16173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16174 fi
16175 if test $ac_cv_c_bigendian = unknown; then
16176 # Compile a test program.
16177 if test "$cross_compiling" = yes; then :
16178 # Try to guess by grepping values from an object file.
16179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16180/* end confdefs.h. */
16181short int ascii_mm[] =
16182 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16183 short int ascii_ii[] =
16184 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16185 int use_ascii (int i) {
16186 return ascii_mm[i] + ascii_ii[i];
16187 }
16188 short int ebcdic_ii[] =
16189 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16190 short int ebcdic_mm[] =
16191 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16192 int use_ebcdic (int i) {
16193 return ebcdic_mm[i] + ebcdic_ii[i];
16194 }
16195 extern int foo;
212380e3 16196
7083c021
AC
16197int
16198main ()
16199{
16200return use_ascii (foo) == use_ebcdic (foo);
16201 ;
16202 return 0;
16203}
212380e3 16204_ACEOF
7083c021
AC
16205if ac_fn_c_try_compile "$LINENO"; then :
16206 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16207 ac_cv_c_bigendian=yes
16208 fi
16209 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16210 if test "$ac_cv_c_bigendian" = unknown; then
16211 ac_cv_c_bigendian=no
16212 else
16213 # finding both strings is unlikely to happen, but who knows?
16214 ac_cv_c_bigendian=unknown
16215 fi
16216 fi
16217fi
16218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16219else
16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16221/* end confdefs.h. */
16222$ac_includes_default
16223int
16224main ()
16225{
7083c021
AC
16226
16227 /* Are we little or big endian? From Harbison&Steele. */
16228 union
16229 {
16230 long int l;
16231 char c[sizeof (long int)];
16232 } u;
16233 u.l = 1;
16234 return u.c[sizeof (long int) - 1] == 1;
16235
212380e3
AC
16236 ;
16237 return 0;
16238}
16239_ACEOF
7083c021
AC
16240if ac_fn_c_try_run "$LINENO"; then :
16241 ac_cv_c_bigendian=no
212380e3 16242else
7083c021 16243 ac_cv_c_bigendian=yes
212380e3 16244fi
7083c021
AC
16245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16246 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 16247fi
212380e3 16248
7083c021
AC
16249 fi
16250fi
16251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16252$as_echo "$ac_cv_c_bigendian" >&6; }
16253 case $ac_cv_c_bigendian in #(
16254 yes)
16255 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16256;; #(
16257 no)
16258 ;; #(
16259 universal)
212380e3 16260
7083c021 16261$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
212380e3 16262
7083c021
AC
16263 ;; #(
16264 *)
b6d0720c 16265 as_fn_error $? "unknown endianness
7083c021
AC
16266 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16267 esac
212380e3 16268
212380e3 16269
7083c021 16270ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
b6d0720c 16271if test "x$ac_cv_header_stdarg_h" = xyes; then :
212380e3 16272
7083c021 16273else
b6d0720c 16274 as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
7083c021 16275fi
212380e3
AC
16276
16277
212380e3
AC
16278
16279
7083c021 16280if test "$ac_cv_c_compiler_gnu" = yes; then
212380e3 16281
7083c021
AC
16282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
16283$as_echo_n "checking for strlcpy... " >&6; }
16284save_CFLAGS=$CFLAGS
16285CFLAGS="$CFLAGS -Wimplicit -Werror"
212380e3 16286
7083c021 16287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 16288/* end confdefs.h. */
7083c021
AC
16289#include <string.h>
16290 #include <stdlib.h>
212380e3
AC
16291int
16292main ()
16293{
7083c021
AC
16294char *a = malloc(6);
16295 strlcpy(a, "hello", 6);
16296
212380e3
AC
16297 ;
16298 return 0;
16299}
16300_ACEOF
7083c021
AC
16301if ac_fn_c_try_link "$LINENO"; then :
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16303$as_echo "yes" >&6; }
212380e3 16304
7083c021 16305$as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
631ef239 16306
212380e3 16307else
7083c021
AC
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16309$as_echo "no" >&6; }
212380e3 16310
7083c021
AC
16311fi
16312rm -f core conftest.err conftest.$ac_objext \
16313 conftest$ac_exeext conftest.$ac_ext
16314
16315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
16316$as_echo_n "checking for strlcat... " >&6; }
16317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 16318/* end confdefs.h. */
7083c021
AC
16319#include <string.h>
16320 #include <stdlib.h>
212380e3
AC
16321int
16322main ()
16323{
7083c021
AC
16324char *a = malloc(6);
16325 a[0] = '\0';
16326 strlcat(a, "hello", 6);
16327
212380e3
AC
16328 ;
16329 return 0;
16330}
16331_ACEOF
7083c021
AC
16332if ac_fn_c_try_link "$LINENO"; then :
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16334$as_echo "yes" >&6; }
631ef239 16335
7083c021 16336$as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
212380e3 16337
7083c021
AC
16338else
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16340$as_echo "no" >&6; }
212380e3 16341
7083c021
AC
16342fi
16343rm -f core conftest.err conftest.$ac_objext \
16344 conftest$ac_exeext conftest.$ac_ext
212380e3 16345
7083c021 16346CFLAGS=$save_CFLAGS
212380e3
AC
16347
16348else
16349
212380e3 16350
7083c021
AC
16351for ac_func in strlcat strlcpy
16352do :
16353 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16354ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 16355if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
16356 cat >>confdefs.h <<_ACEOF
16357#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
16358_ACEOF
16359
212380e3 16360fi
7083c021 16361done
212380e3
AC
16362
16363
16364fi
16365
7083c021 16366ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
b6d0720c 16367if test "x$ac_cv_type_u_int32_t" = xyes; then :
212380e3 16368
212380e3 16369else
212380e3 16370
7083c021 16371 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
b6d0720c 16372if test "x$ac_cv_type_uint32_t" = xyes; then :
212380e3 16373
631ef239 16374
7083c021 16375$as_echo "#define u_int32_t uint32_t" >>confdefs.h
212380e3 16376
212380e3 16377
7083c021 16378else
212380e3 16379
7083c021
AC
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
16381$as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
212380e3 16382
7083c021 16383$as_echo "#define u_int32_t unsigned long int" >>confdefs.h
212380e3 16384
212380e3 16385
212380e3 16386fi
631ef239 16387
7083c021 16388
212380e3 16389fi
7083c021
AC
16390
16391
16392ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
b6d0720c 16393if test "x$ac_cv_type_u_int16_t" = xyes; then :
7083c021 16394
212380e3
AC
16395else
16396
7083c021 16397 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
b6d0720c 16398if test "x$ac_cv_type_uint16_t" = xyes; then :
212380e3 16399
7083c021
AC
16400
16401$as_echo "#define u_int16_t uint16_t" >>confdefs.h
212380e3
AC
16402
16403
212380e3 16404else
212380e3 16405
7083c021
AC
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
16407$as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
631ef239 16408
7083c021 16409$as_echo "#define u_int16_t unsigned short int" >>confdefs.h
212380e3 16410
7083c021
AC
16411
16412fi
212380e3
AC
16413
16414
16415fi
16416
16417
7083c021
AC
16418ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
16419#include <netinet/in.h>
16420"
b6d0720c 16421if test "x$ac_cv_type_in_port_t" = xyes; then :
212380e3 16422
7083c021 16423else
212380e3 16424
7083c021 16425$as_echo "#define in_port_t u_int16_t" >>confdefs.h
212380e3 16426
7083c021 16427fi
212380e3
AC
16428
16429
7083c021
AC
16430ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
16431#include <sys/socket.h>
16432"
b6d0720c 16433if test "x$ac_cv_type_sa_family_t" = xyes; then :
212380e3 16434
212380e3 16435else
212380e3 16436
7083c021 16437$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
212380e3 16438
7083c021 16439fi
212380e3 16440
212380e3 16441
7083c021 16442ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
b6d0720c 16443if test "x$ac_cv_type_uintptr_t" = xyes; then :
212380e3 16444
7083c021
AC
16445cat >>confdefs.h <<_ACEOF
16446#define HAVE_UINTPTR_T 1
16447_ACEOF
212380e3 16448
631ef239 16449
212380e3 16450fi
7083c021
AC
16451
16452
16453for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
16454do :
16455 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16456ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 16457if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3 16458 cat >>confdefs.h <<_ACEOF
7083c021 16459#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
16460_ACEOF
16461
16462fi
16463done
16464
16465
16466# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16467# for constant arguments. Useless!
7083c021
AC
16468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16469$as_echo_n "checking for working alloca.h... " >&6; }
b6d0720c 16470if ${ac_cv_working_alloca_h+:} false; then :
7083c021 16471 $as_echo_n "(cached) " >&6
212380e3 16472else
7083c021 16473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16474/* end confdefs.h. */
16475#include <alloca.h>
16476int
16477main ()
16478{
16479char *p = (char *) alloca (2 * sizeof (int));
631ef239 16480 if (p) return 0;
212380e3
AC
16481 ;
16482 return 0;
16483}
16484_ACEOF
7083c021 16485if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
16486 ac_cv_working_alloca_h=yes
16487else
7083c021 16488 ac_cv_working_alloca_h=no
212380e3 16489fi
7083c021
AC
16490rm -f core conftest.err conftest.$ac_objext \
16491 conftest$ac_exeext conftest.$ac_ext
212380e3 16492fi
7083c021
AC
16493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16494$as_echo "$ac_cv_working_alloca_h" >&6; }
212380e3
AC
16495if test $ac_cv_working_alloca_h = yes; then
16496
7083c021 16497$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
212380e3
AC
16498
16499fi
16500
7083c021
AC
16501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16502$as_echo_n "checking for alloca... " >&6; }
b6d0720c 16503if ${ac_cv_func_alloca_works+:} false; then :
7083c021 16504 $as_echo_n "(cached) " >&6
212380e3 16505else
7083c021 16506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16507/* end confdefs.h. */
16508#ifdef __GNUC__
16509# define alloca __builtin_alloca
16510#else
16511# ifdef _MSC_VER
16512# include <malloc.h>
16513# define alloca _alloca
16514# else
631ef239 16515# ifdef HAVE_ALLOCA_H
212380e3
AC
16516# include <alloca.h>
16517# else
16518# ifdef _AIX
16519 #pragma alloca
16520# else
16521# ifndef alloca /* predefined by HP cc +Olibcalls */
b6d0720c 16522void *alloca (size_t);
212380e3
AC
16523# endif
16524# endif
16525# endif
16526# endif
16527#endif
16528
16529int
16530main ()
16531{
16532char *p = (char *) alloca (1);
631ef239 16533 if (p) return 0;
212380e3
AC
16534 ;
16535 return 0;
16536}
16537_ACEOF
7083c021 16538if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
16539 ac_cv_func_alloca_works=yes
16540else
7083c021 16541 ac_cv_func_alloca_works=no
212380e3 16542fi
7083c021
AC
16543rm -f core conftest.err conftest.$ac_objext \
16544 conftest$ac_exeext conftest.$ac_ext
212380e3 16545fi
7083c021
AC
16546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16547$as_echo "$ac_cv_func_alloca_works" >&6; }
212380e3
AC
16548
16549if test $ac_cv_func_alloca_works = yes; then
16550
7083c021 16551$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
212380e3
AC
16552
16553else
16554 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16555# that cause trouble. Some versions do not even contain alloca or
16556# contain a buggy version. If you still want to use their alloca,
16557# use ar to extract alloca.o from them instead of compiling alloca.c.
16558
631ef239 16559ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
212380e3 16560
7083c021 16561$as_echo "#define C_ALLOCA 1" >>confdefs.h
212380e3
AC
16562
16563
7083c021
AC
16564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16565$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
b6d0720c 16566if ${ac_cv_os_cray+:} false; then :
7083c021 16567 $as_echo_n "(cached) " >&6
212380e3 16568else
7083c021 16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 16570/* end confdefs.h. */
631ef239 16571#if defined CRAY && ! defined CRAY2
212380e3
AC
16572webecray
16573#else
16574wenotbecray
16575#endif
16576
16577_ACEOF
16578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021 16579 $EGREP "webecray" >/dev/null 2>&1; then :
212380e3
AC
16580 ac_cv_os_cray=yes
16581else
16582 ac_cv_os_cray=no
16583fi
16584rm -f conftest*
16585
16586fi
7083c021
AC
16587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16588$as_echo "$ac_cv_os_cray" >&6; }
212380e3
AC
16589if test $ac_cv_os_cray = yes; then
16590 for ac_func in _getb67 GETB67 getb67; do
7083c021
AC
16591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16592ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 16593if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3
AC
16594
16595cat >>confdefs.h <<_ACEOF
16596#define CRAY_STACKSEG_END $ac_func
16597_ACEOF
16598
16599 break
16600fi
16601
16602 done
16603fi
16604
7083c021
AC
16605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16606$as_echo_n "checking stack direction for C alloca... " >&6; }
b6d0720c 16607if ${ac_cv_c_stack_direction+:} false; then :
7083c021 16608 $as_echo_n "(cached) " >&6
212380e3 16609else
7083c021 16610 if test "$cross_compiling" = yes; then :
212380e3
AC
16611 ac_cv_c_stack_direction=0
16612else
7083c021 16613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 16614/* end confdefs.h. */
631ef239 16615$ac_includes_default
212380e3 16616int
2eff3833 16617find_stack_direction (int *addr, int depth)
212380e3 16618{
2eff3833
JT
16619 int dir, dummy = 0;
16620 if (! addr)
16621 addr = &dummy;
16622 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16623 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16624 return dir + dummy;
212380e3
AC
16625}
16626
16627int
2eff3833 16628main (int argc, char **argv)
212380e3 16629{
2eff3833 16630 return find_stack_direction (0, argc + !argv + 20) < 0;
212380e3
AC
16631}
16632_ACEOF
7083c021 16633if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
16634 ac_cv_c_stack_direction=1
16635else
7083c021 16636 ac_cv_c_stack_direction=-1
212380e3 16637fi
7083c021
AC
16638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16639 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 16640fi
631ef239 16641
212380e3 16642fi
7083c021
AC
16643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16644$as_echo "$ac_cv_c_stack_direction" >&6; }
212380e3
AC
16645cat >>confdefs.h <<_ACEOF
16646#define STACK_DIRECTION $ac_cv_c_stack_direction
16647_ACEOF
16648
16649
16650fi
16651
16652
16653
7083c021 16654ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
b6d0720c 16655if test "x$ac_cv_func_nanosleep" = xyes; then :
631ef239 16656
212380e3 16657else
7083c021
AC
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
16659$as_echo_n "checking for nanosleep in -lrt... " >&6; }
b6d0720c 16660if ${ac_cv_lib_rt_nanosleep+:} false; then :
7083c021 16661 $as_echo_n "(cached) " >&6
212380e3
AC
16662else
16663 ac_check_lib_save_LIBS=$LIBS
16664LIBS="-lrt $LIBS"
7083c021 16665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16666/* end confdefs.h. */
16667
631ef239
AC
16668/* Override any GCC internal prototype to avoid an error.
16669 Use char because int might match the return type of a GCC
16670 builtin and then its argument prototype would still apply. */
212380e3
AC
16671#ifdef __cplusplus
16672extern "C"
16673#endif
212380e3
AC
16674char nanosleep ();
16675int
16676main ()
16677{
631ef239 16678return nanosleep ();
212380e3
AC
16679 ;
16680 return 0;
16681}
16682_ACEOF
7083c021 16683if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
16684 ac_cv_lib_rt_nanosleep=yes
16685else
7083c021 16686 ac_cv_lib_rt_nanosleep=no
212380e3 16687fi
7083c021
AC
16688rm -f core conftest.err conftest.$ac_objext \
16689 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
16690LIBS=$ac_check_lib_save_LIBS
16691fi
7083c021
AC
16692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
16693$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
b6d0720c 16694if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
212380e3
AC
16695 LIBS="${LIBS} -lrt"
16696else
7083c021
AC
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
16698$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
b6d0720c 16699if ${ac_cv_lib_posix4_nanosleep+:} false; then :
7083c021 16700 $as_echo_n "(cached) " >&6
212380e3
AC
16701else
16702 ac_check_lib_save_LIBS=$LIBS
16703LIBS="-lposix4 $LIBS"
7083c021 16704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16705/* end confdefs.h. */
16706
631ef239
AC
16707/* Override any GCC internal prototype to avoid an error.
16708 Use char because int might match the return type of a GCC
16709 builtin and then its argument prototype would still apply. */
212380e3
AC
16710#ifdef __cplusplus
16711extern "C"
16712#endif
212380e3
AC
16713char nanosleep ();
16714int
16715main ()
16716{
631ef239 16717return nanosleep ();
212380e3
AC
16718 ;
16719 return 0;
16720}
16721_ACEOF
7083c021 16722if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
16723 ac_cv_lib_posix4_nanosleep=yes
16724else
7083c021 16725 ac_cv_lib_posix4_nanosleep=no
212380e3 16726fi
7083c021
AC
16727rm -f core conftest.err conftest.$ac_objext \
16728 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
16729LIBS=$ac_check_lib_save_LIBS
16730fi
7083c021
AC
16731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
16732$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
b6d0720c 16733if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
212380e3
AC
16734 LIBS="${LIBS} -lposix4"
16735
16736fi
16737
16738fi
16739
16740fi
16741
16742if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
16743then
7083c021
AC
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
16745$as_echo "\"nanosleep not found..using select for delay\"" >&6; }
212380e3
AC
16746else
16747
7083c021 16748$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
212380e3
AC
16749
16750fi
16751
7083c021
AC
16752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
16753$as_echo_n "checking for OpenSSL... " >&6; }
631ef239 16754# Check whether --enable-openssl was given.
7083c021 16755if test "${enable_openssl+set}" = set; then :
631ef239 16756 enableval=$enable_openssl; cf_enable_openssl=$enableval
212380e3
AC
16757else
16758 cf_enable_openssl="auto"
631ef239
AC
16759fi
16760
212380e3
AC
16761
16762if test "$cf_enable_openssl" != "no" ; then
16763 cf_openssl_basedir=""
16764 if test "$cf_enable_openssl" != "auto" &&
16765 test "$cf_enable_openssl" != "yes" ; then
16766 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
16767 else
16768 for dirs in /usr/local/ssl /usr/pkg /usr/local \
16769 /usr/local/openssl ; do
16770 if test -f "${dirs}/include/openssl/opensslv.h" ; then
16771 cf_openssl_basedir="${dirs}"
16772 break
16773 fi
16774 done
16775 unset dirs
16776 fi
16777 if test ! -z "$cf_openssl_basedir"; then
16778 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
16779 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
16780 SSL_LIBS="-L${cf_openssl_basedir}/lib"
16781 else
16782 cf_openssl_basedir=""
16783 fi
16784 else
16785 if test -f "/usr/include/openssl/opensslv.h" ; then
16786 cf_openssl_basedir="/usr"
16787 fi
16788 fi
16789
16790 if test ! -z "$cf_openssl_basedir"; then
7083c021
AC
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
16792$as_echo "$cf_openssl_basedir" >&6; }
212380e3
AC
16793 cf_enable_openssl="yes"
16794 else
7083c021
AC
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
16796$as_echo "not found. Specify a correct path?" >&6; }
212380e3
AC
16797 cf_enable_openssl="no"
16798 fi
16799 unset cf_openssl_basedir
16800else
7083c021
AC
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16802$as_echo "disabled" >&6; }
212380e3
AC
16803fi
16804
16805save_CPPFLAGS="$CPPFLAGS"
16806CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
16807save_LIBS="$LIBS"
16808LIBS="$LIBS $SSL_LIBS"
16809if test "$cf_enable_openssl" != no; then
7083c021
AC
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
16811$as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
16812 if test "$cross_compiling" = yes; then :
212380e3
AC
16813 cf_openssl_version_ok=no
16814else
7083c021 16815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16816/* end confdefs.h. */
16817#include <openssl/opensslv.h>
16818 #include <stdlib.h>
16819int
16820main ()
16821{
16822if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
16823 exit(0); else exit(1);
16824 ;
16825 return 0;
16826}
16827_ACEOF
7083c021 16828if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
16829 cf_openssl_version_ok=yes
16830else
7083c021 16831 cf_openssl_version_ok=no
212380e3 16832fi
7083c021
AC
16833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16834 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3
AC
16835fi
16836
631ef239 16837
212380e3 16838 if test "$cf_openssl_version_ok" = yes; then
7083c021
AC
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16840$as_echo "found" >&6; }
212380e3
AC
16841
16842 ENCSPEED=encspeed
16843
16844
16845 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
7083c021
AC
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16847$as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
b6d0720c 16848if ${ac_cv_lib_crypto_RSA_free+:} false; then :
7083c021 16849 $as_echo_n "(cached) " >&6
212380e3
AC
16850else
16851 ac_check_lib_save_LIBS=$LIBS
16852LIBS="-lcrypto $LIBS"
7083c021 16853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16854/* end confdefs.h. */
16855
631ef239
AC
16856/* Override any GCC internal prototype to avoid an error.
16857 Use char because int might match the return type of a GCC
16858 builtin and then its argument prototype would still apply. */
212380e3
AC
16859#ifdef __cplusplus
16860extern "C"
16861#endif
212380e3
AC
16862char RSA_free ();
16863int
16864main ()
16865{
631ef239 16866return RSA_free ();
212380e3
AC
16867 ;
16868 return 0;
16869}
16870_ACEOF
7083c021 16871if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
16872 ac_cv_lib_crypto_RSA_free=yes
16873else
7083c021 16874 ac_cv_lib_crypto_RSA_free=no
212380e3 16875fi
7083c021
AC
16876rm -f core conftest.err conftest.$ac_objext \
16877 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
16878LIBS=$ac_check_lib_save_LIBS
16879fi
7083c021
AC
16880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
16881$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
b6d0720c 16882if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
212380e3
AC
16883 cat >>confdefs.h <<_ACEOF
16884#define HAVE_LIBCRYPTO 1
16885_ACEOF
16886
16887 LIBS="-lcrypto $LIBS"
16888
16889fi
16890
16891 SSL_LIBS="$SSL_LIBS -lcrypto"
16892 SSL_SRCS_ENABLE='$(SSL_SRCS)'
16893 else
7083c021
AC
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
16895$as_echo "no - OpenSSL support disabled" >&6; }
212380e3
AC
16896 fi
16897fi
16898
16899CPPFLAGS="$save_CPPFLAGS"
16900LIBS="$save_LIBS"
16901
16902
16903
16904
16905
631ef239 16906# Check whether --with-zlib-path was given.
7083c021 16907if test "${with_zlib_path+set}" = set; then :
631ef239
AC
16908 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
16909fi
212380e3 16910
7083c021
AC
16911
16912# Check whether --enable-zlib was given.
16913if test "${enable_zlib+set}" = set; then :
16914 enableval=$enable_zlib; zlib=$enableval
212380e3 16915else
7083c021 16916 zlib=yes
212380e3 16917fi
212380e3 16918
212380e3 16919
7083c021
AC
16920if test "$zlib" = yes; then
16921
16922ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
b6d0720c 16923if test "x$ac_cv_header_zlib_h" = xyes; then :
7083c021
AC
16924
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
16926$as_echo_n "checking for zlibVersion in -lz... " >&6; }
b6d0720c 16927if ${ac_cv_lib_z_zlibVersion+:} false; then :
7083c021 16928 $as_echo_n "(cached) " >&6
212380e3
AC
16929else
16930 ac_check_lib_save_LIBS=$LIBS
16931LIBS="-lz $LIBS"
7083c021 16932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16933/* end confdefs.h. */
16934
631ef239
AC
16935/* Override any GCC internal prototype to avoid an error.
16936 Use char because int might match the return type of a GCC
16937 builtin and then its argument prototype would still apply. */
212380e3
AC
16938#ifdef __cplusplus
16939extern "C"
16940#endif
212380e3
AC
16941char zlibVersion ();
16942int
16943main ()
16944{
631ef239 16945return zlibVersion ();
212380e3
AC
16946 ;
16947 return 0;
16948}
16949_ACEOF
7083c021 16950if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
16951 ac_cv_lib_z_zlibVersion=yes
16952else
7083c021 16953 ac_cv_lib_z_zlibVersion=no
212380e3 16954fi
7083c021
AC
16955rm -f core conftest.err conftest.$ac_objext \
16956 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
16957LIBS=$ac_check_lib_save_LIBS
16958fi
7083c021
AC
16959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
16960$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
b6d0720c 16961if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
212380e3
AC
16962
16963 ZLIB_LD=-lz
16964
16965
7083c021 16966$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
212380e3
AC
16967
16968
16969else
16970 zlib=no
16971fi
16972
16973
16974else
16975 zlib=no
16976fi
16977
16978
16979
497e30a0
LS
16980fi
16981
a6ef3156
LS
16982
16983# Check whether --with-shared-sqlite was given.
16984if test "${with_shared_sqlite+set}" = set; then :
16985 withval=$with_shared_sqlite; shared_sqlite=$withval
497e30a0
LS
16986else
16987 shared_sqlite=no
16988fi
16989
16990
16991if test "$shared_sqlite" = yes; then
16992
cf1001a7 16993
a5471f24
LS
16994
16995
16996
16997
16998
16999if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17000 if test -n "$ac_tool_prefix"; then
17001 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17002set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17004$as_echo_n "checking for $ac_word... " >&6; }
17005if ${ac_cv_path_PKG_CONFIG+:} false; then :
17006 $as_echo_n "(cached) " >&6
17007else
17008 case $PKG_CONFIG in
17009 [\\/]* | ?:[\\/]*)
17010 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17011 ;;
17012 *)
17013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17014for as_dir in $PATH
17015do
17016 IFS=$as_save_IFS
17017 test -z "$as_dir" && as_dir=.
17018 for ac_exec_ext in '' $ac_executable_extensions; do
17019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17020 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17022 break 2
17023 fi
17024done
17025 done
17026IFS=$as_save_IFS
17027
17028 ;;
cf1001a7 17029esac
a5471f24
LS
17030fi
17031PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17032if test -n "$PKG_CONFIG"; then
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17034$as_echo "$PKG_CONFIG" >&6; }
17035else
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17037$as_echo "no" >&6; }
17038fi
cf1001a7 17039
497e30a0 17040
a5471f24
LS
17041fi
17042if test -z "$ac_cv_path_PKG_CONFIG"; then
17043 ac_pt_PKG_CONFIG=$PKG_CONFIG
17044 # Extract the first word of "pkg-config", so it can be a program name with args.
17045set dummy pkg-config; ac_word=$2
17046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17047$as_echo_n "checking for $ac_word... " >&6; }
17048if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
497e30a0
LS
17049 $as_echo_n "(cached) " >&6
17050else
a5471f24
LS
17051 case $ac_pt_PKG_CONFIG in
17052 [\\/]* | ?:[\\/]*)
17053 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17054 ;;
17055 *)
17056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17057for as_dir in $PATH
17058do
17059 IFS=$as_save_IFS
17060 test -z "$as_dir" && as_dir=.
17061 for ac_exec_ext in '' $ac_executable_extensions; do
17062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17063 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17065 break 2
17066 fi
17067done
17068 done
17069IFS=$as_save_IFS
497e30a0 17070
a5471f24
LS
17071 ;;
17072esac
17073fi
17074ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17075if test -n "$ac_pt_PKG_CONFIG"; then
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17077$as_echo "$ac_pt_PKG_CONFIG" >&6; }
497e30a0 17078else
a5471f24
LS
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17080$as_echo "no" >&6; }
497e30a0 17081fi
a5471f24
LS
17082
17083 if test "x$ac_pt_PKG_CONFIG" = x; then
17084 PKG_CONFIG=""
17085 else
17086 case $cross_compiling:$ac_tool_warned in
17087yes:)
17088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17090ac_tool_warned=yes ;;
17091esac
17092 PKG_CONFIG=$ac_pt_PKG_CONFIG
17093 fi
17094else
17095 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
497e30a0 17096fi
497e30a0 17097
a5471f24
LS
17098fi
17099if test -n "$PKG_CONFIG"; then
17100 _pkg_min_version=0.9.0
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17102$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17103 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17105$as_echo "yes" >&6; }
17106 else
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17108$as_echo "no" >&6; }
17109 PKG_CONFIG=""
17110 fi
17111fi
17112
17113pkg_failed=no
17114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
17115$as_echo_n "checking for SQLITE... " >&6; }
497e30a0 17116
a5471f24
LS
17117if test -n "$SQLITE_CFLAGS"; then
17118 pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
17119 elif test -n "$PKG_CONFIG"; then
17120 if test -n "$PKG_CONFIG" && \
17121 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
17122 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
17123 ac_status=$?
17124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17125 test $ac_status = 0; }; then
17126 pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
17127 test "x$?" != "x0" && pkg_failed=yes
497e30a0 17128else
a5471f24
LS
17129 pkg_failed=yes
17130fi
17131 else
17132 pkg_failed=untried
17133fi
17134if test -n "$SQLITE_LIBS"; then
17135 pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
17136 elif test -n "$PKG_CONFIG"; then
17137 if test -n "$PKG_CONFIG" && \
17138 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
17139 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
17140 ac_status=$?
17141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17142 test $ac_status = 0; }; then
17143 pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
17144 test "x$?" != "x0" && pkg_failed=yes
17145else
17146 pkg_failed=yes
17147fi
17148 else
17149 pkg_failed=untried
497e30a0
LS
17150fi
17151
17152
a5471f24
LS
17153
17154if test $pkg_failed = yes; then
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17156$as_echo "no" >&6; }
17157
17158if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17159 _pkg_short_errors_supported=yes
497e30a0 17160else
a5471f24 17161 _pkg_short_errors_supported=no
497e30a0 17162fi
a5471f24
LS
17163 if test $_pkg_short_errors_supported = yes; then
17164 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
17165 else
17166 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
17167 fi
17168 # Put the nasty error message in config.log where it belongs
17169 echo "$SQLITE_PKG_ERRORS" >&5
497e30a0 17170
a5471f24
LS
17171 shared_sqlite=no
17172elif test $pkg_failed = untried; then
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17174$as_echo "no" >&6; }
17175 shared_sqlite=no
17176else
17177 SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
17178 SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17180$as_echo "yes" >&6; }
497e30a0 17181
a5471f24 17182 shared_sqlite=yes
497e30a0 17183
74ab6be0 17184fi
a5471f24 17185fi
74ab6be0
LS
17186
17187if test "$shared_sqlite" = no; then
c52df125 17188 SQLITE_OBJ='sqlite3.$(OBJEXT)'
212380e3
AC
17189fi
17190
a5471f24 17191SQLITE_LD="$SQLITE_LIBS"
212380e3 17192
a5471f24 17193SQLITE_INCLUDES="$SQLITE_CFLAGS"
cf1001a7
LS
17194
17195
cf1001a7
LS
17196
17197
c1c5fdc4 17198# Check whether --enable-ports was given.
7083c021 17199if test "${enable_ports+set}" = set; then :
c1c5fdc4
AC
17200 enableval=$enable_ports; if test $enableval = yes; then
17201 SELECT_TYPE_EXPLICIT="ports"
17202 else
17203 use_ports=no
17204 fi
17205
17206fi
17207
17208
631ef239 17209# Check whether --enable-poll was given.
7083c021 17210if test "${enable_poll+set}" = set; then :
631ef239 17211 enableval=$enable_poll; if test $enableval = yes; then
212380e3
AC
17212 SELECT_TYPE_EXPLICIT="poll"
17213 else
17214 use_poll=no
17215 fi
17216
631ef239
AC
17217fi
17218
212380e3 17219
631ef239 17220# Check whether --enable-select was given.
7083c021 17221if test "${enable_select+set}" = set; then :
631ef239 17222 enableval=$enable_select; if test $enableval = yes; then
212380e3
AC
17223 SELECT_TYPE_EXPLICIT="select"
17224 else
17225 use_select=no
17226 fi
17227
631ef239
AC
17228fi
17229
212380e3 17230
631ef239 17231# Check whether --enable-kqueue was given.
7083c021 17232if test "${enable_kqueue+set}" = set; then :
631ef239 17233 enableval=$enable_kqueue; if test $enableval = yes; then
212380e3
AC
17234 SELECT_TYPE_EXPLICIT="kqueue"
17235 else
17236 use_kqueue=no
17237 fi
17238
631ef239
AC
17239fi
17240
212380e3 17241
631ef239 17242# Check whether --enable-epoll was given.
7083c021 17243if test "${enable_epoll+set}" = set; then :
631ef239 17244 enableval=$enable_epoll; if test $enableval = yes; then
212380e3 17245 SELECT_TYPE_EXPLICIT="epoll"
7083c021
AC
17246 for ac_func in epoll_ctl
17247do :
17248 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b6d0720c 17249if test "x$ac_cv_func_epoll_ctl" = xyes; then :
3ad1a781 17250 cat >>confdefs.h <<_ACEOF
7083c021 17251#define HAVE_EPOLL_CTL 1
3ad1a781
JT
17252_ACEOF
17253 haveepoll=yes
17254else
17255 haveepoll=no
17256fi
17257done
17258
212380e3
AC
17259 else
17260 use_epoll=no
17261 fi
17262
631ef239
AC
17263fi
17264
212380e3
AC
17265
17266
212380e3 17267
631ef239 17268# Check whether --with-confdir was given.
7083c021 17269if test "${with_confdir+set}" = set; then :
634d4aad 17270 withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'`
212380e3 17271else
9f9b7042 17272 confdir='${sysconfdir}'
634d4aad
NPB
17273fi
17274
212380e3
AC
17275
17276 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17277 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
634d4aad 17278 last_ac_define_dir=`eval echo $sysconfdir`
9f9b7042 17279 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 17280 ac_define_dir_counter=0
9f9b7042
NPB
17281 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
17282 last_ac_define_dir="$ac_define_dir"
17283 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
17284 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
17285 if test "x$ac_define_dir_counter" = x128; then :
17286 as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5
17287 break
17288fi
9f9b7042 17289 done
212380e3
AC
17290 ETC_DIR="$ac_define_dir"
17291
17292
17293cat >>confdefs.h <<_ACEOF
17294#define ETC_DIR "$ac_define_dir"
17295_ACEOF
17296
17297
17298
17299
7083c021
AC
17300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
17301$as_echo_n "checking whether to modify logdir... " >&6; }
212380e3 17302
631ef239 17303# Check whether --with-logdir was given.
7083c021 17304if test "${with_logdir+set}" = set; then :
631ef239 17305 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17307$as_echo "yes" >&6; }
212380e3 17308else
9f9b7042
NPB
17309 if test "x$enable_fhs_paths" = "xyes"; then :
17310 logdir='${localstatedir}/log/${PACKAGE_TARNAME}'
17311else
17312 logdir='${prefix}/logs'
17313fi
7083c021
AC
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17315$as_echo "no" >&6; }
9f9b7042
NPB
17316fi
17317
212380e3
AC
17318
17319 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17320 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
17321 last_ac_define_dir=`eval echo $logdir`
17322 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 17323 ac_define_dir_counter=0
9f9b7042
NPB
17324 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
17325 last_ac_define_dir="$ac_define_dir"
17326 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
17327 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
17328 if test "x$ac_define_dir_counter" = x128; then :
17329 as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5
17330 break
17331fi
9f9b7042 17332 done
212380e3
AC
17333 LOG_DIR="$ac_define_dir"
17334
17335
17336cat >>confdefs.h <<_ACEOF
17337#define LOG_DIR "$ac_define_dir"
17338_ACEOF
17339
17340
17341
17342
17343 logdir=`(
17344 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17345 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
17346 eval echo \""$logdir"\"
17347 )`
17348
17349
17350
212380e3 17351
7083c021
AC
17352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
17353$as_echo_n "checking whether to modify helpdir... " >&6; }
212380e3 17354
631ef239 17355# Check whether --with-helpdir was given.
7083c021 17356if test "${with_helpdir+set}" = set; then :
631ef239 17357 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17359$as_echo "yes" >&6; }
212380e3 17360else
9f9b7042
NPB
17361 if test "x$enable_fhs_paths" = "xyes"; then :
17362 helpdir='${datadir}/${PACKAGE_TARNAME}/help'
17363else
17364 helpdir='${prefix}/help'
17365fi
7083c021
AC
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17367$as_echo "no" >&6; }
9f9b7042
NPB
17368fi
17369
212380e3
AC
17370
17371 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17372 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
17373 last_ac_define_dir=`eval echo $helpdir`
17374 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 17375 ac_define_dir_counter=0
9f9b7042
NPB
17376 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
17377 last_ac_define_dir="$ac_define_dir"
17378 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
17379 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
17380 if test "x$ac_define_dir_counter" = x128; then :
17381 as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5
17382 break
17383fi
9f9b7042 17384 done
212380e3
AC
17385 HELP_DIR="$ac_define_dir"
17386
17387
17388cat >>confdefs.h <<_ACEOF
17389#define HELP_DIR "$ac_define_dir"
17390_ACEOF
17391
17392
17393
17394
17395 helpdir=`(
17396 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17397 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
17398 eval echo \""$helpdir"\"
17399 )`
17400
17401
17402
212380e3 17403
7083c021
AC
17404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
17405$as_echo_n "checking whether to modify moduledir... " >&6; }
212380e3 17406
631ef239 17407# Check whether --with-moduledir was given.
7083c021 17408if test "${with_moduledir+set}" = set; then :
631ef239 17409 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
7083c021
AC
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17411$as_echo "yes" >&6; }
9f9b7042
NPB
17412else
17413 if test "x$enable_fhs_paths" = "xyes"; then :
17414 moduledir='${pkglibdir}/modules'
17415else
17416 moduledir='${prefix}/modules'
17417fi
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17419$as_echo "no" >&6; }
17420
17421fi
17422
212380e3
AC
17423
17424 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17425 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
17426 last_ac_define_dir=`eval echo $moduledir`
17427 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 17428 ac_define_dir_counter=0
9f9b7042
NPB
17429 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
17430 last_ac_define_dir="$ac_define_dir"
17431 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
17432 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
17433 if test "x$ac_define_dir_counter" = x128; then :
17434 as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5
17435 break
17436fi
9f9b7042 17437 done
212380e3
AC
17438 MODULE_DIR="$ac_define_dir"
17439
17440
17441cat >>confdefs.h <<_ACEOF
17442#define MODULE_DIR "$ac_define_dir"
17443_ACEOF
17444
17445
17446
17447
17448 moduledir=`(
17449 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17450 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
17451 eval echo \""$moduledir"\"
17452 )`
17453
17454
9f9b7042
NPB
17455
17456
17457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5
17458$as_echo_n "checking whether or modify rundir... " >&6; }
17459
17460# Check whether --with-rundir was given.
17461if test "${with_rundir+set}" = set; then :
17462 withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17463$as_echo "yes" >&6; }
17464 rundir=`echo $withval | sed 's/\/$//'`
212380e3 17465else
9f9b7042 17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083c021 17467$as_echo "no" >&6; }
9f9b7042
NPB
17468 if test "x$enable_fhs_paths" = "xyes"; then :
17469 rundir='${prefix}/run'
17470else
17471 rundir='${sysconfdir}'
17472fi
17473fi
17474
17475
212380e3
AC
17476
17477 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17478 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
17479 last_ac_define_dir=`eval echo $pkgrundir`
17480 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 17481 ac_define_dir_counter=0
9f9b7042
NPB
17482 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
17483 last_ac_define_dir="$ac_define_dir"
17484 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
17485 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
17486 if test "x$ac_define_dir_counter" = x128; then :
17487 as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5
17488 break
17489fi
9f9b7042
NPB
17490 done
17491 PKGRUNDIR="$ac_define_dir"
212380e3
AC
17492
17493
17494cat >>confdefs.h <<_ACEOF
9f9b7042 17495#define PKGRUNDIR "$ac_define_dir"
212380e3
AC
17496_ACEOF
17497
17498
17499
9f9b7042
NPB
17500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5
17501$as_echo_n "checking for program prefix... " >&6; }
212380e3 17502
9f9b7042
NPB
17503# Check whether --with-program-prefix was given.
17504if test "${with_program_prefix+set}" = set; then :
17505 withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix=
17506else
17507 with_program_prefix=
17508fi
212380e3 17509
9f9b7042
NPB
17510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5
17511$as_echo "\"$with_program_prefix\"" >&6; }
17512PROGRAM_PREFIX="$with_program_prefix"
212380e3
AC
17513
17514
9f9b7042
NPB
17515cat >>confdefs.h <<_ACEOF
17516#define PROGRAM_PREFIX "$with_program_prefix"
17517_ACEOF
631ef239 17518
7083c021 17519
b6d0720c
AC
17520
17521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5
17522$as_echo_n "checking whether custom branding is requested... " >&6; }
17523
17524# Check whether --with-custom-branding was given.
17525if test "${with_custom_branding+set}" = set; then :
17526 withval=$with_custom_branding; BRANDING_NAME=$withval
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17528$as_echo "yes" >&6; }
17529else
17530 BRANDING_NAME=$PACKAGE_NAME
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17532$as_echo "no" >&6; }
17533
17534fi
17535
17536
17537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5
17538$as_echo_n "checking whether a custom version is requested... " >&6; }
17539
17540# Check whether --with-custom-version was given.
17541if test "${with_custom_version+set}" = set; then :
17542 withval=$with_custom_version; BRANDING_VERSION=$withval
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17544$as_echo "yes" >&6; }
17545else
17546 BRANDING_VERSION=$PACKAGE_VERSION
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17548$as_echo "no" >&6; }
17549
17550fi
17551
17552
17553
17554cat >>confdefs.h <<_ACEOF
17555#define BRANDING_NAME "$BRANDING_NAME"
17556_ACEOF
17557
17558
17559cat >>confdefs.h <<_ACEOF
17560#define BRANDING_VERSION "$BRANDING_VERSION"
17561_ACEOF
17562
17563
f5493691
AC
17564if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
17565
17566$as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h
17567
17568fi
17569
7083c021
AC
17570if test ! -z "$SELECT_TYPE_EXPLICIT"; then
17571 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
17572 echo "Forcing $SELECT_TYPE to be enabled"
17573else
17574
17575if test ! "x$use_ports" = "xno"; then
17576 for ac_func in port_getn
17577do :
17578 ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn"
b6d0720c 17579if test "x$ac_cv_func_port_getn" = xyes; then :
212380e3 17580 cat >>confdefs.h <<_ACEOF
7083c021 17581#define HAVE_PORT_GETN 1
212380e3 17582_ACEOF
7083c021 17583 haveports=yes
212380e3 17584else
7083c021 17585 haveports=no
212380e3
AC
17586fi
17587done
17588
7083c021
AC
17589 if test "x$haveports" = "xyes" ; then
17590 SELECT_TYPE="ports"
212380e3
AC
17591 fi
17592fi
17593
7083c021
AC
17594if test ! "x$use_select" = "xno"; then
17595 for ac_func in select
17596do :
17597 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
b6d0720c 17598if test "x$ac_cv_func_select" = xyes; then :
7083c021
AC
17599 cat >>confdefs.h <<_ACEOF
17600#define HAVE_SELECT 1
212380e3 17601_ACEOF
7083c021
AC
17602 haveselect=yes
17603else
17604 haveselect=no
17605fi
17606done
212380e3 17607
7083c021
AC
17608 if test "x$haveselect" = "xyes" ; then
17609 SELECT_TYPE="select"
17610 fi
17611fi
212380e3 17612
7083c021
AC
17613if test ! "x$use_poll" = "xno"; then
17614 for ac_func in poll
17615do :
17616 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
b6d0720c 17617if test "x$ac_cv_func_poll" = xyes; then :
7083c021
AC
17618 cat >>confdefs.h <<_ACEOF
17619#define HAVE_POLL 1
212380e3 17620_ACEOF
7083c021 17621 havepoll=yes
212380e3 17622else
7083c021 17623 havepoll=no
212380e3 17624fi
7083c021 17625done
631ef239 17626
7083c021
AC
17627 if test "x$havepoll" = "xyes" ; then
17628 SELECT_TYPE="poll"
17629 fi
212380e3 17630fi
7083c021
AC
17631
17632if test ! "x$use_kqueue" = "xno"; then
17633 for ac_func in kevent
17634do :
17635 ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent"
b6d0720c 17636if test "x$ac_cv_func_kevent" = xyes; then :
212380e3 17637 cat >>confdefs.h <<_ACEOF
7083c021 17638#define HAVE_KEVENT 1
212380e3
AC
17639_ACEOF
17640 havekqueue=yes
17641else
17642 havekqueue=no
17643fi
17644done
17645
17646 if test "x$havekqueue" = "xyes" ; then
17647 SELECT_TYPE="kqueue"
17648 fi
17649fi
17650
17651if test ! "x$use_epoll" = "xno"; then
7083c021
AC
17652 for ac_func in epoll_ctl
17653do :
17654 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b6d0720c 17655if test "x$ac_cv_func_epoll_ctl" = xyes; then :
212380e3 17656 cat >>confdefs.h <<_ACEOF
7083c021 17657#define HAVE_EPOLL_CTL 1
212380e3
AC
17658_ACEOF
17659 haveepoll=yes
17660else
17661 haveepoll=no
17662fi
17663done
17664
17665 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
17666 if test "x$haveepoll" = "xyes" ; then
7083c021
AC
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
17668$as_echo_n "checking for epoll support in kernel... " >&6; }
17669 if test "$cross_compiling" = yes; then :
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17671$as_echo "no" >&6; }
212380e3 17672else
7083c021 17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17674/* end confdefs.h. */
17675#include <stdint.h>
17676#include <sys/param.h>
17677#include <sys/types.h>
17678#include <sys/epoll.h>
17679#include <sys/syscall.h>
17680#include <unistd.h>
17681
17682int
17683main(int argc, char **argv)
17684{
17685 int epfd;
17686
17687 epfd = epoll_create(256);
b676ea3b 17688 return (epfd == -1 ? 1 : 0);
212380e3
AC
17689}
17690_ACEOF
7083c021
AC
17691if ac_fn_c_try_run "$LINENO"; then :
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17693$as_echo "yes" >&6; }
212380e3 17694
7083c021 17695$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
17696
17697 SELECT_TYPE="epoll"
17698else
7083c021
AC
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17700$as_echo "no" >&6; }
212380e3 17701fi
7083c021
AC
17702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17703 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 17704fi
631ef239 17705
212380e3
AC
17706 fi
17707 fi
17708
17709haveepollsyscall=no
17710
17711if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
17712 if test "x$haveepoll" = "xno" ; then
7083c021
AC
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
17714$as_echo_n "checking for epoll system call... " >&6; }
17715 if test "$cross_compiling" = yes; then :
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17717$as_echo "no" >&6; }
212380e3 17718else
7083c021 17719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17720/* end confdefs.h. */
17721#include <stdint.h>
17722#include <sys/param.h>
17723#include <sys/types.h>
17724#include <sys/epoll.h>
17725#include <sys/syscall.h>
17726#include <unistd.h>
17727
17728int
17729epoll_create(int size)
17730{
17731 return (syscall(__NR_epoll_create, size));
17732}
17733
17734int
17735main(int argc, char **argv)
17736{
17737 int epfd;
17738
17739 epfd = epoll_create(256);
17740 exit (epfd == -1 ? 1 : 0);
17741}
17742_ACEOF
7083c021
AC
17743if ac_fn_c_try_run "$LINENO"; then :
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17745$as_echo "yes" >&6; }
212380e3 17746
7083c021 17747$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
17748
17749 SELECT_TYPE="epoll"
17750else
7083c021
AC
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17752$as_echo "no" >&6; }
212380e3 17753fi
7083c021
AC
17754rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17755 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 17756fi
631ef239 17757
212380e3
AC
17758 fi
17759fi
17760
17761fi
17762
17763fi
17764
17765if test -z "$SELECT_TYPE"; then
b6d0720c 17766 as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5
212380e3
AC
17767fi
17768
17769echo "Using $SELECT_TYPE for select loop."
17770
17771
17772cat >>confdefs.h <<_ACEOF
17773#define SELECT_TYPE "$SELECT_TYPE"
17774_ACEOF
17775
17776
17777
17778
17779
631ef239 17780# Check whether --enable-assert was given.
7083c021 17781if test "${enable_assert+set}" = set; then :
631ef239 17782 enableval=$enable_assert; assert=$enableval
212380e3
AC
17783else
17784 assert=no
631ef239
AC
17785fi
17786
212380e3
AC
17787
17788if test "$assert" = no; then
17789
7083c021 17790$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
17791
17792elif test "$assert" = soft; then
17793
7083c021 17794$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
212380e3
AC
17795
17796
7083c021 17797$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
17798
17799elif test "$assert" = yes; then
17800 assert = "hard";
17801fi
17802
7083c021
AC
17803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
17804$as_echo_n "checking if you want IO Debugging hooks... " >&6; }
631ef239 17805# Check whether --enable-iodebug was given.
7083c021 17806if test "${enable_iodebug+set}" = set; then :
631ef239 17807 enableval=$enable_iodebug; iodebug=$enableval
212380e3
AC
17808else
17809 iodebug=no
631ef239
AC
17810fi
17811
212380e3
AC
17812
17813if test "$iodebug" = yes; then
17814
7083c021 17815$as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
212380e3 17816
7083c021
AC
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17818$as_echo "yes" >&6; }
212380e3 17819else
7083c021
AC
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17821$as_echo "no" >&6; }
212380e3
AC
17822fi
17823
17824
7083c021
AC
17825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
17826$as_echo_n "checking if you want to do a profile build... " >&6; }
631ef239 17827# Check whether --enable-profile was given.
7083c021 17828if test "${enable_profile+set}" = set; then :
631ef239 17829 enableval=$enable_profile; profile=$enableval
212380e3
AC
17830else
17831 profile=no
631ef239
AC
17832fi
17833
212380e3
AC
17834
17835if test "$profile" = yes; then
17836 if test "$ac_cv_c_compiler_gnu" = yes; then
17837 IRC_CFLAGS="$IRC_CFLAGS -pg"
7083c021
AC
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
17839$as_echo "yes, adding -pg" >&6; }
212380e3 17840
7083c021 17841$as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
212380e3
AC
17842
17843 else
7083c021
AC
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
17845$as_echo "no, profile builds only work with gcc" >&6; }
212380e3
AC
17846 fi
17847else
7083c021
AC
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17849$as_echo "no" >&6; }
212380e3
AC
17850fi
17851
631ef239 17852# Check whether --enable-balloc was given.
7083c021 17853if test "${enable_balloc+set}" = set; then :
631ef239 17854 enableval=$enable_balloc; balloc=$enableval
212380e3
AC
17855else
17856 balloc=yes
631ef239
AC
17857fi
17858
212380e3
AC
17859
17860if test "$balloc" = no; then
17861
7083c021 17862$as_echo "#define NOBALLOC 1" >>confdefs.h
212380e3
AC
17863
17864fi
17865
631ef239 17866# Check whether --enable-small-net was given.
7083c021 17867if test "${enable_small_net+set}" = set; then :
631ef239 17868 enableval=$enable_small_net; small_net=$enableval
212380e3
AC
17869else
17870 small_net=no
631ef239
AC
17871fi
17872
212380e3
AC
17873
17874if test "$small_net" = yes; then
17875
7083c021 17876$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
212380e3
AC
17877
17878
7083c021 17879$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
17880
17881
7083c021 17882$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
17883
17884
7083c021 17885$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
17886
17887
7083c021 17888$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
17889
17890
7083c021 17891$as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
212380e3
AC
17892
17893
7083c021 17894$as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
17895
17896
7083c021 17897$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
17898
17899
7083c021 17900$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
17901
17902
7083c021 17903$as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
17904
17905
7083c021 17906$as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
17907
17908
7083c021 17909$as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
17910
17911
7083c021 17912$as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
17913
17914
7083c021 17915$as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
212380e3 17916
f589ec6f 17917
7083c021 17918$as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
2b428185
AC
17919
17920
7083c021 17921$as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
f589ec6f 17922
212380e3
AC
17923else
17924
7083c021 17925$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
212380e3
AC
17926
17927
7083c021 17928$as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
17929
17930
7083c021 17931$as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
17932
17933
7083c021 17934$as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
17935
17936
7083c021 17937$as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
212380e3
AC
17938
17939
7083c021 17940$as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
17941
17942
7083c021 17943$as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
17944
17945
7083c021 17946$as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
17947
17948
7083c021 17949$as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
17950
17951
7083c021 17952$as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
212380e3
AC
17953
17954
7083c021 17955$as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
212380e3
AC
17956
17957
7083c021 17958$as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
212380e3
AC
17959
17960
7083c021 17961$as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
17962
17963
7083c021 17964$as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
212380e3 17965
f589ec6f 17966
7083c021 17967$as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
2b428185
AC
17968
17969
7083c021 17970$as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
f589ec6f 17971
212380e3
AC
17972fi
17973
17974
631ef239 17975# Check whether --with-nicklen was given.
7083c021 17976if test "${with_nicklen+set}" = set; then :
631ef239 17977 withval=$with_nicklen;
aa769893 17978 if ! expr "$withval" + 0 >/dev/null 2>&1; then
b6d0720c 17979 as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5
aa769893 17980 fi
cf533739 17981 if test $withval -gt 50; then
212380e3 17982 NICKLEN=50
7083c021
AC
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
17984$as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
cf533739
JT
17985 elif test $withval -lt 9; then
17986 NICKLEN=9
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5
17988$as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;}
212380e3
AC
17989 else
17990 NICKLEN="$withval"
17991 fi
17992
17993else
cf533739 17994 NICKLEN=31
631ef239 17995fi
212380e3
AC
17996
17997
212380e3 17998
631ef239 17999# Check whether --with-topiclen was given.
7083c021 18000if test "${with_topiclen+set}" = set; then :
631ef239 18001 withval=$with_topiclen;
212380e3
AC
18002 if test $withval -ge 390; then
18003 TOPICLEN=390
7083c021
AC
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
18005$as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
212380e3
AC
18006 else
18007 TOPICLEN=$withval
18008 fi
18009
18010else
18011 TOPICLEN=390
212380e3
AC
18012fi
18013
212380e3
AC
18014
18015
18016cat >>confdefs.h <<_ACEOF
18017#define TOPICLEN ${TOPICLEN}
18018_ACEOF
18019
18020
18021cat >>confdefs.h <<_ACEOF
18022#define NICKLEN (${NICKLEN}+1)
18023_ACEOF
18024
18025
b676ea3b 18026shared_modules="yes"
212380e3 18027if test "$shared_modules" = yes; then
212380e3 18028 if test "$CC" = tcc -a "$TenDRA" = "no"; then
7083c021
AC
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
18030$as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
212380e3
AC
18031 shared_modules="no"
18032 fi
18033fi
18034
18035if test "$shared_modules" = yes; then
7083c021
AC
18036 DYNLINK_C=dynlink.c
18037 for ac_header in dlfcn.h
18038do :
18039 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
b6d0720c 18040if test "x$ac_cv_header_dlfcn_h" = xyes; then :
212380e3 18041 cat >>confdefs.h <<_ACEOF
7083c021 18042#define HAVE_DLFCN_H 1
212380e3
AC
18043_ACEOF
18044
18045fi
18046
18047done
18048
7083c021
AC
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
18050$as_echo_n "checking for library containing shl_load... " >&6; }
b6d0720c 18051if ${ac_cv_search_shl_load+:} false; then :
7083c021 18052 $as_echo_n "(cached) " >&6
212380e3
AC
18053else
18054 ac_func_search_save_LIBS=$LIBS
7083c021 18055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18056/* end confdefs.h. */
18057
631ef239
AC
18058/* Override any GCC internal prototype to avoid an error.
18059 Use char because int might match the return type of a GCC
18060 builtin and then its argument prototype would still apply. */
212380e3
AC
18061#ifdef __cplusplus
18062extern "C"
18063#endif
212380e3
AC
18064char shl_load ();
18065int
18066main ()
18067{
631ef239 18068return shl_load ();
212380e3
AC
18069 ;
18070 return 0;
18071}
18072_ACEOF
631ef239
AC
18073for ac_lib in '' dld; do
18074 if test -z "$ac_lib"; then
18075 ac_res="none required"
18076 else
18077 ac_res=-l$ac_lib
18078 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18079 fi
7083c021 18080 if ac_fn_c_try_link "$LINENO"; then :
631ef239 18081 ac_cv_search_shl_load=$ac_res
631ef239 18082fi
7083c021
AC
18083rm -f core conftest.err conftest.$ac_objext \
18084 conftest$ac_exeext
b6d0720c 18085 if ${ac_cv_search_shl_load+:} false; then :
631ef239 18086 break
212380e3 18087fi
631ef239 18088done
b6d0720c 18089if ${ac_cv_search_shl_load+:} false; then :
7083c021 18090
631ef239
AC
18091else
18092 ac_cv_search_shl_load=no
212380e3 18093fi
631ef239 18094rm conftest.$ac_ext
212380e3
AC
18095LIBS=$ac_func_search_save_LIBS
18096fi
7083c021
AC
18097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
18098$as_echo "$ac_cv_search_shl_load" >&6; }
631ef239 18099ac_res=$ac_cv_search_shl_load
7083c021 18100if test "$ac_res" != no; then :
631ef239 18101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
18102
18103
7083c021 18104$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
212380e3
AC
18105
18106 SUFFIX=".sl"
18107 MOD_TARGET=hpux_shared
18108 SEDOBJ="s/\.o/.sl/g"
18109
18110else
18111
7083c021
AC
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18113$as_echo_n "checking for library containing dlopen... " >&6; }
b6d0720c 18114if ${ac_cv_search_dlopen+:} false; then :
7083c021 18115 $as_echo_n "(cached) " >&6
212380e3
AC
18116else
18117 ac_func_search_save_LIBS=$LIBS
7083c021 18118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18119/* end confdefs.h. */
18120
631ef239
AC
18121/* Override any GCC internal prototype to avoid an error.
18122 Use char because int might match the return type of a GCC
18123 builtin and then its argument prototype would still apply. */
212380e3
AC
18124#ifdef __cplusplus
18125extern "C"
18126#endif
212380e3
AC
18127char dlopen ();
18128int
18129main ()
18130{
631ef239 18131return dlopen ();
212380e3
AC
18132 ;
18133 return 0;
18134}
18135_ACEOF
631ef239
AC
18136for ac_lib in '' dl c_r; do
18137 if test -z "$ac_lib"; then
18138 ac_res="none required"
18139 else
18140 ac_res=-l$ac_lib
18141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18142 fi
7083c021 18143 if ac_fn_c_try_link "$LINENO"; then :
631ef239 18144 ac_cv_search_dlopen=$ac_res
631ef239 18145fi
7083c021
AC
18146rm -f core conftest.err conftest.$ac_objext \
18147 conftest$ac_exeext
b6d0720c 18148 if ${ac_cv_search_dlopen+:} false; then :
631ef239 18149 break
212380e3 18150fi
631ef239 18151done
b6d0720c 18152if ${ac_cv_search_dlopen+:} false; then :
7083c021 18153
631ef239
AC
18154else
18155 ac_cv_search_dlopen=no
212380e3 18156fi
631ef239 18157rm conftest.$ac_ext
212380e3
AC
18158LIBS=$ac_func_search_save_LIBS
18159fi
7083c021
AC
18160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18161$as_echo "$ac_cv_search_dlopen" >&6; }
631ef239 18162ac_res=$ac_cv_search_dlopen
7083c021 18163if test "$ac_res" != no; then :
631ef239 18164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
18165
18166
7083c021 18167$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
212380e3
AC
18168
18169 SUFFIX=".so"
18170 MOD_TARGET=shared_modules
18171 SEDOBJ="s/\.o/.so/g"
18172 if test "$AppleGCC" = yes; then
7083c021
AC
18173 for ac_header in mach-o/dyld.h
18174do :
18175 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
b6d0720c 18176if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
212380e3 18177 cat >>confdefs.h <<_ACEOF
7083c021 18178#define HAVE_MACH_O_DYLD_H 1
212380e3
AC
18179_ACEOF
18180
18181fi
18182
18183done
18184
18185 fi
7083c021 18186 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
b6d0720c 18187if test "x$ac_cv_func_dlsym" = xyes; then :
631ef239 18188
212380e3
AC
18189else
18190
7083c021
AC
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
18192$as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
212380e3
AC
18193 shared_modules=no
18194
18195fi
18196
7083c021
AC
18197 for ac_func in dlfunc
18198do :
18199 ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc"
b6d0720c 18200if test "x$ac_cv_func_dlfunc" = xyes; then :
212380e3 18201 cat >>confdefs.h <<_ACEOF
7083c021 18202#define HAVE_DLFUNC 1
212380e3
AC
18203_ACEOF
18204
18205fi
18206done
18207
18208
18209else
18210
18211 shared_modules=no
18212
18213fi
18214
18215
18216fi
18217
18218fi
18219
18220
18221cat >>confdefs.h <<_ACEOF
18222#define SHARED_SUFFIX "$SUFFIX"
18223_ACEOF
18224
18225
18226if test "$shared_modules" = yes; then
18227 # The GNU linker requires the -export-dynamic option to make
18228 # all symbols visible in the dynamic symbol table.
18229 hold_ldflags=$LDFLAGS
7083c021
AC
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
18231$as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
212380e3 18232 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
7083c021 18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18234/* end confdefs.h. */
18235
18236int
18237main ()
18238{
18239int i;
18240 ;
18241 return 0;
18242}
18243_ACEOF
7083c021 18244if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
18245 found=yes
18246else
7083c021 18247 found=no
212380e3 18248fi
7083c021
AC
18249rm -f core conftest.err conftest.$ac_objext \
18250 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
18251 LDFLAGS=$hold_ldflags
18252
18253 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
18254 found="no, IRIX ld uses -B,dynamic"
18255 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
18256 fi
18257
18258 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
18259 found="no, AIX ld uses -G -brtl"
18260 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
18261 fi
18262
7083c021
AC
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
18264$as_echo "$found" >&6; }
212380e3
AC
18265
18266 if test "$found" = yes; then
18267 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
18268 fi
18269
7083c021
AC
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
18271$as_echo_n "checking for compiler option to produce PIC... " >&6; }
212380e3 18272 if test "$SGS" = "yes"; then
7083c021
AC
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
18274$as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
212380e3
AC
18275 PICFLAGS="-KPIC -DPIC -G"
18276 fi
18277
18278 if test "$AppleGCC" = "yes"; then
7083c021
AC
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
18280$as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
212380e3
AC
18281 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
18282 fi
18283 if test "$HPUX" = "yes" -a "$CC" != gcc; then
7083c021
AC
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
18285$as_echo "HP-UX cc: +z -r -q -n" >&6; }
212380e3 18286 PICFLAGS="+z -r -q -n -c"
7083c021
AC
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
18288$as_echo_n "checking if +ESfic is required on this platform... " >&6; }
212380e3
AC
18289
18290 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
7083c021
AC
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18292$as_echo "no" >&6; }
212380e3 18293 else
7083c021
AC
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18295$as_echo "yes" >&6; }
212380e3
AC
18296 PICFLAGS="$PICFLAGS +ESfic"
18297 fi
18298
18299 LDFLAGS="${LDFLAGS} -Wl,-E"
18300 fi
18301 if test "$Tru" = yes -a "$CC" != gcc; then
7083c021
AC
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
18303$as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
212380e3
AC
18304 PICFLAGS="-shared -expect_unresolved '*' "
18305 LDFLAGS="-call_shared"
18306 fi
18307 if test -z "$PICFLAGS"; then
18308 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7083c021
AC
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
18310$as_echo "gcc: -fPIC -DPIC -shared" >&6; }
212380e3
AC
18311 PICFLAGS="-fPIC -DPIC -shared"
18312 else
7083c021
AC
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18314$as_echo "no" >&6; }
212380e3
AC
18315 shared_modules=no
18316 fi
18317 fi
18318fi
18319
1a82970f
JT
18320# rpath, for finding libratbox.so at run time
18321hold_ldflags=$LDFLAGS
7083c021
AC
18322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
18323$as_echo_n "checking for the ld -rpath flag... " >&6; }
1a82970f 18324LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
7083c021 18325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1a82970f
JT
18326/* end confdefs.h. */
18327
18328int
18329main ()
18330{
18331int i;
18332 ;
18333 return 0;
18334}
18335_ACEOF
7083c021 18336if ac_fn_c_try_link "$LINENO"; then :
1a82970f
JT
18337 found=yes
18338else
7083c021 18339 found=no
1a82970f 18340fi
7083c021
AC
18341rm -f core conftest.err conftest.$ac_objext \
18342 conftest$ac_exeext conftest.$ac_ext
1a82970f 18343LDFLAGS=$hold_ldflags
7083c021
AC
18344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
18345$as_echo "$found" >&6; }
1a82970f
JT
18346if test "$found" = yes; then
18347 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
18348fi
18349
212380e3
AC
18350# This must be down here, or it will mess up checks like the ones
18351# for -Wl,-export-dynamic
18352# -- jilles
d2c5159a 18353CWARNS=""
631ef239 18354# Check whether --enable-warnings was given.
7083c021 18355if test "${enable_warnings+set}" = set; then :
631ef239 18356 enableval=$enable_warnings;
212380e3
AC
18357IRC_CFLAGS="$IRC_CFLAGS -O0"
18358CFLAGS="$IRC_CFLAGS"
18359
18360
7083c021
AC
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
18362$as_echo_n "checking GCC flag(s) -Wall... " >&6; }
212380e3
AC
18363 if test "${GCC-no}" = yes
18364 then
b6d0720c 18365 if ${charybdis_cv_c_gcc_w_all+:} false; then :
7083c021 18366 $as_echo_n "(cached) " >&6
212380e3
AC
18367else
18368
18369 oldcflags="${CFLAGS-}"
18370 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
7083c021 18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18372/* end confdefs.h. */
18373
18374#include <string.h>
18375#include <stdio.h>
18376int main(void);
18377
18378int
18379main ()
18380{
18381
b1fc1658 18382 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18383
18384 ;
18385 return 0;
18386}
18387_ACEOF
7083c021 18388if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18389 charybdis_cv_c_gcc_w_all=yes
18390else
7083c021 18391 charybdis_cv_c_gcc_w_all=no
212380e3 18392fi
631ef239 18393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18394 CFLAGS="${oldcflags}"
18395fi
18396
18397 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
18398 CWARNS="${CWARNS}-Wall "
7083c021
AC
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18400$as_echo "ok" >&6; }
212380e3
AC
18401 else
18402 charybdis_cv_c_gcc_w_all=''
7083c021
AC
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18404$as_echo "no" >&6; }
212380e3
AC
18405 fi
18406 else
7083c021
AC
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18408$as_echo "no" >&6; }
212380e3
AC
18409 fi
18410
18411
7083c021
AC
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
18413$as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
212380e3
AC
18414 if test "${GCC-no}" = yes
18415 then
b6d0720c 18416 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then :
7083c021 18417 $as_echo_n "(cached) " >&6
212380e3
AC
18418else
18419
18420 oldcflags="${CFLAGS-}"
18421 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
7083c021 18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18423/* end confdefs.h. */
18424
18425#include <string.h>
18426#include <stdio.h>
18427int main(void);
18428
18429int
18430main ()
18431{
18432
b1fc1658 18433 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18434
18435 ;
18436 return 0;
18437}
18438_ACEOF
7083c021 18439if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18440 charybdis_cv_c_gcc_w_pointer_arith=yes
18441else
7083c021 18442 charybdis_cv_c_gcc_w_pointer_arith=no
212380e3 18443fi
631ef239 18444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18445 CFLAGS="${oldcflags}"
18446fi
18447
18448 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
18449 CWARNS="${CWARNS}-Wpointer-arith "
7083c021
AC
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18451$as_echo "ok" >&6; }
212380e3
AC
18452 else
18453 charybdis_cv_c_gcc_w_pointer_arith=''
7083c021
AC
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18455$as_echo "no" >&6; }
212380e3
AC
18456 fi
18457 else
7083c021
AC
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18459$as_echo "no" >&6; }
212380e3
AC
18460 fi
18461
18462
7083c021
AC
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
18464$as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
212380e3
AC
18465 if test "${GCC-no}" = yes
18466 then
b6d0720c 18467 if ${charybdis_cv_c_gcc_w_implicit+:} false; then :
7083c021 18468 $as_echo_n "(cached) " >&6
212380e3
AC
18469else
18470
18471 oldcflags="${CFLAGS-}"
18472 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
7083c021 18473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18474/* end confdefs.h. */
18475
18476#include <string.h>
18477#include <stdio.h>
18478int main(void);
18479
18480int
18481main ()
18482{
18483
b1fc1658 18484 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18485
18486 ;
18487 return 0;
18488}
18489_ACEOF
7083c021 18490if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18491 charybdis_cv_c_gcc_w_implicit=yes
18492else
7083c021 18493 charybdis_cv_c_gcc_w_implicit=no
212380e3 18494fi
631ef239 18495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18496 CFLAGS="${oldcflags}"
18497fi
18498
18499 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
18500 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
7083c021
AC
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18502$as_echo "ok" >&6; }
212380e3
AC
18503 else
18504 charybdis_cv_c_gcc_w_implicit=''
7083c021
AC
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18506$as_echo "no" >&6; }
212380e3
AC
18507 fi
18508 else
7083c021
AC
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18510$as_echo "no" >&6; }
212380e3
AC
18511 fi
18512
18513
7083c021
AC
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
18515$as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
212380e3
AC
18516 if test "${GCC-no}" = yes
18517 then
b6d0720c 18518 if ${charybdis_cv_c_gcc_w_cast_align+:} false; then :
7083c021 18519 $as_echo_n "(cached) " >&6
212380e3
AC
18520else
18521
18522 oldcflags="${CFLAGS-}"
18523 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
7083c021 18524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18525/* end confdefs.h. */
18526
18527#include <string.h>
18528#include <stdio.h>
18529int main(void);
18530
18531int
18532main ()
18533{
18534
b1fc1658 18535 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
7083c021
AC
18536
18537 ;
18538 return 0;
18539}
18540_ACEOF
18541if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18542 charybdis_cv_c_gcc_w_cast_align=yes
18543else
7083c021 18544 charybdis_cv_c_gcc_w_cast_align=no
212380e3 18545fi
631ef239 18546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18547 CFLAGS="${oldcflags}"
18548fi
18549
18550 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
18551 CWARNS="${CWARNS}-Wcast-align "
7083c021
AC
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18553$as_echo "ok" >&6; }
212380e3
AC
18554 else
18555 charybdis_cv_c_gcc_w_cast_align=''
7083c021
AC
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18557$as_echo "no" >&6; }
212380e3
AC
18558 fi
18559 else
7083c021
AC
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18561$as_echo "no" >&6; }
212380e3
AC
18562 fi
18563
18564
7083c021
AC
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
18566$as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
212380e3
AC
18567 if test "${GCC-no}" = yes
18568 then
b6d0720c 18569 if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then :
7083c021 18570 $as_echo_n "(cached) " >&6
212380e3
AC
18571else
18572
18573 oldcflags="${CFLAGS-}"
18574 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
7083c021 18575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18576/* end confdefs.h. */
18577
18578#include <string.h>
18579#include <stdio.h>
18580int main(void);
18581
18582int
18583main ()
18584{
18585
b1fc1658 18586 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18587
18588 ;
18589 return 0;
18590}
18591_ACEOF
7083c021 18592if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18593 charybdis_cv_c_gcc_w_cast_qual=yes
18594else
7083c021 18595 charybdis_cv_c_gcc_w_cast_qual=no
212380e3 18596fi
631ef239 18597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18598 CFLAGS="${oldcflags}"
18599fi
18600
18601 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
18602 CWARNS="${CWARNS}-Wcast-qual "
7083c021
AC
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18604$as_echo "ok" >&6; }
212380e3
AC
18605 else
18606 charybdis_cv_c_gcc_w_cast_qual=''
7083c021
AC
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18608$as_echo "no" >&6; }
212380e3
AC
18609 fi
18610 else
7083c021
AC
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18612$as_echo "no" >&6; }
212380e3
AC
18613 fi
18614
18615
7083c021
AC
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
18617$as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
d2c5159a
JT
18618 if test "${GCC-no}" = yes
18619 then
b6d0720c 18620 if ${charybdis_cv_c_gcc_w_write_strings+:} false; then :
7083c021 18621 $as_echo_n "(cached) " >&6
d2c5159a
JT
18622else
18623
18624 oldcflags="${CFLAGS-}"
18625 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
7083c021 18626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d2c5159a
JT
18627/* end confdefs.h. */
18628
18629#include <string.h>
18630#include <stdio.h>
18631int main(void);
18632
18633int
18634main ()
18635{
18636
18637 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
18638
18639 ;
18640 return 0;
18641}
18642_ACEOF
7083c021 18643if ac_fn_c_try_compile "$LINENO"; then :
bbe58888 18644 charybdis_cv_c_gcc_w_write_strings=yes
d2c5159a 18645else
7083c021 18646 charybdis_cv_c_gcc_w_write_strings=no
d2c5159a 18647fi
d2c5159a
JT
18648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18649 CFLAGS="${oldcflags}"
18650fi
18651
bbe58888 18652 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
d2c5159a 18653 CWARNS="${CWARNS}-Wwrite-strings "
7083c021
AC
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18655$as_echo "ok" >&6; }
d2c5159a 18656 else
bbe58888 18657 charybdis_cv_c_gcc_w_write_strings=''
7083c021
AC
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18659$as_echo "no" >&6; }
bbe58888
VY
18660 fi
18661 else
7083c021
AC
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18663$as_echo "no" >&6; }
bbe58888
VY
18664 fi
18665
18666
7083c021
AC
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
18668$as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
bbe58888
VY
18669 if test "${GCC-no}" = yes
18670 then
b6d0720c 18671 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then :
7083c021 18672 $as_echo_n "(cached) " >&6
bbe58888
VY
18673else
18674
18675 oldcflags="${CFLAGS-}"
18676 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
7083c021 18677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bbe58888
VY
18678/* end confdefs.h. */
18679
18680#include <string.h>
18681#include <stdio.h>
18682int main(void);
18683
18684int
18685main ()
18686{
18687
18688 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
18689
18690 ;
18691 return 0;
18692}
18693_ACEOF
7083c021 18694if ac_fn_c_try_compile "$LINENO"; then :
bbe58888
VY
18695 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
18696else
7083c021 18697 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
bbe58888 18698fi
bbe58888
VY
18699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18700 CFLAGS="${oldcflags}"
18701fi
18702
18703 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
18704 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
7083c021
AC
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18706$as_echo "ok" >&6; }
bbe58888
VY
18707 else
18708 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
7083c021
AC
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18710$as_echo "no" >&6; }
d2c5159a
JT
18711 fi
18712 else
7083c021
AC
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18714$as_echo "no" >&6; }
d2c5159a
JT
18715 fi
18716
18717
7083c021
AC
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
18719$as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
212380e3
AC
18720 if test "${GCC-no}" = yes
18721 then
b6d0720c 18722 if ${charybdis_cv_c_gcc_prototypes+:} false; then :
7083c021 18723 $as_echo_n "(cached) " >&6
212380e3
AC
18724else
18725
18726 oldcflags="${CFLAGS-}"
18727 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
7083c021 18728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18729/* end confdefs.h. */
18730
18731#include <string.h>
18732#include <stdio.h>
18733int main(void);
18734
18735int
18736main ()
18737{
18738
b1fc1658 18739 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18740
18741 ;
18742 return 0;
18743}
18744_ACEOF
7083c021 18745if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18746 charybdis_cv_c_gcc_prototypes=yes
18747else
7083c021 18748 charybdis_cv_c_gcc_prototypes=no
212380e3 18749fi
631ef239 18750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18751 CFLAGS="${oldcflags}"
18752fi
18753
18754 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
18755 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
7083c021
AC
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18757$as_echo "ok" >&6; }
212380e3
AC
18758 else
18759 charybdis_cv_c_gcc_prototypes=''
7083c021
AC
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18761$as_echo "no" >&6; }
212380e3
AC
18762 fi
18763 else
7083c021
AC
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18765$as_echo "no" >&6; }
212380e3
AC
18766 fi
18767
18768
7083c021
AC
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
18770$as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
212380e3
AC
18771 if test "${GCC-no}" = yes
18772 then
b6d0720c 18773 if ${charybdis_cv_c_gcc_parenthesis+:} false; then :
7083c021 18774 $as_echo_n "(cached) " >&6
212380e3
AC
18775else
18776
18777 oldcflags="${CFLAGS-}"
18778 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
7083c021 18779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18780/* end confdefs.h. */
18781
18782#include <string.h>
18783#include <stdio.h>
18784int main(void);
18785
18786int
18787main ()
18788{
18789
b1fc1658 18790 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18791
18792 ;
18793 return 0;
18794}
18795_ACEOF
7083c021 18796if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18797 charybdis_cv_c_gcc_parenthesis=yes
18798else
7083c021 18799 charybdis_cv_c_gcc_parenthesis=no
212380e3 18800fi
631ef239 18801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18802 CFLAGS="${oldcflags}"
18803fi
18804
18805 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
18806 CWARNS="${CWARNS}-Wparenthesis "
7083c021
AC
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18808$as_echo "ok" >&6; }
212380e3
AC
18809 else
18810 charybdis_cv_c_gcc_parenthesis=''
7083c021
AC
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18812$as_echo "no" >&6; }
212380e3
AC
18813 fi
18814 else
7083c021
AC
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18816$as_echo "no" >&6; }
212380e3
AC
18817 fi
18818
18819
7083c021
AC
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
18821$as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
212380e3
AC
18822 if test "${GCC-no}" = yes
18823 then
b6d0720c 18824 if ${charybdis_cv_c_gcc_w+:} false; then :
7083c021 18825 $as_echo_n "(cached) " >&6
212380e3
AC
18826else
18827
18828 oldcflags="${CFLAGS-}"
18829 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
7083c021 18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18831/* end confdefs.h. */
18832
18833#include <string.h>
18834#include <stdio.h>
18835int main(void);
18836
18837int
18838main ()
18839{
18840
b1fc1658 18841 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18842
18843 ;
18844 return 0;
18845}
18846_ACEOF
7083c021 18847if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18848 charybdis_cv_c_gcc_w=yes
18849else
7083c021 18850 charybdis_cv_c_gcc_w=no
212380e3 18851fi
631ef239 18852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18853 CFLAGS="${oldcflags}"
18854fi
18855
18856 if test "x$charybdis_cv_c_gcc_w" = xyes; then
18857 CWARNS="${CWARNS}-W -Wno-unused "
7083c021
AC
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18859$as_echo "ok" >&6; }
212380e3
AC
18860 else
18861 charybdis_cv_c_gcc_w=''
7083c021
AC
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18863$as_echo "no" >&6; }
212380e3
AC
18864 fi
18865 else
7083c021
AC
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18867$as_echo "no" >&6; }
212380e3
AC
18868 fi
18869
18870
7083c021
AC
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
18872$as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
212380e3
AC
18873 if test "${GCC-no}" = yes
18874 then
b6d0720c 18875 if ${charybdis_cv_c_gcc_w_extra+:} false; then :
7083c021 18876 $as_echo_n "(cached) " >&6
212380e3
AC
18877else
18878
18879 oldcflags="${CFLAGS-}"
18880 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
7083c021 18881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18882/* end confdefs.h. */
18883
18884#include <string.h>
18885#include <stdio.h>
18886int main(void);
18887
18888int
18889main ()
18890{
18891
b1fc1658 18892 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18893
18894 ;
18895 return 0;
18896}
18897_ACEOF
7083c021 18898if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18899 charybdis_cv_c_gcc_w_extra=yes
18900else
7083c021 18901 charybdis_cv_c_gcc_w_extra=no
212380e3 18902fi
631ef239 18903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18904 CFLAGS="${oldcflags}"
18905fi
18906
18907 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
18908 CWARNS="${CWARNS}-Wextra "
7083c021
AC
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18910$as_echo "ok" >&6; }
212380e3
AC
18911 else
18912 charybdis_cv_c_gcc_w_extra=''
7083c021
AC
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18914$as_echo "no" >&6; }
212380e3
AC
18915 fi
18916 else
7083c021
AC
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18918$as_echo "no" >&6; }
212380e3
AC
18919 fi
18920
18921
7083c021
AC
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
18923$as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
212380e3
AC
18924 if test "${GCC-no}" = yes
18925 then
b6d0720c 18926 if ${charybdis_cv_c_gcc_w_shadow+:} false; then :
7083c021 18927 $as_echo_n "(cached) " >&6
212380e3
AC
18928else
18929
18930 oldcflags="${CFLAGS-}"
18931 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
7083c021 18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18933/* end confdefs.h. */
18934
18935#include <string.h>
18936#include <stdio.h>
18937int main(void);
18938
18939int
18940main ()
18941{
18942
b1fc1658 18943 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18944
18945 ;
18946 return 0;
18947}
18948_ACEOF
7083c021 18949if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18950 charybdis_cv_c_gcc_w_shadow=yes
18951else
7083c021 18952 charybdis_cv_c_gcc_w_shadow=no
212380e3 18953fi
631ef239 18954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18955 CFLAGS="${oldcflags}"
18956fi
18957
18958 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
18959 CWARNS="${CWARNS}-Wshadow "
7083c021
AC
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18961$as_echo "ok" >&6; }
212380e3
AC
18962 else
18963 charybdis_cv_c_gcc_w_shadow=''
7083c021
AC
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18965$as_echo "no" >&6; }
212380e3
AC
18966 fi
18967 else
7083c021
AC
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18969$as_echo "no" >&6; }
212380e3
AC
18970 fi
18971
18972
7083c021
AC
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
18974$as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
212380e3
AC
18975 if test "${GCC-no}" = yes
18976 then
b6d0720c 18977 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then :
7083c021 18978 $as_echo_n "(cached) " >&6
212380e3
AC
18979else
18980
18981 oldcflags="${CFLAGS-}"
18982 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
7083c021 18983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18984/* end confdefs.h. */
18985
18986#include <string.h>
18987#include <stdio.h>
18988int main(void);
18989
18990int
18991main ()
18992{
18993
b1fc1658 18994 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18995
18996 ;
18997 return 0;
18998}
18999_ACEOF
7083c021 19000if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
19001 charybdis_cv_c_gcc_w_missing_noreturn=yes
19002else
7083c021 19003 charybdis_cv_c_gcc_w_missing_noreturn=no
212380e3 19004fi
631ef239 19005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
19006 CFLAGS="${oldcflags}"
19007fi
19008
19009 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
19010 CWARNS="${CWARNS}-Wmissing-noreturn "
7083c021
AC
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19012$as_echo "ok" >&6; }
212380e3
AC
19013 else
19014 charybdis_cv_c_gcc_w_missing_noreturn=''
7083c021
AC
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19016$as_echo "no" >&6; }
212380e3
AC
19017 fi
19018 else
7083c021
AC
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19020$as_echo "no" >&6; }
212380e3
AC
19021 fi
19022
19023
7083c021
AC
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
19025$as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
212380e3
AC
19026 if test "${GCC-no}" = yes
19027 then
b6d0720c 19028 if ${charybdis_cv_c_gcc_w_undef+:} false; then :
7083c021 19029 $as_echo_n "(cached) " >&6
212380e3
AC
19030else
19031
19032 oldcflags="${CFLAGS-}"
19033 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
7083c021 19034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
19035/* end confdefs.h. */
19036
19037#include <string.h>
19038#include <stdio.h>
19039int main(void);
19040
19041int
19042main ()
19043{
19044
b1fc1658 19045 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
19046
19047 ;
19048 return 0;
19049}
19050_ACEOF
7083c021 19051if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
19052 charybdis_cv_c_gcc_w_undef=yes
19053else
7083c021 19054 charybdis_cv_c_gcc_w_undef=no
212380e3 19055fi
631ef239 19056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
19057 CFLAGS="${oldcflags}"
19058fi
19059
19060 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
19061 CWARNS="${CWARNS}-Wundef "
7083c021
AC
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19063$as_echo "ok" >&6; }
212380e3
AC
19064 else
19065 charybdis_cv_c_gcc_w_undef=''
7083c021
AC
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19067$as_echo "no" >&6; }
212380e3
AC
19068 fi
19069 else
7083c021
AC
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19071$as_echo "no" >&6; }
212380e3
AC
19072 fi
19073
19074
7083c021
AC
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
19076$as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
212380e3
AC
19077 if test "${GCC-no}" = yes
19078 then
b6d0720c 19079 if ${charybdis_cv_c_gcc_w_packed+:} false; then :
7083c021 19080 $as_echo_n "(cached) " >&6
212380e3
AC
19081else
19082
19083 oldcflags="${CFLAGS-}"
19084 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
7083c021 19085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
19086/* end confdefs.h. */
19087
19088#include <string.h>
19089#include <stdio.h>
19090int main(void);
19091
19092int
19093main ()
19094{
19095
b1fc1658 19096 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
19097
19098 ;
19099 return 0;
19100}
19101_ACEOF
7083c021 19102if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
19103 charybdis_cv_c_gcc_w_packed=yes
19104else
7083c021 19105 charybdis_cv_c_gcc_w_packed=no
212380e3 19106fi
631ef239 19107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
19108 CFLAGS="${oldcflags}"
19109fi
19110
19111 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
19112 CWARNS="${CWARNS}-Wpacked "
7083c021
AC
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19114$as_echo "ok" >&6; }
212380e3
AC
19115 else
19116 charybdis_cv_c_gcc_w_packed=''
7083c021
AC
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19118$as_echo "no" >&6; }
212380e3
AC
19119 fi
19120 else
7083c021
AC
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19122$as_echo "no" >&6; }
212380e3
AC
19123 fi
19124
19125
7083c021
AC
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
19127$as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
212380e3
AC
19128 if test "${GCC-no}" = yes
19129 then
b6d0720c 19130 if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then :
7083c021 19131 $as_echo_n "(cached) " >&6
212380e3
AC
19132else
19133
19134 oldcflags="${CFLAGS-}"
19135 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
7083c021 19136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
19137/* end confdefs.h. */
19138
19139#include <string.h>
19140#include <stdio.h>
19141int main(void);
19142
19143int
19144main ()
19145{
19146
b1fc1658 19147 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
19148
19149 ;
19150 return 0;
19151}
19152_ACEOF
7083c021 19153if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
19154 charybdis_cv_c_gcc_w_nested_externs=yes
19155else
7083c021 19156 charybdis_cv_c_gcc_w_nested_externs=no
212380e3 19157fi
631ef239 19158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
19159 CFLAGS="${oldcflags}"
19160fi
19161
19162 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
19163 CWARNS="${CWARNS}-Wnested-externs "
7083c021
AC
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19165$as_echo "ok" >&6; }
212380e3
AC
19166 else
19167 charybdis_cv_c_gcc_w_nested_externs=''
7083c021
AC
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19169$as_echo "no" >&6; }
212380e3
AC
19170 fi
19171 else
7083c021
AC
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19173$as_echo "no" >&6; }
212380e3
AC
19174 fi
19175
19176
7083c021
AC
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
19178$as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
212380e3
AC
19179 if test "${GCC-no}" = yes
19180 then
b6d0720c 19181 if ${charybdis_cv_c_gcc_w_unused+:} false; then :
7083c021 19182 $as_echo_n "(cached) " >&6
212380e3
AC
19183else
19184
19185 oldcflags="${CFLAGS-}"
19186 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
7083c021 19187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
19188/* end confdefs.h. */
19189
19190#include <string.h>
19191#include <stdio.h>
19192int main(void);
19193
19194int
19195main ()
19196{
19197
b1fc1658 19198 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
19199
19200 ;
19201 return 0;
19202}
19203_ACEOF
7083c021 19204if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
19205 charybdis_cv_c_gcc_w_unused=yes
19206else
7083c021 19207 charybdis_cv_c_gcc_w_unused=no
212380e3 19208fi
631ef239 19209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
19210 CFLAGS="${oldcflags}"
19211fi
19212
19213 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
19214 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
7083c021
AC
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19216$as_echo "ok" >&6; }
212380e3
AC
19217 else
19218 charybdis_cv_c_gcc_w_unused=''
7083c021
AC
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19220$as_echo "no" >&6; }
212380e3
AC
19221 fi
19222 else
7083c021
AC
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19224$as_echo "no" >&6; }
212380e3
AC
19225 fi
19226
19227
7083c021
AC
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
19229$as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
212380e3
AC
19230 if test "${GCC-no}" = yes
19231 then
b6d0720c 19232 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then :
7083c021 19233 $as_echo_n "(cached) " >&6
212380e3
AC
19234else
19235
19236 oldcflags="${CFLAGS-}"
19237 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
7083c021 19238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
19239/* end confdefs.h. */
19240
19241#include <string.h>
19242#include <stdio.h>
19243int main(void);
19244
19245int
19246main ()
19247{
19248
b1fc1658 19249 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
19250
19251 ;
19252 return 0;
19253}
19254_ACEOF
7083c021 19255if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
19256 charybdis_cv_c_gcc_w_redundant_decls=yes
19257else
7083c021 19258 charybdis_cv_c_gcc_w_redundant_decls=no
212380e3 19259fi
631ef239 19260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
19261 CFLAGS="${oldcflags}"
19262fi
19263
19264 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
19265 CWARNS="${CWARNS}-Wredundant-decls "
7083c021
AC
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19267$as_echo "ok" >&6; }
212380e3
AC
19268 else
19269 charybdis_cv_c_gcc_w_redundant_decls=''
7083c021
AC
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19271$as_echo "no" >&6; }
212380e3
AC
19272 fi
19273 else
7083c021
AC
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19275$as_echo "no" >&6; }
212380e3
AC
19276 fi
19277
19278
7083c021
AC
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
19280$as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
212380e3
AC
19281 if test "${GCC-no}" = yes
19282 then
b6d0720c 19283 if ${charybdis_cv_c_gcc_w_float_equal+:} false; then :
7083c021 19284 $as_echo_n "(cached) " >&6
212380e3
AC
19285else
19286
19287 oldcflags="${CFLAGS-}"
19288 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
7083c021 19289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
19290/* end confdefs.h. */
19291
19292#include <string.h>
19293#include <stdio.h>
19294int main(void);
19295
19296int
19297main ()
19298{
19299
b1fc1658 19300 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
19301
19302 ;
19303 return 0;
19304}
19305_ACEOF
7083c021 19306if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
19307 charybdis_cv_c_gcc_w_float_equal=yes
19308else
7083c021 19309 charybdis_cv_c_gcc_w_float_equal=no
212380e3 19310fi
631ef239 19311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
19312 CFLAGS="${oldcflags}"
19313fi
19314
19315 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
19316 CWARNS="${CWARNS}-Wfloat-equal "
7083c021
AC
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19318$as_echo "ok" >&6; }
212380e3
AC
19319 else
19320 charybdis_cv_c_gcc_w_float_equal=''
7083c021
AC
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19322$as_echo "no" >&6; }
212380e3
AC
19323 fi
19324 else
7083c021
AC
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19326$as_echo "no" >&6; }
212380e3
AC
19327 fi
19328
19329
7083c021
AC
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
19331$as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
212380e3
AC
19332 if test "${GCC-no}" = yes
19333 then
b6d0720c 19334 if ${charybdis_cv_c_gcc_w_format+:} false; then :
7083c021 19335 $as_echo_n "(cached) " >&6
212380e3
AC
19336else
19337
19338 oldcflags="${CFLAGS-}"
4a584d41 19339 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
7083c021 19340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
19341/* end confdefs.h. */
19342
19343#include <string.h>
19344#include <stdio.h>
19345int main(void);
19346
19347int
19348main ()
19349{
7083c021
AC
19350
19351 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
19352
212380e3
AC
19353 ;
19354 return 0;
19355}
19356_ACEOF
7083c021
AC
19357if ac_fn_c_try_compile "$LINENO"; then :
19358 charybdis_cv_c_gcc_w_format=yes
212380e3 19359else
7083c021
AC
19360 charybdis_cv_c_gcc_w_format=no
19361fi
19362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19363 CFLAGS="${oldcflags}"
19364fi
19365
19366 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
19367 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19369$as_echo "ok" >&6; }
19370 else
19371 charybdis_cv_c_gcc_w_format=''
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19373$as_echo "no" >&6; }
19374 fi
19375 else
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19377$as_echo "no" >&6; }
19378 fi
19379
19380
19381IRC_CFLAGS="$CFLAGS"
212380e3 19382
212380e3 19383fi
631ef239 19384
7083c021
AC
19385
19386if test "$shared_modules" = no; then
19387 DYNLINK_C=""
19388 MOD_TARGET="libmodules.a"
19389 MODULES_LIBS="../modules/libmodules.a"
19390 SEDOBJ=""
19391
19392$as_echo "#define STATIC_MODULES 1" >>confdefs.h
19393
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
19395$as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
212380e3 19396fi
7083c021
AC
19397
19398if test "$shared_modules" = yes; then
19399
19400 ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist"
b6d0720c 19401if test "x$ac_cv_func_nlist" = xyes; then :
7083c021 19402
212380e3 19403else
7083c021
AC
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
19405$as_echo_n "checking for nlist in -ldl... " >&6; }
b6d0720c 19406if ${ac_cv_lib_dl_nlist+:} false; then :
7083c021 19407 $as_echo_n "(cached) " >&6
212380e3
AC
19408else
19409 ac_check_lib_save_LIBS=$LIBS
19410LIBS="-ldl $LIBS"
7083c021 19411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
19412/* end confdefs.h. */
19413
631ef239
AC
19414/* Override any GCC internal prototype to avoid an error.
19415 Use char because int might match the return type of a GCC
19416 builtin and then its argument prototype would still apply. */
212380e3
AC
19417#ifdef __cplusplus
19418extern "C"
19419#endif
212380e3
AC
19420char nlist ();
19421int
19422main ()
19423{
631ef239 19424return nlist ();
212380e3
AC
19425 ;
19426 return 0;
19427}
19428_ACEOF
7083c021 19429if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
19430 ac_cv_lib_dl_nlist=yes
19431else
7083c021 19432 ac_cv_lib_dl_nlist=no
212380e3 19433fi
7083c021
AC
19434rm -f core conftest.err conftest.$ac_objext \
19435 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
19436LIBS=$ac_check_lib_save_LIBS
19437fi
7083c021
AC
19438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
19439$as_echo "$ac_cv_lib_dl_nlist" >&6; }
b6d0720c 19440if test "x$ac_cv_lib_dl_nlist" = xyes; then :
212380e3
AC
19441 nlist_lib="-ldl"
19442else
7083c021
AC
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
19444$as_echo_n "checking for nlist in -lelf... " >&6; }
b6d0720c 19445if ${ac_cv_lib_elf_nlist+:} false; then :
7083c021 19446 $as_echo_n "(cached) " >&6
212380e3
AC
19447else
19448 ac_check_lib_save_LIBS=$LIBS
19449LIBS="-lelf $LIBS"
7083c021 19450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
19451/* end confdefs.h. */
19452
631ef239
AC
19453/* Override any GCC internal prototype to avoid an error.
19454 Use char because int might match the return type of a GCC
19455 builtin and then its argument prototype would still apply. */
212380e3
AC
19456#ifdef __cplusplus
19457extern "C"
19458#endif
212380e3
AC
19459char nlist ();
19460int
19461main ()
19462{
631ef239 19463return nlist ();
212380e3
AC
19464 ;
19465 return 0;
19466}
19467_ACEOF
7083c021 19468if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
19469 ac_cv_lib_elf_nlist=yes
19470else
7083c021 19471 ac_cv_lib_elf_nlist=no
212380e3 19472fi
7083c021
AC
19473rm -f core conftest.err conftest.$ac_objext \
19474 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
19475LIBS=$ac_check_lib_save_LIBS
19476fi
7083c021
AC
19477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
19478$as_echo "$ac_cv_lib_elf_nlist" >&6; }
b6d0720c 19479if test "x$ac_cv_lib_elf_nlist" = xyes; then :
212380e3
AC
19480 nlist_lib="-lelf"
19481fi
19482
19483
19484fi
19485
19486
19487fi
19488
19489
7083c021 19490 ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
b6d0720c 19491if test "x$ac_cv_header_libelf_nlist_h" = xyes; then :
212380e3
AC
19492 nlist_h="libelf/nlist.h"
19493fi
19494
19495
7083c021 19496 ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
b6d0720c 19497if test "x$ac_cv_header_elf_nlist_h" = xyes; then :
212380e3
AC
19498 nlist_h="elf/nlist.h"
19499fi
19500
19501
7083c021 19502 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
b6d0720c 19503if test "x$ac_cv_header_nlist_h" = xyes; then :
212380e3
AC
19504 nlist_h="nlist.h"
19505fi
19506
19507
19508 if test x"$nlist_h" = "x"; then
19509
19510cat >>confdefs.h <<_ACEOF
19511#define SYMBOL_PREFIX ""
19512_ACEOF
19513
19514 else
7083c021
AC
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
19516$as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
b6d0720c 19517 if ${symbol_underscores+:} false; then :
7083c021 19518 $as_echo_n "(cached) " >&6
212380e3
AC
19519else
19520
19521cat << EOF > conftest.c
19522#include <$nlist_h>
19523#include <stdio.h>
19524#include <stdlib.h>
19525void _modinit(void);
19526int main(int argc, char *argv[]) {
19527 int i;
19528 struct nlist nl[5];
19529
19530 /* fill the names in this way, so it'll work almost everywhere */
19531 nl[0].n_name = "_modinit";
19532 nl[1].n_name = "__modinit";
19533 nl[2].n_name = "___modinit";
19534 nl[3].n_name = "____modinit";
19535 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
19536
19537 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
19538 for(i = 0; i < 4; i++) {
19539 if(nl[i].n_value != NULL)
19540 {
19541 int j;
19542 for(j = 0; j < i; j++)
19543 printf("_");
19544 exit(i);
19545 }
19546 }
19547 exit(-1);
19548}
19549void _modinit(void) { return; }
19550EOF
19551 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
19552 symbol_underscores=`./conftest conftest`
7083c021
AC
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
19554$as_echo "$symbol_underscores" >&6; }
212380e3
AC
19555 $RM -f conftest conftest.c
19556
19557fi
19558
19559
19560cat >>confdefs.h <<_ACEOF
19561#define SYMBOL_PREFIX "${symbol_underscores}"
19562_ACEOF
19563
19564 fi
19565fi
19566
d2c5159a
JT
19567IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
19568
212380e3
AC
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582if test "$prefix" = "NONE"; then
19583
19584cat >>confdefs.h <<_ACEOF
19585#define IRCD_PREFIX "$ac_default_prefix"
19586_ACEOF
19587
19588
19589else
19590
19591
19592 prefix=`echo $prefix | sed 's/\/$//'`
19593
19594cat >>confdefs.h <<_ACEOF
19595#define IRCD_PREFIX "$prefix"
19596_ACEOF
19597
19598
19599fi
19600
2eff3833 19601ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile tools/genssl doc/Makefile help/Makefile"
9f9b7042 19602
2eff3833 19603ac_config_commands="$ac_config_commands tools/genssl_chmod"
212380e3
AC
19604
19605
19606cat >confcache <<\_ACEOF
19607# This file is a shell script that caches the results of configure
19608# tests run on this system so they can be shared between configure
19609# scripts and configure runs, see configure's option --config-cache.
19610# It is not useful on other systems. If it contains results you don't
19611# want to keep, you may remove or edit it.
19612#
19613# config.status only pays attention to the cache file if you give it
19614# the --recheck option to rerun configure.
19615#
19616# `ac_cv_env_foo' variables (set or unset) will be overridden when
19617# loading this file, other *unset* `ac_cv_foo' will be assigned the
19618# following values.
19619
19620_ACEOF
19621
19622# The following way of writing the cache mishandles newlines in values,
19623# but we know of no workaround that is simple, portable, and efficient.
631ef239 19624# So, we kill variables containing newlines.
212380e3
AC
19625# Ultrix sh set writes to stderr and can't be redirected directly,
19626# and sets the high bit in the cache file unless we assign to the vars.
631ef239
AC
19627(
19628 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19629 eval ac_val=\$$ac_var
19630 case $ac_val in #(
19631 *${as_nl}*)
19632 case $ac_var in #(
7083c021
AC
19633 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19634$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
631ef239
AC
19635 esac
19636 case $ac_var in #(
19637 _ | IFS | as_nl) ;; #(
7083c021
AC
19638 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19639 *) { eval $ac_var=; unset $ac_var;} ;;
631ef239
AC
19640 esac ;;
19641 esac
19642 done
19643
212380e3 19644 (set) 2>&1 |
631ef239
AC
19645 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19646 *${as_nl}ac_space=\ *)
7083c021
AC
19647 # `set' does not quote correctly, so add quotes: double-quote
19648 # substitution turns \\\\ into \\, and sed turns \\ into \.
212380e3
AC
19649 sed -n \
19650 "s/'/'\\\\''/g;
19651 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
631ef239 19652 ;; #(
212380e3
AC
19653 *)
19654 # `set' quotes correctly as required by POSIX, so do not add quotes.
631ef239 19655 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 19656 ;;
631ef239
AC
19657 esac |
19658 sort
19659) |
212380e3 19660 sed '
631ef239 19661 /^ac_cv_env_/b end
212380e3 19662 t clear
631ef239 19663 :clear
212380e3
AC
19664 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19665 t end
631ef239
AC
19666 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19667 :end' >>confcache
19668if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19669 if test -w "$cache_file"; then
b6d0720c 19670 if test "x$cache_file" != "x/dev/null"; then
7083c021
AC
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19672$as_echo "$as_me: updating cache $cache_file" >&6;}
b6d0720c
AC
19673 if test ! -f "$cache_file" || test -h "$cache_file"; then
19674 cat confcache >"$cache_file"
19675 else
19676 case $cache_file in #(
19677 */* | ?:*)
19678 mv -f confcache "$cache_file"$$ &&
19679 mv -f "$cache_file"$$ "$cache_file" ;; #(
19680 *)
19681 mv -f confcache "$cache_file" ;;
19682 esac
19683 fi
19684 fi
212380e3 19685 else
7083c021
AC
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19687$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
212380e3
AC
19688 fi
19689fi
19690rm -f confcache
19691
19692test "x$prefix" = xNONE && prefix=$ac_default_prefix
19693# Let make expand exec_prefix.
19694test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19695
212380e3
AC
19696DEFS=-DHAVE_CONFIG_H
19697
19698ac_libobjs=
19699ac_ltlibobjs=
b6d0720c 19700U=
212380e3
AC
19701for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19702 # 1. Remove the extension, and $U if already installed.
631ef239 19703 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7083c021 19704 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
631ef239
AC
19705 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19706 # will be set to the directory where LIBOBJS objects are built.
7083c021
AC
19707 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19708 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
212380e3
AC
19709done
19710LIBOBJS=$ac_libobjs
19711
19712LTLIBOBJS=$ac_ltlibobjs
19713
19714
c52df125
AC
19715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19716$as_echo_n "checking that generated files are newer than configure... " >&6; }
19717 if test -n "$am_sleep_pid"; then
19718 # Hide warnings about reused PIDs.
19719 wait $am_sleep_pid 2>/dev/null
19720 fi
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19722$as_echo "done" >&6; }
19723 if test -n "$EXEEXT"; then
19724 am__EXEEXT_TRUE=
19725 am__EXEEXT_FALSE='#'
19726else
19727 am__EXEEXT_TRUE='#'
19728 am__EXEEXT_FALSE=
19729fi
19730
19731if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19732 as_fn_error $? "conditional \"AMDEP\" was never defined.
19733Usually this means the macro was only invoked conditionally." "$LINENO" 5
19734fi
19735if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19736 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19737Usually this means the macro was only invoked conditionally." "$LINENO" 5
19738fi
19739if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
19740 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
19741Usually this means the macro was only invoked conditionally." "$LINENO" 5
19742fi
19743if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
19744 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
19745Usually this means the macro was only invoked conditionally." "$LINENO" 5
19746fi
19747LT_CONFIG_H=include/setup.h
19748
19749 _ltdl_libobjs=
19750 _ltdl_ltlibobjs=
19751 if test -n "$_LT_LIBOBJS"; then
19752 # Remove the extension.
19753 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
19754 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
19755 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
19756 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
19757 done
19758 fi
19759 ltdl_LIBOBJS=$_ltdl_libobjs
19760
19761 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
19762
19763
19764if test -z "${BUILD_LTDL_TRUE}" && test -z "${BUILD_LTDL_FALSE}"; then
19765 as_fn_error $? "conditional \"BUILD_LTDL\" was never defined.
19766Usually this means the macro was only invoked conditionally." "$LINENO" 5
19767fi
19768if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19769 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19770Usually this means the macro was only invoked conditionally." "$LINENO" 5
19771fi
212380e3 19772
7083c021
AC
19773
19774
b6d0720c 19775: "${CONFIG_STATUS=./config.status}"
7083c021 19776ac_write_fail=0
212380e3
AC
19777ac_clean_files_save=$ac_clean_files
19778ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7083c021
AC
19779{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19780$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19781as_write_fail=0
19782cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
212380e3
AC
19783#! $SHELL
19784# Generated by $as_me.
19785# Run this file to recreate the current configuration.
19786# Compiler output produced by configure, useful for debugging
19787# configure, is in config.log if it exists.
19788
19789debug=false
19790ac_cs_recheck=false
19791ac_cs_silent=false
212380e3 19792
7083c021
AC
19793SHELL=\${CONFIG_SHELL-$SHELL}
19794export SHELL
19795_ASEOF
19796cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19797## -------------------- ##
19798## M4sh Initialization. ##
19799## -------------------- ##
212380e3 19800
631ef239
AC
19801# Be more Bourne compatible
19802DUALCASE=1; export DUALCASE # for MKS sh
7083c021 19803if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
19804 emulate sh
19805 NULLCMD=:
7083c021 19806 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
19807 # is contrary to our usage. Disable this feature.
19808 alias -g '${1+"$@"}'='"$@"'
631ef239 19809 setopt NO_GLOB_SUBST
212380e3 19810else
7083c021
AC
19811 case `(set -o) 2>/dev/null` in #(
19812 *posix*) :
19813 set -o posix ;; #(
19814 *) :
19815 ;;
631ef239 19816esac
212380e3
AC
19817fi
19818
19819
7083c021
AC
19820as_nl='
19821'
19822export as_nl
19823# Printing a long string crashes Solaris 7 /usr/bin/printf.
19824as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19825as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19826as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19827# Prefer a ksh shell builtin over an external printf program on Solaris,
19828# but without wasting forks for bash or zsh.
19829if test -z "$BASH_VERSION$ZSH_VERSION" \
19830 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19831 as_echo='print -r --'
19832 as_echo_n='print -rn --'
19833elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19834 as_echo='printf %s\n'
19835 as_echo_n='printf %s'
19836else
19837 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19838 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19839 as_echo_n='/usr/ucb/echo -n'
631ef239 19840 else
7083c021
AC
19841 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19842 as_echo_n_body='eval
19843 arg=$1;
19844 case $arg in #(
19845 *"$as_nl"*)
19846 expr "X$arg" : "X\\(.*\\)$as_nl";
19847 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19848 esac;
19849 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19850 '
19851 export as_echo_n_body
19852 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 19853 fi
7083c021
AC
19854 export as_echo_body
19855 as_echo='sh -c $as_echo_body as_echo'
631ef239
AC
19856fi
19857
7083c021
AC
19858# The user is always right.
19859if test "${PATH_SEPARATOR+set}" != set; then
19860 PATH_SEPARATOR=:
19861 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19862 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19863 PATH_SEPARATOR=';'
19864 }
631ef239
AC
19865fi
19866
19867
19868# IFS
19869# We need space, tab and new line, in precisely that order. Quoting is
19870# there to prevent editors from complaining about space-tab.
19871# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19872# splitting by setting IFS to empty value.)
631ef239
AC
19873IFS=" "" $as_nl"
19874
19875# Find who we are. Look in the path if we contain no directory separator.
b6d0720c 19876as_myself=
7083c021 19877case $0 in #((
631ef239
AC
19878 *[\\/]* ) as_myself=$0 ;;
19879 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19880for as_dir in $PATH
19881do
19882 IFS=$as_save_IFS
19883 test -z "$as_dir" && as_dir=.
7083c021
AC
19884 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19885 done
631ef239
AC
19886IFS=$as_save_IFS
19887
19888 ;;
19889esac
19890# We did not find ourselves, most probably we were run as `sh COMMAND'
19891# in which case we are not to be found in the path.
19892if test "x$as_myself" = x; then
19893 as_myself=$0
19894fi
19895if test ! -f "$as_myself"; then
7083c021
AC
19896 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19897 exit 1
631ef239
AC
19898fi
19899
7083c021
AC
19900# Unset variables that we do not need and which cause bugs (e.g. in
19901# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19902# suppresses any "Segmentation fault" message there. '((' could
19903# trigger a bug in pdksh 5.2.14.
19904for as_var in BASH_ENV ENV MAIL MAILPATH
19905do eval test x\${$as_var+set} = xset \
19906 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 19907done
212380e3
AC
19908PS1='$ '
19909PS2='> '
19910PS4='+ '
19911
7083c021
AC
19912# NLS nuisances.
19913LC_ALL=C
19914export LC_ALL
19915LANGUAGE=C
19916export LANGUAGE
19917
19918# CDPATH.
19919(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19920
19921
b6d0720c
AC
19922# as_fn_error STATUS ERROR [LINENO LOG_FD]
19923# ----------------------------------------
7083c021
AC
19924# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19925# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b6d0720c 19926# script with STATUS, using 1 if that was 0.
7083c021
AC
19927as_fn_error ()
19928{
b6d0720c
AC
19929 as_status=$1; test $as_status -eq 0 && as_status=1
19930 if test "$4"; then
19931 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19932 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
212380e3 19933 fi
b6d0720c 19934 $as_echo "$as_me: error: $2" >&2
7083c021
AC
19935 as_fn_exit $as_status
19936} # as_fn_error
19937
19938
19939# as_fn_set_status STATUS
19940# -----------------------
19941# Set $? to STATUS, without forking.
19942as_fn_set_status ()
19943{
19944 return $1
19945} # as_fn_set_status
19946
19947# as_fn_exit STATUS
19948# -----------------
19949# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19950as_fn_exit ()
19951{
19952 set +e
19953 as_fn_set_status $1
19954 exit $1
19955} # as_fn_exit
19956
19957# as_fn_unset VAR
19958# ---------------
19959# Portably unset VAR.
19960as_fn_unset ()
19961{
19962 { eval $1=; unset $1;}
19963}
19964as_unset=as_fn_unset
19965# as_fn_append VAR VALUE
19966# ----------------------
19967# Append the text in VALUE to the end of the definition contained in VAR. Take
19968# advantage of any shell optimizations that allow amortized linear growth over
19969# repeated appends, instead of the typical quadratic growth present in naive
19970# implementations.
19971if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19972 eval 'as_fn_append ()
19973 {
19974 eval $1+=\$2
19975 }'
19976else
19977 as_fn_append ()
19978 {
19979 eval $1=\$$1\$2
19980 }
19981fi # as_fn_append
19982
19983# as_fn_arith ARG...
19984# ------------------
19985# Perform arithmetic evaluation on the ARGs, and store the result in the
19986# global $as_val. Take advantage of shells that can avoid forks. The arguments
19987# must be portable across $(()) and expr.
19988if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19989 eval 'as_fn_arith ()
19990 {
19991 as_val=$(( $* ))
19992 }'
19993else
19994 as_fn_arith ()
19995 {
19996 as_val=`expr "$@" || test $? -eq 1`
19997 }
19998fi # as_fn_arith
19999
212380e3 20000
631ef239
AC
20001if expr a : '\(a\)' >/dev/null 2>&1 &&
20002 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
20003 as_expr=expr
20004else
20005 as_expr=false
20006fi
20007
631ef239 20008if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
20009 as_basename=basename
20010else
20011 as_basename=false
20012fi
20013
7083c021
AC
20014if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20015 as_dirname=dirname
20016else
20017 as_dirname=false
20018fi
212380e3 20019
631ef239 20020as_me=`$as_basename -- "$0" ||
212380e3
AC
20021$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20022 X"$0" : 'X\(//\)$' \| \
631ef239 20023 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 20024$as_echo X/"$0" |
631ef239
AC
20025 sed '/^.*\/\([^/][^/]*\)\/*$/{
20026 s//\1/
20027 q
20028 }
20029 /^X\/\(\/\/\)$/{
20030 s//\1/
20031 q
20032 }
20033 /^X\/\(\/\).*/{
20034 s//\1/
20035 q
20036 }
20037 s/.*/./; q'`
212380e3 20038
7083c021
AC
20039# Avoid depending upon Character Ranges.
20040as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20041as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20042as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20043as_cr_digits='0123456789'
20044as_cr_alnum=$as_cr_Letters$as_cr_digits
631ef239
AC
20045
20046ECHO_C= ECHO_N= ECHO_T=
7083c021 20047case `echo -n x` in #(((((
631ef239 20048-n*)
7083c021 20049 case `echo 'xy\c'` in
631ef239 20050 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7083c021
AC
20051 xy) ECHO_C='\c';;
20052 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20053 ECHO_T=' ';;
631ef239
AC
20054 esac;;
20055*)
20056 ECHO_N='-n';;
212380e3
AC
20057esac
20058
212380e3 20059rm -f conf$$ conf$$.exe conf$$.file
631ef239
AC
20060if test -d conf$$.dir; then
20061 rm -f conf$$.dir/conf$$.file
20062else
20063 rm -f conf$$.dir
7083c021
AC
20064 mkdir conf$$.dir 2>/dev/null
20065fi
20066if (echo >conf$$.file) 2>/dev/null; then
20067 if ln -s conf$$.file conf$$ 2>/dev/null; then
20068 as_ln_s='ln -s'
20069 # ... but there are two gotchas:
20070 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20071 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2eff3833 20072 # In both cases, we have to default to `cp -pR'.
7083c021 20073 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2eff3833 20074 as_ln_s='cp -pR'
7083c021
AC
20075 elif ln conf$$.file conf$$ 2>/dev/null; then
20076 as_ln_s=ln
20077 else
2eff3833 20078 as_ln_s='cp -pR'
7083c021 20079 fi
212380e3 20080else
2eff3833 20081 as_ln_s='cp -pR'
212380e3 20082fi
631ef239
AC
20083rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20084rmdir conf$$.dir 2>/dev/null
212380e3 20085
7083c021
AC
20086
20087# as_fn_mkdir_p
20088# -------------
20089# Create "$as_dir" as a directory, including parents if necessary.
20090as_fn_mkdir_p ()
20091{
20092
20093 case $as_dir in #(
20094 -*) as_dir=./$as_dir;;
20095 esac
20096 test -d "$as_dir" || eval $as_mkdir_p || {
20097 as_dirs=
20098 while :; do
20099 case $as_dir in #(
20100 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20101 *) as_qdir=$as_dir;;
20102 esac
20103 as_dirs="'$as_qdir' $as_dirs"
20104 as_dir=`$as_dirname -- "$as_dir" ||
20105$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20106 X"$as_dir" : 'X\(//\)[^/]' \| \
20107 X"$as_dir" : 'X\(//\)$' \| \
20108 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20109$as_echo X"$as_dir" |
20110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20111 s//\1/
20112 q
20113 }
20114 /^X\(\/\/\)[^/].*/{
20115 s//\1/
20116 q
20117 }
20118 /^X\(\/\/\)$/{
20119 s//\1/
20120 q
20121 }
20122 /^X\(\/\).*/{
20123 s//\1/
20124 q
20125 }
20126 s/.*/./; q'`
20127 test -d "$as_dir" && break
20128 done
20129 test -z "$as_dirs" || eval "mkdir $as_dirs"
b6d0720c 20130 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
20131
20132
20133} # as_fn_mkdir_p
212380e3 20134if mkdir -p . 2>/dev/null; then
7083c021 20135 as_mkdir_p='mkdir -p "$as_dir"'
212380e3
AC
20136else
20137 test -d ./-p && rmdir ./-p
20138 as_mkdir_p=false
20139fi
20140
2eff3833
JT
20141
20142# as_fn_executable_p FILE
20143# -----------------------
20144# Test if FILE is an executable regular file.
20145as_fn_executable_p ()
20146{
20147 test -f "$1" && test -x "$1"
20148} # as_fn_executable_p
20149as_test_x='test -x'
20150as_executable_p=as_fn_executable_p
212380e3
AC
20151
20152# Sed expression to map a string onto a valid CPP name.
20153as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20154
20155# Sed expression to map a string onto a valid variable name.
20156as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20157
20158
212380e3 20159exec 6>&1
7083c021
AC
20160## ----------------------------------- ##
20161## Main body of $CONFIG_STATUS script. ##
20162## ----------------------------------- ##
20163_ASEOF
20164test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
212380e3 20165
7083c021
AC
20166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20167# Save the log message, to keep $0 and so on meaningful, and to
212380e3 20168# report actual input values of CONFIG_FILES etc. instead of their
631ef239
AC
20169# values after options handling.
20170ac_log="
c52df125 20171This file was extended by charybdis $as_me 3.6.0-dev, which was
2eff3833 20172generated by GNU Autoconf 2.69. Invocation command line was
212380e3
AC
20173
20174 CONFIG_FILES = $CONFIG_FILES
20175 CONFIG_HEADERS = $CONFIG_HEADERS
20176 CONFIG_LINKS = $CONFIG_LINKS
20177 CONFIG_COMMANDS = $CONFIG_COMMANDS
20178 $ $0 $@
20179
631ef239
AC
20180on `(hostname || uname -n) 2>/dev/null | sed 1q`
20181"
20182
212380e3
AC
20183_ACEOF
20184
7083c021
AC
20185case $ac_config_files in *"
20186"*) set x $ac_config_files; shift; ac_config_files=$*;;
20187esac
20188
20189case $ac_config_headers in *"
20190"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20191esac
20192
20193
20194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 20195# Files that config.status was made for.
631ef239
AC
20196config_files="$ac_config_files"
20197config_headers="$ac_config_headers"
9f9b7042 20198config_commands="$ac_config_commands"
212380e3 20199
631ef239 20200_ACEOF
212380e3 20201
7083c021 20202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3 20203ac_cs_usage="\
7083c021
AC
20204\`$as_me' instantiates files and other configuration actions
20205from templates according to the current configuration. Unless the files
20206and actions are specified as TAGs, all are instantiated by default.
212380e3 20207
7083c021 20208Usage: $0 [OPTION]... [TAG]...
212380e3
AC
20209
20210 -h, --help print this help, then exit
631ef239 20211 -V, --version print version number and configuration settings, then exit
6fb6bd15 20212 --config print configuration, then exit
7083c021
AC
20213 -q, --quiet, --silent
20214 do not print progress messages
212380e3
AC
20215 -d, --debug don't remove temporary files
20216 --recheck update $as_me by reconfiguring in the same conditions
7083c021
AC
20217 --file=FILE[:TEMPLATE]
20218 instantiate the configuration file FILE
20219 --header=FILE[:TEMPLATE]
20220 instantiate the configuration header FILE
212380e3
AC
20221
20222Configuration files:
20223$config_files
20224
20225Configuration headers:
20226$config_headers
20227
9f9b7042
NPB
20228Configuration commands:
20229$config_commands
20230
7083c021 20231Report bugs to the package provider."
212380e3 20232
631ef239 20233_ACEOF
7083c021 20234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6fb6bd15 20235ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
212380e3 20236ac_cs_version="\\
c52df125 20237charybdis config.status 3.6.0-dev
2eff3833 20238configured by $0, generated by GNU Autoconf 2.69,
6fb6bd15 20239 with options \\"\$ac_cs_config\\"
212380e3 20240
2eff3833 20241Copyright (C) 2012 Free Software Foundation, Inc.
212380e3
AC
20242This config.status script is free software; the Free Software Foundation
20243gives unlimited permission to copy, distribute and modify it."
631ef239
AC
20244
20245ac_pwd='$ac_pwd'
20246srcdir='$srcdir'
20247INSTALL='$INSTALL'
c52df125
AC
20248MKDIR_P='$MKDIR_P'
20249AWK='$AWK'
7083c021 20250test -n "\$AWK" || AWK=awk
212380e3
AC
20251_ACEOF
20252
7083c021
AC
20253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20254# The default lists apply if the user does not specify any file.
212380e3
AC
20255ac_need_defaults=:
20256while test $# != 0
20257do
20258 case $1 in
b6d0720c 20259 --*=?*)
631ef239
AC
20260 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20261 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
212380e3
AC
20262 ac_shift=:
20263 ;;
b6d0720c
AC
20264 --*=)
20265 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20266 ac_optarg=
20267 ac_shift=:
20268 ;;
631ef239 20269 *)
212380e3
AC
20270 ac_option=$1
20271 ac_optarg=$2
20272 ac_shift=shift
20273 ;;
212380e3
AC
20274 esac
20275
20276 case $ac_option in
20277 # Handling of the options.
212380e3
AC
20278 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20279 ac_cs_recheck=: ;;
631ef239 20280 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7083c021 20281 $as_echo "$ac_cs_version"; exit ;;
6fb6bd15
AC
20282 --config | --confi | --conf | --con | --co | --c )
20283 $as_echo "$ac_cs_config"; exit ;;
631ef239 20284 --debug | --debu | --deb | --de | --d | -d )
212380e3
AC
20285 debug=: ;;
20286 --file | --fil | --fi | --f )
20287 $ac_shift
7083c021
AC
20288 case $ac_optarg in
20289 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b6d0720c 20290 '') as_fn_error $? "missing file argument" ;;
7083c021
AC
20291 esac
20292 as_fn_append CONFIG_FILES " '$ac_optarg'"
212380e3
AC
20293 ac_need_defaults=false;;
20294 --header | --heade | --head | --hea )
20295 $ac_shift
7083c021
AC
20296 case $ac_optarg in
20297 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20298 esac
20299 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
212380e3 20300 ac_need_defaults=false;;
631ef239
AC
20301 --he | --h)
20302 # Conflict between --help and --header
b6d0720c 20303 as_fn_error $? "ambiguous option: \`$1'
7083c021 20304Try \`$0 --help' for more information.";;
631ef239 20305 --help | --hel | -h )
7083c021 20306 $as_echo "$ac_cs_usage"; exit ;;
212380e3
AC
20307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20308 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20309 ac_cs_silent=: ;;
20310
20311 # This is an error.
b6d0720c 20312 -*) as_fn_error $? "unrecognized option: \`$1'
7083c021 20313Try \`$0 --help' for more information." ;;
212380e3 20314
7083c021 20315 *) as_fn_append ac_config_targets " $1"
631ef239 20316 ac_need_defaults=false ;;
212380e3
AC
20317
20318 esac
20319 shift
20320done
20321
20322ac_configure_extra_args=
20323
20324if $ac_cs_silent; then
20325 exec 6>/dev/null
20326 ac_configure_extra_args="$ac_configure_extra_args --silent"
20327fi
20328
20329_ACEOF
7083c021 20330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 20331if \$ac_cs_recheck; then
2eff3833 20332 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7083c021
AC
20333 shift
20334 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20335 CONFIG_SHELL='$SHELL'
631ef239 20336 export CONFIG_SHELL
7083c021 20337 exec "\$@"
212380e3
AC
20338fi
20339
20340_ACEOF
7083c021 20341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
20342exec 5>>config.log
20343{
20344 echo
20345 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20346## Running $as_me. ##
20347_ASBOX
7083c021 20348 $as_echo "$ac_log"
631ef239 20349} >&5
212380e3 20350
631ef239 20351_ACEOF
7083c021 20352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c52df125
AC
20353#
20354# INIT-COMMANDS
20355#
20356AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20357
20358
20359# The HP-UX ksh and POSIX shell print the target directory to stdout
20360# if CDPATH is set.
20361(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20362
20363sed_quote_subst='$sed_quote_subst'
20364double_quote_subst='$double_quote_subst'
20365delay_variable_subst='$delay_variable_subst'
20366macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20367macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20368enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20369enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20370pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20371enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20372SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20373ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20374PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20375host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20376host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20377host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20378build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20379build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20380build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20381SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20382Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20383GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20384EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20385FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20386LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20387NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20388LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20389max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20390ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20391exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20392lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20393lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20394lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20395lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20396lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20397reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20398reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20399OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20400deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20401file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20402file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20403want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20404DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20405sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20406AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20407AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20408archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20409STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20410RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20411old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20412old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20413old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20414lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20415CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20416CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20417compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20418GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20419lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20420lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20421lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20422lt_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"`'
20423nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20424lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20425objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20426MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20427lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20428lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20429lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20430lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20431lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20432need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20433MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20434DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20435NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20436LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20437OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20438OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20439libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20440shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20441extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20442archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20443enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20444export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20445whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20446compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20447old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20448old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20449archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20450archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20451module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20452module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20453with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20454allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20455no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20456hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20457hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20458hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20459hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20460hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20461hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20462hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20463inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20464link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20465always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20466export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20467exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20468include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20469prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20470postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20471file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20472variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20473need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20474need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20475version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20476runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20477shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20478shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20479libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20480library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20481soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20482install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20483postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20484postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20485finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20486finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20487hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20488sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20489sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20490hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20491enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20492enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20493enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20494old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20495striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20496
20497LTCC='$LTCC'
20498LTCFLAGS='$LTCFLAGS'
20499compiler='$compiler_DEFAULT'
20500
20501# A function that is used when there is no print builtin or printf.
20502func_fallback_echo ()
20503{
20504 eval 'cat <<_LTECHO_EOF
20505\$1
20506_LTECHO_EOF'
20507}
20508
20509# Quote evaled strings.
20510for var in SHELL \
20511ECHO \
20512PATH_SEPARATOR \
20513SED \
20514GREP \
20515EGREP \
20516FGREP \
20517LD \
20518NM \
20519LN_S \
20520lt_SP2NL \
20521lt_NL2SP \
20522reload_flag \
20523OBJDUMP \
20524deplibs_check_method \
20525file_magic_cmd \
20526file_magic_glob \
20527want_nocaseglob \
20528DLLTOOL \
20529sharedlib_from_linklib_cmd \
20530AR \
20531AR_FLAGS \
20532archiver_list_spec \
20533STRIP \
20534RANLIB \
20535CC \
20536CFLAGS \
20537compiler \
20538lt_cv_sys_global_symbol_pipe \
20539lt_cv_sys_global_symbol_to_cdecl \
20540lt_cv_sys_global_symbol_to_c_name_address \
20541lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20542nm_file_list_spec \
20543lt_prog_compiler_no_builtin_flag \
20544lt_prog_compiler_pic \
20545lt_prog_compiler_wl \
20546lt_prog_compiler_static \
20547lt_cv_prog_compiler_c_o \
20548need_locks \
20549MANIFEST_TOOL \
20550DSYMUTIL \
20551NMEDIT \
20552LIPO \
20553OTOOL \
20554OTOOL64 \
20555shrext_cmds \
20556export_dynamic_flag_spec \
20557whole_archive_flag_spec \
20558compiler_needs_object \
20559with_gnu_ld \
20560allow_undefined_flag \
20561no_undefined_flag \
20562hardcode_libdir_flag_spec \
20563hardcode_libdir_separator \
20564exclude_expsyms \
20565include_expsyms \
20566file_list_spec \
20567variables_saved_for_relink \
20568libname_spec \
20569library_names_spec \
20570soname_spec \
20571install_override_mode \
20572finish_eval \
20573old_striplib \
20574striplib; do
20575 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20576 *[\\\\\\\`\\"\\\$]*)
20577 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20578 ;;
20579 *)
20580 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20581 ;;
20582 esac
20583done
20584
20585# Double-quote double-evaled strings.
20586for var in reload_cmds \
20587old_postinstall_cmds \
20588old_postuninstall_cmds \
20589old_archive_cmds \
20590extract_expsyms_cmds \
20591old_archive_from_new_cmds \
20592old_archive_from_expsyms_cmds \
20593archive_cmds \
20594archive_expsym_cmds \
20595module_cmds \
20596module_expsym_cmds \
20597export_symbols_cmds \
20598prelink_cmds \
20599postlink_cmds \
20600postinstall_cmds \
20601postuninstall_cmds \
20602finish_cmds \
20603sys_lib_search_path_spec \
20604sys_lib_dlsearch_path_spec; do
20605 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20606 *[\\\\\\\`\\"\\\$]*)
20607 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20608 ;;
20609 *)
20610 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20611 ;;
20612 esac
20613done
20614
20615ac_aux_dir='$ac_aux_dir'
20616xsi_shell='$xsi_shell'
20617lt_shell_append='$lt_shell_append'
20618
20619# See if we are running on zsh, and set the options which allow our
20620# commands through without removal of \ escapes INIT.
20621if test -n "\${ZSH_VERSION+set}" ; then
20622 setopt NO_GLOB_SUBST
20623fi
20624
20625
20626 PACKAGE='$PACKAGE'
20627 VERSION='$VERSION'
20628 TIMESTAMP='$TIMESTAMP'
20629 RM='$RM'
20630 ofile='$ofile'
20631
20632
20633
20634
631ef239 20635_ACEOF
212380e3 20636
7083c021 20637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
20638
20639# Handling of arguments.
212380e3
AC
20640for ac_config_target in $ac_config_targets
20641do
631ef239
AC
20642 case $ac_config_target in
20643 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
c52df125
AC
20644 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20645 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
631ef239 20646 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7083c021 20647 "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;;
53970d07 20648 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
631ef239 20649 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
631ef239
AC
20650 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20651 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
20652 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
2eff3833 20653 "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;;
631ef239
AC
20654 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20655 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
2eff3833 20656 "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;;
631ef239 20657
b6d0720c 20658 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
212380e3
AC
20659 esac
20660done
20661
631ef239 20662
212380e3
AC
20663# If the user did not use the arguments to specify the items to instantiate,
20664# then the envvar interface is used. Set only those that are not.
20665# We use the long form for the default assignment because of an extremely
20666# bizarre bug on SunOS 4.1.3.
20667if $ac_need_defaults; then
20668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20669 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9f9b7042 20670 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
212380e3
AC
20671fi
20672
20673# Have a temporary directory for convenience. Make it in the build tree
631ef239 20674# simply because there is no reason against having it here, and in addition,
212380e3 20675# creating and moving files from /tmp can sometimes cause problems.
631ef239
AC
20676# Hook for its removal unless debugging.
20677# Note that there is a small window in which the directory will not be cleaned:
20678# after its creation but before its name has been assigned to `$tmp'.
212380e3
AC
20679$debug ||
20680{
b6d0720c 20681 tmp= ac_tmp=
631ef239 20682 trap 'exit_status=$?
b6d0720c
AC
20683 : "${ac_tmp:=$tmp}"
20684 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
631ef239 20685' 0
7083c021 20686 trap 'as_fn_exit 1' 1 2 13 15
212380e3 20687}
212380e3
AC
20688# Create a (secure) tmp directory for tmp files.
20689
20690{
631ef239 20691 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b6d0720c 20692 test -d "$tmp"
212380e3
AC
20693} ||
20694{
631ef239
AC
20695 tmp=./conf$$-$RANDOM
20696 (umask 077 && mkdir "$tmp")
b6d0720c
AC
20697} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20698ac_tmp=$tmp
212380e3 20699
7083c021
AC
20700# Set up the scripts for CONFIG_FILES section.
20701# No need to generate them if there are no CONFIG_FILES.
20702# This happens for instance with `./config.status config.h'.
631ef239
AC
20703if test -n "$CONFIG_FILES"; then
20704
631ef239 20705
7083c021
AC
20706ac_cr=`echo X | tr X '\015'`
20707# On cygwin, bash can eat \r inside `` if the user requested igncr.
20708# But we know of no other shell where ac_cr would be empty at this
20709# point, so we can use a bashism as a fallback.
20710if test "x$ac_cr" = x; then
20711 eval ac_cr=\$\'\\r\'
20712fi
20713ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20714if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
b6d0720c 20715 ac_cs_awk_cr='\\r'
7083c021
AC
20716else
20717 ac_cs_awk_cr=$ac_cr
20718fi
20719
b6d0720c 20720echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7083c021 20721_ACEOF
631ef239
AC
20722
20723
7083c021
AC
20724{
20725 echo "cat >conf$$subs.awk <<_ACEOF" &&
20726 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20727 echo "_ACEOF"
20728} >conf$$subs.sh ||
b6d0720c
AC
20729 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20730ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
631ef239
AC
20731ac_delim='%!_!# '
20732for ac_last_try in false false false false false :; do
7083c021 20733 . ./conf$$subs.sh ||
b6d0720c 20734 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7083c021
AC
20735
20736 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20737 if test $ac_delim_n = $ac_delim_num; then
631ef239
AC
20738 break
20739 elif $ac_last_try; then
b6d0720c 20740 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
631ef239
AC
20741 else
20742 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
212380e3 20743 fi
631ef239 20744done
7083c021
AC
20745rm -f conf$$subs.sh
20746
20747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b6d0720c 20748cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7083c021
AC
20749_ACEOF
20750sed -n '
20751h
20752s/^/S["/; s/!.*/"]=/
20753p
20754g
20755s/^[^!]*!//
20756:repl
20757t repl
20758s/'"$ac_delim"'$//
20759t delim
20760:nl
20761h
6fb6bd15 20762s/\(.\{148\}\)..*/\1/
7083c021
AC
20763t more1
20764s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20765p
20766n
20767b repl
20768:more1
20769s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20770p
20771g
20772s/.\{148\}//
20773t nl
20774:delim
20775h
6fb6bd15 20776s/\(.\{148\}\)..*/\1/
7083c021
AC
20777t more2
20778s/["\\]/\\&/g; s/^/"/; s/$/"/
20779p
20780b
20781:more2
20782s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20783p
20784g
20785s/.\{148\}//
20786t delim
20787' <conf$$subs.awk | sed '
20788/^[^""]/{
20789 N
20790 s/\n//
20791}
20792' >>$CONFIG_STATUS || ac_write_fail=1
20793rm -f conf$$subs.awk
20794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20795_ACAWK
b6d0720c 20796cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7083c021
AC
20797 for (key in S) S_is_set[key] = 1
20798 FS = "\a"
212380e3 20799
7083c021
AC
20800}
20801{
20802 line = $ 0
20803 nfields = split(line, field, "@")
20804 substed = 0
20805 len = length(field[1])
20806 for (i = 2; i < nfields; i++) {
20807 key = field[i]
20808 keylen = length(key)
20809 if (S_is_set[key]) {
20810 value = S[key]
20811 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20812 len += length(value) + length(field[++i])
20813 substed = 1
20814 } else
20815 len += 1 + keylen
20816 }
631ef239 20817
7083c021
AC
20818 print line
20819}
20820
20821_ACAWK
631ef239 20822_ACEOF
7083c021
AC
20823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20824if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20825 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20826else
20827 cat
b6d0720c
AC
20828fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20829 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
212380e3 20830_ACEOF
631ef239 20831
b6d0720c
AC
20832# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20833# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
631ef239
AC
20834# trailing colons and then remove the whole line if VPATH becomes empty
20835# (actually we leave an empty line to preserve line numbers).
20836if test "x$srcdir" = x.; then
b6d0720c
AC
20837 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20838h
20839s///
20840s/^/:/
20841s/[ ]*$/:/
20842s/:\$(srcdir):/:/g
20843s/:\${srcdir}:/:/g
20844s/:@srcdir@:/:/g
20845s/^:*//
631ef239 20846s/:*$//
b6d0720c
AC
20847x
20848s/\(=[ ]*\).*/\1/
20849G
20850s/\n//
631ef239
AC
20851s/^[^=]*=[ ]*$//
20852}'
20853fi
20854
7083c021 20855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
20856fi # test -n "$CONFIG_FILES"
20857
7083c021
AC
20858# Set up the scripts for CONFIG_HEADERS section.
20859# No need to generate them if there are no CONFIG_HEADERS.
20860# This happens for instance with `./config.status Makefile'.
20861if test -n "$CONFIG_HEADERS"; then
b6d0720c 20862cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7083c021
AC
20863BEGIN {
20864_ACEOF
20865
20866# Transform confdefs.h into an awk script `defines.awk', embedded as
20867# here-document in config.status, that substitutes the proper values into
20868# config.h.in to produce config.h.
20869
20870# Create a delimiter string that does not exist in confdefs.h, to ease
20871# handling of long lines.
20872ac_delim='%!_!# '
20873for ac_last_try in false false :; do
b6d0720c
AC
20874 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20875 if test -z "$ac_tt"; then
7083c021
AC
20876 break
20877 elif $ac_last_try; then
b6d0720c 20878 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7083c021
AC
20879 else
20880 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20881 fi
20882done
20883
20884# For the awk script, D is an array of macro values keyed by name,
20885# likewise P contains macro parameters if any. Preserve backslash
20886# newline sequences.
20887
20888ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20889sed -n '
20890s/.\{148\}/&'"$ac_delim"'/g
20891t rset
20892:rset
20893s/^[ ]*#[ ]*define[ ][ ]*/ /
20894t def
20895d
20896:def
20897s/\\$//
20898t bsnl
20899s/["\\]/\\&/g
20900s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20901D["\1"]=" \3"/p
20902s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20903d
20904:bsnl
20905s/["\\]/\\&/g
20906s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20907D["\1"]=" \3\\\\\\n"\\/p
20908t cont
20909s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20910t cont
20911d
20912:cont
20913n
20914s/.\{148\}/&'"$ac_delim"'/g
20915t clear
20916:clear
20917s/\\$//
20918t bsnlc
20919s/["\\]/\\&/g; s/^/"/; s/$/"/p
20920d
20921:bsnlc
20922s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20923b cont
20924' <confdefs.h | sed '
20925s/'"$ac_delim"'/"\\\
20926"/g' >>$CONFIG_STATUS || ac_write_fail=1
20927
20928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20929 for (key in D) D_is_set[key] = 1
20930 FS = "\a"
20931}
20932/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20933 line = \$ 0
20934 split(line, arg, " ")
20935 if (arg[1] == "#") {
20936 defundef = arg[2]
20937 mac1 = arg[3]
20938 } else {
20939 defundef = substr(arg[1], 2)
20940 mac1 = arg[2]
20941 }
20942 split(mac1, mac2, "(") #)
20943 macro = mac2[1]
20944 prefix = substr(line, 1, index(line, defundef) - 1)
20945 if (D_is_set[macro]) {
20946 # Preserve the white space surrounding the "#".
20947 print prefix "define", macro P[macro] D[macro]
20948 next
20949 } else {
20950 # Replace #undef with comments. This is necessary, for example,
20951 # in the case of _POSIX_SOURCE, which is predefined and required
20952 # on some systems where configure will not decide to define it.
20953 if (defundef == "undef") {
20954 print "/*", prefix defundef, macro, "*/"
20955 next
20956 }
20957 }
20958}
20959{ print }
20960_ACAWK
20961_ACEOF
20962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b6d0720c 20963 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7083c021
AC
20964fi # test -n "$CONFIG_HEADERS"
20965
631ef239 20966
9f9b7042 20967eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7083c021
AC
20968shift
20969for ac_tag
631ef239
AC
20970do
20971 case $ac_tag in
20972 :[FHLC]) ac_mode=$ac_tag; continue;;
20973 esac
20974 case $ac_mode$ac_tag in
20975 :[FHL]*:*);;
b6d0720c 20976 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
631ef239
AC
20977 :[FH]-) ac_tag=-:-;;
20978 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
212380e3 20979 esac
631ef239
AC
20980 ac_save_IFS=$IFS
20981 IFS=:
20982 set x $ac_tag
20983 IFS=$ac_save_IFS
20984 shift
20985 ac_file=$1
20986 shift
212380e3 20987
631ef239
AC
20988 case $ac_mode in
20989 :L) ac_source=$1;;
20990 :[FH])
20991 ac_file_inputs=
20992 for ac_f
20993 do
20994 case $ac_f in
b6d0720c 20995 -) ac_f="$ac_tmp/stdin";;
631ef239
AC
20996 *) # Look for the file first in the build tree, then in the source tree
20997 # (if the path is not absolute). The absolute path cannot be DOS-style,
20998 # because $ac_f cannot contain `:'.
20999 test -f "$ac_f" ||
21000 case $ac_f in
21001 [\\/$]*) false;;
21002 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21003 esac ||
b6d0720c 21004 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
631ef239 21005 esac
7083c021
AC
21006 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21007 as_fn_append ac_file_inputs " '$ac_f'"
631ef239
AC
21008 done
21009
21010 # Let's still pretend it is `configure' which instantiates (i.e., don't
21011 # use $as_me), people would be surprised to read:
21012 # /* config.h. Generated by config.status. */
7083c021
AC
21013 configure_input='Generated from '`
21014 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21015 `' by configure.'
631ef239
AC
21016 if test x"$ac_file" != x-; then
21017 configure_input="$ac_file. $configure_input"
7083c021
AC
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21019$as_echo "$as_me: creating $ac_file" >&6;}
631ef239 21020 fi
7083c021
AC
21021 # Neutralize special characters interpreted by sed in replacement strings.
21022 case $configure_input in #(
21023 *\&* | *\|* | *\\* )
21024 ac_sed_conf_input=`$as_echo "$configure_input" |
21025 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21026 *) ac_sed_conf_input=$configure_input;;
21027 esac
631ef239
AC
21028
21029 case $ac_tag in
b6d0720c
AC
21030 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
631ef239
AC
21032 esac
21033 ;;
21034 esac
21035
21036 ac_dir=`$as_dirname -- "$ac_file" ||
212380e3
AC
21037$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21038 X"$ac_file" : 'X\(//\)[^/]' \| \
21039 X"$ac_file" : 'X\(//\)$' \| \
631ef239 21040 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 21041$as_echo X"$ac_file" |
631ef239
AC
21042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21043 s//\1/
21044 q
21045 }
21046 /^X\(\/\/\)[^/].*/{
21047 s//\1/
21048 q
21049 }
21050 /^X\(\/\/\)$/{
21051 s//\1/
21052 q
21053 }
21054 /^X\(\/\).*/{
21055 s//\1/
21056 q
21057 }
21058 s/.*/./; q'`
7083c021 21059 as_dir="$ac_dir"; as_fn_mkdir_p
212380e3
AC
21060 ac_builddir=.
21061
631ef239
AC
21062case "$ac_dir" in
21063.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21064*)
7083c021 21065 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 21066 # A ".." for each directory in $ac_dir_suffix.
7083c021 21067 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
21068 case $ac_top_builddir_sub in
21069 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21070 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21071 esac ;;
21072esac
21073ac_abs_top_builddir=$ac_pwd
21074ac_abs_builddir=$ac_pwd$ac_dir_suffix
21075# for backward compatibility:
21076ac_top_builddir=$ac_top_build_prefix
212380e3
AC
21077
21078case $srcdir in
631ef239 21079 .) # We are building in place.
212380e3 21080 ac_srcdir=.
631ef239
AC
21081 ac_top_srcdir=$ac_top_builddir_sub
21082 ac_abs_top_srcdir=$ac_pwd ;;
21083 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 21084 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
21085 ac_top_srcdir=$srcdir
21086 ac_abs_top_srcdir=$srcdir ;;
21087 *) # Relative name.
21088 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21089 ac_top_srcdir=$ac_top_build_prefix$srcdir
21090 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 21091esac
631ef239 21092ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
212380e3 21093
212380e3 21094
631ef239
AC
21095 case $ac_mode in
21096 :F)
21097 #
21098 # CONFIG_FILE
21099 #
212380e3
AC
21100
21101 case $INSTALL in
21102 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
631ef239 21103 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
212380e3 21104 esac
c52df125
AC
21105 ac_MKDIR_P=$MKDIR_P
21106 case $MKDIR_P in
21107 [\\/$]* | ?:[\\/]* ) ;;
21108 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21109 esac
631ef239 21110_ACEOF
212380e3 21111
7083c021 21112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
21113# If the template does not know about datarootdir, expand it.
21114# FIXME: This hack should be removed a few years after 2.60.
21115ac_datarootdir_hack=; ac_datarootdir_seen=
7083c021
AC
21116ac_sed_dataroot='
21117/datarootdir/ {
631ef239
AC
21118 p
21119 q
21120}
21121/@datadir@/p
21122/@docdir@/p
21123/@infodir@/p
21124/@localedir@/p
7083c021
AC
21125/@mandir@/p'
21126case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
631ef239
AC
21127*datarootdir*) ac_datarootdir_seen=yes;;
21128*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7083c021
AC
21129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21130$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
631ef239 21131_ACEOF
7083c021 21132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239
AC
21133 ac_datarootdir_hack='
21134 s&@datadir@&$datadir&g
21135 s&@docdir@&$docdir&g
21136 s&@infodir@&$infodir&g
21137 s&@localedir@&$localedir&g
21138 s&@mandir@&$mandir&g
7083c021 21139 s&\\\${datarootdir}&$datarootdir&g' ;;
631ef239 21140esac
212380e3 21141_ACEOF
631ef239
AC
21142
21143# Neutralize VPATH when `$srcdir' = `.'.
21144# Shell code in configure.ac might set extrasub.
21145# FIXME: do we really want to maintain this feature?
7083c021
AC
21146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21147ac_sed_extra="$ac_vpsub
212380e3
AC
21148$extrasub
21149_ACEOF
7083c021 21150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3
AC
21151:t
21152/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7083c021 21153s|@configure_input@|$ac_sed_conf_input|;t t
631ef239 21154s&@top_builddir@&$ac_top_builddir_sub&;t t
7083c021 21155s&@top_build_prefix@&$ac_top_build_prefix&;t t
631ef239
AC
21156s&@srcdir@&$ac_srcdir&;t t
21157s&@abs_srcdir@&$ac_abs_srcdir&;t t
21158s&@top_srcdir@&$ac_top_srcdir&;t t
21159s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21160s&@builddir@&$ac_builddir&;t t
21161s&@abs_builddir@&$ac_abs_builddir&;t t
21162s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21163s&@INSTALL@&$ac_INSTALL&;t t
c52df125 21164s&@MKDIR_P@&$ac_MKDIR_P&;t t
631ef239 21165$ac_datarootdir_hack
7083c021 21166"
b6d0720c
AC
21167eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21168 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
21169
21170test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b6d0720c
AC
21171 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21172 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21173 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7083c021 21174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 21175which seems to be undefined. Please make sure it is defined" >&5
7083c021 21176$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 21177which seems to be undefined. Please make sure it is defined" >&2;}
631ef239 21178
b6d0720c 21179 rm -f "$ac_tmp/stdin"
212380e3 21180 case $ac_file in
b6d0720c
AC
21181 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21182 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7083c021 21183 esac \
b6d0720c 21184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
21185 ;;
21186 :H)
21187 #
21188 # CONFIG_HEADER
21189 #
212380e3 21190 if test x"$ac_file" != x-; then
7083c021
AC
21191 {
21192 $as_echo "/* $configure_input */" \
b6d0720c
AC
21193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21194 } >"$ac_tmp/config.h" \
21195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21196 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7083c021
AC
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21198$as_echo "$as_me: $ac_file is unchanged" >&6;}
212380e3 21199 else
7083c021 21200 rm -f "$ac_file"
b6d0720c
AC
21201 mv "$ac_tmp/config.h" "$ac_file" \
21202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
212380e3
AC
21203 fi
21204 else
7083c021 21205 $as_echo "/* $configure_input */" \
b6d0720c
AC
21206 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21207 || as_fn_error $? "could not create -" "$LINENO" 5
212380e3 21208 fi
c52df125
AC
21209# Compute "$ac_file"'s index in $config_headers.
21210_am_arg="$ac_file"
21211_am_stamp_count=1
21212for _am_header in $config_headers :; do
21213 case $_am_header in
21214 $_am_arg | $_am_arg:* )
21215 break ;;
21216 * )
21217 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21218 esac
21219done
21220echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21221$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21222 X"$_am_arg" : 'X\(//\)[^/]' \| \
21223 X"$_am_arg" : 'X\(//\)$' \| \
21224 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21225$as_echo X"$_am_arg" |
21226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21227 s//\1/
21228 q
21229 }
21230 /^X\(\/\/\)[^/].*/{
21231 s//\1/
21232 q
21233 }
21234 /^X\(\/\/\)$/{
21235 s//\1/
21236 q
21237 }
21238 /^X\(\/\).*/{
21239 s//\1/
21240 q
21241 }
21242 s/.*/./; q'`/stamp-h$_am_stamp_count
631ef239
AC
21243 ;;
21244
9f9b7042
NPB
21245 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21246$as_echo "$as_me: executing $ac_file commands" >&6;}
21247 ;;
631ef239
AC
21248 esac
21249
9f9b7042
NPB
21250
21251 case $ac_file$ac_mode in
c52df125
AC
21252 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21253 # Older Autoconf quotes --file arguments for eval, but not when files
21254 # are listed without --file. Let's play safe and only enable the eval
21255 # if we detect the quoting.
21256 case $CONFIG_FILES in
21257 *\'*) eval set x "$CONFIG_FILES" ;;
21258 *) set x $CONFIG_FILES ;;
21259 esac
21260 shift
21261 for mf
21262 do
21263 # Strip MF so we end up with the name of the file.
21264 mf=`echo "$mf" | sed -e 's/:.*$//'`
21265 # Check whether this is an Automake generated Makefile or not.
21266 # We used to match only the files named 'Makefile.in', but
21267 # some people rename them; so instead we look at the file content.
21268 # Grep'ing the first line is not enough: some people post-process
21269 # each Makefile.in and add a new line on top of each file to say so.
21270 # Grep'ing the whole file is not good either: AIX grep has a line
21271 # limit of 2048, but all sed's we know have understand at least 4000.
21272 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21273 dirpart=`$as_dirname -- "$mf" ||
21274$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21275 X"$mf" : 'X\(//\)[^/]' \| \
21276 X"$mf" : 'X\(//\)$' \| \
21277 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21278$as_echo X"$mf" |
21279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21280 s//\1/
21281 q
21282 }
21283 /^X\(\/\/\)[^/].*/{
21284 s//\1/
21285 q
21286 }
21287 /^X\(\/\/\)$/{
21288 s//\1/
21289 q
21290 }
21291 /^X\(\/\).*/{
21292 s//\1/
21293 q
21294 }
21295 s/.*/./; q'`
21296 else
21297 continue
21298 fi
21299 # Extract the definition of DEPDIR, am__include, and am__quote
21300 # from the Makefile without running 'make'.
21301 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21302 test -z "$DEPDIR" && continue
21303 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21304 test -z "$am__include" && continue
21305 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21306 # Find all dependency output files, they are included files with
21307 # $(DEPDIR) in their names. We invoke sed twice because it is the
21308 # simplest approach to changing $(DEPDIR) to its actual value in the
21309 # expansion.
21310 for file in `sed -n "
21311 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21312 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21313 # Make sure the directory exists.
21314 test -f "$dirpart/$file" && continue
21315 fdir=`$as_dirname -- "$file" ||
21316$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21317 X"$file" : 'X\(//\)[^/]' \| \
21318 X"$file" : 'X\(//\)$' \| \
21319 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21320$as_echo X"$file" |
21321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21322 s//\1/
21323 q
21324 }
21325 /^X\(\/\/\)[^/].*/{
21326 s//\1/
21327 q
21328 }
21329 /^X\(\/\/\)$/{
21330 s//\1/
21331 q
21332 }
21333 /^X\(\/\).*/{
21334 s//\1/
21335 q
21336 }
21337 s/.*/./; q'`
21338 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21339 # echo "creating $dirpart/$file"
21340 echo '# dummy' > "$dirpart/$file"
21341 done
21342 done
21343}
21344 ;;
21345 "libtool":C)
21346
21347 # See if we are running on zsh, and set the options which allow our
21348 # commands through without removal of \ escapes.
21349 if test -n "${ZSH_VERSION+set}" ; then
21350 setopt NO_GLOB_SUBST
21351 fi
21352
21353 cfgfile="${ofile}T"
21354 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21355 $RM "$cfgfile"
21356
21357 cat <<_LT_EOF >> "$cfgfile"
21358#! $SHELL
21359
21360# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21361# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21362# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21363# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21364#
21365# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21366# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21367# Foundation, Inc.
21368# Written by Gordon Matzigkeit, 1996
21369#
21370# This file is part of GNU Libtool.
21371#
21372# GNU Libtool is free software; you can redistribute it and/or
21373# modify it under the terms of the GNU General Public License as
21374# published by the Free Software Foundation; either version 2 of
21375# the License, or (at your option) any later version.
21376#
21377# As a special exception to the GNU General Public License,
21378# if you distribute this file as part of a program or library that
21379# is built using GNU Libtool, you may include this file under the
21380# same distribution terms that you use for the rest of that program.
21381#
21382# GNU Libtool is distributed in the hope that it will be useful,
21383# but WITHOUT ANY WARRANTY; without even the implied warranty of
21384# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21385# GNU General Public License for more details.
21386#
21387# You should have received a copy of the GNU General Public License
21388# along with GNU Libtool; see the file COPYING. If not, a copy
21389# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21390# obtained by writing to the Free Software Foundation, Inc.,
21391# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21392
21393
21394# The names of the tagged configurations supported by this script.
21395available_tags=""
21396
21397# ### BEGIN LIBTOOL CONFIG
21398
21399# Which release of libtool.m4 was used?
21400macro_version=$macro_version
21401macro_revision=$macro_revision
21402
21403# Whether or not to build static libraries.
21404build_old_libs=$enable_static
21405
21406# Whether or not to build shared libraries.
21407build_libtool_libs=$enable_shared
21408
21409# What type of objects to build.
21410pic_mode=$pic_mode
21411
21412# Whether or not to optimize for fast installation.
21413fast_install=$enable_fast_install
21414
21415# Shell to use when invoking shell scripts.
21416SHELL=$lt_SHELL
21417
21418# An echo program that protects backslashes.
21419ECHO=$lt_ECHO
21420
21421# The PATH separator for the build system.
21422PATH_SEPARATOR=$lt_PATH_SEPARATOR
21423
21424# The host system.
21425host_alias=$host_alias
21426host=$host
21427host_os=$host_os
21428
21429# The build system.
21430build_alias=$build_alias
21431build=$build
21432build_os=$build_os
21433
21434# A sed program that does not truncate output.
21435SED=$lt_SED
21436
21437# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21438Xsed="\$SED -e 1s/^X//"
21439
21440# A grep program that handles long lines.
21441GREP=$lt_GREP
21442
21443# An ERE matcher.
21444EGREP=$lt_EGREP
21445
21446# A literal string matcher.
21447FGREP=$lt_FGREP
21448
21449# A BSD- or MS-compatible name lister.
21450NM=$lt_NM
21451
21452# Whether we need soft or hard links.
21453LN_S=$lt_LN_S
21454
21455# What is the maximum length of a command?
21456max_cmd_len=$max_cmd_len
21457
21458# Object file suffix (normally "o").
21459objext=$ac_objext
21460
21461# Executable file suffix (normally "").
21462exeext=$exeext
21463
21464# whether the shell understands "unset".
21465lt_unset=$lt_unset
21466
21467# turn spaces into newlines.
21468SP2NL=$lt_lt_SP2NL
21469
21470# turn newlines into spaces.
21471NL2SP=$lt_lt_NL2SP
21472
21473# convert \$build file names to \$host format.
21474to_host_file_cmd=$lt_cv_to_host_file_cmd
21475
21476# convert \$build files to toolchain format.
21477to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21478
21479# An object symbol dumper.
21480OBJDUMP=$lt_OBJDUMP
21481
21482# Method to check whether dependent libraries are shared objects.
21483deplibs_check_method=$lt_deplibs_check_method
21484
21485# Command to use when deplibs_check_method = "file_magic".
21486file_magic_cmd=$lt_file_magic_cmd
21487
21488# How to find potential files when deplibs_check_method = "file_magic".
21489file_magic_glob=$lt_file_magic_glob
21490
21491# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21492want_nocaseglob=$lt_want_nocaseglob
21493
21494# DLL creation program.
21495DLLTOOL=$lt_DLLTOOL
21496
21497# Command to associate shared and link libraries.
21498sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21499
21500# The archiver.
21501AR=$lt_AR
21502
21503# Flags to create an archive.
21504AR_FLAGS=$lt_AR_FLAGS
21505
21506# How to feed a file listing to the archiver.
21507archiver_list_spec=$lt_archiver_list_spec
21508
21509# A symbol stripping program.
21510STRIP=$lt_STRIP
21511
21512# Commands used to install an old-style archive.
21513RANLIB=$lt_RANLIB
21514old_postinstall_cmds=$lt_old_postinstall_cmds
21515old_postuninstall_cmds=$lt_old_postuninstall_cmds
21516
21517# Whether to use a lock for old archive extraction.
21518lock_old_archive_extraction=$lock_old_archive_extraction
21519
21520# A C compiler.
21521LTCC=$lt_CC
21522
21523# LTCC compiler flags.
21524LTCFLAGS=$lt_CFLAGS
21525
21526# Take the output of nm and produce a listing of raw symbols and C names.
21527global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21528
21529# Transform the output of nm in a proper C declaration.
21530global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21531
21532# Transform the output of nm in a C name address pair.
21533global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21534
21535# Transform the output of nm in a C name address pair when lib prefix is needed.
21536global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21537
21538# Specify filename containing input files for \$NM.
21539nm_file_list_spec=$lt_nm_file_list_spec
21540
21541# The root where to search for dependent libraries,and in which our libraries should be installed.
21542lt_sysroot=$lt_sysroot
21543
21544# The name of the directory that contains temporary libtool files.
21545objdir=$objdir
21546
21547# Used to examine libraries when file_magic_cmd begins with "file".
21548MAGIC_CMD=$MAGIC_CMD
21549
21550# Must we lock files when doing compilation?
21551need_locks=$lt_need_locks
21552
21553# Manifest tool.
21554MANIFEST_TOOL=$lt_MANIFEST_TOOL
21555
21556# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21557DSYMUTIL=$lt_DSYMUTIL
21558
21559# Tool to change global to local symbols on Mac OS X.
21560NMEDIT=$lt_NMEDIT
21561
21562# Tool to manipulate fat objects and archives on Mac OS X.
21563LIPO=$lt_LIPO
21564
21565# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21566OTOOL=$lt_OTOOL
21567
21568# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21569OTOOL64=$lt_OTOOL64
21570
21571# Old archive suffix (normally "a").
21572libext=$libext
21573
21574# Shared library suffix (normally ".so").
21575shrext_cmds=$lt_shrext_cmds
21576
21577# The commands to extract the exported symbol list from a shared archive.
21578extract_expsyms_cmds=$lt_extract_expsyms_cmds
21579
21580# Variables whose values should be saved in libtool wrapper scripts and
21581# restored at link time.
21582variables_saved_for_relink=$lt_variables_saved_for_relink
21583
21584# Do we need the "lib" prefix for modules?
21585need_lib_prefix=$need_lib_prefix
21586
21587# Do we need a version for libraries?
21588need_version=$need_version
21589
21590# Library versioning type.
21591version_type=$version_type
21592
21593# Shared library runtime path variable.
21594runpath_var=$runpath_var
21595
21596# Shared library path variable.
21597shlibpath_var=$shlibpath_var
21598
21599# Is shlibpath searched before the hard-coded library search path?
21600shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21601
21602# Format of library name prefix.
21603libname_spec=$lt_libname_spec
21604
21605# List of archive names. First name is the real one, the rest are links.
21606# The last name is the one that the linker finds with -lNAME
21607library_names_spec=$lt_library_names_spec
21608
21609# The coded name of the library, if different from the real name.
21610soname_spec=$lt_soname_spec
21611
21612# Permission mode override for installation of shared libraries.
21613install_override_mode=$lt_install_override_mode
21614
21615# Command to use after installation of a shared archive.
21616postinstall_cmds=$lt_postinstall_cmds
21617
21618# Command to use after uninstallation of a shared archive.
21619postuninstall_cmds=$lt_postuninstall_cmds
21620
21621# Commands used to finish a libtool library installation in a directory.
21622finish_cmds=$lt_finish_cmds
21623
21624# As "finish_cmds", except a single script fragment to be evaled but
21625# not shown.
21626finish_eval=$lt_finish_eval
21627
21628# Whether we should hardcode library paths into libraries.
21629hardcode_into_libs=$hardcode_into_libs
21630
21631# Compile-time system search path for libraries.
21632sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21633
21634# Run-time system search path for libraries.
21635sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21636
21637# Whether dlopen is supported.
21638dlopen_support=$enable_dlopen
21639
21640# Whether dlopen of programs is supported.
21641dlopen_self=$enable_dlopen_self
21642
21643# Whether dlopen of statically linked programs is supported.
21644dlopen_self_static=$enable_dlopen_self_static
21645
21646# Commands to strip libraries.
21647old_striplib=$lt_old_striplib
21648striplib=$lt_striplib
21649
21650
21651# The linker used to build libraries.
21652LD=$lt_LD
21653
21654# How to create reloadable object files.
21655reload_flag=$lt_reload_flag
21656reload_cmds=$lt_reload_cmds
21657
21658# Commands used to build an old-style archive.
21659old_archive_cmds=$lt_old_archive_cmds
21660
21661# A language specific compiler.
21662CC=$lt_compiler
21663
21664# Is the compiler the GNU compiler?
21665with_gcc=$GCC
21666
21667# Compiler flag to turn off builtin functions.
21668no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21669
21670# Additional compiler flags for building library objects.
21671pic_flag=$lt_lt_prog_compiler_pic
21672
21673# How to pass a linker flag through the compiler.
21674wl=$lt_lt_prog_compiler_wl
21675
21676# Compiler flag to prevent dynamic linking.
21677link_static_flag=$lt_lt_prog_compiler_static
21678
21679# Does compiler simultaneously support -c and -o options?
21680compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21681
21682# Whether or not to add -lc for building shared libraries.
21683build_libtool_need_lc=$archive_cmds_need_lc
21684
21685# Whether or not to disallow shared libs when runtime libs are static.
21686allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21687
21688# Compiler flag to allow reflexive dlopens.
21689export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21690
21691# Compiler flag to generate shared objects directly from archives.
21692whole_archive_flag_spec=$lt_whole_archive_flag_spec
21693
21694# Whether the compiler copes with passing no objects directly.
21695compiler_needs_object=$lt_compiler_needs_object
21696
21697# Create an old-style archive from a shared archive.
21698old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21699
21700# Create a temporary old-style archive to link instead of a shared archive.
21701old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21702
21703# Commands used to build a shared archive.
21704archive_cmds=$lt_archive_cmds
21705archive_expsym_cmds=$lt_archive_expsym_cmds
21706
21707# Commands used to build a loadable module if different from building
21708# a shared archive.
21709module_cmds=$lt_module_cmds
21710module_expsym_cmds=$lt_module_expsym_cmds
21711
21712# Whether we are building with GNU ld or not.
21713with_gnu_ld=$lt_with_gnu_ld
21714
21715# Flag that allows shared libraries with undefined symbols to be built.
21716allow_undefined_flag=$lt_allow_undefined_flag
21717
21718# Flag that enforces no undefined symbols.
21719no_undefined_flag=$lt_no_undefined_flag
21720
21721# Flag to hardcode \$libdir into a binary during linking.
21722# This must work even if \$libdir does not exist
21723hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21724
21725# Whether we need a single "-rpath" flag with a separated argument.
21726hardcode_libdir_separator=$lt_hardcode_libdir_separator
21727
21728# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21729# DIR into the resulting binary.
21730hardcode_direct=$hardcode_direct
21731
21732# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21733# DIR into the resulting binary and the resulting library dependency is
21734# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21735# library is relocated.
21736hardcode_direct_absolute=$hardcode_direct_absolute
21737
21738# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21739# into the resulting binary.
21740hardcode_minus_L=$hardcode_minus_L
21741
21742# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21743# into the resulting binary.
21744hardcode_shlibpath_var=$hardcode_shlibpath_var
21745
21746# Set to "yes" if building a shared library automatically hardcodes DIR
21747# into the library and all subsequent libraries and executables linked
21748# against it.
21749hardcode_automatic=$hardcode_automatic
21750
21751# Set to yes if linker adds runtime paths of dependent libraries
21752# to runtime path list.
21753inherit_rpath=$inherit_rpath
21754
21755# Whether libtool must link a program against all its dependency libraries.
21756link_all_deplibs=$link_all_deplibs
21757
21758# Set to "yes" if exported symbols are required.
21759always_export_symbols=$always_export_symbols
21760
21761# The commands to list exported symbols.
21762export_symbols_cmds=$lt_export_symbols_cmds
21763
21764# Symbols that should not be listed in the preloaded symbols.
21765exclude_expsyms=$lt_exclude_expsyms
21766
21767# Symbols that must always be exported.
21768include_expsyms=$lt_include_expsyms
21769
21770# Commands necessary for linking programs (against libraries) with templates.
21771prelink_cmds=$lt_prelink_cmds
21772
21773# Commands necessary for finishing linking programs.
21774postlink_cmds=$lt_postlink_cmds
21775
21776# Specify filename containing input files.
21777file_list_spec=$lt_file_list_spec
21778
21779# How to hardcode a shared library path into an executable.
21780hardcode_action=$hardcode_action
21781
21782# ### END LIBTOOL CONFIG
21783
21784_LT_EOF
21785
21786 case $host_os in
21787 aix3*)
21788 cat <<\_LT_EOF >> "$cfgfile"
21789# AIX sometimes has problems with the GCC collect2 program. For some
21790# reason, if we set the COLLECT_NAMES environment variable, the problems
21791# vanish in a puff of smoke.
21792if test "X${COLLECT_NAMES+set}" != Xset; then
21793 COLLECT_NAMES=
21794 export COLLECT_NAMES
21795fi
21796_LT_EOF
21797 ;;
21798 esac
21799
21800
21801ltmain="$ac_aux_dir/ltmain.sh"
21802
21803
21804 # We use sed instead of cat because bash on DJGPP gets confused if
21805 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21806 # text mode, it properly converts lines to CR/LF. This bash problem
21807 # is reportedly fixed, but why not run on old versions too?
21808 sed '$q' "$ltmain" >> "$cfgfile" \
21809 || (rm -f "$cfgfile"; exit 1)
21810
21811 if test x"$xsi_shell" = xyes; then
21812 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21813func_dirname ()\
21814{\
21815\ case ${1} in\
21816\ */*) func_dirname_result="${1%/*}${2}" ;;\
21817\ * ) func_dirname_result="${3}" ;;\
21818\ esac\
21819} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21820 && mv -f "$cfgfile.tmp" "$cfgfile" \
21821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21822test 0 -eq $? || _lt_function_replace_fail=:
21823
21824
21825 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21826func_basename ()\
21827{\
21828\ func_basename_result="${1##*/}"\
21829} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21830 && mv -f "$cfgfile.tmp" "$cfgfile" \
21831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21832test 0 -eq $? || _lt_function_replace_fail=:
21833
21834
21835 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21836func_dirname_and_basename ()\
21837{\
21838\ case ${1} in\
21839\ */*) func_dirname_result="${1%/*}${2}" ;;\
21840\ * ) func_dirname_result="${3}" ;;\
21841\ esac\
21842\ func_basename_result="${1##*/}"\
21843} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21844 && mv -f "$cfgfile.tmp" "$cfgfile" \
21845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21846test 0 -eq $? || _lt_function_replace_fail=:
21847
21848
21849 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21850func_stripname ()\
21851{\
21852\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21853\ # positional parameters, so assign one to ordinary parameter first.\
21854\ func_stripname_result=${3}\
21855\ func_stripname_result=${func_stripname_result#"${1}"}\
21856\ func_stripname_result=${func_stripname_result%"${2}"}\
21857} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21858 && mv -f "$cfgfile.tmp" "$cfgfile" \
21859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21860test 0 -eq $? || _lt_function_replace_fail=:
21861
21862
21863 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21864func_split_long_opt ()\
21865{\
21866\ func_split_long_opt_name=${1%%=*}\
21867\ func_split_long_opt_arg=${1#*=}\
21868} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21869 && mv -f "$cfgfile.tmp" "$cfgfile" \
21870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21871test 0 -eq $? || _lt_function_replace_fail=:
21872
21873
21874 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21875func_split_short_opt ()\
21876{\
21877\ func_split_short_opt_arg=${1#??}\
21878\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21879} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21880 && mv -f "$cfgfile.tmp" "$cfgfile" \
21881 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21882test 0 -eq $? || _lt_function_replace_fail=:
21883
21884
21885 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21886func_lo2o ()\
21887{\
21888\ case ${1} in\
21889\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21890\ *) func_lo2o_result=${1} ;;\
21891\ esac\
21892} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21893 && mv -f "$cfgfile.tmp" "$cfgfile" \
21894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21895test 0 -eq $? || _lt_function_replace_fail=:
21896
21897
21898 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21899func_xform ()\
21900{\
21901 func_xform_result=${1%.*}.lo\
21902} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21903 && mv -f "$cfgfile.tmp" "$cfgfile" \
21904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21905test 0 -eq $? || _lt_function_replace_fail=:
21906
21907
21908 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21909func_arith ()\
21910{\
21911 func_arith_result=$(( $* ))\
21912} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21913 && mv -f "$cfgfile.tmp" "$cfgfile" \
21914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21915test 0 -eq $? || _lt_function_replace_fail=:
21916
21917
21918 sed -e '/^func_len ()$/,/^} # func_len /c\
21919func_len ()\
21920{\
21921 func_len_result=${#1}\
21922} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21923 && mv -f "$cfgfile.tmp" "$cfgfile" \
21924 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21925test 0 -eq $? || _lt_function_replace_fail=:
21926
21927fi
21928
21929if test x"$lt_shell_append" = xyes; then
21930 sed -e '/^func_append ()$/,/^} # func_append /c\
21931func_append ()\
21932{\
21933 eval "${1}+=\\${2}"\
21934} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21935 && mv -f "$cfgfile.tmp" "$cfgfile" \
21936 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21937test 0 -eq $? || _lt_function_replace_fail=:
21938
21939
21940 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21941func_append_quoted ()\
21942{\
21943\ func_quote_for_eval "${2}"\
21944\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21945} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21946 && mv -f "$cfgfile.tmp" "$cfgfile" \
21947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21948test 0 -eq $? || _lt_function_replace_fail=:
21949
21950
21951 # Save a `func_append' function call where possible by direct use of '+='
21952 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21953 && mv -f "$cfgfile.tmp" "$cfgfile" \
21954 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21955 test 0 -eq $? || _lt_function_replace_fail=:
21956else
21957 # Save a `func_append' function call even when '+=' is not available
21958 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21959 && mv -f "$cfgfile.tmp" "$cfgfile" \
21960 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21961 test 0 -eq $? || _lt_function_replace_fail=:
21962fi
21963
21964if test x"$_lt_function_replace_fail" = x":"; then
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21966$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21967fi
21968
21969
21970 mv -f "$cfgfile" "$ofile" ||
21971 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21972 chmod +x "$ofile"
21973
21974 ;;
2eff3833 21975 "tools/genssl_chmod":C) chmod 755 tools/genssl ;;
9f9b7042
NPB
21976
21977 esac
631ef239 21978done # for ac_tag
212380e3 21979
212380e3 21980
7083c021 21981as_fn_exit 0
212380e3 21982_ACEOF
212380e3
AC
21983ac_clean_files=$ac_clean_files_save
21984
7083c021 21985test $ac_write_fail = 0 ||
b6d0720c 21986 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7083c021 21987
212380e3
AC
21988
21989# configure is writing to config.log, and then calls config.status.
21990# config.status does its own redirection, appending to config.log.
21991# Unfortunately, on DOS this fails, as config.log is still kept open
21992# by configure, so config.status won't be able to write to it; its
21993# output is simply discarded. So we exec the FD to /dev/null,
21994# effectively closing config.log, so it can be properly (re)opened and
21995# appended to by config.status. When coming back to configure, we
21996# need to make the FD available again.
21997if test "$no_create" != yes; then
21998 ac_cs_success=:
21999 ac_config_status_args=
22000 test "$silent" = yes &&
22001 ac_config_status_args="$ac_config_status_args --quiet"
22002 exec 5>/dev/null
22003 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22004 exec 5>>config.log
22005 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22006 # would make configure fail if this is the last instruction.
b6d0720c 22007 $ac_cs_success || as_fn_exit 1
212380e3 22008fi
1db8e007
JT
22009
22010#
22011# CONFIG_SUBDIRS section.
22012#
22013if test "$no_recursion" != yes; then
22014
22015 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
22016 # so they do not pile up.
22017 ac_sub_configure_args=
22018 ac_prev=
22019 eval "set x $ac_configure_args"
22020 shift
22021 for ac_arg
22022 do
22023 if test -n "$ac_prev"; then
22024 ac_prev=
22025 continue
22026 fi
22027 case $ac_arg in
22028 -cache-file | --cache-file | --cache-fil | --cache-fi \
22029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22030 ac_prev=cache_file ;;
22031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22033 | --c=*)
22034 ;;
22035 --config-cache | -C)
22036 ;;
22037 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22038 ac_prev=srcdir ;;
22039 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22040 ;;
22041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22042 ac_prev=prefix ;;
22043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22044 ;;
22045 --disable-option-checking)
22046 ;;
22047 *)
22048 case $ac_arg in
22049 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22050 esac
22051 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
22052 esac
22053 done
22054
22055 # Always prepend --prefix to ensure using the same prefix
22056 # in subdir configurations.
22057 ac_arg="--prefix=$prefix"
22058 case $ac_arg in
22059 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22060 esac
22061 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
22062
22063 # Pass --silent
22064 if test "$silent" = yes; then
22065 ac_sub_configure_args="--silent $ac_sub_configure_args"
22066 fi
22067
22068 # Always prepend --disable-option-checking to silence warnings, since
22069 # different subdirs can have different --enable and --with options.
22070 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
22071
22072 ac_popdir=`pwd`
22073 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22074
22075 # Do not complain, so a configure script can configure whichever
22076 # parts of a large source tree are present.
22077 test -d "$srcdir/$ac_dir" || continue
22078
22079 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22080 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
22081 $as_echo "$ac_msg" >&6
22082 as_dir="$ac_dir"; as_fn_mkdir_p
22083 ac_builddir=.
22084
22085case "$ac_dir" in
22086.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22087*)
22088 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22089 # A ".." for each directory in $ac_dir_suffix.
22090 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22091 case $ac_top_builddir_sub in
22092 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22093 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22094 esac ;;
22095esac
22096ac_abs_top_builddir=$ac_pwd
22097ac_abs_builddir=$ac_pwd$ac_dir_suffix
22098# for backward compatibility:
22099ac_top_builddir=$ac_top_build_prefix
22100
22101case $srcdir in
22102 .) # We are building in place.
22103 ac_srcdir=.
22104 ac_top_srcdir=$ac_top_builddir_sub
22105 ac_abs_top_srcdir=$ac_pwd ;;
22106 [\\/]* | ?:[\\/]* ) # Absolute name.
22107 ac_srcdir=$srcdir$ac_dir_suffix;
22108 ac_top_srcdir=$srcdir
22109 ac_abs_top_srcdir=$srcdir ;;
22110 *) # Relative name.
22111 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22112 ac_top_srcdir=$ac_top_build_prefix$srcdir
22113 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22114esac
22115ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22116
22117
22118 cd "$ac_dir"
22119
22120 # Check for guested configure; otherwise get Cygnus style configure.
22121 if test -f "$ac_srcdir/configure.gnu"; then
22122 ac_sub_configure=$ac_srcdir/configure.gnu
22123 elif test -f "$ac_srcdir/configure"; then
22124 ac_sub_configure=$ac_srcdir/configure
22125 elif test -f "$ac_srcdir/configure.in"; then
22126 # This should be Cygnus configure.
22127 ac_sub_configure=$ac_aux_dir/configure
22128 else
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
22130$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22131 ac_sub_configure=
22132 fi
22133
22134 # The recursion is here.
22135 if test -n "$ac_sub_configure"; then
22136 # Make the cache file name correct relative to the subdirectory.
22137 case $cache_file in
22138 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22139 *) # Relative name.
22140 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22141 esac
22142
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22144$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22145 # The eval makes quoting arguments work.
22146 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22147 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22148 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
22149 fi
22150
22151 cd "$ac_popdir"
22152 done
22153fi
7083c021
AC
22154if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22156$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22157fi
b676ea3b 22158
212380e3
AC
22159
22160if test "$cf_openssl_version_ok" = yes; then
22161 openssl="yes"
22162else
22163 openssl="no"
22164fi
22165
22166if test "$shared_modules" = yes; then
22167 modules=shared
22168else
22169 modules=static
22170fi
22171
22172echo "
b6d0720c 22173Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
212380e3
AC
22174 Install directory : $prefix
22175
22176 Ziplinks : $zlib
22177 OpenSSL : $openssl
212380e3
AC
22178 Socket Engine : $SELECT_TYPE
22179 Small network : $small_net
22180 Block allocator : $balloc
212380e3
AC
22181
22182 Nickname length : $NICKLEN
22183 Topic length : $TOPICLEN
22184
b6d0720c 22185Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.
212380e3 22186"